]> Git Repo - binutils.git/blob - bfd/ChangeLog
* config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
[binutils.git] / bfd / ChangeLog
1 Fri Mar 22 12:17:00 1996  Ian Lance Taylor  <[email protected]>
2
3         * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
4         m68k-aout, m68k-coff, and m68k-elf targets.
5
6 Fri Mar 22 11:33:44 1996  Martin Anantharaman  <[email protected]>
7
8         * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST.
9         (ieee_generic_stat_arch_elt): Restructured to prevent
10         ieee_object_p from being called repeatedly.
11
12 Thu Mar 21 11:00:47 1996  steve chamberlain  <[email protected]>
13
14         * coffcode.h (coff_write_object_contents):  Allocate
15         buffers large enough for any FILEHDR or AOUTHDR.
16
17 Thu Mar 21 16:28:17 1996  David Mosberger-Tang  <[email protected]>
18
19         * ecofflink.c (lookup_line): New static function, renamed and
20         slighly changed from old _bfd_ecoff_locate_line.
21         (_bfd_ecoff_locate_line): Cache line number information.  Use
22         lookup_line for actual lookup.
23
24 Thu Mar 21 14:59:11 1996  Michael Meissner  <[email protected]>
25
26         * peicode.h (pe_print_pdata): Warn if the .pdata section is not a
27         multiple of 20 bytes.
28
29 Thu Mar 21 13:54:40 1996  Ian Lance Taylor  <[email protected]>
30
31         * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to
32         allocate ecoff_find_line, and don't initialize by hand.
33         * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for
34         mips_elf_find_line, and don't call memset.
35
36         * coffcode.h (coff_compute_section_file_positions): If not
37         producing a final executable, don't consider sofar when aligning
38         the section to the correct size.
39
40 Wed Mar 20 16:53:12 1996  Ian Lance Taylor  <[email protected]>
41
42         * coffcode.h (coff_add_missing_symbols): Ifdef out.
43         (coff_write_object_contents): Don't call coff_add_missing_symbols.
44         * coffgen.c (coff_section_symbol): Ifdef out.
45
46 Mon Mar 18 12:54:41 1996  Ian Lance Taylor  <[email protected]>
47
48         * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if
49         output_bfd is not NULL.
50
51 Thu Mar 14 17:12:06 1996  Doug Evans  <[email protected]>
52
53         * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead
54         of bfd_alloc (fixes fix_line not being initialized).
55         Delete zeroing of fix_{value,tag,end,scnlen} fields.
56
57 Thu Mar 14 16:06:06 1996  Jeffrey A Law  ([email protected])
58
59         * coffcode.h: Allow specific backends to override the
60         bfd_link_add_symbols routine.
61
62         * coff-h8300.c: Include genlink.h.
63         (howto_table): Add R_MEM_INDIRECT.
64         (rtype2howto): Support R_MEM_INDIRECT.
65         (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE
66         for now.
67         
68 Tue Mar 12 12:41:17 1996  David Mosberger-Tang  <[email protected]>
69
70         * coff-alpha.c (alpha_relocate_section): Use
71         info->callbacks_warning, rather than _bfd_error_handler, for
72         "multiple gp" warning.
73
74 Tue Mar 12 12:10:55 1996  Ian Lance Taylor  <[email protected]>
75
76         * linker.c (bfd_wrapped_link_hash_lookup): New function.
77         (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash
78         table string.  Use bfd_wrapped_link_hash_lookup.
79         (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash
80         table string.
81         * aoutx.h (aout_link_write_symbols): Use the name from the hash
82         table, if any, when writing out symbols.
83         (aout_link_input_section_std): Use the name from the hash table,
84         if any, when reporting undefined symbols.
85         (aout_link_input_section_ext): Likewise.
86         (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup.
87         * bout.c (get_value): Likewise.
88         * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
89         * ecoff.c (ecoff_reloc_link_order): Likewise.
90         * elflink.h (elf_link_add_object_symbols): Likewise.
91         (elf_reloc_link_order): Likewise.       
92         * linker.c (_bfd_generic_link_output_symbols): Likewise.
93         (_bfd_generic_reloc_link_order): Likewise.
94         (default_indirect_link_order): Likewise.
95         * reloc16.c (bfd_coff_reloc16_get_value): Likewise.
96         * sunos.c (sunos_add_one_symbol): Likewise.
97         * xcofflink.c (xcoff_link_add_symbols): Likewise.
98         (bfd_xcoff_link_count_reloc): Likewise.
99         (xcoff_reloc_link_order): Likewise.
100
101         * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
102         into -1 for intern->rss.
103
104         * configure: Rebuild with autoconf 2.8.
105
106 Mon Mar 11 12:28:31 1996  Ian Lance Taylor  <[email protected]>
107
108         * stab-syms.c (__define_stab_duplicate): Define.
109         (bfd_get_stab_name): Rename from aout_stab_name.  Rewrite to use a
110         switch.
111         * bfd-in.h (bfd_get_stab_name): Declare.
112         * bfd-in2.h: Rebuild.
113         * Makefile.in: Rebuild dependencies.
114         (BFD_LIBS): Add stab-syms.o.
115         (BFD_LIBS_CFILES): Add stab-syms.c.
116         (BFD32_BACKENDS): Remove stab-syms.o.
117         (BFD32_BACKENDS_CFILES): Remove stab-syms.c.
118         * configure.in: Don't list stab-syms.o in bfd_backends.
119         * configure: Rebuild.
120         * libaout.h (aout_stab_name): Don't declare.
121         * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name,
122         not aout_stab_name.
123
124 Fri Mar  8 11:26:20 1996  Ian Lance Taylor  <[email protected]>
125
126         * elf.c (assign_file_positions_for_segments): Adjust file offset
127         for section alignment even if SEC_LOAD is not set.
128
129 Tue Mar  5 12:02:23 1996  Ian Lance Taylor  <[email protected]>
130
131         * configure.in: Don't set SHLIB or SHLINK to an empty string,
132         since they appear as targets in Makefile.in.
133         * configure: Rebuild.
134
135         * sunos.c (sunos_scan_ext_relocs): If not making a shared library,
136         don't fiddle with a symbol which is not defined anywhere.
137
138 Mon Mar  4 12:49:16 1996  Ian Lance Taylor  <[email protected]>
139
140         * xcofflink.c (xcoff_mark): Treat undefined imported symbols as
141         though they are defined in a shared library.
142         (xcoff_build_ldsyms): Likewise.
143
144         * coffgen.c (coff_find_nearest_line): Don't look at the line
145         numbers for the section if section->lineno is NULL.
146
147         * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error
148         message rather than calling BFD_ASSERT.
149         * elfcode.h (write_relocs): Check return value of
150         _bfd_elf_symbol_from_bfd_symbol.
151
152 Fri Mar  1 09:42:59 1996  Michael Meissner  <[email protected]>
153
154         * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
155         for .sbss section.
156
157 Wed Feb 28 11:25:47 1996  Jeffrey A Law  ([email protected])
158
159         * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
160         and R_HPPA_NLRSEL.
161         (e_nsel, e_nlsel, e_nlrsel): Undefine.  Add to
162         hppa_reloc_field_selector_type_alt.
163         (hppa_field_adjust): Handle e_nlsel, e_nlrsel.  Fix e_nsel handling.
164         * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
165         selectors.
166         (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
167
168 Wed Feb 28 11:00:24 1996  Ian Lance Taylor  <[email protected]>
169
170         * elf.c (assign_file_positions_for_segments): Adjust the segment
171         memory size for the alignment of a SEC_ALLOC section, not just a
172         SEC_LOAD section.
173
174 Tue Feb 27 14:17:31 1996  Andreas Schwab  <[email protected]>
175
176         * m68klinux.c: New file.
177         * hosts/m68klinux.h: New file.
178         * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
179         * configure.in (m68*-*-linux*): New native host.
180         (m68klinux_vec): New vector.
181         * configure: Rebuild.
182         * targets.c (m68klinux_vec): Declare.
183         * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
184         bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
185         * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
186         declaration from bfd_linux_size_dynamic_sections.
187         (bfd_m68klinux_size_dynamic_sections): Declare.
188         * bfd-in2.h: Rebuild.
189         * Makefile.in: Rebuild dependencies.
190         (BFD32_BACKENDS): Add m68klinux.o.
191         (BFD32_BACKENDS_CFILES): Add m68klinux.c.
192
193 Tue Feb 27 11:31:34 1996  Jeffrey A Law  ([email protected])
194
195         * libhppa.h (pa_arch): Add pa20.
196         (hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
197         (e_nsel): Undefine.  Add to hppa_reloc_field_selector_type_alt.
198         (hppa_field_adjust): Handle e_nsel.
199         * som.c: Provide default definitions for many new relocs found only
200         in hpux10 include files.
201         (som_fixup_formats): Add several new relocs from hpux10.
202         (som_hppa_howto_table): Add hpux10 relocs.
203         (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
204
205 Mon Feb 26 12:52:48 1996  Stan Shebs  <[email protected]>
206
207         * mpw-make.sed: Edit out recent shared library support, and
208         rules to rebuild .h files using doc/chew.
209
210 Mon Feb 26 14:48:39 1996  David Mosberger-Tang  <[email protected]>
211
212         * ecoff.c (ecoff_compute_section_file_positions): Adjust the file
213         size even of sections with no contents.
214
215 Mon Feb 26 14:01:13 1996  Ian Lance Taylor  <[email protected]>
216
217         * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
218         starting with '$' the way we skip names starting with '.'.  When
219         updating x_endndx, don't be fooled by an index which has been
220         merged.
221
222         * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
223         struct/union/enum type with no elements.
224
225 Sat Feb 24 11:38:58 1996  Ian Lance Taylor  <[email protected]>
226
227         * bfd.c (bfd_errmsg): Handle a NULL return from strerror.
228
229         * archive.c (bfd_generic_archive_p): If the first file in the
230         archive can not be recognized as an object, don't assume that this
231         is the wrong format.
232
233         * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
234         format is not bfd_object.
235         (bfd_elf_get_dt_soname): Likewise.
236
237 Wed Feb 21 13:58:04 1996  Ian Lance Taylor  <[email protected]>
238
239         * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
240         reloc.
241
242 Tue Feb 20 16:22:44 1996  J.T. Conklin  <[email protected]>
243
244         * bfd.c (tdata): Add netbsd_core_data.
245         * bfd-in2.h: Regenerated.
246
247 Tue Feb 20 16:50:02 1996  Ian Lance Taylor  <[email protected]>
248
249         * sunos.c (SUNOS_CONSTRUCTOR): Define.
250         (sunos_add_one_symbol): Don't let a symbol from a dynamic object
251         override a constructor symbol.  Set SUNOS_CONSTRUCTOR when
252         appropriate.
253
254         * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags
255         to get the symbol index, matching 14 Jul 95 change.
256
257 Tue Feb 20 08:26:27 1996  Fred Fish  <[email protected]>
258
259         * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
260         Remove duplicate definition of gp.
261
262 Mon Feb 19 12:37:41 1996  Ian Lance Taylor  <[email protected]>
263
264         * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
265         assume that we can set the GP value and then get the same value,
266         since it won't be true if the output file is neither ELF nor
267         ECOFF.
268         * coff-mips.c (mips_adjust_reloc_in): Don't bother to use
269         _bfd_get_gp_value here.
270         (mips_gprel_reloc): Don't assume we can set and get the GP value.
271         * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
272         mips_elf_final_gp.
273         (mips_elf_lo16_reloc): Likewise.
274         (mips_elf_final_gp): Add pgp parameter.  Set it to the GP value.
275         Don't require that the BFD be ELF.
276         (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
277         (mips_elf_gprel32_reloc): Likewise.
278         (mips_elf_relocate_section): Don't assume we can set and get the
279         GP value.
280         (mips_elf_finish_dynamic_symbol): Don't bother to use
281         _bfd_get_gp_value here.
282
283         * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
284         Don't change epdr between malloc and free.  Be careful not to free
285         NULL pointers.  Zero out the first RPDR.
286
287         * configure.host: On Linux, only pass -rpath option if $(libdir)
288         is neither /lib nor /usr/lib.  From Alan Modra
289         <[email protected]>.
290
291         * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
292         dt_name.
293         (elf_dt_name): Rename from elf_dt_needed_name.
294         * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
295         elf_dt_needed_name.
296         (bfd_elf_get_dt_soname): New function.
297         * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
298         elf_dt_needed_name.  Save the SONAME back in elf_dt_name.
299         * bfd-in.h (bfd_elf_get_dt_soname): Declare.
300         * bfd-in2.h: Rebuild.
301
302 Mon Feb 19 02:50:23 1996  Doug Evans  <[email protected]>
303
304         * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
305         _bfd_sparc_elf_reloc_type_lookup.
306         (bfd_elf32_bfd_reloc_type_lookup): Update.
307         * elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
308         (sparc64_elf_howto_table): Define.
309         (sparc_reloc_map): Define.
310         (sparc64_elf_reloc_type_lookup): New function.
311         (sparc_elf_wdisp16_reloc): New function.
312         (elf_info_to_howto): Use sparc64_elf_howto_table.
313         (sparc64_elf_relocate_section): Likewise.
314         (bfd_elf64_bfd_reloc_type_lookup): Update.
315
316 Sun Feb 18 15:02:25 1996  Ian Lance Taylor  <[email protected]>
317
318         * configure.host: Check for 'do not mix' from native linker before
319         trying to use -rpath.
320
321 Fri Feb 16 12:46:18 1996  Ian Lance Taylor  <[email protected]>
322
323         * bfd.c (_bfd_get_gp_value): New function.
324         (_bfd_set_gp_value): New function.
325         * libbfd-in.h (_bfd_get_gp_value): Declare.
326         (_bfd_set_gp_value): Declare.
327         * libbfd.h: Rebuild.
328         * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
329         _bfd_get_gp_value and _bfd_set_gp_value rather than referring
330         directly to the fields in the tdata information.
331         (alpha_relocate_section): Likewise.
332         * coff-mips.c (mips_adjust_reloc_in): Likewise.
333         (mips_gprel_reloc): Likewise.
334         (mips_relocate_section): Likewise.
335         * elf32-mips.c (mips_elf_hi16_reloc): Likewise.
336         (mips_elf_lo16_reloc): Likewise.
337         (mips_elf_final_gp): Likewise.
338         (mips_elf_gprel16_reloc): Likewise.
339         (mips_elf_gprel32_reloc): Likewise.
340         (mips_elf_relocate_section): Likewise.
341         (mips_elf_finish_dynamic_symbol): Likewise.
342
343         * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
344
345 Thu Feb 15 11:29:13 1996  Ian Lance Taylor  <[email protected]>
346
347         * configure.in: Call AC_PROG_CC before configure.host.
348         * configure: Rebuild.
349         * configure.host: Don't set information which autoconf should
350         figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
351
352         * configure.host: Remove go32 and win32 host information, since it
353         should no longer be needed.
354
355         * elf.c (map_sections_to_segments): If we have a .dynamic section,
356         then start a new segment rather than put a writable section in a
357         readonly segment.
358
359         * configure.host: Set RPATH_ENVVAR.
360
361         * Makefile.in: Rebuild dependencies.
362
363         * elflink.c (_bfd_elf_create_linker_section): Remove unused
364         zero_section variable.
365
366 Thu Feb 15 10:39:17 1996  H.J. Lu  <[email protected]>
367
368         * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
369         ($(srcdir)/libbfd.h): Rename from libbfd.h.
370         ($(srcdir)/libcoff.h): Rename from libcoff.h.
371
372 Wed Feb 14 16:29:07 1996  Martin Anantharaman  <[email protected]>
373
374         * ieee.c (ieee_write_expression): Only use an R variable for a
375         local symbol.  Don't output a zero offset.  Handle a zero address.
376         (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
377         (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
378         PCREL_OFFSET.
379         (parse_expression): Don't try to handle multiple occurrences of a
380         P variable.  Handle I variables differently from X variables.  Fix
381         the order of minus expressions.
382         (ieee_slurp_external_symbols): Generate an I variable for an NN
383         record.  Fix handling of ATI and ATX records.
384         (ieee_slurp_sections): Only set minimal section attributes.
385         Adjust them later, based on the section contents.
386         (ieee_object_p): Read in the file until just after the ME record.
387         Call ieee_slurp_section_data to set the section flags.
388         (do_one): Add iterations parameter.  Only repeat the first load
389         item.  Set the section and file reloc flags.
390         (ieee_slurp_section_data): Set section flags.  Pass iterations to
391         do_one.
392         (ieee_canonicalize_reloc): Handle I variables.
393         (do_with_relocs): Only emit relocation size when necessary.
394         Increase MAXRUN to 127.  Change ov to be assigned, and take
395         src_mask and pcrel_offset into account.
396         (ieee_write_data_part): Skip sections that are not loaded.
397         (ieee_write_external_part): Don't output optional last entry of WX
398         records.
399         (ieee_write_me_part): Make setting of me_record neater.
400         (ieee_generic_stat_arch_elt): Get the size of an archive element.
401
402         * syms.c (stt): Add entries for zerovars, vars, and code.
403
404         * elfcode.h (validate_reloc): New static function.
405         (write_relocs): Call validate_reloc for non ELF relocs.
406
407         * elfxx-target.h (elf_symbol_leading_char): Define if not defined.
408         (TARGET_BIG_SYM): Use elf_symbol_leading_char.
409         (TARGET_LITTLE_SYM): Likewise.
410
411         * config.bfd (m68*-*-psos*): New target.
412
413 Tue Feb 13 15:56:22 1996  Bryan Ford  <[email protected]>
414
415         * i386msdos.c: Remove some #if 0 code.
416         (msdos_write_object_contents): Don't include empty sections in the
417         size computation, regardless of their address.
418
419 Tue Feb 13 15:36:37 1996  Michael Meissner  <[email protected]>
420
421         * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
422         is NULL, ie, the -r switch is used.
423
424 Tue Feb 13 14:35:15 1996  Ian Lance Taylor  <[email protected]>
425
426         * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
427         (BFD_RELOC_MIPS_GOT_LO16): Define.
428         (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
429         * bfd-in2.h, libbfd.h: Rebuild.
430         * elf32-mips.c (mips_reloc_map): Map new relocs.
431
432         * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
433
434         * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
435         $(SHLINK).
436
437         * ieee.c (get_symbol): Set the section to bfd_abs_section.
438         (do_with_relocs): If EXEC_P is set and there are no relocs, use a
439         simple number for the section address, rather than an expression.
440         Limit the number of bytes between relocs to MAXRUN.
441         (ieee_write_me_part): Set me_record to the file offset after the
442         start address.
443         (ieee_write_processor): New static function.
444         (ieee_write_object_contents): Use ieee_write_processor.
445
446 Fri Feb  9 10:53:00 1996  Ian Lance Taylor  <[email protected]>
447
448         * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
449
450         * coff-aux.c: Change include of aux.h to aux-coff.h.
451
452 Thu Feb  8 14:01:03 1996  Andreas Schwab  <[email protected]>
453
454         * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
455         relocation put the addend both in the reloc entry and the data.
456         (elf_m68k_finish_dynamic_symbol): Likewise.  Mask out marker in
457         GOT offset value.
458
459         * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
460         a R_68K_PCxx reloc against a defined global symbol directly.
461         (elf_m68k_check_relocs): Don't count such a reloc.
462
463         * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
464         a PLTxx reloc as dynamic.  Disallow PLTxxO reloc against a local
465         symbol for now, otherwise always record the symbol as dynamic.
466         (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
467         is not referenced by a dynamic object, and we are not making a
468         shared object, then don't make a PLT entry.  If we do make a PLT
469         entry, make sure the symbol has been recorded as dynamic.
470
471 Wed Feb  7 13:56:06 1996  Ian Lance Taylor  <[email protected]>
472
473         * configure.host: When making a shared library, set HLDFLAGS to
474         pass an appropriate -rpath option.  Use the make variable SONAME
475         as the shared library soname, rather than computing it here.  On
476         SunOS, build stamp-tshlink in place of $(SHLINK).
477         * Makefile.in (SONAME): New variable.
478         ($(SHLINK)): Make a link to the transformed name, as well.
479         (stamp-tshlink): New target.
480         (install): Skip stamp-tshlink during install.
481
482 Wed Feb  7 13:37:39 1996  Michael Meissner  <[email protected]>
483
484         * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
485         linker sections have been set up yet.
486
487         * elf.c (make_mapping): Add an additional argument to suppress
488         making the first section include the program headers.
489         (map_sections_to_segments): If the user used -Ttext such that the
490         program headers are on a different page, do not set the flags
491         saying that this section includes the program headers.
492
493 Tue Feb  6 14:04:49 1996  J.T. Conklin  <[email protected]>
494
495         * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
496         don't define TRAD_HEADER.
497         * configure: Rebuild.
498
499         * netbsd-core.c: New file, support for NetBSD core files.
500         * hosts/*nbsd.h: Removed.
501
502 Tue Feb  6 11:47:49 1996  Doug Evans  <[email protected]>
503
504         * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
505         (BFD_RELOC_SPARC_LO7 reloc type): Deleted.
506         * libbfd.h, bfd-in2.h: Regenerated.
507         * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
508         bfd_elf32_bfd_reloc_type_lookup.
509         (reloc_type{,_names}): Deleted.
510         (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
511         Add sparc64 relocs.
512         (sparc_reloc_map): Add sparc64 relocs.
513         (sparc_elf_notsupported_reloc): New static function.
514         (sparc_elf_wdisp16_reloc): New static function.
515         (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
516         (elf32_sparc_relocate_section): Likewise.
517         (bfd_elf32_bfd_reloc_type_lookup): Define.
518         * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
519         (reloc_type{,_names}): Deleted.
520         (elf_sparc_howto_table): Deleted.
521         (sparc_reloc_map): Deleted.
522         (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
523         (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
524
525 Tue Feb  6 12:12:22 1996  Ian Lance Taylor  <[email protected]>
526
527         * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
528         *-*-hpux* host.
529
530         * Makefile.in (program_transform_name): New variable.
531         (install): Transform library name before installing it.
532
533 Mon Feb  5 10:38:27 1996  Ian Lance Taylor  <[email protected]>
534
535         * archures.c (bfd_mach_i960_hx): Define.
536         * bfd-in2.h: Rebuild.
537         * cpu-i960.c (scan_960_mach): Accept machine "hx".
538         (MATRIX): Expand entries for HX.
539         (arch_info_struct): Add i960:hx entry.
540         * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
541         * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
542         (coff_set_flags): Handle bfd_mach_i960_hx.
543
544         Support for building as a shared library, based on patches from
545         Alan Modra <[email protected]>:
546         * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
547         New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
548         SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
549         * configure: Rebuild.
550         * configure.host: If --enable-shared, adjust shared library stuff
551         based on the host.  If the host is SunOS, and the linker supports
552         -rpath, set HLDFLAGS to use it.
553         * Makefile.in (ALLLIBS): New variable.
554         (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
555         (COMMON_SHLIB, SHLINK): New variables.
556         (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
557         (STAGESTUFF): Remove variable.
558         (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
559         $(TARGETLIB).
560         (stamp-ofiles): New target, like old ofiles target, but build
561         using a temporary file and move-if-change, and touch stamp-ofiles
562         when done.
563         (ofiles): Just depend upon stamp-ofiles.
564         (stamp-piclist, piclist): New targets.
565         ($(SHLIB), $(SHLINK)): New targets.
566         (targets.o, archures.o): Build twice if PICFLAG is set.
567         (do_mostlyclean): Remove pic/*.o.
568         (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
569         stamp-piclist.
570         (do_distclean): Remove pic and stamp-picdir.
571         (install): Install shared libraries.
572         ($(OFILES)): Depend upon stamp-picdir.
573         (stamp-picdir): New target.
574
575         * libcoff-in.h: Add comment reminding people that libcoff.h is a
576         generated file.
577         * libcoff.h: Rebuild.
578
579         * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
580         flavour of a section with no owner.
581
582         * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
583         ELF_LINK_NON_ELF flag.
584         (mips_elf_create_got_section): Likewise.
585
586         * elf.c: Revert last change, since it breaks dynamic linking.
587         * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
588         field.
589         * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
590         * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
591         (elfNN_bed): Don't initialize want_hdr_in_seg field.
592
593 Sun Feb  4 20:45:13 1996  Michael Meissner  <[email protected]>
594
595         * elf.c (assign_file_positions_for_segments): If the backend does
596         not want the elf header or the program headers in the address
597         space, do not include them in the calculations.
598
599         * elf32-ppc.c (ppc_elf_additional_program_headers): New hook
600         function to determine if we need additional program headers.
601         (ppc_elf_modify_segment_map): Define as a NOP function for now.
602         (ppc_elf_create_linker_section): .sdata2 is a read-only section.
603
604 Sat Feb  3 23:00:03 1996  Ian Lance Taylor  <[email protected]>
605
606         * coffcode.h: Move today's libcoff.h change into coffcode.h.
607
608 Sat Feb  3 15:43:44 1996  Fred Fish  <[email protected]>
609
610         * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
611         back into one line.  Some compilers (sunos 4.1.3 for example)
612         won't accept args split across more than one line.
613
614 Fri Feb  2 11:42:15 1996  Steve Chamberlain  <[email protected]>
615
616         * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
617         * configure: Regenerate.
618
619 Fri Feb  2 12:12:16 1996  Jeffrey A Law  ([email protected])
620
621         * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
622         try to do arithmetic on a void *, cast it to a unsigned char * first.
623
624 Thu Feb  1 16:04:06 1996  Ian Lance Taylor  <[email protected]>
625
626         * elf-bfd.h (ELF_LINK_NON_ELF): Define.
627         * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
628         ELF_LINK_NON_ELF.
629         * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
630         flag for a newly defined symbol.
631         (NAME(bfd_elf,record_link_assignment)): Likewise.
632         (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
633         set the DEF or REF_REGULAR flags correctly.
634
635         * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
636         (libbfd.h, libcoff.h): Corresponding change.
637
638         * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
639         a PLT32 reloc as dynamic.
640         (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
641         is not referenced by a dynamic object, and we are not making a
642         shared object, then don't make a PLT entry.  If we do make a PLT
643         entry, make sure the symbol has been recorded as dynamic.
644
645 Wed Jan 31 17:23:32 1996  Steve Chamberlain  <[email protected]>
646
647         * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
648         * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
649         (powerpcle-*-cygwin32): New.
650         * peicode.h (add_data_entry): Get address from vma.
651
652 Wed Jan 31 16:23:57 1996  Michael Meissner  <[email protected]>
653
654         * elflink.c (_bfd_elf_create_linker_section): If the symbol
655         attached to the section has already been created as an undefined
656         symbol, treat it as if it hasn't been created yet.
657
658 Wed Jan 31 16:16:53 1996  Ian Lance Taylor  <[email protected]>
659
660         * elflink.h (elf_bfd_final_link): Don't output initial dummy
661         symbol or section symbols if stripping all symbols and this is not
662         a relocateable link.  Don't output the symbol string table if
663         there are no symbols.
664         (elf_link_flush_output_syms): Don't do anything if there are no
665         symbols to flush.
666
667 Wed Jan 31 12:55:49 1996  Richard Henderson  <[email protected]>
668
669         * coff-aux.c: New file.
670         * hosts/m68kaux.h: New file.
671         * config.bfd (m68*-apple-aux*): New target.
672         * configure.in (m68*-apple-aux*): New native host.
673         (m68kaux_coff_vec): New vector.
674         * configure: Rebuild.
675         * targets.c (m68kaux_coff_vec): Declare.
676         * coffcode.h (bfd_coff_backend_data): Add field
677         _bfd_coff_link_add_one_symbol.
678         (bfd_coff_link_add_one_symbol): Define.
679         (compare_arelent_ptr): New static function if TARG_AUX.
680         (coff_write_relocs): If TARG_AUX, sort the relocs.
681         (coff_write_object_contents): Set A/UX aouthdr magic number.
682         (coff_link_add_one_symbol): Define if not defined.
683         (bfd_coff_std_swap_table): Initialize new field.
684         * libcoff.h: Rebuild.
685         * cofflink.c (coff_link_add_symbols): Call
686         bfd_coff_link_add_one_symbol rather than
687         _bfd_generic_link_add_one_symbol.
688         * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
689         * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
690         * coff-mips.c (mips_ecoff_backend_data): Likewise.
691         * Makefile.in: Rebuild dependencies.
692         (BFD32_BACKENDS): Add coff-aux.o.
693         (BFD32_BACKENDS_CFILES): Add coff-aux.c.
694
695 Wed Jan 31 11:37:46 1996  Andreas Schwab  <[email protected]>
696
697         * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
698         relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
699
700 Tue Jan 30 12:09:04 1996  Ian Lance Taylor  <[email protected]>
701
702         * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
703         $(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
704         (maintainer-clean): Warn about deleting special files.
705         (bfd-in2.h, libbfd.h, libcoff.h): New targets.
706
707         * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
708         warning symbols correctly.
709         * elf32-i386.c (elf_i386_relocate_section): Likewise.
710         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
711         * elf32-mips.c (mips_elf_relocate_section): Likewise.
712         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
713         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
714         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
715
716         * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
717         warnings.
718
719 Mon Jan 29 14:27:24 1996  Kim Knuttila  <[email protected]>
720
721         * libcoff-in.h: aligned newly exported names with bfd naming 
722         conventions. Removed an erroneous define of POWERPC_LE_PE.
723         * libcoff.h: Rebuild.
724         * cofflink.c, coff-ppc.c: the above function name changes
725
726 Mon Jan 29 13:06:28 1996  Ian Lance Taylor  <[email protected]>
727
728         From Basim Kadhim <[email protected]>:
729         * ecoff.c (struct extsym_info): Define.
730         (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
731         to ecoff_link_write_external.
732         (ecoff_link_write_external): Accept a struct extsym_info pointer.
733         Strip symbols when appropriate.
734
735         Based on patches from Ronald F. Guilmette <[email protected]>:
736         * syms.c (BSF_OBJECT): Define.
737         (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
738         * bfd-in2.h: Rebuild.
739         * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
740         STT_OBJECT symbol.
741         * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
742         is set.
743
744         * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
745         copying relocs into a shared object, treat a defined global symbol
746         as a local symbol.
747         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
748         * elf32-mips.c (mips_elf_relocate_section): Likewise.
749         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
750
751         * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
752         real defined symbol, not to a weak defined symbol.
753
754 Mon Jan 29 11:34:36 1996  Kim Knuttila  <[email protected]>
755
756         * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
757         and made a few static functions externs.
758
759         * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
760         POWERPC_LE_PE hack in cofflink.
761
762         * libcoff-in.h: promoted the following from cofflink.c to allow
763         _bfd_coff_final_link to be overridden -  STRING_SIZE_SIZE,
764         coff_debug_merge_element, struct coff_debug_merge_type, 
765         coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
766         coff_debug_merge_hash_table_init,  coff_debug_merge_hash_table_free,
767         coff_debug_merge_hash_lookup, coff_link_section_info, 
768         coff_final_link_info, coff_debug_merge_hash_newfunc,
769         coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
770
771         * libcoff.h: re-gen'd
772
773 Fri Jan 26 18:33:35 1996  Ian Lance Taylor  <[email protected]>
774
775         * syms.c: Include "bfdlink.h".
776         (struct stab_find_info): Define.
777         (_bfd_stab_section_find_nearest_line): New function.
778         * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
779         * libbfd.h: Rebuild.
780         * elf-bfd.h (struct elf_obj_tdata): Add line_info field.
781         * elf.c (_bfd_elf_find_nearest_line): Try calling
782         _bfd_stab_section_find_nearest_line before searching the ELF
783         symbol table.  Find the closest STT_FUNC symbol, not the last one.
784         * libcoff-in.h (coff_data_type): Add line_info field.
785         * libcoff.h: Rebuild.
786         * coffgen.c (coff_find_nearest_line): Try calling
787         _bfd_stab_section_find_nearest_line before searching the COFF
788         symbol table.
789         * Makefile.in: Rebuild dependencies.
790
791 Fri Jan 26 16:11:19 1996  Michael Meissner  <[email protected]>
792
793         * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
794         4 bytes, so we get the correct value when updating the register
795         field in little endian mode.
796
797 Thu Jan 25 12:14:16 1996  Ian Lance Taylor  <[email protected]>
798
799         * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
800         entry_section fields.  Add sntoc and snentry fields.
801         * libcoff.h: Rebuild.
802         * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
803         not toc_section and entry_section (the COFF file does not have any
804         sections at this point).
805         (coff_write_object_contents): Set o_snentry and o_sntoc from
806         snentry and sntoc rather than entry_section and toc_section.
807         * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
808         snentry, not toc_section and entry_section.
809         * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
810         entry_section from hentry.
811         (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
812         set snenty.
813         (xcoff_link_input_bfd): Set sntoc, not toc_section.
814         (xcoff_write_global_symbol): Get toc_section from sntoc, rather
815         than using toc_section directly.
816
817         * archures.c: Add missing `.' in enum bfd_architecture.
818         * bfd-in2.h: Rebuild.
819
820         * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec.  From
821         Robert Lipe <[email protected]>.
822
823 Thu Jan 25 12:08:51 1996  Michael Meissner  <[email protected]>
824
825         * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
826         to sections we allocate.  Use bfd_zalloc to allocate initialial
827         sections, not bfd_alloc.
828         (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
829         SDA{,2}I16 relocations.
830         (ppc_elf_add_symbol_hook): Use the value of -G nn to determine
831         whether to put something in .sbss or not.
832         (ppc_elf_relocate_section): Add support for more relocations.  Add
833         in sec->output_offset where appropriate.  Make error messages
834         include the symbol name.
835
836         * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
837         trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
838         doesn't get redefined messages if -shared.
839
840         * elflink.h (elf_create_pointer_linker_section) Only bump RELA
841         section if the rel_section field has been set up.
842
843 Wed Jan 24 20:40:26 1996  Michael Meissner  <[email protected]>
844
845         * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
846         relocations.
847
848 Wed Jan 24 10:38:34 1996  Doug Evans  <[email protected]>
849
850         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
851         of flags, only flags used are controlled by mach number.  Bump up
852         output file mach number to highest of input file mach numbers.
853         (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
854         (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
855
856         * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
857         bfd_elf64_sparc_vec support.
858
859 Tue Jan 23 14:33:05 1996  Michael Meissner  <[email protected]>
860
861         * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
862         the embedded bit is set on some objects and not on others.  Just
863         or it together.
864         (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
865         relocations.
866
867 Tue Jan 23 14:22:45 1996  Ian Lance Taylor  <[email protected]>
868
869         * coffcode.h (coff_new_section_hook): Don't try to align the
870         .stabstr section.
871
872         * coffcode.h (coff_set_section_contents): Fix the handling of the
873         .lib section to work even if the entire section contents are
874         written at once.  From Gvran Uddeborg <[email protected]> and
875         Robert Lipe <[email protected]>.
876
877 Mon Jan 22 18:45:51 1996  Michael Meissner  <[email protected]>
878
879         * elflink.h (elf_finish_pointer_linker_section): Don't allocate
880         memory here for contents.
881
882         * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
883         _SDA2_BASE_ by 32768.
884         (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
885         started using.  Allocate contents for .sdata and .sdata2 sections
886         also.
887         (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
888         rather than _name.
889         (ppc_elf_finish_dynamic_symbol): Remove code that attempted to
890         size _SDA{,2}_BASE_.
891         (ppc_elf_relocate_section): Change how sdata{,2} relocations are
892         done.
893
894 Mon Jan 22 08:52:04 1996  Doug Evans  <[email protected]>
895
896         * elflink.h (elf_finish_pointer_linker_section): Fix typo.
897
898         * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
899         (bfd_mach_sparc_{v8plus,v8plusa}): Define.
900         (bfd_mach_sparc_v9a): Define.
901         (bfd_mach_sparc_v9_p): Define.
902         * bfd-in2.h: Regenerated.
903         * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
904         bfd_mach_sparc_v9.
905         * elf64-sparc.c (sparc64_elf_object_p): Likewise.
906         * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
907         to bfd_elf32_sparc_vec.
908         * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
909         Add v8plus{,a} support.
910         Add v9a support.
911         (sparc_compatible): New function.
912         * elf32-sparc.h: #include "elf/sparc.h".
913         (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
914         elf32_sparc_final_write_processing): New functions.
915         (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
916         elf_backend_final_write_processing): Define.
917
918 Mon Jan 22 11:21:51 1996  Michael Meissner  <[email protected]>
919
920         * elf-bfd.h (struct elf_link_hash_entry): Add
921         linker_section_pointer field.
922         (enum elf_linker_section_enum): Enumeration for new way of
923         creating linker dynamic sections and symbols.
924         (elf_linker_section{,_pointers}): New structures for creating
925         dynamic sections and symbols.
926         (elf_obj_tdata): Add linker_section_pointers and linker_section
927         fields.
928         (elf_local_ptr_offsets,elf_linker_section): New accessor macros.
929         (_bfd_elf_create_linker_section): New declarations.
930         (_bfd_elf_find_pointer_linker_section): Ditto.
931         (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
932         (_bfd_elf_make_linker_section_rela): Ditto.
933
934         * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
935
936         * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
937         (ppc_elf_create_linker_section): New function to create the
938         sections .got, .sdata, and .sdata2.
939         (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
940         needed.
941         (ppc_elf_check_relocs): Support more of the eabi relocations.
942         (ppc_elf_relocate_section): Ditto.
943         (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
944         if the .sdata{,2} + .sbss{,2} section size is > 32k.
945
946         * elflink.h (elf_create_pointer_linker_section): New function to
947         create initialized pointers in dynamic linker sections.
948         (elf_finish_pointer_linker_section): Actually intialize the
949         pointers created above.
950
951         * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
952         macros to provide both 32 and 64 bit versions of
953         elf_create_pointer_linker_section.
954         (bfd_elf{32,64}_finish_pointer_linker_section): New macros to
955         provide both 32 and 64 bit versions of
956         elf_finish_pointer_linker_section.
957
958         * elflink.c (_bfd_elf_create_linker_section): New function to
959         create a linker section.
960         (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
961         given address in the linker pointer offsets created for a given
962         symbol.
963         (_bfd_elf_make_linker_section_rela): Make a RELA section
964         corresponding to the generated linker section.
965
966 Sat Jan 20 08:36:10 1996  Doug Evans  <[email protected]>
967
968         * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
969
970 Thu Jan 18 18:25:34 1996  Kim Knuttila  <[email protected]>
971
972         * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
973         (coff_ppc_relocate_section): Handle special values for gcc built dlls.
974         (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
975         Also begin the toc at 4 as an eye catcher ('31313131' marks the first
976         toc entry in an objdump) for now.
977         (ppc_do_last, ppc_get_last): New function - needed to save processing 
978         the toc owner to the end.
979         (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the 
980         toc owner last.
981
982         * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the 
983         toc owner from being done till last. Must define POWERPC_LE_PC 
984         to enable it.
985
986         * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
987
988         * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
989         to INFO.
990         (coff_swap_aouthdr_out): Removed a non-working hack for computing the
991         SizeOfImage for PowerPC. Ignore the size of the .junk section.
992
993 Thu Jan 18 17:42:12 1996  Ian Lance Taylor  <[email protected]>
994
995         * elfcore.h: Include <signal.h> before <sys/procfs.h>.
996
997 Wed Jan 17 12:40:14 1996  Ian Lance Taylor  <[email protected]>
998
999         * cpu-powerpc.c (arch_info_struct): Change last entry to not point
1000         back to first.
1001         (bfd_powerpc_arch): Point at first entry in arch_info_struct.
1002
1003 Tue Jan 16 15:10:49 1996  Ian Lance Taylor  <[email protected]>
1004
1005         * elf.c (assign_file_positions_for_segments): Don't increment file
1006         offset for a segment which contains no loadable sections.
1007
1008 Mon Jan 15 17:46:27 1996  Michael Meissner  <[email protected]>
1009
1010         * reloc.c: Add new PowerPC relocations.
1011         * {bfd-in2,libbfd}.h: Regenerate.
1012
1013         * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
1014         (ppc_elf_reloc_type_lookup): Lookup new relocations.
1015
1016 Mon Jan 15 14:29:44 1996  Ian Lance Taylor  <[email protected]>
1017
1018         * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
1019         entries.
1020
1021         * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
1022         info->shared.
1023
1024         * coffgen.c (coff_find_nearest_line): Don't try to cache
1025         information in sections that are not owned by a BFD.  From Richard
1026         Henderson <[email protected]>.
1027
1028         * elf32-mips.c: Numerous changes to dynamic linking code, mostly
1029         from Kazumoto Kojima <[email protected]>.
1030         * elflink.h (elf_link_output_extsym): Remove special check for
1031         _rld_new_interface.
1032
1033         * ecoffswap.h: Add prototypes for static functions.
1034
1035 Sun Jan 14 21:36:08 1996  Michael Meissner  <[email protected]>
1036
1037         * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
1038         (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
1039         references.
1040         (ppc_elf_relocate_section):  No longer allow .sdata/.sbss sections
1041         to satisfy a TOC16 relocation.  Rewrite unsupported relocation
1042         support.  Begin support for R_PPC_SDA{2,}REL.
1043
1044 Sat Jan 13 09:36:52 1996  Michael Meissner  <[email protected]>
1045
1046         * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
1047         create the .got and .got.neg sections.
1048         (ppc_elf_size_dynamic_sections): Call it.
1049         (ppc_elf_check_relocs): Call it.
1050         (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
1051         (ppc_elf_check_relocs): Add error messages for relocations we
1052         don't yet support.  Do not include R_PPC_SDAREL16 like a GOT
1053         relocation.
1054
1055 Fri Jan 12 15:27:59 1996  Michael Meissner  <[email protected]>
1056
1057         * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
1058         section flags for V.4 and eabi.
1059
1060 Fri Jan 12 13:59:16 1996  Ian Lance Taylor  <[email protected]>
1061
1062         * elf.c (assign_file_positions_for_segments): If a segment
1063         contains no sections, don't mark it as readable.
1064
1065         * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
1066         * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
1067
1068         * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
1069         dynamic section, if there is one.
1070         * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
1071         (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
1072         (bfd_elf64_swap_dyn_in): Likewise.
1073         * elfcode.h (elf_swap_dyn_in): Change type of second parameter to
1074         PTR.
1075         (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
1076
1077         * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
1078         DT_TEXTREL entry because of .rel.plt.  From Martin Pirker
1079         <[email protected]>.
1080
1081 Thu Jan 11 17:06:14 1996  Michael Meissner  <[email protected]>
1082
1083         * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
1084         PowerPC V.4 and eabi.
1085         * bfd-in2.h: Regenerate.
1086         * libfd.h: Regenerate.
1087
1088         * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
1089
1090         * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
1091         section type and SHF_EXCLUDE section flag, turning them into the
1092         appropriate bfd section flag.
1093
1094 Thu Jan 11 11:23:30 1996  Ian Lance Taylor  <[email protected]>
1095
1096         * xcofflink.c (xcoff_link_add_symbols): Create the special
1097         sections if we see a DYNAMIC object, in case that is the only
1098         XCOFF input object we see.
1099         
1100         * elf32-mips.c: Extensive changes for a start at dynamic linking
1101         support, from Kazumoto Kojima <[email protected]>.
1102
1103         * elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
1104         (struct elf_backend_data): Remove
1105         elf_backend_create_program_headers field.  Add
1106         elf_backend_additional_program_headers and
1107         elf_backend_modify_segment_map fields.
1108         * elfxx-target.h (elf_backend_type_change_ok): Define if not
1109         defined.
1110         (elf_backend_additional_program_headers): Likewise.
1111         (elf_backend_modify_segment_map): Likewise.
1112         (elf_backend_create_program_headers): Don't define.
1113         (elfNN_bed): Change to account for field changes.
1114         * elf.c (assign_file_positions_for_segments): Call new
1115         modify_segment_map backend function.  Don't call old
1116         create_program_headers backend function.
1117         (get_program_header_size): Call additional_program_headers rather
1118         than create_program_headers.
1119         * elflink.h (elf_link_add_object_symbols): Initialize
1120         type_change_ok from new backend field.
1121         (elf_link_output_extsym): Don't warn if _rld_new_interface is
1122         defined.
1123         (elf_reloc_link_order): Treat a reloc against a defined symbol as
1124         a reloc against the appropriate section.
1125
1126         * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
1127         (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
1128         (elf_flags_init): Rename from elf_ppc_flags_init.
1129         * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
1130         elf_ppc_flags_init.
1131         (ppc_elf_copy_private_bfd_data): Likewise.
1132         (ppc_elf_merge_private_bfd_data): Likewise.
1133
1134         * elf32-m68k.c (howto_table): Change src_mask to 0 for all
1135         relocation entries.
1136
1137 Tue Jan  9 15:22:53 1996  David Mosberger-Tang  <[email protected]>
1138
1139         * coff-alpha.c (alpha_relocate_section): During final link, allow
1140         output .lita section to be bigger than 64k by adjusting gp value
1141         on a per-input section basis.
1142         * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
1143         field.
1144         (struct ecoff_section_tdata): Add gp field.
1145
1146 Tue Jan  9 12:00:36 1996  Ian Lance Taylor  <[email protected]>
1147
1148         Handle Alpha ECOFF changes in OSF/1 3.2.
1149         * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
1150         field.
1151         * coff-alpha.c: Include "aout/ar.h".
1152         (alpha_ecoff_get_relocated_section_contents): Don't require an
1153         ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
1154         3.2 doesn't generate one.
1155         (alpha_relocate_section): Likewise.
1156         (alpha_ecoff_slurp_armap): Define.
1157         (alpha_ecoff_slurp_extended_name_table): Define.
1158         (alpha_ecoff_construct_extended_name_table): Define.
1159         (alpha_ecoff_truncate_arname): Define.
1160         (alpha_ecoff_write_armap): Define.
1161         (alpha_ecoff_generic_stat_arch_elt): Define.
1162         (alpha_ecoff_update_armap_timestamp): Define.
1163         (ARFZMAG): Define.
1164         (alpha_ecoff_read_ar_hdr): New static function.
1165         (alpha_ecoff_get_elt_at_filepos): New static function.
1166         (alpha_ecoff_openr_next_archived_file): New static function.
1167         (alpha_ecoff_get_elt_at_index): New static function.
1168         (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
1169         (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
1170         _bfd_ecoff to alpha_ecoff.
1171         * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
1172         field from backend structure, rather than always calling
1173         _bfd_get_elt_at_filepos.
1174         * coff-mips.c (mips_ecoff_backend_data): Initialize
1175         get_elt_at_filepos field.
1176         * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
1177         from _bfd_generic_read_ar_hdr with minor changes.
1178         (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
1179         * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
1180         * libbfd.h: Rebuild.
1181
1182         * bfd-in.h (BFD_IN_MEMORY): Define.
1183         * libbfd-in.h (struct bfd_in_memory): Define.
1184         * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
1185         (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
1186         (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
1187         (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
1188         * bfd.c (struct _bfd): Change iostream field from char * to PTR.
1189         (bfd_get_size): Handle BFD_IN_MEMORY flag.
1190         * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
1191         (bfd_open_file): Cast to PTR, not char *, when setting iostream.
1192         (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
1193         * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
1194         iostream.
1195         (bfd_openstreamr): Likewise.
1196         * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
1197         BFD_IN_MEMORY is not set.
1198         * riscix.c (riscix_some_aout_object_p): Likewise.
1199         * bfd-in2.h, libbfd.h: Rebuild.
1200
1201         * targets.c (bfd_target): Add _bfd_get_elt_at_index field.
1202         (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
1203         (bfd_get_elt_at_index): Define.
1204         * archive.c (_bfd_generic_get_elt_at_index): Rename from
1205         bfd_get_elt_at_index.  Change index parameter from int to
1206         symindex.
1207         * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
1208         (_bfd_noarchive_get_elt_at_index): Define.
1209         (_bfd_archive_bsd_get_elt_at_index): Define.
1210         (_bfd_archive_coff_get_elt_at_index): Define.
1211         * bfd-in2.h, libbfd.h: Rebuild.
1212         * aout-target.h (MY_get_elt_at_index): Define if not defined.
1213         * coff-rs6000.c (xcoff_get_elt_at_index): Define.
1214         * ieee.c (ieee_get_elt_at_index): Define.
1215         * libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
1216         * oasys.c (oasys_get_elt_at_index): Define.
1217         * som.c (som_get_elt_at_index): Define.
1218
1219         * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
1220         numbers to the .text section.
1221
1222 Mon Jan  8 17:00:57 1996  Ian Lance Taylor  <[email protected]>
1223
1224         * ieee.c (ieee_write_debug_part): Change return type to boolean.
1225         If there is a SEC_DEBUGGING section, get the contents of the debug
1226         information part from it.
1227         (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
1228         section in memory.
1229         (ieee_write_object_contents): Check ieee_write_debug_part return.
1230
1231 Thu Jan  4 17:12:37 1996  Fred Fish  <[email protected]>
1232
1233         * config.bfd (i[345]86-*-freebsd*): Add target.
1234         * configure.in (i386freebsd_vec): Add vec.
1235         * configure: Regenerate.
1236         * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
1237         (BFD32_BACKENDS_CFILES): Add i386freebsd.c.
1238         Rebuild dependencies..
1239         * freebsd.h: New file.
1240         * i386freebsd.c: New file.
1241         * targets.c (i386freebsd_vec): Declare.
1242         (bfd_target_vector): Add i386freebsd_vec.
1243         * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
1244         * i386netbsd.c (SEGMENT_SIZE):  Define as TARGET_PAGE_SIZE
1245         
1246 Thu Jan  4 16:27:46 1996  Ian Lance Taylor  <[email protected]>
1247
1248         * ieee.c (ieee_slurp_debug): New static function.
1249         (ieee_object_p): Call it.
1250         (ieee_slurp_section_data): Skip debugging sections.
1251         (ieee_get_reloc_upper_bound): Likewise.
1252         (ieee_get_section_contents): Likewise.
1253         (ieee_canonicalize_reloc): Likewise.
1254         (ieee_write_section_part): Likewise.
1255         (ieee_write_debug_part): Likewise.
1256         (ieee_write_data_part): Likewise.
1257         (init_for_output): Likewise.
1258
1259 Wed Jan  3 19:42:47 1996  Michael Meissner  <[email protected]>
1260
1261         * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
1262         work.
1263         (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
1264         relocs, since ppc_elf_relocate_section handles the linker case.
1265         (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
1266         used.
1267         (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
1268         ppc_elf_relocate_section since that is now the only caller.
1269         (ppc_elf_relocate_section): Ditto.
1270
1271 Wed Jan  3 15:11:30 1996  Ian Lance Taylor  <[email protected]>
1272
1273         * coffcode.h (coff_write_object_contents): If we don't know the
1274         section of the entry point for an XCOFF executable, always set the
1275         entry address to -1.
1276
1277 Tue Jan  2 14:17:15 1996  Michael Meissner  <[email protected]>
1278
1279         * elf.c (bfd_section_from_shdr): Add support for note sections.
1280
1281 Tue Jan  2 13:10:25 1996  Ian Lance Taylor  <[email protected]>
1282
1283         * bfd-in.h (struct _symbol_info): Add stab_type field.
1284         * bfd-in2.h: Rebuild.
1285         * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
1286
1287         * elf32-ppc.c: Remove trailing newline from calls to
1288         _bfd_error_handler.
1289         (ppc_elf_merge_private_bfd_data): Only warn about endianness
1290         difference if target endianness is known.
1291
1292 Thu Dec 21 12:43:49 1995  Michael Meissner  <[email protected]>
1293
1294         * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the
1295         old style TOC16 references without using R_PPC_GOT.
1296         (ppc_reloc_type): Ditto.
1297         (ppc_elf_reloc_type_lookup): Add support for TOC16.
1298         (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner.
1299         (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc.
1300         (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support.
1301         (ppc_elf_check_relocs): New function for GOT/PLT support that is
1302         work in progress.
1303         (ppc_elf_adjust_dynamic_symbol): Ditto.
1304         (ppc_elf_adjust_dynindx): Ditto.
1305         (ppc_elf_size_dynamic_sections): Ditto.
1306         (ppc_elf_finish_dynamic_symbol): Ditto.
1307         (ppc_elf_finish_dynamic_sections): Ditto.
1308         (ELF_DYNAMIC_INTERPRETER): Define.
1309
1310 Wed Dec 20 19:14:18 1995  Ken Raeburn  <[email protected]>
1311
1312         * elf.c (copy_private_bfd_data): When attaching sections to
1313         segments ignore sections that won't be allocated.  Patch from
1314         Andreas Schwab.
1315
1316 Tue Dec 19 20:01:43 1995  Ken Raeburn  <[email protected]>
1317
1318         * config.bfd: Match on m68k-cbm-* only if OS doesn't match
1319         anything else.
1320
1321 Tue Dec 19 16:38:59 1995  Ian Lance Taylor  <[email protected]>
1322
1323         * coff-i960.c (CALC_ADDEND): Define.
1324         (coff_i960_relocate_section): Add the input section VMA to the
1325         addend for PC relative relocs.
1326
1327 Sun Dec 17 20:11:55 1995  Kim Knuttila  <[email protected]>
1328
1329         * peicode.h (pe_print_pdata): Must test the entire entry for zero
1330         to correctly terminate.
1331
1332 Fri Dec 15 12:05:57 1995  Ian Lance Taylor  <[email protected]>
1333
1334         * targets.c (enum bfd_endian): Define.
1335         (bfd_target): Rename byteorder_big_p to byteorder, and change it
1336         from boolean to enum bfd_endian.  Change header_byteorder_big_p
1337         correspondingly.
1338         * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
1339         (bfd_header_big_endian, bfd_header_little_endian): New macros.
1340         * bfd-in2.h: Rebuild.
1341         * All targets: Change initialization of byteorder and
1342         header_byteorder to use enum bfd_endian values rather than
1343         booleans.
1344         * All files: Change all references to byteorder_big_p and
1345         header_byteorder_big_p to use new bfd_*_endian macros.
1346
1347         * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
1348         s_vaddr.
1349         * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
1350         vma.
1351         * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
1352
1353 Fri Dec 15 07:32:09 1995  steve chamberlain  <[email protected]>
1354
1355         * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
1356
1357 Thu Dec 14 13:45:37 1995  Ian Lance Taylor  <[email protected]>
1358
1359         * ieee.c: Lots of minor cleanups.  Make many functions return
1360         errors rather than calling abort.  Also:
1361         (ieee_write_twobyte): Remove; change callers to call existing
1362         ieee_write_2bytes function.
1363         (ieee_write_expression): Don't output the section twice when
1364         outputting a local symbol.  Don't emit an extraneous zero if there
1365         is only one term.
1366         (ieee_slurp_sections): Set the lma as well as the vma.
1367         (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
1368
1369         * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
1370         a recognized one or bfd_arch_unknown.
1371         (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
1372         to succeed.
1373         (ihex_get_symtab): Likewise.
1374
1375 Wed Dec 13 15:44:06 1995  Ian Lance Taylor  <[email protected]>
1376
1377         * aoutx.h: Include <ctype.h>.
1378         (struct aout_link_includes_table): Define.
1379         (struct aout_link_includes_totals): Define.
1380         (struct aout_link_includes_entry): Define.
1381         (aout_link_includes_lookup): Define macro.
1382         (struct aout_final_link_info): Add includes field.
1383         (aout_link_includes_newfunc): New static function.
1384         (NAME(aout,final_link)): Initialize includes hash table.
1385         (aout_link_write_symbols): Eliminate duplicate N_BINCL entries.
1386
1387 Wed Dec 13 10:52:14 1995  Stan Shebs  <[email protected]>
1388
1389         * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
1390
1391 Wed Dec 13 11:07:45 1995  Kim Knuttila  <[email protected]>
1392
1393         * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
1394
1395 Tue Dec 12 17:42:06 1995  Kim Knuttila  <[email protected]>
1396
1397         * peicode.h (pe_print_reloc): New function to dump the .reloc section.
1398         (pe_print_private_bfd_data): call pe_print_reloc.
1399         * coffcode.h (coff_set_alignment_hook): .reloc section alignment.
1400         * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed
1401         up some debugging as well.
1402
1403 Tue Dec 12 11:34:23 1995  Ian Lance Taylor  <[email protected]>
1404
1405         * config.bfd: Handle sparc-*-elf*.  From Ronald F. Guilmette
1406         <[email protected]>.
1407
1408 Fri Dec  8 17:47:07 1995  Ian Lance Taylor  <[email protected]>
1409
1410         * elflink.h (elf_link_add_object_symbols): Set section_count to 0
1411         when setting sections to NULL.
1412
1413 Wed Dec  6 17:05:37 1995  Ian Lance Taylor  <[email protected]>
1414
1415         * xcofflink.c (struct xcoff_loader_info): Add export_defineds
1416         field.
1417         (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
1418         (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
1419         for all symbols.
1420         * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
1421         * bfd-in2.h: Rebuild.
1422
1423 Mon Dec  4 16:40:47 1995  Kim Knuttila  <[email protected]>
1424
1425         * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
1426
1427 Mon Dec  4 11:25:39 1995  Ian Lance Taylor  <[email protected]>
1428
1429         * ihex.c (ihex_scan): Handle record types 4 and 5.
1430         (ihex_object_p): Permit types 4 and 5.
1431         (ihex_set_section_contents): Remove check for out of range
1432         addresses.
1433         (ihex_write_object_contents): Generate types 4 and 5.
1434
1435         * elflink.h (elf_link_output_extsym): Just ignore warning and
1436         indirect references to symbols which don't really exist.
1437
1438 Sun Dec  3 19:00:27 1995  Kim Knuttila  <[email protected]>
1439
1440         * peicode.h (pe_print_idata): Minor format fixes
1441         (pe_print_edata): New function. Under private printing, this formats
1442         the edata section of a PE file.
1443         (pe_print_private_bfd_data): Added call to pe_print_edata.
1444
1445 Sun Dec  3 16:46:54 1995  Richard Earnshaw ([email protected])
1446
1447         * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
1448         index, don't call stoi.
1449
1450 Fri Dec  1 14:46:51 1995  Ian Lance Taylor  <[email protected]>
1451
1452         * srec.c (srec_scan): Set lma as well as vma.
1453
1454         * ihex.c: New file; support for Intel Hex format.
1455         * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
1456         (ihex_vec): Declare.
1457         (bfd_target_vector): Always include ihex_vec.
1458         * bfd.c (struct _bfd): Add ihex_data field to tdata union.
1459         * Makefile.in: Rebuild dependencies.
1460         (BFD_LIBS): Add ihex.o
1461         (BFD_LIBS_CFILES): Add ihex.c.
1462         * bfd-in2.h: Rebuild.
1463
1464         * elf.c (assign_file_positions_for_segments): Sort the sections in
1465         each segment.
1466         (get_program_header_size): Return the right size if segment_map is
1467         not NULL.
1468         (copy_private_bfd_data): Don't bother to sort the sections.
1469
1470         * bfd.c (bfd_record_phdr): New function.
1471         * bfd-in.h (bfd_record_phdr): Declare.
1472         * bfd_in2.h: Rebuild.
1473
1474         * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
1475         BFD_ASSERT.
1476
1477         * libbfd.c (bfd_malloc, bfd_realloc): New functions.
1478         (bfd_zmalloc): Return PTR, not char *.  Take size_t, not
1479         bfd_size_type.
1480         * libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
1481         (bfd_zmalloc): Change declaration.
1482         * libbfd.h: Rebuild.
1483         * Many files: Use bfd_malloc and bfd_realloc rather than malloc
1484         and realloc.  Don't set bfd_error_no_memory if they fail.
1485
1486 Thu Nov 30 19:32:26 1995  Kim Knuttila  <[email protected]>
1487
1488         * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous
1489         uses as well. Added a new howto to deal with TOCREL16 relocs that 
1490         are TOCDEFN as well.
1491         (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs
1492         to handle RVA relocs from dlltool.
1493         (ppc_coff_rtype2howto): TOCDEFN reloc addition.
1494         (coff_ppc_rtype_to_howto): TOCDEFN reloc addition.
1495         (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition.
1496
1497         * coffcode.h (coff_set_alignment_hook): check idata$X sections 
1498         to get the right section alignment.
1499
1500 Thu Nov 30 16:48:18 1995  Ian Lance Taylor  <[email protected]>
1501
1502         * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
1503         p_paddr if p_paddr is zero.
1504         (make_mapping): Set includes_filehdr and includes_phdrs for first
1505         PT_LOAD segment.
1506         (map_sections_to_segments): Set includes_phdrs for PT_PHDR
1507         segment.
1508         (assign_file_positions_for_segments): Handle includes_filehdr and
1509         includes_phdrs.  Remove special handling of PT_PHDR and first
1510         PT_LOAD segments.
1511         (copy_private_bfd_data): Set includes_filehdr and includes_phdr
1512         when appropriate.  Remove special handling of PT_PHDR segment.
1513         Use a more complex condition for when a section is included in a
1514         segment to handle Solaris linker oddities.
1515
1516 Thu Nov 30 11:17:33 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <[email protected]>
1517
1518         * coff-m88k.c (howto_table): Reformatted for easier reading;
1519         special_function now points to new function m88k_special_reloc.
1520         (howto_hvrt16): Function previously used for handling HVRT16 relocs
1521         removed.
1522         (rtype2howto): Do not add reloc's r_offset to the addend, this will
1523         be done correctly by m88k_special_reloc.
1524         (reloc_processing): New function to be used by RELOC_PROCESSING.
1525         (RELOC_PROCESSING): Define to call reloc_processing.
1526
1527 Wed Nov 29 12:42:36 1995  Ian Lance Taylor  <[email protected]>
1528
1529         * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
1530         (pe_print_pdata): Likewise.
1531
1532         * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
1533         obstack_alloc fails.
1534         (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
1535         fails.
1536         * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
1537         * Many files: don't set bfd_error_no_memory if one of the above
1538         routines fails.
1539
1540         * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
1541         if p_paddr_valid is set.
1542         (copy_private_bfd_data): New static function.
1543         (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
1544
1545         * elf.c (assign_file_positions_for_segments): Fix case where extra
1546         program headers were allocated.
1547
1548         * elf.c (_bfd_elf_print_private_bfd_data): New function.
1549         * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
1550         * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
1551         _bfd_elf_print_private_bfd_data.
1552
1553         * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
1554         r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
1555         Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
1556         (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
1557         RELOC_SECTION_LITA for ALPHA_R_IGNORE.
1558         (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
1559         RELOC_SECTION_ABS to RELOC_SECTION_NONE.
1560
1561 Tue Nov 28 16:59:50 1995  Ian Lance Taylor  <[email protected]>
1562
1563         * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
1564         * elf.c (make_mapping): New static function.
1565         (map_sections_to_segments): New static function.
1566         (elf_sort_sections): New static function.
1567         (assign_file_positions_for_segments): New static function.
1568         (map_program_segments): Remove.
1569         (get_program_header_size): Remove sorted_hdrs, count, and
1570         maxpagesize parameters.  Simplify.
1571         (assign_file_positions_except_relocs): When generating an
1572         executable, use assign_file_positions_for_segments.
1573         (elf_sort_hdrs): Remove.
1574         (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
1575         to get_program_header_size.
1576
1577 Mon Nov 27 12:27:46 1995  Ian Lance Taylor  <[email protected]>
1578
1579         * hp300hpux.c (MY(callback)): Set lma as well as vma.
1580
1581         * configure, config.in: Regenerate with autoconf 2.7.
1582
1583         * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
1584         * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
1585
1586 Wed Nov 22 12:02:09 1995  Ian Lance Taylor  <[email protected]>
1587
1588         * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
1589         (ecoff_sec_to_styp_flags): Likewise.
1590         (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
1591         (ecoff_set_symbol_info): Handle scRConst.
1592         (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
1593         (ecoff_compute_section_file_positions): Handle .rconst section.
1594         (_bfd_ecoff_write_object_contents): Likewise.
1595         (ecoff_link_check_archive_element): Handle scRConst.
1596         (ecoff_link_add_externals): Likewise.
1597         (ecoff_link_write_external): Handle .rconst section.
1598         (ecoff_reloc_link_order): Likewise.
1599         * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
1600         * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
1601         section.
1602         (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
1603
1604         * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
1605         DEF_DYNAMIC flag is set.
1606
1607 Tue Nov 21 13:25:29 1995  Ken Raeburn  <[email protected]>
1608
1609         * host-aout.c: If TRAD_HEADER is defined, include it.
1610
1611 Tue Nov 21 13:03:57 1995  Ian Lance Taylor  <[email protected]>
1612
1613         * aclocal.m4 (AC_PROG_CC): Remove local definition.
1614         (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
1615         (BFD_NEED_DECLARATION): New function.
1616         * configure.in: Use BFD_NEED_DECLARATION.
1617         * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
1618         * configure, config.in: Rebuild with autoconf 2.6.
1619
1620         * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
1621         special_sections before returning when called with a non XCOFF
1622         BFD.
1623
1624         * coffgen.c (coff_renumber_symbols): Sort common symbols with
1625         global symbols.
1626
1627         * coffcode.h (coff_compute_section_file_positions): Only pad the
1628         previous section to force file alignment when creating an
1629         executable.
1630
1631 Mon Nov 20 14:54:09 1995  Ian Lance Taylor  <[email protected]>
1632
1633         * coffcode.h (coff_compute_section_file_positions): If
1634         RS6000COFF_C, set up the .debug section.
1635
1636         * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
1637         if it is not large enough to accomodate the entire TOC area with
1638         signed 16 bit offsets.
1639         (xcoff_write_global_symbol): Handle negative TOC offsets in global
1640         linkage code.
1641         (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
1642         TOC anchor to use the TOC value used in the output file.
1643
1644 Sat Nov 18 18:01:41 1995  Ian Lance Taylor  <[email protected]>
1645
1646         * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
1647         (_bfd_coff_read_string_table): Likewise.
1648
1649 Sat Nov 18 19:43:04 1995  Richard Earnshaw ([email protected])
1650
1651         * pe-arm.c: Fix typos.
1652         * coff-arm.c: Likewise.
1653
1654 Fri Nov 17 16:22:04 1995  Kim Knuttila  <[email protected]>
1655
1656         * coff-ppc.c (list_ele): Added "cat"egory member.
1657         (record_toc): New category parameter (priv or pub).
1658         (ppc_record_toc_entry): Check to see if toc bounds exceeded.
1659         (ppc_process_before_allocation): Removed embrionic data-in-toc from
1660         the mainline. It addes extra toc cells in error.
1661         (ppc_coff_swap_sym_in_hook): Added some documentation.
1662         (dump_toc): Can now diagnose "virtual toc" chicanery.
1663
1664 Fri Nov 17 10:41:25 1995  Philippe De Muyter  <[email protected]>
1665
1666         * elf-bfd.h (struct elf_link_hash_table): Change type of
1667         dynsymcount and bucketcount fields from size_t to bfd_size_type.
1668
1669 Fri Nov 17 10:02:58 1995  Ian Lance Taylor  <[email protected]>
1670
1671         * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
1672         pointerize C_LEAFSTAT or C_LEAFEXT entries.
1673
1674         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
1675         DT_INIT and DT_FINI entries if the _init or _fini symbol is
1676         defined or mentioned in a regular file.
1677
1678 Thu Nov 16 15:16:42 1995  Kim Knuttila  <[email protected]>
1679
1680         * coff-ppc.c (ppc_record_data_in_toc_entry): new function
1681         (coff_ppc_relocate_section): Handle TOCDEFN attribute
1682         (coff_ppc_relocate_section): Correct REL24 handling
1683         (ppc_process_before_allocation): Correct TOCDEFN handling
1684
1685         * peicode.h (dir_names): Added name descriptions
1686
1687 Thu Nov 16 03:38:03 1995  Ken Raeburn  <[email protected]>
1688
1689         * VERSION: Updated to cygnus-2.6.
1690
1691 Wed Nov 15 19:30:07 1995  Ken Raeburn  <[email protected]>
1692
1693         * targets.c (m68k4knetbsd_vec): Declare.
1694
1695 Wed Nov 15 18:05:52 1995  Ian Lance Taylor  <[email protected]>
1696
1697         * targets.c (bfd_target): Change type of second argument to
1698         _bfd_print_private_bfd_data from void * to PTR.
1699         * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
1700         using PTR rather than void *.
1701         * bfd-in2, libbfd.h: Rebuild.
1702         * peicode.h (pe_print_private_bfd_data): Change vfile from void *
1703         to PTR.
1704         * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
1705         _bfd_generic_bfd_print_private_bfd_data rather than casting
1706         bfd_true.
1707
1708 Wed Nov 15 04:09:14 1995  Ken Raeburn  <[email protected]>
1709
1710         * Makefile.in (.dep1): Fix stupid typo in last change.  Remove any
1711         "DO NOT DELETE" lines or blank lines that mkdep writes on some
1712         systems.
1713         (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
1714         BFD64_BACKENDS_CFILES): New variables.
1715         (CFILES): Use them.
1716         
1717 Tue Nov 14 11:52:23 1995  Ian Lance Taylor  <[email protected]>
1718
1719         * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
1720         not at the file position of the first section.
1721         * coffcode.h (coff_compute_section_file_positions): Avoid using
1722         unportable #elif.
1723         (coff_write_object_contents): When generating a PPC PE executable
1724         with no symbols, round up the file size to a COFF_PAGE_SIZE
1725         boundary.
1726         * cofflink.c (_bfd_coff_final_link): If there are no symbols,
1727         don't write out a string table.
1728
1729         * elf.c (bfd_section_from_shdr): When using a different section
1730         header, pass the new one to _bfd_elf_make_section_from_shdr.
1731         (elf_fake_sections): Don't set sh_info and sh_entsize fields.
1732         (elf_map_symbols): Add section VMA to symbol value when comparing
1733         against 0.
1734         (_bfd_elf_compute_section_file_positions): Only build symbol table
1735         if there are some symbols.  Set file offset of symtab and strtab
1736         sections.
1737         (assign_file_positions_except_relocs): Remove dosyms parameter.
1738         Change all callers.  Never set file offset of symtab and strtab
1739         sections.
1740         (_bfd_elf_copy_private_section_data): New function.
1741         (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
1742         (_bfd_elf_copy_private_symbol_data): New function.
1743         (swap_out_syms): Check for special mapping of st_shndx created by
1744         copy_private_symbol_data.
1745         * elfxx-target.h: Use new copy routines.
1746         * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
1747         (_bfd_elf_copy_private_section_data): Declare.
1748
1749         * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
1750
1751         * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
1752         C_NT_WEAK.
1753
1754         * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
1755         _bfd_dummy_target, matching the recent change to archive
1756         recognition.
1757
1758 Mon Nov 13 13:24:38 1995  Ian Lance Taylor  <[email protected]>
1759
1760         * libbfd.c (bfd_get_file_window): Use casts to avoid doing
1761         arithmetic on PTR types.
1762
1763         * aout-target.h (MY(callback)): Set the lma of the sections.
1764
1765         * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
1766         symbol into a reloc against the section.
1767
1768 Mon Nov 13 07:31:35 1995  Kim Knuttila  <[email protected]>
1769
1770         * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
1771         glue for the relocs: IMGLUE and IFGLUE.
1772         (record_toc): new function - tracks toc contents
1773         (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
1774         (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
1775         (ppc_coff_rtype2howto): removed invalid IMGLUE hack
1776         (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
1777         (ppc_record_toc_entry): Removed a debug define (duh)
1778
1779         * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
1780         (pe_print_idata): New function - formats the idata section data
1781         (pe_print_pdata): New function - formats the pdata section data
1782         (pe_print_private_bfd_data): calls to above
1783
1784 Sun Nov 12 12:23:24 1995  Stan Shebs  <[email protected]>
1785
1786         * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
1787         * coff-rs6000.c (rs6000coff_vec): Add conditional defines
1788         TARGET_SYM and TARGET_NAME for vector and BFD name.
1789         * coff-pmac.c (pmac_xcoff_vec): Remove.
1790         (TARGET_SYM, TARGET_NAME): Define.
1791         * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
1792         machine to 0, not all PowerMacs are 601s.
1793
1794 Fri Nov 10 12:10:14 1995  Ian Lance Taylor  <[email protected]>
1795
1796         * elfcode.h (elf_object_p): Read in any program headers.
1797         * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
1798         based on the program headers, if any.
1799         (elf_fake_sections): Set sh_addr from the vma, not the lma.
1800         (map_program_segments): Set p_paddr of program headers based on
1801         the lma.
1802
1803 Thu Nov  9 13:01:31 1995  Ian Lance Taylor  <[email protected]>
1804
1805         * archive.c (bfd_generic_archive_p): Preserve tdata in case of
1806         failure.
1807
1808         * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
1809         trying to do a relocateable link with a non-a.out object file.
1810
1811         * archive.c (bfd_generic_archive_p): Check the first object file
1812         in an archive even if target_defaulted is set.  If the object file
1813         has the wrong xvec, reject it.
1814
1815         * aoutx.h (NAME(aout,set_section_contents)): If a section can not
1816         be represented, report the name via _bfd_error_handler.
1817         (translate_to_native_sym_flags): Likewise.
1818         * elf32-mips.c (mips_elf_final_link): Likewise.
1819         * oasys.c (oasys_write_sections): Likewise.
1820
1821         * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
1822         which checks for STYP_OVRFLO sections.
1823         (coff_compute_section_file_positions): If RS6000COFF_C, handle
1824         reloc and lineno count overflows.
1825         (coff_write_object_contents): Call coff_count_linenumbers before
1826         coff_compute_section_file_positions.  If RS6000COFF_C, handle
1827         reloc and lineno count overflows.
1828         * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
1829         relocs before dealing with .pad sections.  Count overflow section
1830         headers when handling .pad sections.
1831
1832         * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
1833         if RS6000COFF_C.
1834
1835         * xcofflink.c (XCOFF_DESCRIPTOR): Define.
1836         (struct xcoff_link_hash_table): Add descriptor_section and
1837         special_sections fields.
1838         (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
1839         (xcoff_link_add_symbols): Set linkage section alignment.  Create
1840         descriptor section.  Check for magic symbol names (_text, etc.),
1841         and record them in special_sections if found.  Set
1842         XCOFF_DESCRIPTOR flag for a function descriptor, and set its
1843         descriptor field to point back to the function code symbol.
1844         (xcoff_sweep): Always mark the special descriptor_section.
1845         (bfd_xcoff_export_symbol): Check whether the symbol might be a
1846         function descriptor, and mark it if it is.
1847         (bfd_xcoff_size_dynamic_sections): Add new special_sections
1848         parameter, and fill it in.  Allocate space for the descriptor
1849         section.
1850         (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
1851         global linkage code.  If an undefined function descriptor is
1852         exported, arrange to define it.  Warn about any other undefined
1853         exported symbol.
1854         (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
1855         (xcoff_write_global_symbol): Create a function descriptor when
1856         necessary.
1857         * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
1858         * bfd-in2.h: Rebuild.
1859
1860 Thu Nov  9 08:40:23 1995  Kim Knuttila  <[email protected]>
1861
1862         * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
1863         (ppc_coff_link_hash_table): new types for hashing
1864         (ppc_coff_link_hash_newfunc): hash entry constructor
1865         (ppc_coff_link_hash_table_init): hash table initializer
1866         (ppc_coff_link_hash_table_create): hash table constructor
1867         (ppc_record_toc_entry): changed references to hash table
1868         (coff_ppc_relocate_section): changed references to hash table
1869
1870         * libcoff-in.h (coff_link_hash_entry): removed toc_offset
1871         * libcoff.h: Rebuild
1872
1873         * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
1874         (coff_link_add_symbols): removed toc_offset init
1875
1876 Thu Nov  9 04:00:38 1995  Ken Raeburn  <[email protected]>
1877
1878         * Makefile.in (.dep1): Make sure the file mkdep is to write exists
1879         first.
1880
1881         * configure.in: Added new option --with[out]-mmap.  Set USE_MMAP
1882         if it is given and mmep is available.
1883         * acconfig.h: Undef USE_MMAP.
1884         * configure, config.in: Regenerated.
1885         * aoutx.h: If USE_MMAP is not defined, do all symbol and string
1886         table handling the old way.
1887         (aout_get_external_symbols): Don't complain if last byte of string
1888         table is nonzero.
1889         * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
1890         (bfd_free_window) [! USE_MMAP]: Don't define.
1891         (bfd_get_file_window,
1892         _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
1893
1894 Wed Nov  8 20:03:44 1995  Eric Freudenthal <[email protected]>
1895
1896         * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
1897         0xffff0000.
1898
1899 Wed Nov  8 11:31:11 1995  Ian Lance Taylor  <[email protected]>
1900
1901         * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
1902         compatible with AMD generated COFF files.  Try to support both AMD
1903         and GNU formats simultaneously.
1904         (coff_a29k_relocate_section): Likewise.
1905
1906         * libbfd.c (bfd_get_file_window): Change writable parameter from
1907         int to boolean; update all callers.  Pass MAP_SHARED if not
1908         writable--it's required on Solaris.  Cast fprintf argument to
1909         avoid warning.
1910         * bfd-in.h (bfd_get_file_window): Update declaration.
1911         * bfd-in2.h: Rebuild.
1912         * aoutx.h: Update calls to bfd_get_file_window.
1913
1914         * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
1915         Change all uses.
1916         (xcoff_swap_ldhdr_in): New static function.
1917         (xcoff_swap_ldsym_in): New static function.
1918         (xcoff_find_reloc): Handle the case of a single reloc correctly.
1919         (xcoff_link_add_symbols): If we just created a descriptor, pass it
1920         to _bfd_generic_link_add_one_symbol, to save a hash lookup.
1921         Handle XTY_ER/XMC_XO symbols correctly.
1922         (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
1923         rather than normal symbol table.
1924         (bfd_xcoff_import_symbol): It's not an error if the symbol is
1925         already defined with the same absolute value.
1926         (xcoff_mark): When considering called symbols, check whether the
1927         descriptor is from a dynamic object, rather than the symbol
1928         itself.
1929         (xcoff_build_ldsyms): Likewise.
1930
1931         * libbfd.c (bfd_get_file_window): Change return type to boolean.
1932         Cast realloc and malloc return values.  If malloc or realloc fail,
1933         set bfd_error_no_memory.
1934         * bfd-in.h (bfd_get_file_window): Change type to boolean.
1935         * bfd-in2.h: Rebuild.
1936
1937 Tue Nov  7 11:53:48 1995  Kim Knuttila  <[email protected]>
1938
1939         * coff-ppc.c (ppc_record_toc_entry): new function.
1940         (in_reloc_p): changed return value.
1941         (coff_ppc_relocate_section): much rework.
1942         (ppc_allocate_toc_section): new function.
1943         (ppc_process_before_allocation): new function.
1944         (ppc_coff_swap_sym_in_hook): new function.
1945
1946         * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
1947         (coff_link_add_symbols): initialize toc_offset.
1948
1949         * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
1950         (coff_swap_aouthdr_out): Added more sections to the data
1951         dictionary for the pe file header. Also changed linker version
1952         number on the ppc side.
1953         (dir_names): small improvements to the dictionary printing.
1954         (pe_mkobject_hook): save the file level flags.
1955
1956         * libcoff-in.h (coff_link_hash_entry): added toc_offset field
1957         (pe_tdata): added real_flags field
1958         (coff_tdata): added local_toc_sym_map and access macro
1959
1960         * libcoff.h (coff_link_hash_entry): added toc_offset field
1961         (pe_tdata): added real_flags field
1962         (coff_tdata): added local_toc_sym_map and access macro
1963
1964         * coffcode.h (coff_set_alignment_hook): added hook for PE.
1965         (coff_mkobject): init for local_toc_sym_map
1966         (coff_write_object_contents): set the internal_a.magic to
1967         IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
1968         ppc compilers use.
1969
1970 Tue Nov  7 13:48:58 1995  Ian Lance Taylor  <[email protected]>
1971
1972         * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
1973         entries until both the line number address and the function name
1974         address are too large.
1975
1976         * configure.in: Call AC_CHECK_PROG to find and cache AR.
1977         * configure: Rebuilt.
1978
1979         * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
1980         is defined in the environment.
1981
1982 Tue Nov  7 10:57:24 1995  Jeffrey A Law  ([email protected])
1983
1984         * som.c (som_get_section_contents_in_window): Define to use
1985         generic version.
1986
1987 Mon Nov  6 17:13:15 1995  Harry Dolan  <[email protected]>
1988
1989         * coff-i860.c: New file, based on coff-i386.c.
1990         * cpu-i860.c: New file, based on cpu-i386.c.
1991         * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
1992         * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
1993         targets, using i860coff_vec.
1994         * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
1995         trad-core.o and hosts/i860mach3.h.
1996         (i860coff_vec): Use coff-i860.o and cofflink.o.
1997         * configure: Rebuild.
1998         * Makefile.in: Rebuild dependencies.
1999         (ALL_MACHINES): Add cpu-i860.o.
2000         (BFD32_BACKENDS): Add coff-i860.o.
2001         (CFILES): Add cpu-i860.c and coff-i860.c.
2002         * targets.c (i860coff_vec): Declare.
2003         (bfd_target_vector): Add &i860coff_vec. 
2004         * archures.c (bfd_i860_arch): Declare.
2005         (bfd_archures_list): Add &bfd_i860_arch.
2006         * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
2007         (coff_set_flags): Handle bfd_arch_i860.
2008         (coff_write_object_contents): Handle I860 a.out magic number.
2009
2010 Mon Nov  6 14:34:07 1995  Ian Lance Taylor  <[email protected]>
2011
2012         * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
2013         the created .tc section to 2.
2014         (xcoff_mark): Don't keep a .loader reloc for a call to an
2015         undefined symbol when creating a shared library.
2016         (xcoff_build_ldsyms): When creating a shared library, generate
2017         global linkage code for a call to an undefined symbol.
2018
2019 Sun Nov  5 21:44:13 1995  Ken Raeburn  <[email protected]>
2020
2021         * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
2022         BFD32_BACKENDS, BFD64_BACKENDS.
2023         (.dep1): Put mkdep output in a separate file.
2024         Rebuilt dependencies.
2025
2026         * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
2027         value.
2028
2029         Permit use of mmap when available:
2030
2031         * configure.in: Check for mmap, madvise, mprotect.
2032         * config.in, configure: Regenerated.
2033
2034         * libbfd.c (struct _bfd_window_internal): Define type.
2035         (bfd_init_window, bfd_free_window, bfd_get_file_window): New
2036         functions.
2037         (ok_to_map): New static variable for debugging.
2038         (_bfd_generic_get_section_contents_in_window): New function.
2039         * bfd-in.h (bfd_window_internal): Declare type.
2040         (bfd_window): Define type.
2041         (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
2042         * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
2043         Declare.
2044
2045         * libaout.h (struct aoutdata): Add two window fields.
2046         (obj_aout_sym_window, obj_aout_string_window): New macros.
2047         * aoutx.h (some_aout_object_p): Initialize windows.
2048         (aout_get_external_symbols): Get symbol data and strings in
2049         windows instead of explicitly allocated buffers.
2050         (slurp_symbol_table): Free window instead of memory.
2051         (bfd_free_cached_info): Release windows instead of freeing storage
2052         directly.
2053         (aout_link_free_symbols): Ditto.
2054
2055         * targets.c (bfd_target): Add new field for
2056         get_section_contents_in_window.
2057         (BFD_JUMP_TABLE_GENERIC): Updated.
2058         * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
2059         coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
2060         libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
2061         macros for get_section_contents_in_window field.
2062
2063 Sat Nov  4 12:23:26 1995  Fred Fish  <[email protected]>
2064
2065         * core.c: Renamed to corefile.c
2066         * makefile.dos (OBJS): Change core.o to corefile.o
2067         * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
2068         
2069 start-sanitize-gm
2070 Sat Nov  4 10:16:54 1995  Stu Grossman  ([email protected])
2071
2072         * config.bfd (mips*-*-magic*):  Add bfd_elf32_bigmips_vec to
2073         targ_selvecs to allow debugging under Irix-5 native.
2074
2075 end-sanitize-gm
2076 Fri Nov  3 15:54:59 1995  Ian Lance Taylor  <[email protected]>
2077
2078         * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
2079         to o.  Clobber and restore the list of new csects around the call
2080         to _bfd_generic_link_add_one_symbol, in case it wants to report a
2081         linker error and the linker wants to read the symbol table.  Reset
2082         the line number count of a real section even if it has no relocs.
2083         (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
2084
2085         * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
2086         is too small.
2087
2088 Thu Nov  2 23:16:39 1995  Ian Lance Taylor  <[email protected]>
2089
2090         * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
2091         an undefined symbol in a shared link.
2092
2093         * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
2094         oldtype from bfd_link_order_type to bfd_link_hash_type.  From
2095         [email protected] (Philippe De Muyter).
2096
2097 Wed Nov  1 14:26:02 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <[email protected]>
2098
2099         * coff-m88k.c (rtype2howto): New static function.
2100         (RTYPE2HOWTO): Use it rather than a macro definition.
2101
2102         * coffcode.h (coff_write_object_contents): set internal_a.magic
2103         to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
2104
2105         * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
2106         define TRAD_HEADER to new file hosts/delta68.h.
2107         m88*-motorola-sysv*, however, does use ptrace-core.o.
2108         * hosts/delta68.h: New file.
2109
2110         * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
2111         bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
2112
2113 Wed Nov  1 13:51:54 1995  Ken Raeburn  <[email protected]>
2114
2115         * i386linux.c (MY(vec)): Declare before use.
2116
2117 Wed Nov  1 11:45:07 1995  Ian Lance Taylor  <[email protected]>
2118
2119         * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
2120         Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
2121
2122         * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
2123         BFD is not of the right type.
2124         (bfd_elf_get_needed_list): Likewise.
2125         * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
2126         * sunos.c (bfd_sunos_get_needed_list): Likewise.
2127         * xcofflink.c (XCOFF_XVECP): Define.
2128         (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
2129         of the right type.
2130         (bfd_xcoff_import_symbol): Likewise.
2131         (bfd_xcoff_export_symbol): Likewise.
2132         (bfd_xcoff_link_count_reloc): Likewise.
2133         (bfd_xcoff_record_link_assignment): Likewise.
2134         (bfd_xcoff_size_dynamic_sections): Likewise.
2135
2136         * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
2137         table index against the number of symbols for a base relative
2138         reloc.
2139
2140         * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
2141         static function.
2142         * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
2143         full_aouthdr flag here...
2144         (_bfd_xcoff_bfd_final_link): ...not here.
2145
2146 Tue Oct 31 12:52:02 1995  Fred Fish  <[email protected]>
2147
2148         * libelf.h:  Rename to elf-bfd.h to avoid conflict with
2149         systems that have a system <libelf.h>.
2150         * Makefile.in: Globally replace libelf.h with elf-bfd.h.
2151         * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
2152         elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
2153         elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
2154         elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
2155         elfxx-target.h: Include elf-bfd.h rather than libelf.h.
2156         * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
2157
2158 Tue Oct 31 15:30:07 1995  David Mosberger-Tang  <[email protected]>
2159
2160         * ecoff.c (ecoff_set_symbol_info): Add new parameter weak.  If
2161         set, set BSF_WEAK in symbol.  Change all callers.
2162         (ecoff_get_extr): Set weakext based on BSF_WEAK.
2163         (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
2164         _bfd_generic_link_add_one_symbol.
2165         (ecoff_indirect_link_order): Check that the section tdata relocs
2166         are not NULL before using them.
2167
2168         * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
2169         define TRAD_HEADER as hosts/alphalinux.h.
2170         * configure: Rebuild.
2171         * hosts/alphalinux.h: New file.
2172         * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
2173         not int.
2174
2175 Tue Oct 31 12:34:11 1995  Ian Lance Taylor  <[email protected]>
2176
2177         * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
2178         C_ECOMM storage classes.
2179
2180         * xcofflink.c (xcoff_mark_symbol): New static function, broken out
2181         of xcoff_mark.
2182         (xcoff_mark): Call xcoff_mark_symbol.
2183         (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
2184         (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
2185         doing it by hand.
2186         (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
2187
2188 Mon Oct 30 14:53:48 1995  Ian Lance Taylor  <[email protected]>
2189
2190         * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
2191         field.
2192         (xcoff_find_reloc): New static function.
2193         (xcoff_link_add_symbols): Use it.
2194         (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
2195         (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL.  Don't
2196         relocate the value of C_DECL.
2197
2198         * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
2199
2200 Sat Oct 28 01:25:34 1995  steve chamberlain  <[email protected]>
2201
2202         * cofflink.c (_bfd_coff_generic_relocate_section): Make
2203         callback decide what goes in .relocs.
2204         * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
2205         * peicode.h (pe_mkobject_hook): Only copy aouthdr if
2206         there is one.
2207
2208 Sat Oct 28 01:51:02 1995  Ian Lance Taylor  <[email protected]>
2209
2210         * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
2211         absolute section.
2212
2213 Fri Oct 27 18:14:39 1995  Ian Lance Taylor  <[email protected]>
2214
2215         * xcofflink.c: More improvements, mostly to fix handling of
2216         constructors and a few other special cases.
2217         * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
2218         zero, reverting yesterday's change.
2219         * bfd-in.h (bfd_xcoff_link_record_set): Declare.
2220         (bfd_xcoff_link_count_reloc): Declare.
2221         (bfd_xcoff_record_link_assignment): Declare.
2222         * bfd-in2.h: Rebuild.
2223
2224 Fri Oct 27 14:42:15 1995  Niklas Hallqvist  <[email protected]>
2225
2226         * PORTING, aout-arm.c, aout-encap.c, aout-rce.c, aout-target.h,
2227         aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
2228         i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
2229         i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
2230         ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
2231         Change PAGE_SIZE to TARGET_PAGE_SIZE.
2232
2233         * m68knetbsd.c: Ditto as well as add support for the m68k4k object
2234         format.
2235
2236         * netbsd.h: Double ditto (incl. m68k4k support).  NetBSD's text
2237         segments includes the a.out header.  See to that the magic number
2238         *always* is big-endian.
2239
2240         * config.bfd: Add m68*-hp*-netbsd* case.  Cross-pollinate m68k and
2241         m68k4k NetBSD configurations.
2242
2243         * configure.in, configure: Separate i386 & mips NetBSD
2244         configurations from other BSD ones.  Don't assume DEC is the only
2245         thing NetBSD/mips run on.  Add {m68k,ns32k,sparc}-*-netbsd*
2246         configurations.  Add support for m68k4k NetBSD object format.
2247
2248         * libaout.h: Added M_68K4K_NETBSD magic.
2249
2250         * m68k4knetbsd.c: New file.
2251         
2252         * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
2253
2254         * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
2255         <machine/endian.h>.
2256
2257         * hosts/mipsnbsd.h: New file.
2258         
2259 start-sanitize-gm
2260 Fri Oct 27 09:41:51 1995  Stu Grossman  ([email protected])
2261
2262         * config.bfd:  Add config stuff for mips*-*-magic* to set
2263         targ_defvec to ecoff_big_vec.
2264
2265 end-sanitize-gm
2266 Thu Oct 26 14:16:47 1995  Ian Lance Taylor  <[email protected]>
2267
2268         * xcofflink.c: Numerous changes to get closer to a working XCOFF
2269         linker.
2270         * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
2271         toc_section, and entry_section fields.
2272         (struct xcoff_section_tdata): Remove ldrel_count field.
2273         * libcoff.h: Rebuild.
2274         * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
2275         fields.
2276         (coff_compute_section_file_positions): If RS6000COFF_C, generate
2277         full a.out header if full_aouthdr is set in xcoff_data.
2278         (coff_write_object_contents): Likewise.  Set o_snentry and o_sntoc
2279         based on sections stored in xcoff_data.
2280         * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
2281         fields.
2282         (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
2283         (rs6000coff_vec): Set symbol_leading_char to '.'.
2284         * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
2285         value stored in ret rather than returning a pointer value.
2286         
2287 Wed Oct 25 23:10:39 1995  Michael Meissner  <[email protected]>
2288
2289         * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
2290         format for now.
2291
2292 Wed Oct 25 16:19:27 1995  Jeffrey A Law  ([email protected])
2293
2294         * som.c (som_slurp_string_table): Allocate the strings with malloc
2295         since they're free'd by free_cached_info.
2296         (som_slurp_symbol_table): Similarly for the symbol table.
2297
2298 Wed Oct 25 14:59:22 1995  Per Bothner  <[email protected]>
2299
2300         * Makefile.in (diststuff):  Don't make headers.
2301
2302 Wed Oct 25 11:32:54 1995  Ian Lance Taylor  <[email protected]>
2303
2304         * Makefile.in: Rebuild dependencies.
2305
2306         * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
2307         output_bfd is not SunOS.
2308         (bfd_sunos_size_dynamic_sections): Likewise.  Don't scan relocs of
2309         non-SunOS input files.
2310
2311         * xcofflink.c: Extensive changes to support linking shared objects
2312         and generating a .loader section.
2313         * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
2314         (struct xcoff_section_tdata): Add lineno_count, first_symndx,
2315         last_symndx, and ldrel_count fields.
2316         * libcoff.h: Rebuild.
2317         * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
2318         * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
2319         is set.
2320         * bfd-in.h (bfd_xcoff_import_symbol): Declare.
2321         (bfd_xcoff_export_symbol): Declare.
2322         (bfd_xcoff_size_dynamic_sections): Declare.
2323         * bfd-in2.h: Rebuild.
2324
2325 Tue Oct 24 17:44:20 1995  Stan Shebs  <[email protected]>
2326
2327         * configure.in: Add xcofflink.o to pmac_xcoff_vec.
2328         * configure: Rebuild.
2329         * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
2330         * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
2331         contents.
2332         (pmac_xcoff_vec): Update to use new xcoff support.
2333         * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
2334         (xcoff_write_armap): Declare buf as unsigned char.
2335         * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
2336
2337         * mpw-make.sed: Generalize subdir_do edit.
2338         
2339 Tue Oct 24 10:25:01 1995  Jeffrey A Law  ([email protected])
2340
2341         * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
2342         correctly.  Don't initialize asect->vma.
2343
2344 Fri Oct 20 13:23:48 1995  Ken Raeburn  <[email protected]>
2345
2346         * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
2347         something a little less than the page size.
2348
2349 Thu Oct 19 13:06:09 1995  Ian Lance Taylor  <[email protected]>
2350
2351         * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
2352
2353 Wed Oct 18 16:20:08 1995  steve chamberlain  <[email protected]>
2354
2355         * coff-i386.c (coff_i386_reloc_type_lookup): New.
2356         * coffcode.h (coff_write_object_contents): If .bss is before
2357         .data us that as data_start.
2358         * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
2359         calc correct.
2360         * peicode.h (add_data_entry): Use _cooked_size of data directory.
2361         (coff_swap_outhdr_out): Hardwire in version number.
2362         
2363 Wed Oct 18 16:50:54 1995  Ken Raeburn  <[email protected]>
2364
2365         * sunos.c (sunos_add_dynamic_symbols): Rename local variables
2366         major and minor to *_vno, since the former are also macros in
2367         SunOS header files.  Cast result of bfd_alloc to appropriate
2368         type.
2369
2370         * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
2371         before assigning to sec_data.
2372
2373 Wed Oct 18 13:25:17 1995  Ian Lance Taylor  <[email protected]>
2374
2375         * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
2376         now relative to the section, not absolute.
2377         * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
2378         get the file name when there is a N_SO directory name.  When
2379         handling stabs, remember that section->vma was added to the
2380         offset.
2381
2382 Tue Oct 17 18:24:54 1995  Ian Lance Taylor  <[email protected]>
2383
2384         * sunos.c (struct sunos_link_hash_table): Add needed field.
2385         (sunos_link_hash_table_create): Call bfd_release, not free.
2386         (sunos_link_hash_table_create): Initialize needed field.
2387         (sunos_add_dynamic_symbols): Record needed objects.
2388         (bfd_sunos_get_needed_list): New function.
2389         * bfd-in.h (bfd_sunos_get_needed_list): Declare.
2390         * bfd-in2.h: Rebuild.
2391
2392 Mon Oct 16 14:43:59 1995  steve chamberlain  <[email protected]>
2393
2394         * libcoff-in.h (pe_data_type.in_reloc_p): New.
2395
2396 Mon Oct 16 10:52:50 1995  Ian Lance Taylor  <[email protected]>
2397
2398         * bfd-in.h (struct bfd_link_needed_list): Rename from
2399         bfd_elf_link_needed_list.
2400         * bfd-in2.h: Rebuild.
2401         * elf.c, elflink.h, libelf.h: Corresponding changes.
2402
2403         Add start at AIX linker support; no shared libraries yet.
2404         * xcofflink.c: New file.
2405         * configure.in (rs600coff_vec): Use xcofflink.o.
2406         * configure: Rebuild.
2407         * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
2408         fields.
2409         (struct xcoff_section_tdata): Define.
2410         (xcoff_section_data): Define macro.
2411         (_bfd_xcoff_bfd_link_hash_table_create): Declare.
2412         (_bfd_xcoff_bfd_link_add_symbols): Declare.
2413         (_bfd_xcoff_bfd_final_link): Declare.
2414         (_bfd_ppc_xcoff_relocate_section): Declare.
2415         * libcoff.h: Rebuild.
2416         * coff-rs6000.c: Clean up a bit.
2417         (xcoff_mkobject): Default modtype to 1L, not RE.  Initialize
2418         cputype, csects, and debug_indices.
2419         (xcoff_copy_private_bfd_data): Copy cputype.
2420         (xcoff_howto_table): Rename from rs6000coff_howto_table.
2421         (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
2422         (xcoff_reloc_type_lookup): Rename from
2423         rs6000coff_reloc_type_lookup.
2424         (coff_relocate_section): Define.
2425         (_bfd_xcoff_sizeof_headers): Define.
2426         (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
2427         (_bfd_xcoff_bfd_relax_section): Define.
2428         (_bfd_xcoff_bfd_link_split_section): Define.
2429         (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
2430         coff.
2431         * coffcode.h (coff_compute_section_file_positions): If AIX,
2432         increment sofar by SMALL_AOUTSZ if not executable.
2433         (coff_write_object_contents): If AIX, always output an a.out
2434         header; if not executable, header size of SMALL_AOUTSZ.
2435         * hash.c (struct bfd_strtab_hash): Add xcoff field.
2436         (_bfd_stringtab_init): Initialize xcoff field.
2437         (_bfd_xcoff_stringtab_init): New function.
2438         (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
2439         (_bfd_stringtab_emit): In XCOFF mode, write out length.
2440         * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
2441         * libbfd.h: Rebuild.
2442         * Makefile.in: Rebuild dependencies.
2443         (BFD32_BACKENDS): Add xcofflink.o.
2444         (CFILES): Add xcofflink.c.
2445
2446         * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
2447         SEC_NO_FLAGS, for .acommon section.  From Peter Schauer
2448         <[email protected]>.
2449
2450 Sat Oct 14 21:36:02 1995  Michael Meissner  <[email protected]>
2451
2452         * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
2453
2454 Fri Oct 13 17:48:43 1995  Ken Raeburn  <[email protected]>
2455
2456         * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
2457         * config.in: Regenerated.
2458
2459         * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
2460         (_bfd_chunksize): New variable.
2461         (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
2462         for obstack chunk size.
2463         * configure.in: Check for getpagesize.
2464         * configure: Regenerated.
2465
2466         Mon Sep 25 22:49:32 1995  Andreas Schwab  <[email protected]>
2467
2468         * trad-core.c (rawptr): Make it a local variable of
2469         ptrace_unix_core_file_p.
2470
2471 Fri Oct 13 11:22:01 1995  steve chamberlain  <[email protected]>
2472
2473         * coff-arm.c (in_reloc_p): New.
2474         * coff-i386.c (in_reloc_p): New.
2475         * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
2476         (coff_write_object_contents): Only set has_reloc_section
2477         if PE_IMAGE.
2478         * cofflink.c (_bfd_coff_generic_relocate_section): Call
2479         in_reloc_p to decide if reloc should be emitted.
2480         * libcoff.h (pe_data_type.in_reloc_p): New.
2481         * peicode.h (pe_mkobject): Initialize in_reloc_p.
2482
2483 Wed Oct 11 00:49:29 1995  Ian Lance Taylor  <[email protected]>
2484
2485         * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
2486         (_bfd_coff_read_internal_relocs): Likewise.
2487         * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
2488         (_bfd_coff_read_internal_relocs): Likewise.
2489
2490         * elflink.h (elf_link_add_object_symbols): Correct conditions
2491         under which type and size change warnings are issued.
2492
2493 Tue Oct 10 18:32:46 1995  Ian Lance Taylor  <[email protected]>
2494
2495         * coffgen.c (coff_count_linenumbers): Don't count line numbers for
2496         a symbol which is not in a real section.
2497         (coff_write_native_symbol): Corresponding change.
2498
2499         * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
2500         coff_link_hash_newfunc and make non-static.
2501         (_bfd_coff_link_hash_table_init): New function, broken out of
2502         _bfd_coff_link_hash_table_create.
2503         (_bfd_coff_link_hash_table_create): Use it.
2504         (process_embedded_commands): Make static.
2505         * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
2506         (_bfd_coff_link_hash_table_init): Declare.
2507         * libcoff.h: Rebuild.
2508
2509         * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
2510         field in XCOFF tdata.
2511         (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
2512         U802ROMAGIC, for clarity.  Try to set arch and machine correctly
2513         based on cputype stored in a.out header, or in n_type of initial
2514         .file symbol.
2515         (coff_write_object_contents): Set cputype correctly in a.out
2516         header.
2517         (coff_slurp_symbol_table): Add casts to file_ptr to avoid
2518         warnings.
2519         * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
2520         (coff_swap_aouthdr_out): Swap out cputype field.  Don't clear
2521         old resv1 field.
2522         * libcoff-in.h (struct xcoff_tdata): Add cputype field.
2523         * libcoff.h: Rebuild.
2524
2525         * cpu-rs6000.c (rs6000_compatible): New static function.
2526         (bfd_rs6000_arch): Use it.
2527         * cpu-powerpc.c (powerpc_compatible): New static function.
2528         (arch_info_struct): Define various flavours of PowerPC.
2529         (bfd_powerpc_arch): Use powerpc_compatible.  Point at
2530         arch_info_struct.
2531
2532 Tue Oct 10 10:50:46 1995  Fred Fish  <[email protected]>
2533
2534         * Makefile.in (FLAGS_TO_PASS):  Remove BISON.
2535
2536 Tue Oct 10 01:28:29 1995  Ian Lance Taylor  <[email protected]>
2537
2538         * elflink.h (elf_link_add_object_symbols): Don't warn about
2539         changing the size or type if the old definition was weak.
2540
2541 Mon Oct  9 11:24:08 1995  Ian Lance Taylor  <[email protected]>
2542
2543         * coffcode.h (combined_entry_type): Add fix_line field.
2544         (coff_slurp_line_table): Warn if we try to set the lineno field of
2545         a symbol twice.
2546         (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
2547         C_EINCL by setting fix_line.  Fix C_BSTAT symbol value.
2548         * coffgen.c (coff_mangle_symbols): Handle fix_line.
2549         (coff_write_symbol): Only use N_DEBUG if the symbol is in the
2550         absolute section.
2551         (coff_print_symbol): Print fix_value symbols in a useful fashion.
2552         * libcoff.h: Rebuild.
2553
2554         * libcoff-in.h (struct xcoff_tdata): Define.
2555         (xcoff_data): Define.
2556         * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
2557         * bfd-in2.h, libcoff.h: Rebuild.
2558         * coff-rs6000.c (xcoff_mkobject): New static function.
2559         (coff_mkobject): Define.
2560         (xcoff_copy_private_bfd_data): New static function.
2561         (coff_bfd_copy_private_bfd_data): Define.
2562         (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
2563         signed to bitfield.
2564         (rs6000coff_vec): Add DYNAMIC to object_flags.
2565         * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
2566         .loader sections specially.
2567         (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
2568         section alignment from the XCOFF tdata information.
2569         (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
2570         F_SHROBJ, and copy the extra a.out header information into the
2571         XCOFF tdata structure.
2572         (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
2573         F_DYNLOAD and the extra a.out header information.
2574         (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
2575         C_HIDEXT symbol with attached csect information.
2576         * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
2577         in the o_maxdata field.
2578         (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
2579         * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
2580         end if BSF_NOT_AT_END is set.
2581
2582         * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
2583         _bfd_read_ar_hdr_fn.
2584         * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
2585         * bfd-in2.h, libbfd.h: Rebuild.
2586         * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
2587         return value.
2588         (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
2589         (bfd_slurp_bsd_armap_f2): Likewise.
2590         (_bfd_slurp_extended_name_table): Likewise.
2591
2592 Fri Oct  6 16:18:35 1995  Ken Raeburn  <[email protected]>
2593
2594         Mon Sep 25 22:49:32 1995  Andreas Schwab  <[email protected]>
2595
2596         * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
2597         when the symbol table is empty.
2598
2599         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
2600         space for section symbols, since we don't output them either.
2601         (elf_m68k_adjust_dynindx): Removed.
2602
2603         * ptrace-core.c (rawptr): Make it a local variable of
2604         ptrace_unix_core_file_p.
2605
2606 Fri Oct  6 12:24:47 1995  Michael Meissner  <[email protected]>
2607
2608         * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
2609         NULL.
2610
2611         * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
2612         Mac object file formats.
2613
2614 Fri Oct  6 12:04:02 1995  Ian Lance Taylor  <[email protected]>
2615
2616         * coffgen.c (coff_fix_symbol_name): Don't try to set up file
2617         auxent if there isn't one.
2618         (coff_write_symbols): If there is no file auxent, use SYMNMLEN
2619         rather than FILNMLEN as the maximum name length.
2620
2621         * coffcode.h (bfd_coff_backend_data): Add new field
2622         _bfd_coff_print_aux.
2623         (bfd_coff_print_aux): New static function.
2624         (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
2625         scnlen field of an XTY_LD csect aux entry.
2626         (coff_print_aux): New static function.
2627         (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
2628         in coff_pointerize_aux_hook.
2629         (bfd_coff_std_swap_table): Initialize new field.
2630         * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
2631         * libcoff.h: Rebuild.
2632         * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
2633         * coff-mips.c (mips_ecoff_backend_data): Likewise.
2634
2635         * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
2636         if there are symbols, for native AIX ld compatibility.
2637
2638         * coffcode.h (bfd_coff_backend_data): Add new field
2639         _bfd_coff_pointerize_aux_hook.
2640         (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
2641         or I960, and as 0 otherwise.
2642         (bfd_coff_std_swap_table): Initialize new field.
2643         * libcoff.h: Rebuild.
2644         * coffgen.c (coff_pointerize_aux): Change parameters  to take
2645         symbol pointer instead of type and class, and to take aux index.
2646         Call _bfd_coff_pointerize_aux_hook if it is defined.
2647         (coff_get_normalized_symtab): Always call coff_pointerize_aux.
2648         * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
2649         * coff-mips.c (mips_ecoff_backend_data): Likewise.
2650
2651         * coff-rs6000.c: Add full support for AIX archives.  Rewrite old
2652         read-only/host-only support.
2653
2654         * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
2655         BSF_LOCAL.
2656         (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
2657         RS6000COFF_C.
2658
2659         * targets.c (bfd_target): Add _bfd_read_ar_hdr field.  Modify
2660         BFD_JUMP_TABLE_ARCHIVE accordingly.
2661         * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
2662         (_bfd_compute_and_write_armap): Declare.
2663         (_bfd_generic_read_ar_hdr): Declare.
2664         (_bfd_read_ar_hdr): Define.
2665         (_bfd_noarchive_read_ar_hdr): Define.
2666         (_bfd_archive_bsd_read_ar_hdr): Define.
2667         (_bfd_archive_coff_read_ar_hdr): Define.
2668         * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
2669         _bfd_read_ar_hdr instead.
2670         (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
2671         (_bfd_compute_and_write_armap): Rename from
2672         compute_and_write_armap.  Make non-static.  Change all callers.
2673         * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
2674         than _bfd_snarf_ar_hdr.
2675         * aout-target.h (MY_read_ar_hdr): Define if not defined.
2676         * ieee.c (ieee_read_ar_hdr): Define.
2677         * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
2678         * oasys.c (oasys_read_ar_hdr): Define.
2679         * som.c (som_read_ar_hdr): Define.
2680         * bfd-in2.h, libbfd.h: Rebuild.
2681
2682 Thu Oct  5 14:04:07 1995  steve chamberlain  <[email protected]>
2683
2684         * peicode.c (coff_swap_filehdr_in): If symptr is
2685         zero, there aren't any symbols, even if nsyms is set.
2686
2687 Thu Oct  5 11:45:02 1995  Ian Lance Taylor  <[email protected]>
2688
2689         * libecoff.h (struct ecoff_backend_data): Add adjust_headers
2690         field.
2691         * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
2692         sections, and set styp correctly for them: .got, .hash, .dynamic,
2693         .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
2694         (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
2695         types.
2696         (ecoff_sort_hdrs): New static function.
2697         (ecoff_compute_section_file_positions): Return boolean, not void.
2698         Sort the sections by VMA before looking through them.  Put the
2699         first non SEC_ALLOC section on a new page.  Put every SEC_ALLOC
2700         section on an appropriate boundary within the page.
2701         (ecoff_compute_reloc_file_positions): Check return value of
2702         ecoff_compute_section_file_positions.
2703         (_bfd_ecoff_set_section_contents): Likewise.
2704         (_bfd_ecoff_write_object_contents): Check for various Alpha
2705         section types when incrementing text_size and data_size.  Call
2706         adjust_headers backend function if it exists.
2707         * coff-alpha.c (alpha_adjust_headers): New static function.
2708         (alpha_ecoff_backend_data): Initialize adjust_headers field.
2709         * coff-mips.c (mips_ecoff_backend_data): Likewise.
2710
2711         * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
2712
2713 Wed Oct  4 18:15:02 1995  Jeff Law  ([email protected])
2714
2715         * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
2716         of ALTERNATE_AIX_CORE_FORMAT.
2717         * configure.in (aix4): No longer need CORE_FLAGS.
2718         * configure: Updated.
2719
2720 Wed Oct  4 15:36:36 1995  Ken Raeburn  <[email protected]>
2721
2722         NS32k changes from Ian Dall:
2723         * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
2724         macros.
2725         (aout_link_input_section_std, aout_link_input_section_ext,
2726         aout_link_reloc_link_order): Call them instead of _bfd_*
2727         versions.
2728         * aout-target.h (MY_exec_header_not_counted): New macro, defaults
2729         to zero.
2730         (backend_data): Use it instead of hardcoded zero.
2731
2732         * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
2733         (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
2734
2735         * ns32knetbsd.c: Include bfd.h.
2736         (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
2737         (MY_bfd_reloc_type_lookup): Declare function too.
2738         * pc532-mach.c (set_sizes): Don't declare.
2739         (MY_text_includes_header, MY_exec_header_not_counted): Define.
2740         (backend_data, MY_backend_data): Don't define.
2741
2742         * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
2743         ns32k-*-lites* like ns32k-*-netbsd*.
2744
2745         * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
2746         compile on lites.
2747
2748 Wed Oct  4 14:15:52 1995  Ian Lance Taylor  <[email protected]>
2749
2750         * coffcode.h (coff_write_object_contents): Restore setting
2751         f_timdat to 0, deleted on August 22.
2752
2753 Tue Oct  3 16:28:32 1995  steve chamberlain  <[email protected]>
2754
2755         * coffcode.h (coff_bfd_copy_private_symbol_data,
2756         coff_bfd_copy_private_section_data,
2757         coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
2758         * peicode.h (coff_bfd_copy_private_bfd_data): New
2759         (pe_bfd_copy_private_bfd_data): New.
2760         (coff_swap_scnhdr_in): Swap bss size into the right place.
2761         (pe_print_private_bfd_data): Add some newlines.
2762
2763 Tue Oct  3 11:53:04 1995  Jeff Law  ([email protected])
2764
2765         * som.c (setup_sections): Don't die if a space has no subspaces.
2766
2767 Mon Oct  2 14:08:55 1995  Ian Lance Taylor  <[email protected]>
2768
2769         * elflink.h (elf_link_add_object_symbols): Don't let a weak
2770         dynamic symbol override a common symbol.  Don't change the size or
2771         type if they have been set and the new symbol is not a definition.
2772         Warn if the size or type changes.
2773
2774 Sun Oct  1 01:34:41 1995  Jeff Law  ([email protected])
2775
2776         * som.c (som_begin_writing): Don't write the symbol table or
2777         symbol  strings.
2778         (som_finish_writing): Write them here.  Place them after the
2779         subspace data, but before the relocs.
2780
2781 Fri Sep 29 11:01:55 1995  Ian Lance Taylor  <[email protected]>
2782
2783         * sunos.c (sunos_add_one_symbol): Just pass false, not
2784         info->shared_library, to sunos_create_dynamic_sections.
2785         (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
2786         section.
2787         (sunos_check_dynamic_reloc): Remove .text section assertion.
2788
2789 Thu Sep 28 18:48:47 1995  Stan Shebs  <[email protected]>
2790
2791         * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
2792         * configure, configure.in: Add pmac_xcoff_vec case.
2793         * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
2794         * coff-pmac.c: New file, PowerMac XCOFF support.
2795         * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
2796         * targets.c (pmac_xcoff_vec): Declare.
2797
2798         * mpw-config.in: Various changes to be compatible with the
2799         autoconf-based configury.
2800         * mpw-make.sed: New file, sed commands to translate Unix
2801         makefile into MPW syntax.
2802         * mpw-make.in: Remove.
2803         * hosts/mpw.h: Remove.
2804         * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
2805         true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
2806
2807 Thu Sep 28 17:06:23 1995  steve chamberlain  <[email protected]>
2808
2809         * binary.c (binary_get_symtab): Return an empty string on error.
2810         * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
2811
2812 Thu Sep 28 15:30:44 1995  Kim Knuttila  <krk@nellie>
2813
2814         * coff-ppc.c: Reformatted according to gnu conventions
2815                       Removed irrelevant "if 0" code
2816
2817 Thu Sep 28 11:19:53 1995  Ian Lance Taylor  <[email protected]>
2818
2819         * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
2820         symbols rather than as indirect symbols.
2821         (MY(slurp_symbol_table)): Don't do anything special about
2822         secondary symbols.
2823
2824         * coffcode.h (coff_new_section_hook): Make sure that the alignment
2825         of .ctors and .dtors sections is no larger than 2.
2826
2827         * sunos.c (sunos_add_one_symbol): Don't change
2828         bfd_link_hash_common to bfd_link_hash_new, since it may be on the
2829         undef list.
2830         (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
2831         dynamic symbols when creating a shared library.
2832         (sunos_scan_ext_relocs): Handle relocs correctly when creating a
2833         shared library.
2834         (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
2835         written even if it is not defined in a regular object.
2836         (sunos_write_dynamic_symbol): Use plt_offset for the address of
2837         the jump table reloc.  Add an assertion.  Use RELOC_JMP_SLOT
2838         rather than the constant 22.
2839         (sunos_check_dynamic_reloc): Handle creating a shared library.
2840         (sunos_finish_dynamic_link): Set the first entry in the GOT to
2841         zero when creating a shared library.
2842         * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
2843         write it out at the start of the symbol table.
2844
2845         * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
2846
2847 Thu Sep 28 00:58:05 1995  Doug Evans  <[email protected]>
2848
2849         * config.bfd: Add arm-*-coff.
2850         * configure.in, configure: Add armcoff_{little,big}_vec.
2851         * targets.c (armcoff_{little,big}_vec): Declare.
2852         (bfd_target_vector): Add armcoff_{little,big}_vec.
2853         * coff-arm.c (armcoff_{little,big}_vec): Always define.
2854
2855 Wed Sep 27 10:37:14 1995  Ian Lance Taylor  <[email protected]>
2856
2857         * targets.c (bfd_find_target): Remove debugging code.
2858
2859 Wed Sep 27 07:23:39 1995  Kim Knuttila  <krk@nellie>
2860
2861         * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE 
2862         support on powerpc.
2863         * Makefile.in: added *-ppc files
2864         * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
2865         allow pe based .o's to be shared with other tools on ppc/NT
2866         * config.bfd: added powerpc[le]-[pe|winnt] config support
2867         * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec 
2868         * peicode.h: Added more section flags for PE on ppc
2869                      Added coff_swap_filehdr_out to allow peicode.h to be
2870                      used for non-image PE files on ppc.
2871                      Check for image, or not, before copying pe_opthdr
2872         * targets.c: Added new bfd's
2873         * targets.c: Removed two inactive bfds that shouldn't have made it this
2874                      far.
2875
2876 Tue Sep 26 14:06:41 1995  Michael Meissner  <[email protected]>
2877
2878         * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
2879         explicit values to initialize all relocs.  Change all users.
2880         (ppc_elf_brtaken_inner): New function to handle branch predicition
2881         relocs.
2882         (ppc_elf_brtaken_reloc): Ditto.
2883         (ppc_elf_howto_raw): Use new functions.  Make sure all unsupported
2884         relocs use ppc_elf_unsupported_reloc.
2885         (ppc_elf_merge_private_bfd_data): Keep track of whether an error
2886         needs to be reported.
2887         (ppc_elf_relocate_section): Support branch prediction relocs.
2888
2889 Tue Sep 26 12:48:05 1995  Ian Lance Taylor  <[email protected]>
2890
2891         * bfd.c (bfd_assert): Remove \n from string passed to
2892         _bfd_error_handler.
2893
2894         * coff-i386.c: (TWO_DATA_SECS): Don't define.
2895         * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
2896         (bfd_coff_make_section_hook): Don't define.
2897         (coff_make_section_hook): Remove.
2898         (sec_to_styp_flags): Remove TWO_DATA_SECS case.
2899         (styp_to_sec_flags): Likewise.
2900         (coff_write_object_contents): Likewise.
2901         (bfd_coff_std_swap_table): Don't initialize make_section_hook
2902         field.
2903         * libcoff.h: Rebuild.
2904         * coffgen.c (make_a_section_from_file): Just call
2905         bfd_make_section_anyway, not bfd_make_section or
2906         bfd_coff_make_section_hook.
2907         * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
2908         * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
2909         * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
2910         make_section_hook field.
2911         * coff-mips.c (mips_ecoff_backend_data): Likewise.
2912
2913         * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
2914         pointers into value field for warning and indirect symbols; just
2915         leave the value field alone.
2916         * linker.c (generic_link_add_symbol_list): Use next symbol for
2917         warning and indirect symbols, rather than looking in symbol value.
2918         * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
2919         parameter.  Change all callers.  Remove support for indirect
2920         symbols; it didn't work anyhow.
2921         (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
2922         * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
2923         * bfd-in2.h: Rebuild.
2924
2925 Mon Sep 25 16:04:09 1995  Michael Meissner  <[email protected]>
2926
2927         * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
2928         go back to telling the tools this reloc operates on 32 bits.
2929
2930 Mon Sep 25 11:48:02 1995  Ian Lance Taylor  <[email protected]>
2931
2932         * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
2933         rather than a direct fprintf.
2934         * archive.c (_bfd_write_archive_contents): Likewise.
2935         * coffcode.h (coff_slurp_symbol_table): Likewise.
2936         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
2937         (ppc_elf_unsupported_reloc): Likewise.
2938         (ppc_elf_relocate_section): Likewise.
2939         * i386linux.c (linux_tally_symbols): Likewise.
2940         (linux_finish_dynamic_link): Likewise.
2941         * osf-core.c (osf_core_core_file_p): Likewise.
2942         * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
2943         * som.c (som_sizeof_headers): Likewise.
2944         * srec.c (srec_bad_byte): Likewise.
2945         * bfd.c (bfd_assert): Likewise.  Also change file to be const.
2946         * libbfd-in.h (bfd_assert): Declare first parameter const.
2947         * libbfd.h: Rebuild.
2948         * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
2949         bfd_reloc_overflow is enough.
2950         * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
2951         * coff-h8500.c (rtype2howto): Likewise.
2952         * coff-z8k.c (rtype2howto): Likewise.
2953         * coffcode.h (dummy_reloc16_extra_cases): Likewise.
2954         * elf.c (_bfd_elf_get_lineno): Likewise.
2955         (_bfd_elf_no_info_to_howto): Likewise.
2956         (_bfd_elf_no_info_to_howto_rel): Likewise.
2957         * hp300hpux.c (convert_sym_type): Likewise.
2958         (MY(swap_std_reloc_in)): Likewise.
2959         * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
2960
2961         * libaout.h (struct aoutdata): Add line_buf field.
2962         * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
2963         and filename_buffer.  Instead, use a malloc buffer stored in the
2964         new line_buf field.  Remove length restrictions.
2965
2966         * coffgen.c (string_size): Remove static variable.
2967         (debug_string_size, debug_string_section): Likewise.
2968         (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
2969         and debug_string_size_p parameters.  Use them instead of the
2970         global variables.  Change all callers.
2971         (coff_write_symbol): Likewise.
2972         (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
2973         (coff_write_symbols): Add local variables to replace removed
2974         global variables.
2975
2976         * libcoff-in.h (struct coff_section_tdata): Add offset, i,
2977         function, and line_base fields.
2978         * libcoff.h: Rebuild.
2979         * coffgen.c (coff_find_nearest_line): Use section tdata to cache
2980         information, rather than using static variables.
2981
2982         * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
2983         file.  From Peter DeWolf <[email protected]>.
2984
2985         * init.c (initialized): Remove static variable.
2986         (bfd_init): Don't bother setting initialized.
2987         (bfd_check_init): Remove.
2988         * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
2989         * libbfd.h: Rebuild.
2990
2991 Sat Sep 23 01:22:23 1995  Peter Schauer  ([email protected])
2992
2993         * rs6000-core.c (rs6000coff_core_p):  Don't check the core file
2994         size for full core dumps. Copy core file header to private data.
2995         (rs6000coff_core_file_failing_command,
2996         rs6000coff_core_file_failing_signal):  New functions to extract
2997         the file name and terminating signal from the core file.
2998         * coff-rs6000.c:  Use them.
2999
3000 Fri Sep 22 17:44:47 1995  Ian Lance Taylor  <[email protected]>
3001
3002         Change arch info to be const, initialized at compile time.
3003         * archures.c: Reindent many functions.  Change CONST to const.
3004         (bfd_arch_info_type): Make arch_name const.  Remove disassemble;
3005         nothing set it anyhow.  Make next const.
3006         (bfd_arch_info_list): Remove.
3007         (bfd_archures_list): Rename from archures_init_table.  Change from
3008         a table of function pointers to a table of bfd_arch_info_type
3009         structure addresses.
3010         (bfd_scan_arch): Rewrite accordingly.  Return a const pointer.
3011         (bfd_lookup_arch): Likewise.
3012         (bfd_set_arch_info): Rewrite accordingly.  Change argument to be a
3013         const pointer.
3014         (bfd_default_arch_struct): Make const.
3015         (bfd_arch_init, bfd_arch_linkin): Remove.
3016         (bfd_get_arch_info): Return a const pointer.
3017         * init.c (bfd_init): Don't call bfd_arch_init.
3018         * bfd.c (struct _bfd): Make arch_info const.
3019         * bfd-in2.h: Rebuild.
3020         * libbfd.h: Rebuild.
3021         * configure.in: Put & before everything in $selarchs.
3022         * configure: Rebuild.
3023         * cpu-*.c: Change bfd_*_arch from a function which calls
3024         bfd_arch_linkin to a const structure.
3025         * ieee.c (ieee_object_p): Make arch const.
3026
3027 Fri Sep 22 16:23:18 1995  Michael Meissner  <[email protected]>
3028
3029         * reloc.c (bfd_reloc_code_type): Add relocations to support all of
3030         PowerPC V.4.
3031         * bfd-in2.h: Regenerate.
3032         * libbfd.h: Regenerate.
3033
3034         * elf32-ppc.c (reloc_type): Update names to match current draft.
3035         (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
3036         relative.  Update names to current V.4 draft.
3037         (ppc_elf_reloc_type_lookup): Add support for more relocations.
3038         (ppc_elf_relocate_section): Rename relocations to match draft.
3039
3040 Thu Sep 21 21:53:18 1995  Michael Meissner  <[email protected]>
3041
3042         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
3043         compiled with -mrelocatable-lib to be linked with either normal
3044         modules or -mrelocatable modules.
3045
3046 Wed Sep 20 12:03:26 1995  Ian Lance Taylor  <[email protected]>
3047
3048         * coffcode.h (coff_write_object_contents): Clear the vstamp field
3049         in the a.out header.
3050
3051         * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
3052         a reloc against a local symbol, even if it's not a section.
3053
3054 Tue Sep 19 17:02:26 1995  Ian Lance Taylor  <[email protected]>
3055
3056         * targets.c (bfd_target): Remove unused align_power_min field.
3057         * bfd-in2.h: Rebuild.
3058         * All backends: Remove initialization of align_power_min.
3059
3060 Tue Sep 19 14:02:21 1995  steve chamberlain  <[email protected]>
3061
3062         * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
3063
3064 Mon Sep 18 14:35:01 1995  Arne H. Juul  <[email protected]>
3065
3066         * config.bfd (mips-dec-netbsd*): New target.
3067         * configure.host (mips-dec-netbsd*): New host.
3068         * configure.in (mips-dec-netbsd*): New native.
3069         * configure: Rebuild.
3070
3071 Fri Sep 15 10:24:36 1995  Ian Lance Taylor  <[email protected]>
3072
3073         Make the COFF backend linker merge common types:
3074         * cofflink.c (struct coff_debug_merge_element): Define.
3075         (struct coff_debug_merge_type): Define.
3076         (struct coff_debug_merge_hash_entry): Define.
3077         (struct coff_debug_merge_hash_table): Define.
3078         (coff_debug_merge_hash_table_init): Define.
3079         (coff_debug_merge_hash_table_free): Define.
3080         (coff_debug_merge_hash_lookup): Define.
3081         (struct coff_final_link_info): Add debug_merge field.
3082         (coff_debug_merge_hash_newfunc): New static function.
3083         (_bfd_coff_final_link): Allocate and free debug_merge table.
3084         (coff_link_input_bfd): Merge identical enum, struct and union
3085         types.
3086
3087 Thu Sep 14 14:53:58 1995  Ian Lance Taylor  <[email protected]>
3088
3089         Convert i960 COFF to use COFF backend linker.
3090         * coff-i960.c (coff_i960_relocate): Use a coff_section_data
3091         structure to store the symbol being used.
3092         (coff_i960_start_final_link): New static function.
3093         (coff_i960_relocate_section): New static function.
3094         (coff_i960_adjust_symndx): New static function.
3095         (coff_start_final_link): Define.
3096         (coff_relocate_section): Define.
3097         (coff_adjust_symndx): Define.
3098         * coffcode.h (bfd_coff_backend_data): Add new callback function
3099         _bfd_coff_start_final_link.
3100         (bfd_coff_start_final_link): Define.
3101         (coff_start_final_link): Define if not defined.
3102         (bfd_coff_std_swap_table): Add coff_start_final_link.
3103         * cofflink.c (_bfd_coff_internal_syment_name): Make globally
3104         visible.
3105         (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
3106         function callback is not NULL.
3107         * libcoff-in.h (struct coff_section_tdata): Add tdata field.
3108         (_bfd_coff_internal_syment_name): Declare.
3109         * libcoff.h: Rebuild.
3110         * configure.in (icoff_big_vec): Add cofflink.o.
3111         (icoff_little_vec): Likewise.
3112         * configure: Rebuild.
3113
3114 Wed Sep 13 17:38:23 1995  Fred Fish  <[email protected]>
3115
3116         * Makefile.in (clean-info): Remove extraneous tab from line
3117         following action.
3118
3119 Wed Sep 13 13:27:53 1995  Ian Lance Taylor  <[email protected]>
3120
3121         * cofflink.c (coff_link_input_bfd): Fail if a section with no
3122         contents has relocs.
3123
3124 Thu Sep 12 12:45:34 1995  steve chamberlain  <[email protected]>
3125
3126         * coffcode.h (coff_compute_section_file_positions): Keep the
3127         raw size safe. 
3128         (coff_write_object_contents): Remember if it's a relocatable
3129         file.
3130         * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
3131         * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
3132         if relocatable file. Swap out saved raw size.
3133
3134 Tue Sep 12 12:14:33 1995  Ian Lance Taylor  <[email protected]>
3135
3136         * Makefile.in (do_maintainer_clean): Rename from do_realclean.
3137         (maintainer-clean): Rename from realclean, passing
3138         maintainer-clean down to subdirectories, but leave realclean as a
3139         synonym.
3140
3141         * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
3142         warning callback.
3143
3144         * dep-in.sed: Remove config.h from generated dependencies.
3145
3146         * sunos.c (sunos_slurp_dynamic_symtab): New static function,
3147         broken out of sunos_canonicalize_dynamic_symtab.
3148         (sunos_canonicalize_dynamic_symtab): Call new function
3149         sunos_slurp_dynamic_symtab.
3150         (sunos_add_dynamic_symbols): Add three new parameters.  Return the
3151         dynamic symbol table to the caller.
3152         * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
3153         callback to override the symbols being read.
3154         * libaout.h (struct aout_backend_data): Add three new parameters
3155         to add_dynamic_symbols callback.
3156
3157         Extensive minor changes to avoid various gcc warnings.  Also:
3158         * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
3159         * archures.c (bfd_arch_info_type): Change mach field from long to
3160         unsigned long.
3161         (bfd_lookup_arch): Change machine parameter from long to unsigned
3162         long.
3163
3164 Mon Sep 11 10:55:47 1995  Ian Lance Taylor  <[email protected]>
3165
3166         * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
3167         a symbol with a non-zero plt_offset.
3168
3169 Fri Sep  8 11:47:24 1995  Ian Lance Taylor  <[email protected]>
3170
3171         * elfcode.h (align_file_position): Remove; not used.
3172
3173         * configure.in: Only check for <sys/procfs.h> on a native system,
3174         and make sure it defines prstatus_t.
3175         * configure: Rebuild.
3176
3177 Thu Sep  7 12:48:01 1995  Ian Lance Taylor  <[email protected]>
3178
3179         * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
3180
3181         * config.in: Rename from config.h.in.
3182         * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
3183         Check for config.h:config.in when creating stamp-h.
3184         * configure: Rebuild.
3185         * Makefile.in (stamp-h): Depend upon config.in rather than
3186         config.h.in.  Set CONFIG_HEADERS to config.h:config.in when
3187         calling config.status.
3188
3189         * Makefile.in (do_distclean): Remove config.h and stamp-h.
3190         (Makefile): Just rebuild Makefile.
3191         (config.h, stamp-h): New targets.
3192         * configure.in: Create stamp-h when rebuilding config.h.
3193         * configure: Rebuild.
3194
3195 Wed Sep  6 15:00:33 1995  Ian Lance Taylor  <[email protected]>
3196
3197         * configure.in: Call AC_CONFIG_HEADER.  Substitute
3198         HOST_64BIT_LONG.  Check that various header files exist.  Check
3199         that fcntl exists.  Call BFD_BINARY_FOPEN.  Check whether malloc
3200         and/or free need to be declared.  Don't make a link to sysdep.h.
3201         Define TRAD_HEADER for various hosts.
3202         * configure: Rebuild.
3203         * configure.host: Don't set my_host.  Add definitions taken from
3204         host header files for various entries.  Remove entries which now
3205         do nothing.
3206         * acconfig.h: New file.
3207         * config.h.in: New file, built by autoheader.
3208         * sysdep.h: New file.
3209         * Makefile.in (do_distclean): Don't remove sysdep.h.
3210         (RECONFIG): Remove.
3211         (LOCAL_H_DEPS): New variable.
3212         ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
3213         $(RECONFIG).
3214         ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
3215         ($(OPTIONAL_BACKENDS)): Likewise.
3216         (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
3217         looking through sysdep.h.
3218         * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
3219         (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
3220         (fprintf_vma, sprintf_vma): Likewise.
3221         (int64_type, uint64_type): Don't define.
3222         * bfd-in2.h: Rebuild.
3223         * archures.c, bfd.c, srec.c: Include <ctype.h>.
3224         * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
3225         * lynx-core.c: Include stuff from old hosts/lynx.h.
3226         * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
3227         rather than NO_FCNTL.
3228         * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
3229         rather than NATIVE_HPPAHPUX_COMPILER.
3230         * trad-core.c: Don't include <errno.h>.  Include TRAD_HEADER if it
3231         is defined.
3232         * hosts/*.h: Remove all header files which merely include,
3233         declare, and define things.  Leave header files which define
3234         information needed by trad-core.c.
3235
3236         * aclocal.m4 (BFD_BINARY_FOPEN): Define.
3237         (BFD_CC_FOR_BUILD): Define.
3238         * configure.in: Use BFD_CC_FOR_BUILD.
3239         * configure: Rebuild.
3240
3241 Tue Sep  5 19:35:28 1995  Ian Lance Taylor  <[email protected]>
3242
3243         * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
3244         * configure: Rebuild.
3245
3246         * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
3247         a global symbol.
3248
3249 Tue Sep  5 12:48:26 1995  Jason Molenda   ([email protected])
3250
3251         * config.bfd: i386pe_ve -> i386pe_vec.
3252
3253 Mon Sep  4 14:02:43 1995  Ian Lance Taylor  <[email protected]>
3254
3255         * configure.host: Incorporate host Makefile fragments by setting
3256         shell variables.
3257         * configure.in: Call AC_PROG_CC.  Substitute CFLAGS, HDEFINES and
3258         AR.  Call AC_PROG_INSTALL.  Substitute CC_FOR_BUILD, choosing a
3259         value based on whether the code is being compiled by a cross
3260         compiler.  Don't substitute host_makefile_frag or frags.
3261         * aclocal.m4: New file to define local AC_PROG_CC.
3262         * configure: Rebuild.
3263         * Makefile.in (INSTALL): Set to @INSTALL@.
3264         (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
3265         (INSTALL_DATA): Set to @INSTALL_DATA@.
3266         (AR): Set to @AR@.
3267         (CC): Define as @CC@.
3268         (CFLAGS): Set to @CFLAGS@.
3269         (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
3270         (@host_makefile_frag@): Remove.
3271         (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@.  Move $(CFLAGS)
3272         after other options.
3273         (config.status): Remove dependency upon @frags@.
3274         * config/*.mh, config/README: Remove.
3275
3276         * config.bfd: Rewrite to incorporate the contents of the Makefile
3277         fragments by setting shell variables, rather than merely returning
3278         the name of a Makefile fragment.
3279         * configure.in: Use shell variables set by config.bfd rather than
3280         looking at the target Makefile fragment files.  Don't substitute
3281         target_makefile_frag.  Do substitute TDEFINES.
3282         * configure: Rebuild.
3283         * Makefile.in (@target_makefile_frag@): Remove.
3284         (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
3285         * config/*.mt: Remove.
3286
3287 Mon Sep  4 03:13:28 1995  Ken Raeburn  <[email protected]>
3288
3289         * configure.in: Put changequote lines around "i[345]86" patterns
3290         section of core file support.
3291
3292 Sun Sep  3 11:31:58 1995  Jeff Law  ([email protected])
3293
3294         * som.c (som_bfd_print_private_bfd_data): Define to use the
3295         generic version.
3296
3297 Fri Sep  1 17:08:40 1995  steve chamberlain  <[email protected]>
3298
3299         * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
3300         entry, text_start and data_start.
3301
3302 Fri Sep  1 18:06:28 1995  Ian Lance Taylor  <[email protected]>
3303
3304         * Makefile.in (OFILES): Remove $(TDEPFILES).
3305         * config/apollo.mt (TDEPFILES): Remove.
3306         * config/README: Update.
3307
3308         * configure.in: For a native configuration, set COREFILE and
3309         COREFLAG based on the canonical host name.
3310         * configure: Rebuild.
3311         * Makefile.in: Rebuild dependencies.
3312         (ALL_CFLAGS): Add @COREFLAG@.
3313         (OFILES): Replace $(HDEPFILES) with @COREFILE@.
3314         * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
3315         support routines.  Check LYNX_CORE rather than HOST_LYNX.
3316         * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
3317         * i386lynx.c: Likewise.
3318         * m68klynx.c: Likewise.
3319         * sparclynx.c: Likewise.
3320         * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
3321         * *-core.c: Comment changes.
3322         * config/decstation.mh (HDEPFILES): Remove.
3323         (HDEFINES): Remove -DTRAD_CORE.
3324         * config/irix3.mh (RANLIB): Remove.
3325         * config/irix4.mh (HDEPFILES, RANLIB): Remove.
3326         (HDEFINES): Remove -DIRIX_CORE.
3327         * config/riscos.mh (RANLIB, HDEPFILES): Remove.
3328         (HDEFINES): Remove -DTRAD_CORE.
3329         * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
3330         * config/ultra3.mh (RANLIB): Remove.
3331         * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
3332         * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
3333         * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
3334         * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
3335         * config/hppahpux.mh, config/hppaosf.mh: Remove.
3336         * config/i386aix.mh, config/i386bsd.mh: Remove.
3337         * config/i386linux.mh, config/i386mach3.mh: Remove.
3338         * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
3339         * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
3340         * config/mipsmach3.mh, config/news-mips.mh: Remove.
3341         * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
3342         * config/rs600.mh, config/rs6000lynx.mh: Remove.
3343         * config/solaris2.mh, config/stratus.mh: Remove.
3344         * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
3345         * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
3346
3347 Fri Sep  1 15:18:50 1995  Kazumoto Kojima  <[email protected]>
3348
3349         * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
3350         DT_FINI entry if the appropriate symbol is not in the hash table.
3351
3352         * libelf.h (struct elf_backend_data): Add create_program_headers
3353         and want_hdr_in_seg fields.
3354         * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
3355         defined.
3356         (elf_backend_create_program_headers): Likewise.
3357         (elfNN_bed): Initialize create_program_headers and
3358         want_hdr_in_seg.
3359         * elf.c (get_program_header_size): Call create_program_headers
3360         backend routine.
3361         (map_program_segments): Check want_hdr_in_seg backend field.  Call
3362         create_program_headers backend routine.
3363
3364         * elf.c (assign_file_positions_except_relocs): Align non allocated
3365         sections when creating an executable.
3366
3367         * elfcode.h (elf_swap_phdr_in): Make non static.
3368         (elf_swap_phdr_out): Make non static.
3369         * libelf.h (bfd_elf32_swap_phdr_in): Declare.
3370         (bfd_elf32_swap_phdr_out): Declare.
3371         (bfd_elf64_swap_phdr_in): Declare.
3372         (bfd_elf64_swap_phdr_out): Declare.
3373
3374         * ecofflink.c (ecoff_collect_shuffle): New static function.
3375         (_bfd_ecoff_get_accumulated_pdr): New function.
3376         (_bfd_ecoff_get_accumulated_sym): New function.
3377         (_bfd_ecoff_get_accumulated_ss): New function.
3378         * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
3379         (_bfd_ecoff_get_accumulated_sym): Declare.
3380         (_bfd_ecoff_get_accumulated_ss): Declare.
3381         * libbfd.h: Rebuild.
3382
3383 Fri Sep  1 13:20:25 1995  Ian Lance Taylor  <[email protected]>
3384
3385         * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
3386
3387         * elflink.h (elf_link_add_object_symbols): Handle indirect and
3388         warning symbols.  If any section is named .gnu.warning.XXX, treat
3389         the contents as a warning to be issued if the symbol XXX is
3390         referenced.
3391         (elf_link_output_extsym): For an indirect or warning symbol, just
3392         output the symbol it points to.
3393
3394         * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
3395         if bfd_hash_allocate fails, since it will already be set.
3396         (generic_link_hash_newfunc): Likewise.
3397         (archive_hash_newfunc): Likewise.
3398         (hash_entry_bfd): New static function.
3399         (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
3400         callback.  Allocate a new warning using the hash table newfunc.
3401         Use bfd_hash_replace to update the entry in the hash table, rather
3402         than assuming we can copy the fields with structure assignment.
3403
3404         * hash.c (bfd_hash_replace): New function.
3405         * bfd-in.h (bfd_hash_replace): Declare.
3406         * bfd-in2.h: Rebuild.
3407
3408 Fri Sep  1 08:12:50 1995  James G. Smith  <[email protected]>
3409
3410         * config.bfd: Add mips*vr4300-*-elf* target.
3411         * config/mipsbvr4300.mt: Added.
3412
3413 See file ChangeLog.2
3414
3415 \f
3416 Local Variables:
3417 mode: indented-text
3418 left-margin: 8
3419 fill-column: 74
3420 version-control: never
3421 End:
This page took 0.219994 seconds and 4 git commands to generate.