]> Git Repo - binutils.git/blob - bfd/ChangeLog
Fri Mar 7 11:55:31 1997 H.J. Lu <[email protected]>
[binutils.git] / bfd / ChangeLog
1 Fri Mar  7 11:55:31 1997  H.J. Lu  <[email protected]>
2
3         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Fully parenthesize.
4
5 Fri Mar  7 10:37:30 1997  Ian Lance Taylor  <[email protected]>
6
7         * xcofflink.c (_bfd_xcoff_bfd_final_link): Always allocate space
8         for at least 6 output symbols.
9         (xcoff_write_global_symbol): When emitting TOC entry relocs, also
10         emit a TC csect to represent the space they take up.  For an XO
11         symbol, just emit a reference, not a csect.
12
13         * Makefile.in ($(SHLINK)): Just use ln -s, not ln -sf, since
14         Solaris doesn't like the combined options, and the -f is
15         unnecessary.
16         (stamp-tshlink, install): Likewise.
17
18         * elf32-mips.c (mips_elf_relocate_section): Correct R_MIPS16_26
19         handling when little endian.
20
21 Thu Mar  6 13:51:51 1997  Jeffrey A Law  ([email protected])
22
23         * elf32-mn10300.c (mn10300_elf_final_link_relocate): New function.
24         (mn10300_elf_relocate_section): Likewise.
25         (elf_backend_relocate_section): Define.
26
27         * elf32-mn10300.c (reloc_type): Remove PCREL{8,16,32}_{1,2}BYTE
28         relocs.  Replace them with generic PCREL_{8,16,32} relocs.
29         (elf32_mn10300_howto_table): Likewise.
30         (elf32_mn10300_reloc_map): Likewise.
31         (bfd_elf32_mn10300_reloc): Delete unused function.
32
33 Thu Mar  6 12:19:59 1997  Fred Fish  <[email protected]>
34
35 start-sanitize-tic80
36         * coff-tic80.c (rtype2howto): If passed a relocation type we don't
37         understand, just set the howto field to NULL, and the caller will
38         print an appropriate error message.
39 end-sanitize-tic80
40         * coffcode.h (coff_slurp_reloc_table): Pull duplicate declarations and
41         code fragment out of both legs of #ifdef RELOC_PROCESSING ... #endif
42         block.  Use NULL for initializations of "ptr" rather than bare 0.
43         * coff-h8300.c: Fix typo in comment.
44         * coff-h8500.c: Ditto.
45         * coff-w65.c: Ditto
46         * coff-z8k.c: Ditto.
47         
48 start-sanitize-m32r
49 Wed Mar  5 13:59:09 1997  Doug Evans  <[email protected]>
50
51         * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc): Fix overflow calc.
52         (m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
53         m32r_elf_get_relocated_section_contents): First pass at relax support.
54
55 end-sanitize-m32r
56 Mon Mar  3 13:27:09 1997  Ulrich Drepper  <[email protected]>
57
58         * elflink.h (elf_link_add_object_symbols): Use correct sh_size
59         entry for reading verdef records.
60         Use correct braces for computing increments of extverdaux and
61         exteverdef record pointers.
62
63 start-sanitize-tic80
64 Sun Mar  2 22:47:54 1997  Fred Fish  <[email protected]>
65
66         * coff-tic80.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set this to 2
67         instead of 4.
68
69 end-sanitize-tic80
70 Sun Mar  2 16:25:35 1997  Ian Lance Taylor  <[email protected]>
71
72         * elflink.h (elf_link_find_version_dependencies): Check that
73         DEF_REGULAR is not set as well as checking that DEF_DYNAMIC is
74         set.
75
76 start-sanitize-tic80
77 Fri Feb 28 16:52:40 1997  Fred Fish  <[email protected]>
78
79         * coffcode.h (coff_set_flags): Add case for TIC80_ARCH_MAGIC.
80
81 end-sanitize-tic80
82 Fri Feb 28 15:06:45 1997  Ian Lance Taylor  <[email protected]>
83
84         * targets.c (bfd_default_vector): Make non-const.
85         (find_target): New static function, broken out of
86         bfd_find_target.
87         (bfd_set_default_target): New function.
88         (bfd_find_target): Call find_target.  When defaulting, use
89         bfd_default_vector[0] if it is not NULL.
90         * libbfd-in.h (bfd_default_vector): Adjust declaration.
91         * bfd-in2.h, libbfd.h: Rebuild.
92
93         * syms.c (bfd_is_local_label): Return false if the symbol has no
94         name.
95         * coff-i960.c (coff_i960_is_local_label_name): New function.
96         (coff_bfd_is_local_label_name): Define.
97         * coff-m68k.c (m68k_coff_is_local_label_name): New function.
98         (coff_bfd_is_local_label_name): Define.
99         * coff-rs6000.c (xcoff_is_local_label_name): New function.
100         (coff_bfd_is_local_label_name): Define.
101         * elf.c (_bfd_elf_is_local_label_name): Treat symbols beginning
102         with .. or _.L_ as local.
103         * elf32-i386.c (elf_i386_is_local_label_name): New function.
104         (bfd_elf32_bfd_is_local_label_name): Define.
105         * evax-alpha.c (evax_bfd_is_local_label_name): Treat symbols
106         beginning with $ as local.
107
108 Thu Feb 27 18:36:23 1997  Ian Lance Taylor  <[email protected]>
109
110         * aoutx.h (aout_link_write_symbols): Use bfd_is_local_label_name
111         rather than comparing against info->lprefix.
112         * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
113         * elflink.h (elf_link_input_bfd): Likewise.
114         * linker.c (_bfd_generic_link_output_symbols): Likewise.
115         * xcofflink.c (xcoff_link_input_bfd): Likewise.
116
117         * elfxx-target.h (bfd_elfNN_bfd_is_local_label_name): Define as
118         _bfd_elf_is_local_label_name if not already defined.
119         * elf.c (_bfd_elf_is_local_label_name): New function.
120         * elf-bfd.h (_bfd_elf_is_local_label_name): Declare.
121
122         * coff-m88k.c (coff_bfd_is_local_label_name): Define.
123         (m88k_is_local_label_name): New static function.
124
125         * coffcode.h (coff_bfd_is_local_label_name): Define as
126         _bfd_coff_is_local_label_name if not already defined.
127         * coffgen.c (_bfd_coff_is_local_label_name): New function.
128         * libcoff-in.h (_bfd_coff_is_local_label_name): Declare.
129         * libcoff.h: Rebuild.
130         
131         * targets.c (BFD_JUMP_TABLE_SYMBOLS): Change _bfd_is_local_label
132         to _bfd_is_local_label_name.
133         (bfd_target): Likewise.
134         * syms.c (bfd_is_local_label): Define as function, not macro.
135         (bfd_is_local_name): Define.
136         * libbfd.c (bfd_generic_is_local_label_name): Rename from
137         bfd_generic_is_local_label, and take a string rather than a
138         symbol.
139         * libbfd-in.h (_bfd_nosymbols_bfd_is_local_label): Don't define.
140         (_bfd_nosymbols_bfd_is_local_label_name): Define.
141         (bfd_generic_is_local_label): Don't declare.
142         (bfd_generic_is_local_label_name): Declare.
143         * bfd-in2.h, libbfd.h: Rebuild.
144         * All backends: Change local_label to local_label_name.
145
146         * elf32-mips.c (struct mips_got_info): Add assigned_gotno field.
147         (mips_elf_relocate_got_local): Change return type to boolean.
148         Don't assume that the first zero entry is unassigned; instead, use
149         assigned_gotno.
150         (mips_elf_relocate_section): Check return value of
151         mips_elf_relocate_got_local.
152         (mips_elf_create_got_section): Initialize assigned_gotno field.
153
154 start-sanitize-d30v
155 Wed Feb 26 15:19:51 1997  Martin M. Hunt  <[email protected]>
156
157         * elf32-d30v.c (bfd_elf_d30v_reloc): Add code to do 32-bit
158         relocations.
159
160 end-sanitize-d30v       
161 Wed Feb 26 13:33:03 1997  Ian Lance Taylor  <[email protected]>
162
163         * elflink.h (elf_link_input_bfd): Don't skip symbols from sections
164         that have no contents merely because linker_mark is not set.
165
166 Tue Feb 25 18:51:35 1997  Stan Shebs  <[email protected]>
167
168         * config.bfd (mips*-*-lnews*): New target.
169         * coff-mips.c (mips_relocate_section): Make assert compare
170         content byteorder instead of header byteorder.
171         (ecoff_biglittle_vec): New BFD, big-endian headers, little-endian
172         data.
173         * targets.c (bfd_target_vector): Add ecoff_biglittle_vec.
174         * configure.in (ecoff_biglittle_vec): Add case.
175         * configure: Update.
176
177 Tue Feb 25 00:32:49 1997  Ian Lance Taylor  <[email protected]>
178
179         * elf.c (elf_fake_sections): Use SHT_NOTE for any section whose
180         name begins with ".note".
181         (map_sections_to_segments): Add a PT_NOTE segment for any loadable
182         section whose name begins with ".note".
183         (get_program_header_size): Corresponding change.
184
185         * elf32-mips.c (mips_elf_relocate_section): Check for misaligned
186         jal and for jal overflow.
187
188 Mon Feb 24 17:53:14 1997  Ian Lance Taylor  <[email protected]>
189
190         From Eric Youngdale <[email protected]>:
191         * elflink.h (elf_link_add_archive_symbols): If a default symbol is
192         not found, try looking it up again without the version name.
193         (elf_link_add_object_symbols): Always link against the dynamic
194         symbol table of a dynamic object.  When linking against a dynamic
195         object, include version strings in symbol names, and set up
196         version information.  Add indirect symbols for default versions.
197         (elf_link_create_dynamic_sections): Add special version sections.
198         (struct elf_assign_sym_version_info): Define.
199         (struct elf_find_verdep_info): Define.
200         (NAME(bfd_elf,size_dynamic_sections)): Add verdefs parameter.  Set
201         up version sections.
202         (elf_adjust_dynamic_symbol): Ignore indirect symbols.
203         (elf_link_find_version_dependencies): New static function.
204         (elf_link_assign_sym_version): New static function.
205         (elf_link_renumber_dynsyms): New static function.
206         (struct elf_final_link_info): Add symver_sec field.
207         (elf_bfd_final_link): Initialize finfo.symver_sec.  Don't count
208         local symbols of a dynamic object.  Handle DT_VER* constants.
209         (elf_link_output_extsym): Simplify BFD_ASSERT checking for a
210         dynamic object.  Skip indirect symbols from ELF objects.  Remove
211         the version name before choosing a hash bucket.  Write out the
212         version information if appropriate.
213         (elf_link_input_bfd): Check for DYNAMIC, not ET_DYN.
214         * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
215         (bfd_elf64_size_dynamic_sections): Likewise.
216         * bfd-in2.h: Rebuild.
217         * elf-bfd.h (struct elf_link_hash_entry): Add verinfo field.
218         Change elf_link_hash_flags to unsigned short.
219         (ELF_LINK_HIDDEN): Define.
220         (struct elf_obj_tdata): Add fields dynversym_hdr, dynverref_hdr,
221         dynverdef_hdr, dynversym_section, dynverdef_section,
222         dynverref_section, cverdefs, cverrefs, verdef, verref.
223         (elf_dynversym, elf_dynverdef, elf_dynverref): Define.
224         (_bfd_elf_swap_verdef_in, _bfd_elf_swap_verdef_out): Declare.
225         (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Declare.
226         (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Declare.
227         (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Declare.
228         (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Declare.
229         (_bfd_elf_slurp_version_tables): Declare.
230         * elf.c (_bfd_elf_swap_verdef_in): New function.
231         (_bfd_elf_swap_verdef_out): Likewise.
232         (_bfd_elf_swap_verdaux_in, _bfd_elf_swap_verdaux_out): Likewise.
233         (_bfd_elf_swap_verneed_in, _bfd_elf_swap_verneed_out): Likewise.
234         (_bfd_elf_swap_vernaux_in, _bfd_elf_swap_vernaux_out): Likewise.
235         (_bfd_elf_swap_versym_in, _bfd_elf_swap_versym_out): Likewise.
236         (_bfd_elf_print_private_bfd_data): Add DT_VER* constants.  Print
237         version information if there is any.
238         (_bfd_elf_link_hash_newfunc): Initialize verinfo field.
239         (bfd_section_from_shdr): Handle SHT_GNU_ver* section types.
240         (elf_fake_sections): Handle .gnu.version* section names.
241         (assign_section_numbers): Handle SHT_GNU_ver* section types.
242         (_bfd_elf_slurp_version_tables): New function.
243         * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't include
244         version name in string entered in dynamic hash table.
245         * elfcode.h: Include fnmatch.h.
246         * elf32-i386.c (elf_i386_relocate_section): Handle a dynamic
247         symbol which was forced to become local.
248         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
249         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
250         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
251         * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
252
253 Fri Feb 21 16:15:18 1997  Jeffrey A Law  ([email protected])
254
255         * elf32-mn10200.c (mn10200_elf_final_link_relocate): Simplify
256         somewhat.
257         (mn10200_elf_relax_section): Correctly compute a symbol's value
258         when the symbol is local, but not in the same section as we are
259         relaxing.  Implement abs24 -> abs16, imm24 -> imm16 and d24 -> d16
260         relaxing.
261
262 start-sanitize-m32r
263 Fri Feb 21 13:55:14 1997  Doug Evans  <[email protected]>
264
265         * elf32-m32r.c: Rewrite to use ELF backend linker.
266         Store lower 16 bits of addend in R_M32R_HI16_[SU]LO insns.
267         Add small data area support (R_M32R_SDA16).
268         * reloc.c: Document BFD_RELOC_M32R_SDA16.
269         * bfd-in2.h,libbfd.h: Regenerated.
270
271 end-sanitize-m32r
272 Thu Feb 20 23:50:31 1997  Jeffrey A Law  ([email protected])
273
274         * elf32-mn10200.c (mn10200_elf_relax_section): New function.
275         (mn10200_elf_relax_delete_bytes): Likewise.
276         (mn10200_elf_symbol_address_p): Likewise.
277         (mn10200_elf_get_relocated_section_contents): Likewise.
278         (bfd_elf32_bfd_relax_section): Define.
279         (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
280
281         * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function.
282         (mn10200_elf_relocate_section): Likewise.
283         (elf_backend_relocate_section): Define.
284
285 start-sanitize-d30v
286 Tue Feb 18 17:22:59 1997  Martin M. Hunt  <[email protected]>
287
288         * Makefile.in, archures.c, config.bfd, configure.in, elf.c,
289         reloc.c, targets.c: New target, elf-*-D30V. 
290
291         * bfd-in2.h, configure, libbfd.h: Rebuilt.
292
293         * cpu-d30v.c, elf32-d30v.c: New files.
294         
295 end-sanitize-d30v       
296 Tue Feb 18 15:31:48 1997  Fred Fish  <[email protected]>
297
298         * reloc.c (struct reloc_howto_struct): Fix typo in comment.
299         * bfd-in2.h: Regenerated.
300 start-sanitize-tic80
301         * coff-tic80.c (RTYPE2HOWTO): Replace abort with real function.
302         (rtype2howto): Add function.
303         (tic80_howto_table): Add.
304 end-sanitize-tic80
305         
306 Tue Feb 18 11:41:00 1996  Dawn Perchik  <[email protected]>
307
308         * sysdep.h: Don't define errno in MSVC if error.h is included.
309
310 start-sanitize-v850
311 Tue Feb 18 10:04:13 1997  Jeffrey A Law  ([email protected])
312
313         * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx
314         is initialized before it is used.
315
316 end-sanitize-v850
317 Mon Feb 17 11:28:40 1997  Ian Lance Taylor  <[email protected]>
318
319         * hp300hpux.c (convert_sym_type): Don't convert a secondary common
320         symbol into a weak undefined symbol; leave it as a common symbol.
321
322 Fri Feb 14 19:08:03 1997  Ian Lance Taylor  <[email protected]>
323
324         * elflink.h (elf_link_add_object_symbols): Don't issue a warning
325         about a symbol defined in a dynamic object if it has already been
326         defined in a regular object.
327
328 Thu Feb 13 20:53:22 1997  Klaus Kaempf  ([email protected])
329
330         * makefile.vms: Add gcc flags to allow compiling with current gcc
331         snapshot
332         (targmatch.h): New dependency.
333
334         * reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for
335         openVMS/Alpha.
336         * evax.h (ALPHA_R_CODEADDR): New relocation.
337         * evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for
338         openVMS/Alpha.
339         * evax-etir.c (ALPHA_R_CODEADDR): Output object code for this
340         relocation.
341         * bfd-in2.h, libbfd.h: Rebuild.
342
343         Restrict symbol length to 64 bytes, case preserving:
344         * evax-emh.c (_bfd_evax_write_emh): Remove case hacking.
345         * evax-misc.c (_bfd_evax_case_hack_symbol): Remove.
346         (_bfd_evax_length_hash_symbol): Added.
347         * evax-etir.c (_bfd_evax_write_etir): Call
348         _bfd_evax_length_hash_symbol before output of symbol.
349         * evax-egsd.c (_bfd_evax_write_egsd): Likewise.
350         * evax.h (flag_hash_long_names, flag_show_after_trunc): Remove.
351
352         * evax-emh.c: Output filename to object file without path.
353
354         * evax-egsd.c: New sections for local and global commons.
355
356         * evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c,
357         evax-misc.c, evax.h: Remove 8 bit characters from copyright
358         notices.  Replace AXP with Alpha.
359
360 Wed Feb 12 18:10:30 1997  Ian Lance Taylor  <[email protected]>
361
362         * sunos.c (sunos_create_dynamic_sections): We need the dynamic
363         sections if we are creating a shared library.
364
365 Tue Feb 11 15:45:43 1997  Doug Evans  <[email protected]>
366
367         * configure.host (i386-windows): Don't set host64=true.
368
369 Tue Feb 11 15:27:32 1997  Ian Lance Taylor  <[email protected]>
370
371         * elf32-mips.c (reloc_type): Add R_MIPS16_GPREL.
372         (elf_mips16_gprel_howto): New static variable.
373         (mips16_gprel_reloc): New static function.
374         (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_GPREL.
375         (mips_info_to_howto_rel): Handle R_MIPS16_GPREL.
376         (mips_elf_relocate_section): Handle R_MIPS16_GPREL.
377         * reloc.c (BFD_RELOC_MIPS16_GPREL): Define.
378         * bfd-in2.h, libbfd.h: Rebuild.
379
380 start-sanitize-m32r
381 Mon Feb 10 23:25:00 1997  Doug Evans  <[email protected]>
382
383         * elf32-m32r.c (elf_m32r_howto_table): Change partial_inplace to true
384         for R_M32R_{16,32,24,HI16_ULO,HI16_SLO,LO16}.
385
386 end-sanitize-m32r
387 start-sanitize-r5900
388         Fri Feb  7 16:20:17 1997  Gavin Koch   <[email protected]>
389         
390         * config.bfd: add r5900
391         
392 end-sanitize-r5900        
393 Fri Feb  7 12:39:11 1997  Ian Lance Taylor  <[email protected]>
394
395         * elflink.h (elf_link_input_bfd): If we've discarded a section,
396         the output section will be the absolute section; don't print an
397         assertion message for that case when doing a relocateable link.
398
399 Thu Feb  6 16:55:43 1997  Ian Lance Taylor  <[email protected]>
400
401         * elf32-mips.c (FN_STUB, CALL_STUB, CALL_FP_STUB): Define.
402         (struct mips_elf_link_hash_entry): Add new fields fn_stub,
403         need_fn_sub, call_stub, and call_fp_stub.
404         (struct mips_elf_link_hash_table): Add field mips16_stubs_seen.
405         (mips_elf_link_hash_newfunc): Initialize new fields.
406         (mips_elf_link_hash_table_create): Likewise.
407         (mips_elf_relocate_section): Redirect relocations to use mips16
408         stubs when appropriate.
409         (mips_elf_check_relocs): Attach stub sections to the appropriate
410         symbol.  Set need_fn_stub when appropriate.
411         (mips_elf_always_size_sections): New static function.
412         (mips_elf_check_mips16_stubs): New static function.
413         (elf_backend_always_size_sections): Define.
414         * elf-bfd.h (struct elf_obj_tdata): Add local_stubs field.
415
416         * elflink.h (elf_link_input_bfd): Discard local symbols that are
417         attached to sections which are not being included in the link.
418
419 Wed Feb  5 13:20:17 1997  Ian Lance Taylor  <[email protected]>
420
421         * cofflink.c (_bfd_coff_generic_relocate_section): Ignore the
422         symbol value when computing the addend for a pc_relative
423         pcrel_offset reloc.
424
425 Mon Feb  3 11:54:06 1997  Ian Lance Taylor  <[email protected]>
426
427         * cofflink.c (_bfd_coff_generic_relocate_section): If doing a
428         relocateable link, just skip pc_relative pcrel_offset relocs.
429         * coff-arm.c (coff_arm_rtype_to_howto): Return a different howto
430         structure for an ARM26 reloc which can be resolved.
431         (coff_arm_adjust_symndx): Only convert ARM26 to ARM26D if the
432         reloc can be resolved.
433
434         * coff-h8300.c (h8300_reloc16_extra_cases): Correct off by one
435         error in overflow check for R_RELBYTE.
436
437 Fri Jan 31 14:07:27 1997  Ian Lance Taylor  <[email protected]>
438
439         * ieee.c (ieee_slurp_section_data): Pick up the start address.
440         From Mark Rasin <[email protected]>.
441
442         * aoutx.h (aout_link_write_symbols): Don't apply discard_l to
443         debugging symbols.
444
445 Wed Jan 29 00:00:49 1997  Jeffrey A Law  ([email protected])
446
447         * elf32-mn10200.c (reloc_type): Add 16bit pc-relative reloc.
448         (elf_mn10200_howto_table): Likewise.
449         (mn10200_reloc_map): Likewise.
450
451 start-sanitize-m32r
452 Mon Jan 27 12:07:35 1997  Doug Evans  <[email protected]>
453
454         * reloc.c: Add relocs BFD_RELOC_M32R_{HI16_[US]LO,LO16}.
455         * bfd-in2.h, libbfd.h: Regenerated.
456         * elf32-m32r.c: Add support for them.
457
458 end-sanitize-m32r
459 Mon Jan 27 12:25:02 1997  Ian Lance Taylor  <[email protected]>
460
461         * aout-arm.c (MY_swap_std_reloc_in): Remove unused r_length.
462         * elf32-ppc.c (ppc_elf_check_relocs): Remove unused plt.
463 start-sanitize-v850
464         * elf32-v850.c (v850_elf_final_link_relocate): Remove used
465         r_format and r_pcrel.  Always return a value.
466 end-sanitize-v850
467         * riscix.c (MY_final_link_callback): Define to dummy value.
468
469         * elf32-i386.c (elf_i386_size_dynamic_sections): When checking for
470         relocations against the text segment, look up the output name of
471         the reloc section.
472         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
473         * elf32-mips.c (mips_elf_size_dynamic_sections): Likewise.
474         * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
475         * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
476         * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
477
478 start-sanitize-tic80
479 Wed Jan 22 15:40:28 1997  Fred Fish  <[email protected]>
480
481         * coff-tic80.c (tic80coff_vec): Use correct data put/get
482         routines for little endian data.
483         * coffcode.h (coff_write_object_contents): Set magic to
484         TIC80_ARCH_MAGIC for TIc80.
485
486 Tue Jan 21 12:32:43 1997  Fred Fish  <[email protected]>
487
488         * coff-tic80.c (tic80coff_vec): Change to little endian data
489         as the default.
490
491 end-sanitize-tic80
492 Thu Jan 16 17:45:57 1997  Ian Lance Taylor  <[email protected]>
493
494         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Change type of
495         auxiliary_filters parameter to be const char * const *.  Accept a
496         NULL terminated array.
497         * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
498         (bfd_elf32_size_dynamic_sections): Update declaration.
499         * bfd-in2.h: Rebuild.
500
501 Wed Jan 15 11:21:32 1997  Ian Lance Taylor  <[email protected]>
502
503         * elf32-sparc.c (elf32_sparc_adjust_dynamic_symbol): Treat a
504         NOTYPE symbol in a text section as a FUNC symbol.
505
506         * coffcode.h (coff_compute_section_file_positions): Force
507         relocbase to be aligned to COFF_DEFAULT_SECTION_ALIGNMENT_POWER.
508
509 Tue Jan 14 08:46:33 1997  Doug Evans  <[email protected]>
510
511         * libaout.h (machine_type): Reserve several values for sparclet.
512
513 start-sanitize-tic80
514 Mon Jan 13 22:39:08 1997  Michael Meissner  <[email protected]>
515
516         * config.bfd (tic80-*-*): Don't require 'coff'.
517
518 end-sanitize-tic80
519 start-sanitize-v850
520 Mon Jan 13 19:36:25 1997  Michael Meissner  <[email protected]>
521
522         * elf32-v850.c (v850_elf_howto_table): Set the special_function
523         table to v850_elf_reloc for all non-standard relocations.
524         (v850_elf_check_relocs): Add check for h being non-null.
525         (v850_elf_reloc): Add  R_V850_ZDA_OFFSET support.  Use switch
526         statement instead of multiple ifs.
527         (v850_elf_relocate_section): Fix up error message, don't just call
528         abort.
529
530 end-sanitize-v850
531 Mon Jan  6 13:28:35 1997  Jeffrey A Law  ([email protected])
532
533         * elf32-mn10200.c (elf_mn10200_howto): Don't ever set partial-inplace.
534         Use bfd_elf_generic_reloc as special function for all relocs.
535         (bfd_elf32_mn10200_reloc): Remove unnecessary function.
536
537         * elf32-mn10200.c (elf_mn10200_howto): Set pcrel_offset for
538         24bit pc-relative reloc.
539
540 start-sanitize-tic80
541 Fri Jan  3 16:33:00 1997  Fred Fish  <[email protected]>
542
543         * Makefile.in (coff-tic80.o): Add coffcode.h to dependency list.
544         * coff-tic80.c (tic80coff_vec): Data byte order is big endian and
545         header byte order is little endian.  Use correct bfd_get and
546         bfd_put routines for little endian headers.
547         * coffcode.h (coff_set_arch_mach_hook): Set arch to
548         bfd_arch_tic80 for TIC80_ARCH_MAGIC number.
549
550 end-sanitize-tic80
551 Fri Jan  3 16:54:08 1997  Jeffrey A Law  ([email protected])
552
553         * reloc.c: Add BFD_RELOC_24.
554         * elf32-mn10200.c (enum reloc_type): Add 24bit and pcrel relocs.
555         (elf_mn10200_howto, mn10200_reloc_map): Corresponding changes.
556         * bfd-in2.h, libbfd.h: Rebuilt.
557
558 Fri Jan  3 16:58:31 1997  Richard Henderson  <[email protected]>
559
560         elf64-alpha multiple .got rewrite:
561
562         * elf-bfd.h (struct elf_backend_data): Add always_size_sections entry.
563         (bfd_elf*_mkobject): Don't define here ...
564         * elfxx-target.h: ... but rather here.  Default always_size_sections
565         hook to NULL.
566         * elf.c (elf_mkobject): Rename to bfd_elf_mkobject, since that was 
567         what the #defines in elf-bfd.h transmuted it to anyway.
568
569         * section.c: Add SEC_LINKER_CREATED flag.
570         * bfd-in2.h: Rebuild.
571         * elf32-i386.c (elf_i386_check_relocs): Add SEC_LINKER_CREATED to
572         relocation section flags.
573         (elf_i386_size_dynamic_sections): Use SEC_LINKER_CREATED instead of
574         SEC_IN_MEMORY to recognize generated bits.
575         * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_size_dynamic_sections):
576         Likewise.
577         * elf32-mips.c (mips_elf_final_link, mips_elf_create_dynamic_sections,
578         mips_elf_create_compact_rel_section, mips_elf_create_got_section,
579         mips_elf_check_relocs, mips_elf_size_dynamic_sections): Likewise.
580         * elf32-ppc.c (ppc_elf_create_linker_section,
581         ppc_elf_size_dynamic_sections): Likewise.
582         * elf32-sparc.c (elf32_sparc_check_relocs,
583         elf32_sparc_size_dynamic_sections): Likewise.
584         * elflink.c (_bfd_elf_create_got_section): Add SEC_LINKER_CREATED to 
585         section flags.
586         (_bfd_elf_create_dynamic_sections): Likewise.
587         (_bfd_elf_make_linker_section_rela): Likewise.
588         * elflink.h (elf_link_create_dynamic_sections): Likewise.
589         (bfd_elf,size_dynamic_sections): Call the always_size_sections hook.
590         (elf_bfd_final_link): Use SEC_LINKER_CREATED instead of SEC_IN_MEMORY
591         to identify generated bits.
592         (elf_link_input_bfd): Likewise.
593
594         * elf64-alpha.c: Rewrite everything touching relocations.
595
596 start-sanitize-v850
597 Fri Jan  3 11:42:53 1997  Michael Meissner  <[email protected]>
598
599         * elf32-v850.c (all functions and static variables): Go through
600         and regularize names to be of the form v850_elf_<xxx>.
601         (toplevel): Include <elf/v850.h>.
602         (enum reloc_type): Move to include/elf/v850.h.
603         (v850_elf_check_relocs): For common variables, if the variable is
604         referenced by a R_V850_{SDA,ZDA,TDA} relocation, put the variable
605         into the appropriate section.
606         (elf_backend_check_relocs): Define.
607
608 Tue Dec 31 15:15:28 1996  Michael Meissner  <[email protected]>
609
610         * elf32-v850.c (elf_v850_howto_table): Fix some spacing.
611
612 end-sanitize-v850
613 Tue Dec 31 14:44:50 1996  Ian Lance Taylor  <[email protected]>
614
615         * config.bfd (mips*el-*-linux*): New target.
616         (mips*-*-linux*): New target.
617
618         * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Clean up.
619         Return a useful value.
620
621         * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
622
623         * configure.in: Check ac_cv_func_mmap_fixed_mapped, not
624         ac_cv_func_mmap.
625         * configure: Rebuild.
626         * configure.host: Use ac_cv_func_mmap_fixed_mapped instead of
627         ac_cv_func_mmap in bfd/configure.host.
628
629         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Add
630         filter_shlib and auxiliary_filter_shlib parameters.
631         * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_AUXILIARY and
632         DT_FILTER.
633         * bfd-in.h (bfd_elf32_size_dynamic_sections): Update declaration.
634         (bfd_elf64_size_dynamic_sections): Likewise.
635         * bfd-in2.h: Rebuild.
636
637 Mon Dec 30 18:48:52 1996  Ian Lance Taylor  <[email protected]>
638
639         * xcofflink.c (xcoff_build_ldsyms): When exporting all defined
640         symbols, don't export a symbol which is defined by an object in an
641         archive which contains shared objects.
642
643 start-sanitize-tic80
644 Mon Dec 30 16:12:58 1996  Fred Fish  <[email protected]>
645
646         * archures.c (enum bfd_architecture): Add bfd_arch_tic80
647         for TI TMS320c80 (MVP).
648         (bfd_archures_list): Add bfd_tic80_arch.
649         * bfd-in2.h: Regenerate by running "make headers".
650
651 Sun Dec 29 16:18:52 1996  Fred Fish  <[email protected]>
652
653         * cpu-tic80.c (bfd_tic80_arch): Add struct.
654         * configure.in (case $vec): Correct typo, "tb" not "tp".
655         Also add cofflink.o for tic80coff_vec.
656         * configure: Regenerate with autoconf.
657
658 end-sanitize-tic80
659 Mon Dec 30 11:54:56 1996  Ian Lance Taylor  <[email protected]>
660
661         * libbfd.c: Patch up the mmap code so that it is only built if BFD
662         is configured with --with-mmap.
663
664 start-sanitize-tic80
665 Sun Dec 29 10:48:57 1996  Fred Fish  <[email protected]>
666
667         * Makefile.in (BFD32_BACKENDS): Add coff-tic80.o
668         (ALL_MACHINES): Add cpu-tic80.o
669         (cpu-tic80.o, coff-tic80.o): Add dependencies.
670         * coff-tic80.c: Add skeleton, cloned from another coff config.
671         * coffcode.h (coff_write_object_contents): Set magic to TIC80MAGIC
672         for TIc80.
673
674 end-sanitize-tic80
675 Fri Dec 27 20:56:41 1996  Fred Fish  <[email protected]>
676
677         * TODO: Correct a misspelling.
678 start-sanitize-tic80
679         * coff-tic80.c: New file for TI TMS320C80 (MVP).
680         * cpu-tic80.c: New file for TI TMS320C80 (MVP).
681         * configure.in (case $vec): Add tic80coff_vec entry.
682         * configure: Regenerate with autoconf.
683         * archures.c (bfd_tic80_arch): Declare.
684         * bfd-in2.h (enum bfd_architecture): Add bfd_arch_tic80.
685         * config.bfd (case ${targ}): Add tic80*-*-coff* target.
686         * targets.c (tic80coff_vec): Add decl as extern bfd_target.
687         (bfd_target_vector): Add tic80coff_vec entry.
688 end-sanitize-tic80
689
690 Fri Dec 27 11:48:12 1996  H.J. Lu  <[email protected]>
691
692         * elflink.h (elf_buckets): Add some more values for larger
693         binaries.
694
695 Thu Dec 26 18:36:54 1996  Ian Lance Taylor  <[email protected]>
696
697         * Makefile.in (install): Move subdir_do out of conditional. From
698         Fred Fish <[email protected]>.
699
700 Wed Dec 18 10:04:30 1996  Jeffrey A Law  ([email protected])
701
702         * elf32-mn10200.c (enum reloc_type): Enable basic 8, 16, and
703         32 bit relocs.
704         (elf_mn10200_howto_table): Likewise.
705         (mn10200_reloc_map): Likewise.
706
707 Tue Dec 17 11:09:36 1996  Ian Lance Taylor  <[email protected]>
708
709         * elf32-mips.c (mips_elf_add_symbol_hook): Add 1 to the value of a
710         mips16 symbol during the link.
711         (mips_elf_finish_dynamic_symbol): Subtract 1 from the value of a
712         mips16 symbol.
713         (mips_elf_link_output_symbol_hook): New static function.
714         (elf_backend_link_output_symbol_hook): Define.
715
716         * elf.c (bfd_elf_print_symbol): Print the st_other field if it is
717         not zero.
718
719 Mon Dec 16 14:38:39 1996  Ian Lance Taylor  <[email protected]>
720
721         * elf.c (bfd_section_from_shdr): Don't check for reloc sections
722         against SEC_DEBUGGING sections here (revert patch of December 5).
723         * elfcode.h (elf_object_p): Check for them here, instead.
724
725 Sun Dec 15 14:46:06 1996  Ian Lance Taylor  <[email protected]>
726
727         * elfcode.h (elf_slurp_reloc_table): Add dynamic parameter.
728         * elf.c (_bfd_elf_canonicalize_reloc): Pass new argument to
729         slurp_reloc_table.
730         (_bfd_elf_get_dynamic_reloc_upper_bound): New function.
731         (_bfd_elf_canonicalize_dynamic_reloc): New function.
732         * elf-bfd.h (struct elf_size_info): Update declaration of
733         slurp_reloc_table.
734         (_bfd_elf_get_dynamic_reloc_upper_bound): Declare.
735         (_bfd_elf_canonicalize_dynamic_reloc): Declare.
736         * elfxx-target.h: Use new dynamic reloc routines by default.
737         * elf64-mips.c (mips_elf64_slurp_reloc_table): Add dynamic
738         parameter.
739
740 Fri Dec 13 13:18:49 1996  Dan Wilder  <[email protected]>
741
742         * coffcode.h (coff_set_flags): Use MC68KBCSMAGIC for bfd_arch_m68k
743         if NAMES_HAVE_UNDERSCORE is defined.
744
745 Fri Dec 13 11:13:23 1996  Doug Evans  <[email protected]>
746
747         * libaout.h (enum machine_type): Change M_SPARCLET from 142 to 131.
748
749 Thu Dec 12 15:07:20 1996  Michael Meissner  <[email protected]>
750
751         * elf32-ppc.c (ppc_elf_check_relocs): Move R_PPC_PLTREL24 into the
752         supported relocs.
753
754 Thu Dec 12 14:55:41 1996  Ian Lance Taylor  <[email protected]>
755
756         * elflink.h (elf_link_add_object_symbols): Only add a weak
757         symbol if the real definition is in the dynamic symbol table.
758         After finding the real definition, then, if it is dynamic, add the
759         weak symbol to the dynamic symbol table.
760
761         * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Make static.
762
763         * ppcboot.c (ppcboot_set_arch_mach): Don't define; it's a
764         function.
765         (ppcboot_bfd_print_private_bfd_data): Don't take the address of an
766         array.
767
768 Tue Dec 10 23:23:52 1996  Jeffrey A Law  ([email protected])
769
770         * elf32-mn10300.c (reloc_type): Remove big endian mn10300 reloc
771         variants.
772         (elf32_mn10300_howto_table, mn10300_reloc_map): Likewise.
773         (bfd_elf32_mn10300_reloc): Write data in little endian format.
774         * reloc.c: Remove mn10300 big endian relocs.
775         * bfd-in2.h, libbfd.h: Rebuilt.
776
777         * elf32-mn10200.c: Update from elf32-mn10300.c.
778  
779 Fri Dec  6 15:18:05 1996  Jeffrey A Law  ([email protected])
780
781         * elf32-mn10300.c (elf_symbol_leading_char): Define.
782
783         * elf32-mn10300.c: Add some comments.
784
785 Fri Dec  6 17:16:43 1996  Ian Lance Taylor  <[email protected]>
786
787         * ihex.c (ihex_scan): Always initialize buf before jumping to
788         error_return.
789         (ihex_read_section): Likewise.
790
791 Thu Dec  5 22:29:18 1996  Jeffrey A Law  ([email protected])
792
793         * elf32-mn10300.c (elf_mn10300_howto_table): Don't set partial-
794         inplace for most relocs.
795
796 Thu Dec  5 13:24:46 1996  Ian Lance Taylor  <[email protected]>
797
798         * elflink.h (elf_link_add_object_symbols): Calling check_relocs
799         even if SEC_ALLOC is not set.
800         * elf32-i386.c (elf_i386_check_relocs): Don't check SEC_ALLOC
801         when deciding whether to copy a reloc into a shared object.
802         (elf_i386_relocate_section): Likewise.
803         * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
804         (elf32_sparc_relocate_section): Likewise.
805         * elf32-i386.c (elf_i386_check_relocs): Don't set SEC_ALLOC in a
806         reloc section if it is not set in the source section.
807         * elf32-sparc.c (elf32_sparc_check_relocs): Likewise.
808         * elf.c (bfd_section_from_shdr): Mark a reloc section associated
809         with a SEC_DEBUGGING section as SEC_DEBUGGING.
810
811 Wed Dec  4 14:18:13 1996  Michael Meissner  <[email protected]>
812
813         * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): #if 0 code that
814         expects a .got.plt until we actually create it.
815
816 Mon Dec  2 12:13:51 1996  Ian Lance Taylor  <[email protected]>
817
818         * cofflink.c (_bfd_coff_generic_relocate_section): Print an error
819         message for bfd_reloc_outofrange, rather than aborting.  From
820         Philippe De Muyter <[email protected]>.
821
822         * cofflink.c (_bfd_coff_final_link): If there aren't any relocs in
823         a relocateable link, don't try to process them.  From Heinz Wrobel
824         <[email protected]>.
825
826 Mon Dec  2 00:39:24 1996  Jeffrey A Law  ([email protected])
827
828         * elf32-mn10300.c (mn10300_info_howto): Renamed from
829         mn10300_info_howto_rel.  Tweak reloc argument to be an
830         Elf32_Internal_Rela.
831         (USE_RELA): Define instead of USE_REL.
832         (elf_info_to_howto, elf_info_howto_rel): Corresponding changes.
833
834 Sun Dec  1 00:18:59 1996  Peter Schauer  ([email protected])
835
836         * configure.in, configure:  Handle mips*-sgi-irix6*.
837         * irix-core.c (irix_core_core_file_p):  Accept CORE_MAGICN32
838         core files.
839
840 Wed Nov 27 12:10:25 1996  Ian Lance Taylor  <[email protected]>
841
842         * elf32-i386.c (elf_i386_relocate_section): Warn about a
843         relocation against a symbol defined in a section with no output
844         section.
845
846 Tue Nov 26 11:07:31 1996  Ian Lance Taylor  <[email protected]>
847
848         * aclocal.m4 (BFD_CC_FOR_BUILD): Don't require AC_C_CROSS.
849         * configure, config.in: Rebuild with autoconf 2.12.
850
851         * elf-bfd.h (struct elf_link_hash_entry): Add other field.
852         * elf.c (_bfd_elf_link_hash_newfunc): Initialize other field.
853         (swap_out_syms): Set st_other from existing st_other field.
854         * elflink.h (elf_link_add_object_symbols): Store st_other in hash
855         table other field.
856         (elf_link_output_extsym): Set the other field from the global hash
857         table entry.
858         * elf32-mips.c (enum reloc_type): Add R_MIPS16_26.
859         (elf_mips16_jump_howto): New static variable.
860         (mips16_jump_reloc): New static function.
861         (bfd_elf32_bfd_reloc_type_lookup): Handle BFD_RELOC_MIPS16_JMP.
862         (mips_info_to_howto_rel): Handle R_MIPS16_26.
863         (mips_elf_relocate_section): Handle R_MIPS16_26.  Handle R_MIPS_26
864         to a mips16 symbol.
865         * reloc.c (BFD_RELOC_MIPS16_JMP): Add to list of relocs.
866         * bfd-in2.h, libbfd.h: Rebuild.
867         * cpu-mips.c (arch_info_struct): Add mips:16 entry.
868
869 Mon Nov 25 11:23:32 1996  Ian Lance Taylor  <[email protected]>
870
871         * configure.host: Use long long for mips-sgi-irix6*.
872
873         * coffswap.h (coff_swap_scnhdr_out): Make line number overflow
874         only a warning.  From Philippe De Muyter <[email protected]>.
875
876 Mon Nov 25 08:52:29 1996  Jeffrey A Law  ([email protected])
877
878         * elf32-mn10300.c (bfd_elf32_mn10300_reloc): New function.
879         (enum reloc_type): Add more reloc types.
880         (elf32_mn10300_howto_table): Update for new reloc types.
881         (elf32_mn10300_reloc_map): Update for new reloc types.
882         * reloc.c: Add some new relocs for the mn10300 series.
883         * bfd-in2.h, libbfd.h: Rebuilt.
884         
885 Sat Nov 23 13:26:18 1996  Jeffrey A Law  ([email protected])
886
887         * som.c (setup_sections): Don't lose for a space which has
888         no data, but some symbols.
889
890 Fri Nov 22 11:32:13 1996  Ian Lance Taylor  <[email protected]>
891
892         * sunos.c (struct sunos_link_hash_table): Add got_needed field.
893         (sunos_link_hash_table_create): Initialize got_needed.
894         (sunos_create_dynamic_sections): Only set .got section size if it
895         is not already set.  Set got_needed.
896         (bfd_sunos_size_dynamic_sections): Check got_needed.  Only set
897         sdynptr, and only handle dynamic sections, if dynamic sections are
898         needed.
899         (sunos_scan_std_relocs): Pass false to create_dynamic_sections.
900         Initialize .got section.
901         (sunos_scan_ext_relocs): Likewise.
902         (sunos_write_dynamic_symbol): Set up PLT entry even if this is not
903         a dynamic symbol.
904         (sunos_finish_dynamic_link): Check got_needed.  Only set up
905         dynamic linking information if needed.
906
907 Thu Nov 21 10:31:31 1996  Rob Savoye  ([email protected])
908         
909         * config.bfd: Added VersaDOS format to the Ericsson configuration.
910
911 Wed Nov 20 16:31:31 1996  Jeffrey A Law  ([email protected])
912
913         * elf32-mn10300.c: Rough cut at relocs for the mn10300.
914
915 Wed Nov 13 08:12:38 1996  Jeffrey A Law  ([email protected])
916
917         * Makefile.in (elf32-d10v.o): Don't depend on elf/d10v.h
918         anymore.
919
920 Tue Nov 12 13:30:00 1996  Dawn Perchik  <[email protected]>
921
922         * filemode.c: Include sysdep.h.
923         * ihex.c: Add casts to eliminate compiler warnings.
924         * sunos.c: Add casts to eliminate compiler warnings.
925
926 Mon Nov 11 10:37:02 1996  Michael Meissner  <[email protected]>
927
928         * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Create .got.plt
929         section.
930         (ppc_elf_check_relocs): Add support for R_PPC_LOCAL24PC.  Make
931         appropriate relocations in the .so file if shared.
932         (ppc_elf_relocate_section): Ditto.
933
934 start-sanitize-m32r
935 Tue Oct 29 15:03:02 1996  Doug Evans  <[email protected]>
936
937         * elf32-m32r.c (elf_m32r_howto_table, R_M32R_24): Use
938         complain_overflow_unsigned.
939
940 end-sanitize-m32r
941 Tue Oct 29 12:53:46 1996  Martin M. Hunt  <[email protected]>
942
943         * elf32-d10v.c (elf_d10v_howto_table): Don't complain on
944         overflows for R_D10V_16 and R_D10V_18.
945
946 Tue Oct 29 13:23:53 1996  Ian Lance Taylor  <[email protected]>
947
948         * ieee.c (ieee_write_section_part): Use LMA rather than VMA.
949         (do_with_relocs): Likewise.
950         (do_as_repeat): Likewise.
951         (copy_expression): Likewise.
952
953 Fri Oct 25 16:56:40 1996  Ian Lance Taylor  <[email protected]>
954
955         * ieee.c (ieee_write_external_part): Correctly record whether
956         there is an external part.
957
958 start-sanitize-v850
959 Thu Oct 24 14:32:52 1996  Jeffrey A Law  ([email protected])
960
961         * elf32-v850.c (elf32_v850_bfd_final_link_relocate): Correctly
962         handle tda offsets for sld.w and sst.w instructions.
963         Fix alignment check in sld.w and sst.w tda reloc handling.
964
965 end-sanitize-v850
966 Thu Oct 24 09:08:47 1996  Stu Grossman  ([email protected])
967
968         * aclocal.m4, configure:  Set USE_BINARY_FOPEN for *-*-windows.
969
970 start-sanitize-v850
971 Wed Oct 23 00:53:16 1996  Jeffrey A Law  ([email protected])
972
973         * elf32-v850.c: Add comments about assumptions about
974         char, short & long sizes.
975         (elf32_v850_bfd_final_link_relocate): Fix sign extension
976         problems for several relocs.
977
978         * elf32-v850.c (elf32_v850_howto_table): Fix typo in
979         R_V850_SDA_OFFSET entry.
980
981 end-sanitize-v850
982 Wed Oct 23 00:20:34 1996  Ian Lance Taylor  <[email protected]>
983
984         * xcofflink.c (bfd_xcoff_import_symbol): Don't allocate ldsym.
985         Store import file index in ldindx.
986         (xcoff_build_ldsyms): Assume that ldsym was not previously
987         allocated.  For an imported symbol, copy ldindx into l_ifile.
988
989 start-sanitize-v850
990 Tue Oct 22 19:20:38 1996  Jeffrey A Law  ([email protected])
991
992         * elf32-v850.c (elf_v850_howto_table): Fix ordering of
993         R_V850_ZDA_OFFSET and R_V850_TDA_OFFSET.  Fix various
994         fields in R_V850_TDA_OFFSET.
995         (elf32_v850_bfd_final_link_relocate): Tweak pc-relative
996         relocs to work more like other relocs.  Handle R_V850_TDA_OFFSET
997         relocations.
998
999         * elf32-v850.c: Include bfdlink.h.
1000         (bfd_elf32_v850_reloc): Return an error if we get a reloc
1001         we can't handle.
1002         (elf32_v850_bfd_final_link_relocate): New function.
1003         (v850_elf_relocation_section): Likewise.
1004         (elf_backend_relocate_section): Define.
1005
1006 end-sanitize-v850
1007 Tue Oct 22 17:22:43 1996  Ian Lance Taylor  <[email protected]>
1008
1009         * binary.c (binary_set_section_contents): Ignore sections which
1010         don't have SEC_LOAD and SEC_ALLOC set.
1011
1012 Mon Oct 21 12:13:05 1996  Jeffrey A Law  ([email protected])
1013
1014         * linker.c (_bfd_generic_final_link): Avoid losing static
1015         symbols in the .bss section.
1016
1017 Mon Oct 21 10:54:58 1996  Ian Lance Taylor  <[email protected]>
1018
1019         * elf32-mips.c (elf_mips_howto_table): Describe R_MIPS_64.
1020         (mips32_64bit_reloc): New static function.
1021         (mips_reloc_map): Add entry for BFD_RELOC_64.
1022         (mips_elf_relocate_section): Handle R_MIPS_64.
1023
1024         * linker.c (default_indirect_link_order): Print an error message
1025         when attempting to do a relocateable link with different object
1026         file formats, rather than calling abort.
1027
1028 start-sanitize-m32r
1029 Thu Oct 17 10:43:29 1996  Doug Evans  <[email protected]>
1030
1031         * reloc.c (m32r relocs): Rename them.
1032         * bfd-in2.h, libbfd.h: Regenerated.
1033         * elf32-m32r.c: Update.
1034         (m32r_elf_10_pcrel_reloc): New function.
1035         (elf_m32r_howto_table, R_M32R_10_PCREL entry): Use it.
1036         (elf_m32r_howto_table, R_M32R_24 entry): Fix {src,dst}_masks.
1037
1038 end-sanitize-m32r
1039 Wed Oct 16 11:24:35 1996  Jeffrey A Law  ([email protected])
1040
1041         * linker.c (_bfd_generic_final_link): Set "linker_mark" for
1042         all sections that will be included in the output file.
1043         (_bfd_generic_link_output_symbols): Discard symbols in sections
1044         which are being discarded.
1045
1046 start-sanitize-v850
1047
1048         * elf32-v850.c (enum reloc_type): Add R_V850_SDA_OFFSET,
1049         R_V850_TDA_OFFSET and R_V850_ZDA_OFFSET.
1050         (elf_v850_howto_table): Corresponding changes.
1051         (elf_v850_reloc_map): Corresponding changes.
1052         * reloc.c: Add additional V850 relocations.
1053         * bfd-in2.h, libbfd.h: Rebuilt.
1054
1055         * elf32-v850.c (bfd_elf32_v850_reloc): Mask out bits we
1056         no longer want in pc-relative relocs.
1057
1058 Tue Oct 15 22:17:37 1996  Jeffrey A Law  ([email protected])
1059
1060         * elf32-v850.c (bfd_elf32_v850_reloc): Don't silently
1061         accept a reloc against an undefined sybmol!
1062
1063 Tue Oct 15 16:17:28 1996  Stu Grossman  ([email protected])
1064
1065         * elf32-v850.c:  Define elf_symbol_leading_char to be '_'.
1066
1067 end-sanitize-v850
1068 Tue Oct 15 12:40:41 1996  Ian Lance Taylor  <[email protected]>
1069
1070         * VERSION: Bump for new relocation.
1071
1072         * hosts/i386bsd.h: If NBPG is not defined, define it as
1073         PAGE_SIZE, for recent versions of FreeBSD.
1074
1075 Mon Oct 14 12:37:26 1996  Ian Lance Taylor  <[email protected]>
1076
1077         * configure.host: Use `long long' as the 64 bit type on a Solaris
1078         host, since both gcc and the SunPRO compilers support it.
1079
1080 Mon Oct 14 11:17:24 1996  Richard Henderson  <[email protected]>
1081
1082         * reloc.c: Create a new BFD_RELOC_ALPHA_ELF_LITERAL.  It was a 
1083         mistake to have reused the ECOFF LITERAL for ELF since they have
1084         different semantics.
1085         * elf64-alpha.c (elf_reloc_map): Map from ELF_LITERAL.
1086         * bfd-in2.h, libbfd.h: Rebuild.
1087
1088         * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Trap .got
1089         section overflow.
1090
1091         * elf64-alpha.c (elf64_alpha_relocate_section): Do not emit a
1092         dynamic relocation for an undefweak symbol when we are building
1093         a static executable.
1094
1095 Thu Oct 10 11:15:06 1996  Stan Shebs  <[email protected]>
1096
1097         * mpw-make.sed (config.bfd, targmatch.sed): Edit references to
1098         point explicitly to srcdir.
1099         (targmatch.h): Edit references to point explicitly to objdir.
1100
1101 Thu Oct 10 14:14:23 1996  Ian Lance Taylor  <[email protected]>
1102
1103         * config.bfd: When setting targ_cpu, don't get confused by
1104         linux-gnu.
1105
1106 Tue Oct  8 08:51:19 1996  Stu Grossman  ([email protected])
1107
1108         * configure.host:  Add support for windows host (a build done
1109         under the Microsoft build environment).
1110
1111 Tue Oct  8 11:40:16 1996  Ian Lance Taylor  <[email protected]>
1112
1113         * elflink.h (elf_link_add_object_symbols): If a symbol is a weak
1114         definition in a dynamic object, add it to the dynamic symbol table
1115         if any dynamic object mentions it.  Reverts part of last patch.
1116
1117         * sunos.c (struct sunos_link_hash_table): Add got_base field.
1118         (sunos_link_hash_table_create): Initialize got_base.
1119         (bfd_sunos_size_dynamic_sections): If the .got section is more
1120         than 0x1000 bytes, set __GLOBAL_OFFSET_TABLE_ and got_base to
1121         0x1000.
1122         (sunos_check_dynamic_reloc): Subtract got_base from a base
1123         relative relocation.
1124
1125         * elf32-mips.c (elf_mips_isa): New static function.
1126         (_bfd_mips_elf_merge_private_bfd_data): Don't warn about linking
1127         -mips1 and -mips2 code together, or -mips3 and -mips4 code.
1128
1129 Mon Oct  7 11:44:17 1996  Ian Lance Taylor  <[email protected]>
1130
1131         * archive.c (do_slurp_coff_armap): Only treat archive as little
1132         endian for i960 COFF.
1133
1134 Fri Oct  4 13:49:01 1996  Ian Lance Taylor  <[email protected]>
1135
1136         * coffcode.h (coff_compute_section_file_positions): Adjust sofar
1137         by the change in size of the section when EXEC_P is not set.
1138
1139         * coff-m68k.c (coff_rtype_to_howto): Define if not defined.
1140         (m68kcoff_rtype_to_howto): New static function.
1141         * cf-m68klynx.c (coff_m68k_lynx_rtype_to_howto): Add the section
1142         VMA to the addend for a PC relative reloc.
1143
1144         * dep-in.sed: Rework backslash loop a bit to avoid bug in sed on
1145         HP/UX 10.20.
1146         * Makefile.in: Rebuild dependencies.
1147
1148         * dep-in.sed: Remove ../bfd/sysdep.h, since it will appear when
1149         som.h is included.
1150
1151 Fri Oct  4 11:41:39 1996  Jeffrey A Law  ([email protected])
1152
1153         * Makefile.in: Remove explicit dependencies for mn10200 and
1154         mn10300 files.
1155         (ALL_MACHINE_CFILES): Add cpu-mn10200.c and cpu-mn10300.c.
1156         (BFD32_BACKENDS_CFILES): Add elf32-mn10200.c and elf32-mn10300.c
1157         (dependencies): Rebuilt.
1158
1159 Thu Oct  3 16:57:51 1996  Ian Lance Taylor  <[email protected]>
1160
1161         * cofflink.c (coff_link_add_symbols): Set obj_coff_keep_syms
1162         during this function.
1163
1164         * elflink.c (_bfd_elf_create_linker_section): Only use an existing
1165         section if the flags are compatible.
1166
1167         * configure.in: Add havevecs, and put it in tdefaults.
1168         * mpw-config.in: Likewise.
1169         * configure: Rebuild.
1170         * targmatch.sed: New file; a sed script to build targmatch.h from
1171         config.bfd.
1172         * config.bfd: Add #if, #endif, and comments for targmatch.h.
1173         * targets.c: Include "fnmatch.h".
1174         (struct targmatch): Define.
1175         (bfd_target_match): Define by including targmatch.h.
1176         (bfd_find_target): If the target is not found by name, search for
1177         it as a configuration triplet.
1178         * Makefile.in: Rebuild dependencies.
1179         (BFD32_BACKENDS): Add aout-arm.o, aout-sparcle.o, hp300bsd.o,
1180         i386dynix.o, m68k4knetbsd.o, and riscix.o.
1181         (BFD32_BACKENDS_CFILES): Add aout-arm.c, aout-sparcle.c,
1182         hp300bsd.c, i386dynix.c, m68k4knetbsd.c, and riscix.c.
1183         (HFILES): Add targmatch.h.  Also, alphabetize and reindent.
1184         (CFILES): Remove i386dynix.c and hp300bsd.c.
1185         (targmatch.h): New target.
1186         (do_clean): Remove targmatch.h.
1187
1188         * configure.in: Add BFD_NEED_DECLARATION(getenv).
1189         * acconfig.h: Add NEED_DECLARATION_GETENV.
1190         * configure, config.in: Rebuild.
1191         * sysdep.h: If NEED_DECLARATION_GETENV, declare getenv.
1192         * aout-adobe.c (aout_adobe_object_p): Don't declare getenv.
1193
1194 Thu Oct  3 09:29:09 1996  Jeffrey A Law  ([email protected])
1195
1196         * cpu-mn10x00.c, elf32-mn10x00: Removed.
1197         * cpu-mn10200.c, cpu-mn10300.c: New files.
1198         * elf32-mn10200.c, elf32-mn10300.c: New files.
1199         * Makefile.in: Break mn10x00 support into two separate
1200         configurations, mn10200 and mn10300.
1201         * archures.c, config.bfd, configure.in, elf.c, targets.c: Likewise.
1202         * bfd-in2.h, configure: Rebuilt.
1203
1204 Thu Oct  3 15:38:19 1996  Jason Molenda  ([email protected])
1205
1206         * Makefile.in (do_clean): Move config.log to do_distclean.
1207
1208 Wed Oct  2 21:40:55 1996  Jeffrey A Law  ([email protected])
1209
1210         * cpu-mn10x00.c, elf32-mn10x00.c: New files.
1211         * Makefile.in (ALL_MACHINES): Add cpu-mn10x00.o.
1212         (BFD32_BACKENDS): Similarly for elf32-mn10x00.o.
1213         (elf32-mn10x00.o): Add dependencies.
1214         * archures.c (enum bfd_architecture): Add bfd_arch_mn10x00.
1215         (bfd_mn10x00_arch): Declare.
1216         (bfd_archures_list): Add bfd_mn10x00_arch.
1217         * config.bfd: Add mn10x00-*-*.
1218         * configure.in: Add bfd_elf32_mn10x00_vec.
1219         * elf.c (prep_headers): Handle bfd_arch_mn10x00.
1220         * targets.c (bfd_elf32_mn10x00_vec): Declare.
1221         (bfd_target_vector): Add bfd_elf32_mn10x00_vec.
1222         * bfd-in2.h, configure: Rebuilt.
1223         
1224 Wed Oct  2 15:46:45 1996  Klaus Kaempf  <[email protected]>
1225
1226         openVMS/Alpha: Provide filename and case_hack flags via
1227         symbol table from gas.
1228         Add case_hack code for symbol output from vax/vms.
1229         * evax-alpha.c (evax_initialize): Remove filename handling,
1230         filename is provided via symbol table.
1231         (evax_get_symtab): Use local symbol count when setting up table.
1232         * evax-egsd.c (_bfd_evax_slurp_egsd): Print correct name when
1233         debugging.
1234         (_bfd_evax_write_egsd): Skip file name symbol.
1235         * evax-emh.c (get_vms_time_string): Local function now.
1236         (_bfd_evax_write_emh): Extract source filename and case_hack flags
1237         from symbol table.
1238         * evax_write_etir (_bfd_evax_write_etir): Pass all symbol names
1239         through _bfd_evax_case_hack_symbol.
1240         * evax-misc.c (hash_string, _bfd_evax_case_hack_symbol): New
1241         functions.
1242         (_bfd_evax_basename): Removed.
1243         (_bfd_get_vms_time_string): Moved to evax-emh.c.
1244         * evax.h (evax_private_data_struct): Remove filename.
1245         (flag_hash_long_names, flag_show_after_trunc,
1246         flag_no_hash_mixed_case, vms_name_mapping): New flags for
1247         vms_case_hack.
1248
1249 Wed Oct  2 12:02:02 1996  Ian Lance Taylor  <[email protected]>
1250
1251         * freebsd.h (N_GET_MAGIC_NET): Don't use ntohl.
1252         (N_GETMID_NET, N_GETFLAG_NET): Likewise.
1253         (NO_SWAP_MAGIC): Don't define.
1254         (SWAP_MAGIC): Define.
1255
1256         * cofflink.c (_bfd_coff_link_input_bfd): Don't crash if there is
1257         no hash table entry for a global symbol.
1258
1259 Tue Oct  1 16:14:22 1996  Joel Sherrill  <[email protected]>
1260
1261         * config.bfd (mips*-*-rtems*): New target, like mips*-*-elf*.
1262
1263 Tue Oct  1 12:31:39 1996  Ian Lance Taylor  <[email protected]>
1264
1265         * cofflink.c (coff_link_add_symbols): Don't override a meaningful
1266         symbol type with T_NULL.  Warn if symbol type changes.  Based on
1267         patch from Philippe De Muyter <[email protected]>.
1268
1269         * elflink.h (elf_link_add_object_symbols): Only put a symbol from
1270         a dynamic object in the dynamic symbol table if it is referenced
1271         or defined by a regular object.
1272
1273 start-sanitize-v850
1274 Fri Sep 27 18:41:07 1996  Stu Grossman  ([email protected])
1275
1276         * elf32-v850.c (bfd_elf32_v850_is_local_label):  New function to
1277         remove dwarf local labels.  Shrinks binaries by a factor of 3!
1278
1279 end-sanitize-v850
1280 Mon Sep 23 13:33:00 1996  Ian Lance Taylor  <[email protected]>
1281
1282         * elf32-ppc.c (ppc_elf_add_symbol_hook): Create the .sbss section
1283         by hand, rather than by calling bfd_make_section.
1284
1285 start-sanitize-m32r
1286 Mon Sep 23 09:23:41 1996  Doug Evans  <[email protected]>
1287
1288         * reloc.c: Rename m32r relocs.
1289         * bfd-in2.h, libbfd.h: Rebuilt.
1290         * elf32-m32r.c: Update.
1291
1292 end-sanitize-m32r
1293 Fri Sep 20 11:43:43 1996  Ian Lance Taylor  <[email protected]>
1294
1295         * aoutx.h (aout_link_input_section_ext): When doing a relocateable
1296         link, adjust the symbol index of a base relative reloc.  Don't
1297         change the addend of a PC relative reloc if pcrel_offset is set.
1298         * sunos.c (bfd_sunos_size_dynamic_sections): Don't do anything for
1299         a relocateable link.
1300
1301         * reloc.c (bfd_perform_relocation): Apply the relocation even if
1302         it is zero, in case src_mask matters.
1303         (bfd_install_relocation): Likewise.
1304
1305 Thu Sep 19 11:03:06 1996  Ian Lance Taylor  <[email protected]>
1306
1307         * xcofflink.c (xcoff_link_add_symbols): Always initialize
1308         keep_syms.
1309         (_bfd_xcoff_bfd_final_link): Don't set target_index
1310         to an uninitialized value.
1311
1312 Tue Sep 17 14:18:31 1996  Ian Lance Taylor  <[email protected]>
1313
1314         * coffcode.h (coff_slurp_line_table): Warn about illegal symbol
1315         indices, rather than crashing.
1316         (coff_slurp_reloc_table): Likewise.  Check whether the howto field
1317         is NULL.
1318         * coff-sh.c (sh_relocate_section): Check for an illegal symbol
1319         index.
1320
1321 Mon Sep 16 12:39:36 1996  Ian Lance Taylor  <[email protected]>
1322
1323         * coff-arm.c (aoutarm_std_reloc_howto): Change dst_mask for ARM26D
1324         reloc to 0.
1325         (coff_arm_adjust_symndx): New static function.
1326         (coff_adjust_symndx): Define.
1327
1328         * srec.c (srec_scan): Accept multiple symbols on a single line.
1329         From Pascal Martin <[email protected]>.
1330
1331         * README: New file.
1332
1333 Fri Sep 13 14:32:42 1996  Doug Evans  <[email protected]>
1334
1335         * aoutf1.h (MY_bfd_merge_private_bfd_data): Define.
1336         (sunos_merge_private_bfd_data): New function.
1337
1338 Fri Sep 13 15:50:57 1996  Ian Lance Taylor  <[email protected]>
1339
1340         * bfd.c (bfd_copy_private_bfd_data): Switch on output BFD rather
1341         than input BFD.
1342         (bfd_merge_private_bfd_data): Likewise.
1343         * section.c (bfd_copy_private_section_data): Likewise.
1344         * syms.c (bfd_copy_private_symbol_data): Likewise.
1345         * bfd-in2.h: Rebuild.
1346         * aout-target.h (MY_bfd_copy_private_section_data): Check that
1347         both BFD's are the right flavour.
1348         * ecoff.c (_bfd_ecoff_bfd_copy_private_bfd_data): Likewise.
1349         * elf.c (_bfd_elf_copy_private_symbol_data): Likewise.
1350         * elf32-mips.c (_bfd_mips_elf_copy_private_bfd_data): Likewise.
1351         (_bfd_mips_elf_merge_private_bfd_data): Likewise.
1352         * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Likewise.
1353         (ppc_elf_merge_private_bfd_data): Likewise.
1354         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Likewise.
1355         * peicode.h (pe_bfd_copy_private_section_data): Likewise.
1356
1357         * elf32-hppa.c (elf_hppa_howto_table): Fill in some fields for
1358         R_PARISC_DIR32, so that _bfd_stab_section_find_nearest_line passes
1359         its sanity check.
1360
1361 start-sanitize-m32r
1362 Thu Sep 12 11:45:57 1996  Doug Evans  <[email protected]>
1363
1364         * reloc.c: Add m32r relocs.
1365         * bfd-in2.h, libbfd.h: Rebuilt.
1366         * cpu-m32r.c,elf32-m32r.c: New files.
1367
1368 end-sanitize-m32r
1369 Thu Sep 12 11:10:05 1996  Ian Lance Taylor  <[email protected]>
1370
1371         * ieee.c (ieee_vec): Set symbol_leading_char field to '_'.
1372
1373 Wed Sep 11 11:57:56 1996  Ian Lance Taylor  <[email protected]>
1374
1375         * tekhex.c (first_phase): Change type parameter from char to int.
1376         (out): Likewise.
1377         (pass_over): Change func to expect int, not char.
1378
1379         * elf.c (assign_file_positions_for_segments): Test SEC_ALLOC
1380         rather than SEC_LOAD when aligning the file offset for the first
1381         section in a segment.
1382
1383 Tue Sep 10 16:18:30 1996  Fred Fish  <[email protected]>
1384
1385         * syms.c (coff_section_type): Make arg const.
1386         * irix-core.c (irix_core_core_file_p): Remove extraneous extra arg
1387         to make_bfd_asection().
1388         * elf-bfd.h (bfd_section_from_phdr): Add prototype.
1389         * elfcode.h (bfd_section_from_phdr): Remove prototype.
1390         (_bfd_elf_stringtab_init): Remove prototype.
1391
1392         * netbsd-core.c (swap_abort): Add prototype.
1393         * aix386-core.c (swap_abort): Ditto & make static
1394         * hpux-core.c (swap_abort): Ditto & make static.
1395         * irix-core.c (swap_abort): Ditto & make static.
1396         * ptrace-core.c (swap_abort): Ditto & make static.
1397         * trad-core.c (swap_abort): Ditto & make static.
1398         * coffswap.h (coff_swap_reloc_in): Ditto.
1399         (coff_swap_reloc_out): Ditto.
1400         (coff_swap_filehdr_in): Ditto.
1401         (coff_swap_filehdr_out): Ditto.
1402         (coff_swap_sym_in): Ditto.
1403         (coff_swap_sym_out): Ditto.
1404         (coff_swap_aux_in): Ditto.
1405         (coff_swap_aux_out): Ditto.
1406         (coff_swap_lineno_in): Ditto.
1407         (coff_swap_lineno_out): Ditto.
1408         (coff_swap_aouthdr_in): Ditto.
1409         (coff_swap_aouthdr_out): Ditto.
1410         (coff_swap_scnhdr_in): Ditto.
1411         (coff_swap_scnhdr_out): Ditto.
1412         * ihex.c (ihex_sizeof_headers): Ditto.
1413         * tekhex.c (getsym): Ditto.
1414         (find_chunk): Ditto & make static.
1415         (insert_byte): Ditto.
1416         (first_phase): Ditto.
1417         (pass_over): Ditto.
1418         (tekhex_get_symtab): Ditto & make static.
1419         (tekhex_get_symtab_upper_bound): Ditto & make static.
1420         (tekhex_mkobject): Ditto.
1421         (tekhex_object_p): Ditto.
1422         (move_section_contents): Ditto.
1423         (tekhex_get_section_contents): Ditto.
1424         (tekhex_set_arch_mach): Ditto & make static.
1425         (tekhex_set_section_contents): Ditto.
1426         (writevalue): Ditto.
1427         (writesym): Ditto.
1428         (out): Ditto.
1429         (tekhex_write_object_contents): Ditto.
1430         (tekhex_sizeof_headers): Ditto.
1431         (tekhex_make_empty_symbol): Ditto.
1432         (tekhex_get_symbol_info): Ditto.
1433         (tekhex_print_symbol): Ditto.
1434         * irix-core.c (make_bfd_asection): Ditto.
1435         (irix_core_core_file_p): Ditto.
1436         (irix_core_core_file_failing_command): Ditto.
1437         (irix_core_core_file_failing_signal): Ditto.
1438         (irix_core_core_file_matches_executable_p): Ditto.
1439         (irix_core_make_empty_symbol): Ditto.
1440         * coff-mips.c (mips_bfd_reloc_type_lookup): Ditto.
1441         * srec.c (srec_new_symbol): Ditto.
1442         (srec_get_section_contents): Ditto.
1443         (srec_set_arch_mach): Ditto.
1444         (srec_set_section_contents): Ditto.
1445         (internal_srec_write_object_contents): Ditto.
1446         (srec_write_object_contents): Ditto.
1447         (symbolsrec_write_object_contents): Ditto.
1448         (srec_sizeof_headers): Ditto.
1449         (srec_make_empty_symbol): Ditto.
1450         (srec_get_symtab_upper_bound): Ditto.
1451         (srec_get_symtab): Ditto.
1452         (srec_print_symbol): Ditto and make static.
1453         * elf.c (elf_read): Ditto
1454         (assign_section_numbers): Ditto.
1455         (elf_fake_sections): Ditto.
1456         (sym_is_global): Ditto.
1457         (elf_map_symbols): Ditto.
1458         (get_program_header_size): Ditto.
1459         * coffgen.c (make_a_section_from_file): Ditto.
1460         (coff_real_object_p): Ditto.
1461         (fixup_symbol_value): Ditto.
1462         (build_debug_section): Ditto.
1463         (copy_name): Ditto.
1464         * syms.c (coff_section_type): Ditto.
1465         
1466 start-sanitize-m32r
1467 Mon Sep  9 22:36:01 1996  Jeffrey A Law  ([email protected])
1468
1469         * bfd-in2.h: Rebuilt after m32r changes.
1470
1471 end-sanitize-m32r
1472 Mon Sep  9 12:31:22 1996  Doug Evans  <[email protected]>
1473
1474 start-sanitize-m32r
1475         * config.bfd,configure.in,configure: Add m32r support.
1476         * Makefile.in,archures.c,elf.c,targets.c: Likewise.
1477 end-sanitize-m32r
1478         * config.bfd: Keep target list alphabetically sorted.
1479
1480 start-sanitize-v850
1481 Mon Sep  9 11:48:41 1996  Jeffrey A Law  ([email protected])
1482
1483         * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget
1484         to add in the constant part found in the instruction itself.
1485         (case R_V850_HI16_S): Likewise.
1486
1487 end-sanitize-v850 
1488 Fri Sep  6 17:04:39 1996  Martin M. Hunt  <[email protected]>
1489
1490         * elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16
1491         and R_D10V_18 to be 1 (word).
1492
1493 Thu Sep  5 15:23:08 1996  Ian Lance Taylor  <[email protected]>
1494
1495         * stabs.c (_bfd_link_section_stabs): If the output_section field
1496         of either section is bfd_abs_section, then the linker is
1497         discarding the section and we should not optimize it.
1498
1499 Tue Sep  3 12:16:20 1996  Doug Evans  <[email protected]>
1500
1501         * Makefile.in (aout-sparcle.o): New target.
1502         * aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian.
1503         * config.bfd (sparclet-*-aout*): Add case.
1504         * configure.in (sparcle_aout_vec): Add case.
1505         * configure: Regenerated.
1506         * targets.c (sparcle_aout_vec): Declare.
1507         (bfd_target_vector): Add sparcle_aout_vec.
1508         * aout-sparcle.c: New file.
1509
1510 start-sanitize-v850
1511 Tue Sep  3 00:57:02 1996  Jeffrey A Law  ([email protected])
1512
1513         * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of
1514         low order sign bit propogation for R_V850_HI16_S.
1515
1516         * elf32-v850.c (bfd_elf32_v850_reloc): New function for
1517         handling V850 specific relocs.
1518         (elf_v850_howto_table): Use the new function for some
1519         relocations.  Twiddle masks & shifts for some relocs.
1520         Set partial_inplace where needed.
1521
1522 end-sanitize-v850
1523 Mon Sep  2 12:12:34 1996  Ian Lance Taylor  <[email protected]>
1524
1525         * cpu-mips.c: Add an explicit mips:3000 entry, and change the
1526         default architecture to a machine number of 0.
1527         * elf32-mips.c (_bfd_mips_elf_object_p): Set the machine number
1528         for E_MIPS_ARCH_1.
1529         (_bfd_mips_elf_merge_private_bfd_data): If the machine number of
1530         the output BFD is the default, set it from the first input BFD.
1531
1532 start-sanitize-v850
1533 Sun Sep  1 18:38:01 1996  Jeffrey A Law  ([email protected])
1534
1535         * elf32-v850.c (elf_v850_howto_table): All the 16bit relocs
1536         insert at bitpos zero.  The HI16 relocs are shifted right
1537         by 16 bits.  Fix src_mask for all relocs.
1538         (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Define.  The V850 is
1539         little endian!
1540         (TARGET_BIG_SYM, TARGET_BIG_NAME): Remove.  The V850 is little
1541         endian!
1542
1543 end-sanitize-v850
1544 Sun Sep  1 15:41:08 1996  Ian Lance Taylor  <[email protected]>
1545
1546         * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
1547         Rewrite to use BFD file read routines and to avoid using a fixed
1548         length for the file name.
1549
1550 start-sanitize-v850
1551 Sat Aug 31 10:22:25 1996  Jeffrey A Law  ([email protected])
1552
1553         * elf32-v850.c (enum reloc_type): Add R_V850_{32,16,8}.
1554         (elf_v850_howto_table): Add support for R_V850_{32,16,8}.
1555         (v850_reloc_map): Add translation from BFD_RELOC_{32,16,8}
1556         to R_V850_{32,16,8}.
1557
1558 Fri Aug 30 18:06:04 1996  J.T. Conklin  <[email protected]>
1559
1560         * elf32-v850.c (reloc_type): Add R_V850_HI16_S.
1561         (elf_v850_howto_table): Add info for HI16_S reloc.
1562         (v850_reloc_map): Add HI_16_S reloc.
1563         * reloc.c: Define BFD_RELOC_V850_* relocs.
1564
1565 end-sanitize-v850
1566 Fri Aug 30 11:49:19 1996  Ian Lance Taylor  <[email protected]>
1567
1568         Add SH ELF support.
1569         * elf32-sh.c: New file.
1570         * elf.c (prep_headers): Handle bfd_arch_sh.
1571         * elfcode.h (write_relocs): Handle absolute symbol.
1572         * elf-bfd.h (_bfd_elf32_link_read_relocs): Declare.
1573         (_bfd_elf64_link_read_relocs): Declare.
1574         * elflink.h (NAME(_bfd_elf,link_read_relocs)): Rename from
1575         elf_link_read_relocs.  Make globally visible.  Change all
1576         callers.
1577         (elf_link_input_bfd): Get external symbols from cache in
1578         symtab_hdr->contents.  Get contents from cache in
1579         elf_section_data.
1580         * elfxx-target.h (bfD_elfNN_bfd_relax_section): Only define if not
1581         already defined.
1582         * reloc.c: Define BFD_RELOC_SH_* relocs.
1583         * libbfd-in.h (_bfd_sh_align_load_span): Declare.
1584         * coff-sh.c (sh_insns_conflict): Fix a return value.
1585         (_bfd_sh_align_load_span): New globally visible function, broken
1586         out of sh_align_load.
1587         (sh_align_load): Call _bfd_sh_align_load_span.
1588         (sh_swap_insns): Change relocs parameter to PTR.
1589         * bfd-in2.h, libbfd.h: Rebuild.
1590         * targets.c (bfd_elf32_sh_vec): Declare.
1591         (bfd_elf32_shl_vec): Declare.
1592         * config.bfd (sh-*-elf*): New target.
1593         * configure.in (bfd_elf32_sh_vec): New target vector.
1594         (bfd_elf32_shl_vec): New target vector.
1595         * configure: Rebuild.
1596         * Makefile.in: Rebuild dependencies.
1597         (BFD32_BACKENDS): Add elf32-sh.o.
1598         (BFD32_BACKENDS_CFILES): Add elf32-sh.c.
1599
1600         * elf.c (map_sections_to_segments): Check that LMA does not skip a
1601         page before checking D_PAGED.
1602
1603         * ihex.c (ihex_scan): Removed unnecessary extbase variable.
1604         (ihex_write_object_contents): Remove extbase; always use segbase
1605         instead.
1606
1607 Thu Aug 29 16:52:17 1996  Michael Meissner  <[email protected]>
1608
1609         * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
1610         * configure.host (i[345]86-*-*): Ditto.
1611         * config.bfd (i[345]86-*-*): Ditto.
1612         * configure: Regenerate.
1613
1614         * config.bfd (i[3456]86-*-dgux*): Recognize as a synonym for x86
1615         elf.
1616
1617 Tue Aug 27 09:18:18 1996  Jeffrey A Law  ([email protected])
1618
1619         * elf32-hppa.c (hppa_elf_gen_reloc_type): Add new argument.
1620         * elf32-hppa.h (hppa_elf_gen_reloc_type): Update prototype.
1621         * som.c (hppa_som_gen_reloc_type): Add new argument.  If
1622         we encounter an R_DATA_ONE_SYMBOL reloc against a symbol that
1623         will have an ST_CODE type, change the symbol's type to ST_DATA.
1624         * som.c (hppa_som_gen_reloc_type): Update prototype.
1625
1626 Tue Aug 27 00:12:22 1996  Ian Lance Taylor  <[email protected]>
1627
1628         * elf32-mips.c (mips_elf_check_relocs): Set dynobj if needed for
1629         R_MIPS_32 and R_MIPS_REL32.  Set sgot and g as soon as possible.
1630         (mips_elf_size_dynamic_sections): Don't require .got to exist.
1631         (mips_elf_finish_dynamic_sections): Likewise.
1632
1633 Thu Aug 22 10:54:38 1996  Ian Lance Taylor  <[email protected]>
1634
1635         * configure.host (HLDENV): New variable to set.  Set it for
1636         *-*-sysv4*, since those linkers may not support -R but they always
1637         support LD_RUN_PATH.
1638
1639         * libieee.h (NSECTIONS): Don't define.
1640         (ieee_data_struct): Change section_table to asection **.  Add
1641         section_table_size.
1642         * ieee.c (get_section_entry): If the table isn't big enough, make
1643         it bigger.
1644         (ieee_slurp_sections): Remove assertion about number of sections.
1645         (ieee_object_p): Adjust initialization of ieee to match changes to
1646         the structure.
1647
1648         * xcofflink.c (xcoff_mark): Don't copy relocs for undefined
1649         symbols merely because we are generating a shared library.
1650         (xcoff_build_ldsyms): Don't set up global linkage code for an
1651         undefined symbol merely because we are generating a shared
1652         library.
1653
1654 start-sanitize-v850
1655 Tue Aug 20 15:06:05 1996  J.T. Conklin  <[email protected]>
1656         
1657         * Makefile.in (ALL_MACHINES): Add cpu-v850.o.
1658         (BFD32_BACKENDS) Add elf32-v850.o.
1659         * archures.c: Add bfd_v850_arch.
1660         * bfd-in2.h: Add bfd_v850_arch.
1661         * config.bfd (v850-*-*): New target.
1662         * configure: (bfd_elf32_v850_vec) New vector.
1663         * configure.in: (bfd_elf32_v850_vec) New vector.
1664         * cpu-v850.c: New file.
1665         * elf.c (prep_headers): Added case bfd_arch_v850.
1666         * elf32-v850.c: New file.
1667         * targets.c (bfd_elf32_v850_vec): New vector.
1668         
1669 end-sanitize-v850
1670 Fri Aug 16 16:25:35 1996  Ian Lance Taylor  <[email protected]>
1671
1672         * xcofflink.c (xcoff_link_add_dynamic_symbols): Create and define
1673         a function code symbol for an XMC_XO symbol.
1674
1675 Thu Aug 15 12:33:29 1996  Stan Shebs  <[email protected]>
1676
1677         * mpw-config.in: Update editing of autoconf vars to reflect
1678         Jul 18 configure.in change.
1679         * mpw-make.sed: Update editing of include pathnames to be
1680         more general, add @DASH_C_FLAG@ to explicit compile rule edit.
1681
1682 Thu Aug 15 10:35:13 1996  Richard Henderson  <[email protected]>
1683
1684         * elf64-alpha.c (elf64_alpha_output_extsym): The section from
1685         which to offset to get the .plt entry address is ".plt".
1686
1687 Thu Aug 15 16:40:30 1996  James G. Smith  <[email protected]>
1688
1689         * reloc.c: (BFD_RELOC_ARM_THUMB_ADD, BFD_RELOC_ARM_THUMB_IMM,
1690         BFD_RELOC_ARM_THUMB_SHIFT, BFD_RELOC_ARM_THUMB_OFFSET):
1691         Added, for internal use by the ARM gas.
1692         * libbfd.h: Rebuilt
1693         * bfd-in2.h: Rebuilt
1694
1695 Wed Aug 14 17:02:09 1996  Richard Henderson  <[email protected]>
1696
1697         * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Correct typo
1698         in section dynidx start.
1699
1700 Tue Aug 13 14:35:38 1996  Ian Lance Taylor  <[email protected]>
1701
1702         * elf.c (_bfd_elf_make_section_from_shdr): Treat sections whose
1703         name begins with .gnu.linkonce as SEC_LINK_ONCE.  This is an
1704         optimization for g++.
1705
1706 Tue Aug 13 17:04:40 1996  Michael Meissner  <[email protected]>
1707
1708         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): If one module has
1709         the -mrelocatable-lib bit set and the other doesn't, clear the
1710         -mrelocatable-lib bit in the header.
1711
1712 Sat Aug 10 22:59:17 1996  Ian Lance Taylor  <[email protected]>
1713
1714         * elflink.h (elf_link_add_object_symbols): Do not resolve a common
1715         symbol against a STT_FUNC symbol in a shared library.
1716
1717 Fri Aug  9 12:44:57 1996  Ian Lance Taylor  <[email protected]>
1718
1719         * xcofflink.c (xcoff_link_add_dynamic_symbols): If a descriptor
1720         symbol is found, automatically define the corresponding function
1721         code.
1722
1723         * cofflink.c (coff_link_add_symbols): Only set (*sym_hash)->numaux
1724         if sym.n_numaux is not zero.
1725         (_bfd_coff_link_input_bfd): Permit the symbol and the hash table
1726         entry to disagree about the number of aux entries if the symbol
1727         has zero.
1728
1729         * elf32-mips.c (mips_elf_check_relocs): Create the .rel.dyn
1730         section if it might be needed, not just if info->shared.
1731         (mips_elf_adjust_dynamic_symbol): Make room for a null element at
1732         the start of .rel.dyn if we are going to use it.
1733         (mips_elf_finish_dynamic_sections): Only clear the first element
1734         of .rel.dyn if the size is greater than zero.
1735
1736 Thu Aug  8 16:24:55 1996  Ian Lance Taylor  <[email protected]>
1737
1738         * xcofflink.c (xcoff_link_input_bfd): If we already called the
1739         undefined_symbol callback for a symbol, then don't issue any more
1740         warnings about loader relocs.
1741         (_bfd_ppc_xcoff_relocate_section): Don't do any further processing
1742         after calling the undefined_symbol callback.
1743
1744         * xcofflink.c (XCOFF_MULTIPLY_DEFINED): Define.
1745         (xcoff_link_add_symbols): Permit multiple definitions of a symbol
1746         as the AIX linker seems to do.
1747
1748 Thu Aug  8 12:21:56 1996  Klaus Kaempf  <[email protected]>
1749
1750         * evax-alpha.c (evax_alpha_vec): Corrected flags, cleanup.
1751         (evax_initialize): Remove evax_reloc_table.
1752         (evax_close_and_cleanup): Ditto.
1753         (reloc_nil): Ditto.
1754         (alpha_howto_table): Remove ALPHA_R_SWREL32 and ALPHA_R_SWREL64
1755         entries.
1756         (evax_bfd_reloc_type_lookup): Ditto.
1757         * evax-egsd.c (_bfd_evax_slurp_egsd): Add a few casts; set
1758         cooked_size == raw_size.
1759         * evax-emh.c (_bfd_evax_register_filename): Remove.
1760         * evax-etir.c (etir_stc): Allow ETIR_S_C_STC_xx commands.
1761         * evax-misc.c (add_new_contents): Malloc section at full size.
1762         (_bfd_save_evax_section): Memcpy section contents directly.
1763         * evax.h (ALPHA_R_SWREL32, ALPHA_R_SWREL64): Remove.
1764         (evax_reloc_table): Remove.
1765
1766         * hosts/alphavms.h (O_ACCMODE): Define if needed.
1767
1768         * makefile.vms: Add better support for DEC C compilation
1769         Add evax.h dependencies
1770
1771         * reloc.c (bfd_get_reloc_size): Add case for 16 byte reloc.
1772         (BFD_RELOC_SWREL32,BFD_RELOC_SWREL64): Remove.
1773         (BFD_RELOC_ALPHA_BASEREG): Remove.
1774         * bfd-in2.h, libbfd.h: Rebuild.
1775
1776 Thu Aug  8 08:17:32 1996  Stu Grossman  ([email protected])
1777
1778         * archive.c (bsd_write_armap):  Ifdef around calls to getuid and
1779         getgid if _WIN32 is defined.
1780         * opncls.c (bfd_fdopenr):  Remove unnecessary WINGDB ifdef.
1781
1782 Wed Aug  7 23:19:00 1996  Stu Grossman  ([email protected])
1783
1784         * aoutx.h bfd-in.h bfd-in2.h opncls.c riscix.c som.c targets.c:
1785         Change NO_FLAGS to BFD_NO_FLAGS to avoid conflict with an HPUX
1786         include file.
1787         * libbfd.c:  Create dummy getpagesize() macro if HAVE_GETPAGESIZE
1788         isn't defined.
1789
1790 Wed Aug  7 14:11:44 1996  Philippe De Muyter  <[email protected]>
1791
1792         * configure.in: Call BFD_NEEDED_DECLARATION on strstr and
1793         realloc.
1794         * acconfig.h (NEED_DECLARATION_STRSTR): New macro.
1795         (NEED_DECLARATION_REALLOC): New macro.
1796         * configure, config.in: Rebuild.
1797         * sysdep.h (strstr): Declare if NEED_DECLARATION_STRSTR.
1798         (realloc): Declare if NEED_DECLARATION_REALLOC.
1799
1800         * aclocal.m4 (BFD_NEED_DECLARATION): Include <string.h> or
1801         <strings.h> if they exist.
1802
1803         * ieee.c (ieee_set_section_contents): Cast bfd_alloc return.
1804
1805 Wed Aug  7 12:12:03 1996  Ian Lance Taylor  <[email protected]>
1806
1807         * cpu-i386.c (i8086_arch): Architecture info for the i8086.
1808
1809         Based on patches from Eric Valette <[email protected]>:
1810         * elf32-i386.c (enum reloc_type): Add FIRST_INVALID_RELOC,
1811         LAST_INVALID_RELOC, R_386_16, R_386_PC16, R_386_8, R_386_PC8.
1812         (elf_howto_table): Add entries for new relocs.
1813         (elf_i386_reloc_type_lookup): Handle new relocs.
1814         (elf_i386_info_to_howto): Just call abort.
1815         (elf_i386_info_to_howto_rel): Check that the reloc type is valid.
1816         (elf_i386_relocate_section): Likewise.
1817
1818 Tue Aug  6 12:54:56 1996  Martin M. Hunt  <[email protected]>
1819
1820         * elf32-d10v.c (elf_d10v_howto_table): Added R_D10V_32.
1821
1822 Mon Aug  5 13:42:41 1996  Ian Lance Taylor  <[email protected]>
1823
1824         * elf.c (_bfd_elf_make_section_from_shdr): For a loadable section,
1825         only get the LMA from the phdr if they are in the same part of the
1826         file.
1827
1828         * elf.c (map_sections_to_segments): Rewrite tests for starting a
1829         new segment to make them more comprehensible.  If the relationship
1830         between the LMA and the VMA changed, start a new segment.  Don't
1831         check dynsec when deciding whether to start a new segment for a
1832         writeable section; -N will now handle this.
1833
1834 Thu Aug  1 22:43:08 1996  Jeffrey A Law  ([email protected])
1835
1836         * libhppa.h: Remove "esel" changes.  Not the right approach.
1837         * som.c: Corresponding changes.
1838         (som_bfd_derive_misc_symbol_info): Use ST_DATA for symbols
1839         which don't have a SOM symbol type associated with them.
1840         Reverses a 1994 change.
1841
1842 Wed Jul 31 15:50:55 1996  Ian Lance Taylor  <[email protected]>
1843
1844         Make ld -N more reasonable for ELF:
1845         * elf.c (map_sections_to_segments): If D_PAGED is not set, set
1846         phdr_in_section to false, and always use a single load segment.
1847         (elf_sort_sections): Sort sections by LMA after VMA.
1848         (assign_file_positions_for_segments): If D_PAGED is not set, don't
1849         align to maxpagesize.
1850         (assign_file_positions_except_relocs): Likewise.
1851         * elfcode.h (elf_object_p): If a section is loaded but not page
1852         aligned, clear D_PAGED.
1853
1854 Wed Jul 31 15:00:12 1996  James G. Smith  <[email protected]>
1855
1856         * reloc.c: (BFD_RELOC_ARM_OFFSETIMM8, BFD_RELOC_ARM_HWLITERAL):
1857         Added, for internal use by the ARM gas.
1858         * libbfd.h: Rebuilt
1859         * bfd-in2.h: Rebuilt
1860
1861 Tue Jul 30 14:14:57 1996  Jeffrey A Law  ([email protected])
1862
1863         * libhppa.h (R_HPPA_ESEL): New field selector.
1864         (e_esel): Similarly.
1865         * som.c (hppa_som_gen_reloc_type): If we encounter an e_esel,
1866         then generate R_COMP2 (PUSH_SYM), R_DATA_EXPR fixup stream.
1867         (som_write_fixups): Handle R_DATA_EXPR just like R_CODE_EXPR.
1868
1869 Tue Jul 30 13:31:27 1996  Ian Lance Taylor  <[email protected]>
1870
1871         * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Do the regular
1872         archive search before looking for stripped dynamic objects.
1873
1874 Fri Jul 26 17:51:39 1996  Ian Lance Taylor  <[email protected]>
1875
1876         * xcofflink.c (xcoff_build_ldsyms): Make exporting an undefined
1877         symbol a warning rather than an error.
1878
1879 Wed Jul 24 12:02:53 1996  Ian Lance Taylor  <[email protected]>
1880
1881         * elf.c (assign_file_positions_for_segments): Track the virtual
1882         memory position separately from the file position, and use it to
1883         compute the alignment adjustment.
1884
1885 Tue Jul 23 10:43:31 1996  Martin M. Hunt  <[email protected]>
1886
1887         * elf32-d10v.c (elf_d10v_howto_table): Changed all relocs to "long"
1888         and fixed mask on R_D10V_10_PCREL_L.
1889
1890 Mon Jul 22 15:30:30 1996  Ian Lance Taylor  <[email protected]>
1891
1892         * elf64-mips.c: Include "aout/ar.h".
1893         (mips_elf64_slurp_armap): New static function.
1894         (mips_elf64_write_armap): New static function.
1895         (bfd_elf64_archive_*): Define.
1896         * elfxx-target.h (bfd_elfNN_archive_p): Define if not defined.
1897         Use instead of bfd_generic_archive_p.
1898         (bfd_elfNN_write_archive_contents): Define if not defined.  Use
1899         instead of _bfd_write_archive_contents.
1900         (bfd_elfNN_mkdarchive): Define if not defined.  Use instead of
1901         _bfd_generic_mkarchive.
1902         (TARGET_BIG_SYM): If bfd_elfNN_archive_functions is defined, use
1903         bfd_elfNN_archive in BFD_JUMP_TABLE_ARCHIVE rather than
1904         _bfd_archive_coff.
1905         (TARGET_LITTLE_SYM): Likewise.
1906         * archive.c (bfd_slurp_armap): Check for and reject an archive map
1907         name of /SYM64/.
1908         * Makefile.in: Rebuild dependencies.
1909
1910         * elf32-mips.c (_bfd_mips_elf_final_write_processing): Handle
1911         SHT_MIPS_LIBLIST, SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and
1912         SHT_MIPS_EVENTS sections.
1913         (_bfd_mips_elf_section_from_shdr): Handle SHT_MIPS_IFACE,
1914         SHT_MIPS_CONTENT, SHT_MIPS_SYMBOL_LIB, and SHT_MIPS_EVENTS
1915         sections.
1916         (_bfd_mips_elf_fake_sections): Likewise.
1917
1918         * libecoff.h (ecoff_data_type): Add rdata_in_text field.
1919         * ecoff.c (ecoff_compute_section_file_positions): Copy
1920         rdata_in_text from backend info to tdata.  Clear it if any data
1921         section comes before .rdata.
1922         (_bfd_ecoff_write_object_contents): Use rdata_in_text field in
1923         tdata rather than backend info.
1924
1925 Fri Jul 19 18:15:51 1996  Ian Lance Taylor  <[email protected]>
1926
1927         * configure.in: Fix test for whether a compiler has a 64 bit
1928         type.  From Jim Wilson <[email protected]>.
1929
1930 Thu Jul 18 15:39:10 1996  Ian Lance Taylor  <[email protected]>
1931
1932         * configure.host (mips-sgi-irix6*): New host.
1933
1934         * configure.in: Set and substitute VERSION, BFD_HOST_64BIT_LONG
1935         (replacing HOST_64BITLONG), BFD_HOST_64_BIT_DEFINED,
1936         BFD_HOST_64_BIT, and BFD_HOST_U_64_BIT.  Add bfd-in2.h:bfd-in2.h
1937         to AC_OUTPUT call.
1938         * configure: Rebuild.
1939         * bfd-in.h (BFD_ARCH_SIZE): Define as @wordsize@, not @WORDSIZE@.
1940         (BFD_HOST_64_BIT): Define conditionally.
1941         (BFD_HOST_U_64_BIT): Define when BFD_HOST_64_BIT is defined.
1942         (bfd_vma): Typedef as BFD_HOST_U_64_BIT.
1943         (symvalue, bfd_size_type): Likewise.
1944         * bfd-in2.h: Rebuild.
1945         * Makefile.in (do_clean): Remove bfd-tmp.h.
1946         (do_distclean): Remove bfd-in3.h.
1947         (stmp-bfd.h): Just do copy-if-change bfd-in3.h bfd.h.
1948         (bfd-in3.h): New target.
1949
1950         * config.bfd (sparc-*-sysv4*): Don't build sunos_big_vec.  From
1951         Andrew Gierth <[email protected]>.
1952
1953         * configure.host: Set INSTALL_SHLIB.
1954         * configure.in: Call AC_SUBST (INSTALL_SHLIB).
1955         * configure: Rebuild.
1956         * Makefile.in (install): Use @INSTALL_SHLIB@.
1957
1958         * config.bfd (mips*-*-irix6*): New target.
1959         * configure.host: Handle Irix 6 shared library like Irix 5.
1960
1961         * xcofflink.c (xcoff_link_add_symbols): Don't check an XMC_TD
1962         symbol for a magic name.
1963         (xcoff_link_input_bfd): Don't change the reloc symbol for an
1964         XMC_TD symbol.
1965         (_bfd_ppc_xcoff_relocate_section): Don't get the TOC offset for an
1966         XMC_TD symbol.
1967
1968 Thu Jul 18 11:36:31 1996  Stan Shebs  <[email protected]>
1969
1970         * mpw-config.in: Add ELF support to mips config, create the
1971         elf32-target.h file in the object dir.
1972         * mpw-make.sed: Edit elfXX-target.h refs at beginnings of lines.
1973
1974 Wed Jul 17 18:02:32 1996  Kim Knuttila  <[email protected]>
1975
1976         * coff-ppc.c: Redid debug scheme - numerous fprintf's gone.
1977         Also removed most abort calls, in favor of using bfd reporting.
1978
1979 Wed Jul 17 14:51:52 1996  Martin M. Hunt  <[email protected]>
1980
1981         * Makefile.in (ALL_MACHINES): Add cpu-d10v.o.
1982         (BFD32_BACKENDS) Add elf32-d10v.o.
1983         * archures.c: Add bfd_d10v_arch.
1984         * bfd-in2.h: Add bfd_d10v_arch.
1985         * config.bfd (d10v-*-*): New target.
1986         * configure: (bfd_elf32_d10v_vec) New vector.
1987         * configure.in: (bfd_elf32_d10v_vec) New vector.
1988         * cpu-d10v.c: New file.
1989         * elf.c (prep_headers): Added case bfd_arch_d10v.
1990         * elf32-d10v.c: New file.
1991         * libbfd.h: Rebuild.
1992         * reloc.c (BFD_RELOC_D10V_10_PCREL_R, BFD_RELOC_D10V_10_PCREL_L,
1993         BFD_RELOC_D10V_18, BFD_RELOC_D10V_18_PCREL): Define.
1994         * targets.c (bfd_elf32_d10v_vec): New vector.
1995         
1996 Wed Jul 17 10:58:55 1996  Kim Knuttila  <[email protected]>
1997
1998         * coff-ppc.c (coff_ppc_relocate_section): Removed bogus fprintf
1999
2000 Tue Jul 16 23:49:02 1996  Stu Grossman  ([email protected])
2001
2002         * archures.c bfd-in2.h:  Add bfd_mach_i386_i386 and
2003         bfd_mach_i386_i8086 machine types.
2004
2005 Wed Jul 10 12:42:56 1996  Ian Lance Taylor  <[email protected]>
2006
2007         * ecoff.c (_bfd_ecoff_new_section_hook): Set SEC_CODE for _INIT
2008         and _FINI sections.
2009
2010 Wed Jul 10 11:18:21 1996  Richard Henderson  <[email protected]>
2011
2012         * coffcode.h (coff_set_section_contents): A/UX does not require
2013         special handling of the _LIB section.
2014
2015 Tue Jul  9 15:52:20 1996  Jeffrey A Law  ([email protected])
2016
2017         * coff-h8300.c (h8300_reloc16_extra_cases): Use the correct
2018         value for R_RELBYTE.
2019
2020         * reloc16.c (bfd_coff_reloc16_relax_section): Only "shrinks"
2021         array if one was allocated.
2022
2023 Tue Jul  9 12:21:54 1996  Ian Lance Taylor  <[email protected]>
2024
2025         From Kazumoto Kojima <[email protected]>:
2026         * elf32-mips.c (struct mips_elf_link_hash_table): Add new fields
2027         use_rld_obj_head and rld_value.
2028         (mips_elf_link_hash_table_create): Initialize new fields.
2029         (mips_elf_add_symbol_hook): Mark __rld_obj_head symbol as
2030         dynamic.
2031         (mips_elf_create_dynamic_sections): Create .rld_map section.  If
2032         __rld_obj_head symbol not seen, create an __rld_map symbol.
2033         (mips_elf_size_dynamic_sections): Make space in .rld_map section.
2034         Create a DT_MIPS_RLD_MAP entry rather than a DT_DEBUG entry.
2035         (mips_elf_finish_dynamic_symbol): Save value of __rld_map or
2036         __rld_obj_head symbol.
2037         (mips_elf_finish_dynamic_sections): Handle DT_MIPS_RLD_MAP.
2038
2039 Mon Jul  8 16:18:03 1996  Ian Lance Taylor  <[email protected]>
2040
2041         * elf32-mips.c (mips_reloc_map): Remove BFD_RELOC_32_PCREL entry.
2042
2043         * elf32-ppc.c (ppc_elf_howto_raw): For R_PPC_ADDR16_HA, use
2044         ppc_elf_addr16_ha_reloc.
2045         (ppc_elf_addr16_ha_reloc): New static function.
2046
2047         * coff-mips.c (struct mips_hi): Define.
2048         (mips_refhi_list): New static variable.
2049         (mips_refhi_addr, mips_refhi_addend): Remove.
2050         (mips_refhi_reloc): Maintain a list of unmatched REFHI relocs.
2051         (mips_reflo_reloc): Process mips_refhi_list.
2052         (mips_relhi_list): New static variable.
2053         (mips_relhi_addr, mips_relhi_addend): Remove.
2054         (mips_relhi_reloc): Maintain a list of unmatched RELHI relocs.
2055         (mips_rello_reloc): Process mips_relhi_list.
2056         (mips_relocate_section): Permit an arbitrary number of REFHI or
2057         RELHI relocs before the associated REFLO or RELLO reloc.
2058
2059 Fri Jul  5 19:27:49 1996  Ian Lance Taylor  <[email protected]>
2060
2061         * aout-target.h (MY(callback)): Set reloc_count fields.
2062
2063 Thu Jul  4 12:00:37 1996  Ian Lance Taylor  <[email protected]>
2064
2065         * sunos.c (sunos_add_dynamic_symbols): Don't create dynamic
2066         sections unless this is a SunOS link.
2067
2068         * VERSION: Set to 2.7.1.
2069
2070         * Released binutils 2.7.
2071
2072 Wed Jul  3 14:59:47 1996  Ian Lance Taylor  <[email protected]>
2073
2074         * i386aout.c: Include "aout/aout64.h".
2075         (i386aout_write_object_contents): New static function.
2076         (MY_write_object_contents): Define.
2077
2078         * netbsd.h (MY(write_object_contents)): Make sure that
2079         adjust_sizes_and_vmas is called before fiddling with the magic
2080         number.
2081
2082 Tue Jul  2 23:30:39 1996  Ian Lance Taylor  <[email protected]>
2083
2084         * stabs.c (_bfd_link_section_stabs): Fix casts of psinfo.
2085
2086 Sun Jun 30 13:34:33 1996  Ian Lance Taylor  <[email protected]>
2087
2088         * libbfd-in.h (itos, stoi): Don't define.
2089         * libbfd.h: Rebuild.
2090         * i386lynx.c (KEEPIT): Define as udata.i.
2091         (NAME(lynx,swap_std_reloc_out)): Don't use stoi.
2092         (NAME(lynx,swap_ext_reloc_out)): Likewise.
2093         * riscix.c (riscix_swap_std_reloc_out): Use udata.i rather than
2094         flags.  Don't use stoi.
2095
2096         * elf32-mips.c (ELF_MAGPAGESIZE): Change definition to 0x1000.
2097
2098         * elf.c (map_sections_to_segments): Don't start a new segment for
2099         a writable section if it's on the same page as the previous
2100         segment.  Reset the writable variable for a readonly section.
2101
2102 Sat Jun 29 16:18:51 1996  Kim Knuttila  <[email protected]>
2103
2104         * peicode.h (coff_swap_aouthdr_in): Missing initializations of
2105         first_thunk_address, thunk_size, and import_table_size.
2106         * peicode.h: Improved some diagnostics regarding edata sections.
2107
2108         * coff-ppc.c (coff_ppc_relocate_section): Earlier error check
2109         on IMGLUE relocs.
2110         (coff_ppc_relocate_section): Improved diagnostic for large TOCDEFN's.
2111         (TARGET_LITTLE_SYM): Added missing D_PAGED.
2112
2113 Fri Jun 28 13:48:45 1996  Ian Lance Taylor  <[email protected]>
2114
2115         * xcofflink.c (xcoff_link_check_ar_symbols): An undefined symbol
2116         with XCOFF_DEF_DYNAMIC set is really defined.
2117         (xcoff_link_check_dynamic_ar_symbols): Likewise.
2118         (xcoff_link_add_symbols): Only create special sections if using an
2119         XCOFF hash table.
2120
2121         * reloc.c (bfd_perform_relocation): Handle xcoff-powermac like
2122         aixcoff-rs6000.
2123         (bfd_install_relocation): Likewise.
2124
2125 Fri Jun 28 11:17:00 1996  Richard Henderson  <[email protected]>
2126
2127         * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add flags
2128         field.
2129         (ALPHA_ELF_LINK_HASH_LU_ADDR): Define.
2130         (ALPHA_ELF_LINK_HASH_LU_MEM): Define.
2131         (ALPHA_ELF_LINK_HASH_LU_FUNC): Define.
2132         (elf64_alpha_link_hash_newfunc): Initialize flags field.
2133         (elf64_alpha_check_relocs): Record types of LITUSE entries that
2134         are found for LITERAL relocs.
2135         (elf64_alpha_adjust_dynamic_symbol): If a symbol has its address
2136         taken, we cannot generate a .plt entry for the symbol.
2137
2138 Thu Jun 27 11:24:29 1996  Ian Lance Taylor  <[email protected]>
2139
2140         * configure.in: Add AC_ISC_POSIX, and check for setitimer and
2141         sysconf functions (for gprof).
2142         * configure, config.in: Rebuild.
2143
2144 Wed Jun 26 16:29:02 1996  Ian Lance Taylor  <[email protected]>
2145
2146         * ecoff.c (_bfd_ecoff_archive_p): Check the first object file in
2147         an archive if it has a map.  If the object file has the wrong
2148         xvec, reject it.
2149
2150         * coff-alpha.c (alpha_adjust_reloc_in): Set the addend for a
2151         BRADDR, SREL16, SREL32, or SREL64 reloc against an external
2152         symbol.
2153         (alpha_relocate_section): Likewise.
2154
2155         * coffswap.h (coff_swap_reloc_out): Use RELSZ, not sizeof.
2156         (coff_swap_filehdr_out): Use FILHSZ, not sizeof.
2157         (coff_swap_sym_out): Use SYMESZ, not sizeof.
2158         (coff_swap_aux_out): Use AUXESZ, not sizeof.
2159         (coff_swap_lineno_out): Use LINESZ, not sizeof.
2160         (coff_swap_aouthdr_out): Use AOUTSZ, not sizeof.
2161         (coff_swap_scnhdr_out): Use SCNHSZ, not sizeof.
2162         * peicode.h: Corresponding changes.
2163
2164 Tue Jun 25 15:28:34 1996  Michael Meissner  <[email protected]>
2165
2166         * elflink.h (elf_create_pointer_linker_section): Comment out code
2167         dealing with making GOT pointers negative of the GOT symbol for
2168         now.
2169
2170 Tue Jun 25 11:41:24 1996  Richard Henderson  <[email protected]>
2171
2172         * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't
2173         increment the .rela.plt size until after we're done creating the
2174         .plt entry.
2175         (elf64_alpha_finish_dynamic_symbol): Change .plt entry to load the
2176         .rela.plt offset directly rather than calculating it.
2177
2178 Mon Jun 24 17:15:10 1996  Jason Molenda  ([email protected])
2179  
2180         * Makefile.in, (bindir, libdir, datadir, mandir, infodir, includedir): 
2181         Use autoconf-set values.
2182         * doc/Makefile.in (bindir, libdir, datadir, mandir, infodir, 
2183         includedir, INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set 
2184         values.
2185         (docdir): Deleted.
2186         * configure.in (AC_PREREQ): autoconf v2.5 or higher.
2187         * configure: Rebuilt.
2188  
2189 Mon Jun 24 22:50:35 1996  Jeffrey A Law  ([email protected])
2190
2191         * som.c (som_write_fixups): Fix typo in R_END_TRY for exception
2192         handling code > 1k away.
2193
2194 Mon Jun 24 18:41:06 1996  Michael Meissner  <[email protected]>
2195
2196         * elflink.h (elf_create_pointer_linker_section): If DEBUG is
2197         defined, output whenever the symbol is updated.
2198
2199 Mon Jun 24 17:58:12 1996  Jouke Numan  <[email protected]>
2200
2201         * elf.c (elf_fake_sections): Don't set sh_addr of a non SEC_ALLOC
2202         section to 0 if user_set_vma is set.
2203         * elflink.h (elf_bfd_final_link): Likewise.
2204
2205 Sun Jun 23 20:42:51 1996  Doug Evans  <[email protected]>
2206
2207         Partially undo patch of Jun 20.
2208         * coffcode.h (coff_set_alignment_hook): Use COFF_IMAGE_WITH_PE.
2209         (coff_compute_section_file_positions): Likewise.
2210         (coff_write_object_contents): Likewise.  Re-add deleted code, but
2211         use #ifdef COFF_WITH_PE, not COFF_OBJ_WITH_PE.
2212         * peicode.h (pe_bfd_copy_private_bfd_data): Re-add #ifdef.
2213
2214 Fri Jun 21 17:38:15 1996  Joel Sherrill  <[email protected]>
2215
2216         * config.bfd: Add support for *-*-rtems* configurations.
2217         
2218 Fri Jun 21 15:19:59 1996  Ian Lance Taylor  <[email protected]>
2219
2220         * elf.c (prep_headers): Add bfd_arch_alpha case.
2221
2222 Fri Jun 21 12:35:27 1996  Richard Henderson  <[email protected]>
2223
2224         * elf64-alpha.c: New file.
2225         * config.bfd (alpha-*-linuxecoff*): New target.
2226         (alpha-*-linux*, alpha-*-elf*): New targets.
2227         * configure.in (bfd_elf64_alpha_vec): New vector.
2228         * configure: Rebuild.
2229         * targets.c (bfd_elf64_alpha_vec): Declare.
2230         (bfd_target_vector): Add bfd_elf64_alpha_vec if BFD64.
2231         * reloc.c (BFD_RELOC_ALPHA_GPDISP): Define.
2232         * bfd-in2.h, libbfd.h: Rebuild.
2233         * Makefile.in: Rebuild dependencies.
2234         (BFD64_BACKENDS): Add elf64-alpha.o.
2235         (BFD64_BACKENDS_CFILES): Add elf64-alpha.c.
2236
2237 Thu Jun 20 18:14:25 1996  Ian Lance Taylor  <[email protected]>
2238
2239         * ecoff.c (ecoff_armap_hash): If hlog is 0, just return 0, rather
2240         than relying on a right shift of 32.
2241
2242 Thu Jun 20 11:00:57 1996  Doug Evans  <[email protected]>
2243
2244         * coffcode.h (coff_set_alignment_hook): Change COFF_IMAGE_WITH_PE
2245         ifdef to COFF_WITH_PE.
2246         (coff_compute_section_file_positions): Likewise.
2247         (coff_write_object_contents): Likewise.  Delete COFF_OBJ_WITH_PE.
2248         * pe-{arm,i386,ppc}.c (COFF_OBJ_WITH_PE): Delete.
2249         * peicode.h (pe_bfd_copy_private_bfd_data): Delete ifdef
2250         COFF_IMAGE_WITH_PE, always include.
2251
2252         * peicode.h (coff_swap_scnhdr_out): ".drectve" doesn't have trailing 0.
2253
2254 Wed Jun 19 11:37:52 1996  Ian Lance Taylor  <[email protected]>
2255
2256         * elf.c (map_sections_to_segments): Fix up the test for -Ttext to
2257         approximate the correct answer if SIZEOF_HEADERS was not used.
2258
2259         * binary.c (binary_set_section_contents): Set section file
2260         position based on LMA rather than VMA.
2261
2262 Wed Jun 19 11:19:25 1996  Manfred Hollstein KS/EIC5 60/3/142 #40283  <[email protected]>
2263
2264         * linker.c (_bfd_generic_link_output_symbols): Don't output any
2265         symbols if info->strip == strip_all.
2266
2267 Tue Jun 18 15:17:36 1996  Jeffrey A. Law  <[email protected]>
2268
2269         * coff-h8300.c: Remove #if 0 code.
2270         (compatable): Don't allow mixing/matching of different architectures.
2271         
2272         * archures.c (bfd_mach_h8300s): Add.
2273         * bfd-in2.h: Rebuilt.
2274         * coff-h8300.c (funcvec_hash_newfunc): Handle H8/S too.
2275         (BADMAG): Likewise.
2276         (h8300_reloc16_estimate): Likewise.
2277         (h8300_reloc16_extra_cases): Likewise.
2278         (h8300_bfd_link_add_symbols): Likewise.
2279         * coffcode.h (coff_set_arch_mach_hook): Likewise.
2280         (coff_set_flags): Likewise.
2281         * cpu-h8300.c (h8300_scan): Likewise.
2282         Add H8/S to bfd_h8300_arch list.
2283
2284 Tue Jun 18 14:42:58 1996  Klaus Kaempf  <[email protected]>
2285
2286         Added support for Alpha OpenVMS:
2287         * evax.h, evax-alpha.c, evax-egsd.c, evax-emh.c: New files.
2288         * evax-etir.c, evax-misc.c, hosts/alphavms.h: New files.
2289         * config.h-vms, makefile.vms: New files.
2290         * config.bfd (alpha-*-*vms*): New target.
2291         * configure.in (evax_alpha_vec): New target vector.
2292         * configure: Rebuild.
2293         * reloc.c (BFD_RELOC_SWREL32, BFD_RELOC_SWREL64): Define.
2294         (BFD_RELOC_ALPHA_LINKAGE, BFD_RELOC_ALPHA_BASEREG): Define.
2295         * targets.c (bfd_target_evax_flavour): Define.
2296         (evax_alpha_vec): Declare.
2297         (bfd_target_vector): Add ecoffalpha_little_vec and evax_alpha_vec
2298         if BFD64 is defined.
2299         * bfd-in2.h, libbfd.h: Rebuild.
2300         * Makefile.in: Rebuild dependencies.
2301         (BFD64_BACKENDS): Add evax-alpha.o, evax-egsd.o, evax-etir.o,
2302         evax-emh.o, and evax-misc.o.
2303         (BFD64_BACKENDS_CFILES): Add evax-alpha.c, evax-egsd.c,
2304         evax-etir.c, evax-emh.c, and evax-misc.c.
2305         (HFILES): Add evax.h.
2306
2307 Tue Jun 18 13:54:18 1996  Ian Lance Taylor  <[email protected]>
2308
2309         * coff-h8300.c (h8300_reloc16_extra_cases): Make name a const
2310         pointer.
2311         (h8300_bfd_link_add_symbols): Likewise.
2312
2313 Mon Jun 17 10:06:50 1996  Jeffrey A. Law  <[email protected]>
2314
2315         * som.h (R_HPPA_BEGIN_TRY, R_HPPA_END_TRY): Define.
2316         * som.c (som_write_fixups): Handle R_BEGIN_TRY and R_END_TRY.
2317
2318 Mon Jun 17 12:49:11 1996  Ian Lance Taylor  <[email protected]>
2319
2320         * elf32-mips.c (mips_elf_relocate_section): Don't create a reloc
2321         for R_MIPS_REL32 and R_MIPS_32 relocs if no dynamic sections were
2322         created.
2323         (mips_elf_check_relocs): Only create .rel.dyn for R_MIPS_REL32 and
2324         R_MIPS_32 relocs if creating a shared library.
2325
2326 Thu Jun 13 20:14:51 1996  Doug Evans  <[email protected]>
2327
2328         * peicode.h (add_data_entry): Use pei_section_data rather than
2329         _cooked_size.  Corresponds to May 13 change in coffcode.h.
2330
2331 Thu Jun 13 10:23:40 1996  Ian Lance Taylor  <[email protected]>
2332
2333         * cofflink.c (_bfd_coff_final_link): Handle long section names.
2334         * coffcode.h (coff_write_object_contents): If there are long
2335         section names, always set the f_symptr field, even if there are no
2336         symbols.
2337         * peicode.h (coff_swap_filehdr_in): Don't clear the f_symptr field
2338         if there are no symbols.
2339
2340         * coffgen.c (make_a_section_from_file): Check return value of
2341         _bfd_coff_read_string_table.
2342         (coff_real_object_p): Check return value of
2343         make_a_section_from_file.
2344         (_bfd_coff_read_string_table): Check that there are some symbols
2345         before trying to read the string table size.
2346
2347 Wed Jun 12 11:16:37 1996  Ian Lance Taylor  <[email protected]>
2348
2349         * xcofflink.c (xcoff_link_add_symbols): When considering whether
2350         to replace a symbol in a dynamic object with a symbol from another
2351         dynamic object, do the replacement if the existing symbol is
2352         global linkage code.
2353
2354         * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Check explicitly
2355         for _ptrgl, and treat it as global linkage code.
2356
2357         * aoutx.h (NAME(aout,find_nearest_line)): Notice if we find a
2358         filename or N_SO symbol past the offset, and use it to indicate
2359         that there is no line number or function when appropriate.
2360
2361 Tue Jun 11 15:24:48 1996  Ian Lance Taylor  <[email protected]>
2362
2363         * xcofflink.c (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR for a
2364         common symbol defined by the linker.  Don't export function code
2365         even if export_defineds is set.
2366
2367 Mon Jun 10 11:57:27 1996  Jeffrey A Law  ([email protected])
2368
2369         * coff-h8300.c (howto_table): Add new entries for R_BCC_INV
2370         and R_JMP_DEL.
2371         (rtype2howto): Handle R_BCC_INV and R_JMP_DEL.
2372         (h8300_symbol_address_p): New function.
2373         (h8300_reloc16_estimate): Eliminate jumps made unnecessary by
2374         relaxing.
2375
2376 Sun Jun  9 16:30:20 1996  Jeffrey A Law  ([email protected])
2377
2378         * coff-h8300.c (h8300_reloc16_estimate): Fix many minor spacing
2379         problems.
2380         (h8300_reloc16_estimate, cases R_JMP1, R_JMP2): Adjust "dot"
2381         correctly for the two variants.  Allow relaxing if the target
2382         is 128 bytes away since after relaxation it'll be 126 bytes away.
2383         (h8300_reloc16_estimate, case R_PCRWORD): Correctly adjust
2384         "dot" and "value".  Allow relaxing if the target is 128 bytes
2385         away since after relaxation it'll be 126 bytes away.
2386         * reloc16.c (bfd_coff_reloc16_relax_section): Keep relaxing
2387         the given section until nothing changes.
2388
2389 Thu Jun  6 15:24:45 1996  Richard Henderson  <[email protected]>
2390
2391         * ecoff.c (_bfd_ecoff_new_section_hook): Remove the _PDATA
2392         alignment hack--we can get the lnnoptr info another way without
2393         suddenly increasing the alignment requirements.  Set the flags for
2394         the _PDATA section.
2395         (ecoff_compute_section_file_positions): Do so.
2396
2397 Thu Jun  6 11:24:37 1996  Ian Lance Taylor  <[email protected]>
2398
2399         * ieee.c (ieee_write_object_contents): Put a timestamp in the file
2400         to keep the HP emulator database happy.
2401
2402         * config.bfd: Recognize powerpc-*-linux* and powerpcle-*-linux*.
2403         From Kevin Buettner <[email protected]>.
2404
2405 Wed Jun  5 15:16:04 1996  Ian Lance Taylor  <[email protected]>
2406
2407         * aoutx.h (translate_to_native_sym_flags): Don't try to print the
2408         name of a NULL section.
2409
2410 Tue Jun  4 18:53:58 1996  Ian Lance Taylor  <[email protected]>
2411
2412         * linker.c (_bfd_generic_link_add_one_symbol): If notice_all is
2413         set, always call the notice callback.
2414
2415         * VERSION: Increment for bfdlink.h change.
2416
2417 Mon Jun  3 11:01:53 1996  Ian Lance Taylor  <[email protected]>
2418
2419         * coff-sh.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Set to 4.
2420         (sh_relax_delete_bytes): Correct handling of differently sized
2421         trailing alignment reloc.
2422
2423         * bfd-in.h: Use #error if BFD_HOST_64_BIT can not be defined.
2424         * bfd-in2.h: Rebuild.
2425         * configure.in: Warn if there is no known 64 bit type.
2426         * configure: Rebuild.
2427
2428         * Makefile.in: Rebuild dependencies.
2429         (BFD32_BACKENDS): Add ppcboot.o.
2430         (BFD32_BACKENDS_CFILES): Add ppcboot.c.
2431
2432         * elf32-mips.c (mips_elf_size_dynamic_sections): Initialize c.
2433         From Per Fogelstrom <[email protected]>.
2434
2435 Sat Jun  1 21:49:58 1996  Ian Lance Taylor  <[email protected]>
2436
2437         * elf64-mips.c (bfd_mips_elf64_swap_reginfo_in)
2438         (bfd_mips_elf64_swap_reginfo_out): Move from here...
2439         * elf32-mips.c (bfd_mips_elf64_swap_reginfo_in)
2440         (bfd_mips_elf64_swap_reginfo_out): ...to here.
2441
2442 Fri May 31 13:51:28 1996  Ian Lance Taylor  <[email protected]>
2443
2444         * elf64-mips.c: Improve reloc special_functions and handling of
2445         SHT_MIPS_OPTIONS section.
2446         * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Rename from
2447         mips_elf_hi16_reloc and make globally visible.
2448         (_bfd_mips_elf_lo16_reloc): Rename from mips_elf_lo16_reloc and
2449         make globally visible.
2450         (_bfd_mips_elf_got16_reloc): Rename from mips_elf_got16_reloc and
2451         make globally visible.
2452         (_bfd_mips_elf_gprel16_reloc): Rename from mips_elf_gprel16_reloc
2453         and make globally visible.
2454         (gprel16_with_gp): Check howto->src_mask before using value in
2455         insn.
2456         (_bfd_mips_elf_gprel32_reloc): Rename from mips_elf_gprel32_reloc
2457         and make globally visible.
2458         (gprel32_with_gp): Check howto->src_mask before fetching value.
2459         (bfd_mips_elf_swap_options_in): New function.
2460         (bfd_mips_elf_swap_options_out): New function.
2461         (_bfd_mips_elf_set_private_flags): Rename from
2462         mips_elf_set_private_flags and make globally visible.
2463         (_bfd_mips_elf_copy_private_bfd_data): Rename from
2464         mips_elf_copy_private_bfd_data and make globally visible.
2465         (_bfd_mips_elf_merge_private_bfd_data): Rename from
2466         mips_elf_merge_private_bfd_data and make globally visible.
2467         (_bfd_mips_elf_section_from_shdr): Accept .MIPS.options as a name
2468         for a SHT_MIPS_OPTIONS section.
2469         (mips_elf32_section_from_shdr): Handle SHT_MIPS_OPTIONS section.
2470         (_bfd_mips_elf_fake_sections): Consider .MIPS.options to be the
2471         name of a SHT_MIPS_OPTIONS section.
2472         (_bfd_mips_elf_set_section_contents): New function.
2473         (mips_elf32_section_processing): Set the GP value in a
2474         SHT_MIPS_OPTIONS section.
2475         (_bfd_mips_elf_find_nearest_line): Rename from
2476         mips_elf_find_nearest_line and make globally visible.
2477         (bfd_elf32_set_section_contents): Define.
2478         * elf-bfd.h (_bfd_mips_elf_hi16_reloc): Declare.
2479         (_bfd_mips_elf_lo16_reloc): Declare.
2480         (_bfd_mips_elf_gprel16_reloc): Declare.
2481         (_bfd_mips_elf_got16_reloc): Declare.
2482         (_bfd_mips_elf_gprel32_reloc): Declare.
2483         (_bfd_mips_elf_set_private_flags): Declare.
2484         (_bfd_mips_elf_copy_private_bfd_data): Declare.
2485         (_bfd_mips_elf_merge_private_bfd_data): Declare.
2486         (_bfd_mips_elf_find_nearest_line): Declare.
2487         (_bfd_mips_elf_set_section_contents): Declare.
2488
2489         * elf32-hppa.c (elf32_hppa_info_to_howto): Rename from
2490         elf_info_to_howto.
2491         (elf_info_to_howto): Define.
2492         * elf32-sparc.c (elf32_sparc_info_to_howto): Rename from
2493         elf_info_to_howto.
2494         (elf_info_to_howto): Define.
2495         * elf64-sparc.c (sparc64_elf_info_to_howto): Rename from
2496         elf_info_to_howto.
2497         (elf_info_to_howto): Define.
2498
2499         * coff-w65.c (h8300_reloc16_estimate): Rename R_MOVB[12] to
2500         R_MOV16B[12], to match change in coff/internal.h.
2501
2502 Thu May 30 12:38:49 1996  Ian Lance Taylor  <[email protected]>
2503
2504         * elf64-mips.c: Extensive additions to provide better support for
2505         writing files and for gas.
2506         * elf32-mips.c (_bfd_mips_elf_object_p): New function, broken out
2507         of mips_elf_object_p.
2508         (mips_elf32_object_p): Rename from mips_elf_object_p; call
2509         _bfd_mips_elf_object_p.
2510         (_bfd_mips_elf_final_write_processing): Rename from
2511         mips_elf_final_write_processing and make globally visible.
2512         (_bfd_mips_elf_fake_sections): Rename from
2513         mips_elf_fake_sections and make globally visible.
2514         (_bfd_mips_elf_section_from_bfd_section): Rename from
2515         mips_elf_section_from_bfd_section and make globally visible.
2516         (_bfd_mips_elf_section_processing): New function, broken out of
2517         mips_elf_section_processing.
2518         (mips_elf32_section_processing): Rename from
2519         mips_elf_section_processing; call
2520         _bfd_mips_elf_section_processing.
2521         (_bfd_mips_elf_symbol_processing): Rename from
2522         mips_elf_symbol_processing and make globally visible.
2523         (_bfd_mips_elf_read_ecoff_info): Rename from
2524         mips_elf_read_ecoff_info and make globally visible.
2525         (mips_elf32_ecoff_debug_swap): Rename from
2526         mips_elf_ecoff_debug_swap.
2527         * elf.c (_bfd_elf_symbol_from_bfd_symbol): Use asymbol rather than
2528         struct symbol_cache_entry.
2529         (_bfd_elf_validate_reloc): New function, moved in from
2530         elfcode.h:validate_reloc.
2531         * elfcode.h (validate_reloc): Remove; moved into elf.c and renamed
2532         to _bfd_elf_validate_reloc.  Change all callers.
2533         * elf-bfd.h (bfd_section_from_shdr): Declare.
2534         (_bfd_elf_symbol_from_bfd_symbol): Declare.
2535         (_bfd_elf_validate_reloc): Declare.
2536         (_bfd_mips_elf_object_p): Declare.
2537         (_bfd_mips_elf_fake_sections): Declare.
2538         (_bfd_mips_elf_section_from_bfd_section): Declare.
2539         (_bfd_mips_elf_section_processing): Declare.
2540         (_bfd_mips_elf_symbol_processing): Declare.
2541         (_bfd_mips_elf_read_ecoff_info): Declare.
2542         (_bfd_mips_elf_final_write_processing): Declare.
2543         * elfxx-target.h (bfd_elfNN_get_reloc_upper_bound): Don't define
2544         if already defined.
2545
2546         * elf32-mips.c (mips_elf_object_p): Handle E_MIPS_ARCH_4.
2547         (mips_elf_final_write_processing): Likewise.
2548
2549 Wed May 29 16:15:29 1996  Ian Lance Taylor  <[email protected]>
2550
2551         64-bit MIPS ELF ABI objdump support:
2552         * elf64-mips.c: New file.
2553         * Makefile.in: Rebuild dependencies.
2554         (BFD64_BACKENDS): Add elf64-mips.o.
2555         (BFD64_BACKENDS_CFILES): Add elf64-mips.c.
2556         * config.bfd (mips*el-*-elf*) Add bfd_elf64_bigmips_vec and
2557         bfd_elf64_littlemips_vec to targ_selvecs.
2558         (mips*-*-elf*): Likewise.
2559         * confingure.in: Add bfd_elf64_bigmips_vec and
2560         bfd_elf64_littlemips_vec to vector switch.
2561         * configure: Rebuild.
2562         * elf32-mips.c (_bfd_mips_elf_section_from_shdr): New function,
2563         broken out of mips_elf_section_from_shdr.
2564         (mips_elf32_section_from_shdr): Rename from
2565         mips_elf_section_from_shdr.  Call new function.
2566         (elf_backend_section_from_shdr): Update name of renamed function.
2567         * elf-bfd.h (struct elf_size_info): Change second parameter of
2568         write_out_phdrs to be const.  Likewise for second parameter of
2569         swap_symbol_out.
2570         (struct bfd_elf_section_data): Add rel_hdr2 field.
2571         (bfd_elf32_swap_symbol_in): Change second parameter to be const.
2572         (bfd_elf32_swap_symbol_out): Likewise.
2573         (bfd_elf32_swap_reloc_in): Likewise.
2574         (bfd_elf32_swap_reloc_out): Likewise.
2575         (bfd_elf32_swap_reloca_in): Likewise.
2576         (bfd_elf32_swap_reloca_out): Likewise.
2577         (bfd_elf32_swap_phdr_in): Likewise.
2578         (bfd_elf32_swap_phdr_out): Likewise.
2579         (bfd_elf32_swap_dyn_in): Likewise.
2580         (bfd_elf32_swap_dyn_out): Likewise.
2581         (bfd_elf32_slurp_symbol_table): Declare.
2582         (bfd_elf32_write_shdrs_and_ehdr): Declare.
2583         (bfd_elf32_write_out_phdrs): Declare.
2584         (bfd_elf64_swap_symbol_in): Change second parameter to be const.
2585         (bfd_elf64_swap_symbol_out): Likewise.
2586         (bfd_elf64_swap_reloc_in): Likewise.
2587         (bfd_elf64_swap_reloc_out): Likewise.
2588         (bfd_elf64_swap_reloca_in): Likewise.
2589         (bfd_elf64_swap_reloca_out): Likewise.
2590         (bfd_elf64_swap_phdr_in): Likewise.
2591         (bfd_elf64_swap_phdr_out): Likewise.
2592         (bfd_elf64_swap_dyn_in): Likewise.
2593         (bfd_elf64_swap_dyn_out): Likewise.
2594         (bfd_elf64_slurp_symbol_table): Declare.
2595         (bfd_elf64_write_shdrs_and_ehdr): Declare.
2596         (bfd_elf64_write_out_phdrs): Declare.
2597         (_bfd_mips_elf_section_from_shdr): Declare.
2598         * elf.c (bfd_section_from_shdr): Remove assertion requiring
2599         SHT_REL/SHT_RELA to match use_rela_p.  If there is already a reloc
2600         section for the section, add the new one to rel_hdr2.  Increment
2601         reloc_count rather than setting it.
2602         * elfcode.h (elf_slurp_symbol_table): Define name as macro.
2603         Remove static declaration.
2604         (elf_write_shdrs_and_ehdr): Define name as macro.
2605         (elf_write_out_phdrs): Likewise.
2606         (elf_swap_ehdr_in, elf_swap_ehdr_out): Declare.
2607         (elf_swap_shdr_in, elf_swap_shdr_out): Declare.
2608         (elf_swap_symbol_in): Change second parameter to be const.
2609         (elf_swap_symbol_out): Likewise.
2610         (elf_swap_ehdr_in, elf_swap_ehdr_out): Likewise.
2611         (elf_swap_shdr_in, elf_swap_shdr_out): Likewise.
2612         (elf_swap_phdr_in, elf_swap_phdr_out): Likewise.
2613         (elf_swap_reloc_in, elf_swap_reloc_out): Likewise.
2614         (elf_swap_reloca_in, elf_swap_reloca_out): Likewise.
2615         (elf_write_out_phdrs): Rename from write_out_phdrs.  Change second
2616         parameter to be const.  Make non-static.
2617         (elf_write_shdrs_and_ehdr): Rename from write_shdrs_and_ehdr.
2618         Make non-static.
2619         (elf_slurp_symbol_table): Make non-static.
2620         (NAME(_bfd_elf,size_info)): Update names of renamed functions.
2621         * elfxx-target.h (elf_info_to_howto): Define if not defined.
2622         (elf_backend_size_info): Likewise.
2623         (elfNN_bed): Use elf_backend_size_info.
2624         * targets.c (bfd_elf64_bigmips_vec): Declare.
2625         (bfd_elf64_littlemips_vec): Declare.
2626         (bfd_target_vector): Add bfd_elf64_bigmips_vec and
2627         bfd_elf64_littlemips_vec if BFD64 is defined.
2628         
2629         * libbfd.c (bfd_get_file_window): Add cast to fprintf argument.
2630
2631 Tue May 28 11:42:08 1996  Ian Lance Taylor  <[email protected]>
2632
2633         * coff-sh.c (sh_relax_delete_bytes): Insert nop instructions, not
2634         zeroes, in alignment holes.
2635
2636         * configure: Rebuild with autoconf 2.10.
2637
2638         * aoutx.h (NAME(aout,find_nearest_line)): Make room for the
2639         potential leading underscore in the allocated buffer.
2640
2641 Fri May 24 14:28:38 1996  Michael Meissner  <[email protected]>
2642
2643         * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not put small common
2644         symbols into .sbss if this is a relocatable link.
2645
2646 Thu May 23 12:26:24 1996  Ian Lance Taylor  <[email protected]>
2647
2648         * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Warn about
2649         undefined symbols when creating a shared library.
2650
2651 Fri May 17 13:54:15 1996  Ian Lance Taylor  <[email protected]>
2652
2653         * coff-sh.c: Add a bunch of new code and static const arrays to
2654         support aligning loads and stores on four byte memory boundaries.
2655         Also:
2656         (sh_coff_howtos): Add entries for R_SH_CODE, R_SH_DATA and
2657         R_SH_LABEL.
2658         (sh_relax_section): Look for R_SH_CODE relocs.  If we find one,
2659         call sh_align_loads.
2660         (sh_relax_delete_bytes): Don't mark R_SH_CODE or R_SH_DATA relocs
2661         as unused.
2662
2663 Thu May 16 16:34:13 1996  Ian Lance Taylor  <[email protected]>
2664
2665         * cache.c (bfd_open_file): Unlink the file before opening it for
2666         write.  From Marty Leisner <[email protected]>.
2667
2668         * opncls.c (bfd_fdopenr): Set opened_once.
2669
2670 Tue May 14 12:35:32 1996  Ian Lance Taylor  <[email protected]>
2671
2672         * som.c (som_slurp_reloc_table): Clear external_relocs cache after
2673         freeing it.
2674
2675         * libbfd.c: Remove #ifdef FILE_OFFSET_IS_CHAR_INDEX, and compile
2676         the code unconditionally.
2677
2678 Mon May 13 19:51:37 1996  Ian Lance Taylor  <[email protected]>
2679
2680         * libcoff-in.h (struct pei_section_tdata): Define structure.
2681         (pei_section_data): Define macro.
2682         * libcoff.h: Rebuild.
2683         * coffcode.h (coff_set_alignment_hook): If COFF_IMAGE_WITH_PE,
2684         store s_paddr field in pei_section_data.
2685         (coff_compute_section_file_positions): Use pei_section_data rather
2686         than _cooked_size, and don't overwrite an existing value.
2687         (coff_write_object_contents): If COFF_OBJ_WITH_PE, set s_paddr to
2688         0.  If COFF_IMAGE_WITH_PE, set s_paddr to pei_section_data.
2689         * peicode.h (coff_bfd_copy_private_section_data): Define if
2690         COFF_IMAGE_WITH_PE.
2691         (pe_bfd_copy_private_section_data): New static function if
2692         COFF_IMAGE_WITH_PE.
2693
2694 Wed May  8 16:10:38 1996  Ian Lance Taylor  <[email protected]>
2695
2696         * srec.c (srec_set_arch_mach): Write as a function rather than a
2697         macro definition.
2698
2699         * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): If an archive has
2700         no map, just check each member in turn to see whether it is
2701         required.
2702
2703 Wed May  8 09:17:34 1996  Michael Meissner  <[email protected]>
2704
2705         * ppcboot.c (ppcboot_object_p): Check for type 0x41 in partition
2706         table.  Call BFD_ASSERT to validate header size, instead of
2707         calling fatal.
2708         (ppcboot_bfd_print_private_bfd_data): Put quotes around partition
2709         name.
2710
2711 Tue May  7 16:10:19 1996  Michael Meissner  <[email protected]>
2712
2713         * ppcboot.c: New target for looking at PPCbug boot records.
2714
2715         * config{ure.in,.bfd}: Add support for ppcboot target.
2716         * targets.c: Ditto.
2717         * configure: Regenerate.
2718                 
2719 Tue May  7 11:15:19 1996  Jeffrey A Law  ([email protected])
2720
2721         * coff-h8300.c (howto_table): Update names to match recent
2722         changes to include/coff/internal.h.  Fix minor errors in the
2723         existing relocs.  Add R_MOVL1 and R_MOVL2.
2724         (rtype2howto): Similarly.
2725         (h8300_reloc16_estimate): Rewrite to simplify, fix bugs in the
2726         existing relaxing code  and peform more relaxing.
2727         (h8300_reloc16_extra_cases): Likewise.
2728
2729 Mon May  6 18:24:09 1996  Jeffrey A Law  ([email protected])
2730
2731         * reloc16.c (bfd_coff_reloc16_get_value): Handle common
2732         symbols correctly.
2733
2734 Sat May  4 05:08:45 1996  Peter Schauer  ([email protected])
2735
2736         * elfcode.h (elf_object_p):  Reject generic ELF target if
2737         e_machine matches an alternate machine code in a specific backend.
2738
2739         * netbsd-core.c (netbsd_core_vec):  Remove initializer for
2740         obsolete align_power_min field.
2741
2742 Fri May  3 13:07:35 1996  Jeffrey A Law  ([email protected])
2743
2744         * coff-h8300.c (reloc_howto_type): Add howto entry for
2745         R_PCRWORD_B.
2746         (rtype2howto): Handle R_PCRWORD_B.
2747         (h8300_reloc16_extra_cases): Handle R_PCRWORD_B.
2748         (h8300_reloc_16_estimate): Likewise.  Try to turn a 16bit
2749         pc-relative branch (R_PCRWORD) into an 8bit pc-relative
2750         branch (R_PCWORD_B).
2751
2752 Fri May  3 10:47:41 1996  Ian Lance Taylor  <[email protected]>
2753
2754         * aoutx.h (translate_from_native_sym_flags): Set the section for
2755         BSF_CONSTRUCTOR symbols.
2756
2757         * cofflink.c (_bfd_coff_link_input_bfd): Correct setting of
2758         last_bf_index.
2759
2760 Wed May  1 18:39:32 1996  Doug Evans  <[email protected]>
2761
2762         * coffcode.h (coff_write_object_contents): In comdat section lookup,
2763         stop looking when section is found.
2764
2765 Wed May  1 14:17:57 1996  Ian Lance Taylor  <[email protected]>
2766
2767         * coffcode.h (STRING_SIZE_SIZE): Define.
2768         (styp_to_sec_flags): Handle long symbol names when looking for the
2769         section symbol.
2770         (bfd_coff_backend_data): Add _bfd_coff_long_section_names field.
2771         (bfd_coff_long_section_names): Define.
2772         (coff_write_object_contents): Handle long section names.
2773         (bfd_coff_std_swap_table): Initialize new field.
2774         * libcoff.h: Rebuild.
2775         * coffgen.c (make_a_section_from_file): Handle long section
2776         names.
2777         (coff_write_symbols): Handle long section names.
2778         * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
2779         * coff-mips.c (mips_ecoff_backend_data): Likewise.
2780         * pe-arm.c (COFF_LONG_SECTION_NAMES): Define.
2781         * pei-arm.c (COFF_LONG_SECTION_NAMES): Define.
2782         * pe-i386.c (COFF_LONG_SECTION_NAMES): Define.
2783         * pei-i386.c (COFF_LONG_SECTION_NAMES): Define.
2784         * pe-ppc.c (COFF_LONG_SECTION_NAMES): Define.
2785         * pei-ppc.c (COFF_LONG_SECTION_NAMES): Define.
2786
2787         * bout.c (b_out_callback): Set lma of sections.
2788         (b_out_bfd_get_relocated_section_contents): Rename in_abfd
2789         parameter to output_bfd.  Used input_bfd instead of output_bfd in
2790         several places.
2791
2792 Tue Apr 30 17:56:39 1996  Ian Lance Taylor  <[email protected]>
2793
2794         * aoutx.h (translate_from_native_sym_flags): Don't create
2795         SEC_CONSTRUCTOR sections.
2796         * ecoff.c (ecoff_set_symbol_info): Likewise.
2797
2798         * elf32-mips.c (mips_elf_copy_private_bfd_data): Copy elf_gp.
2799         From Don Bowman <[email protected]>.
2800
2801 Tue Apr 30 17:06:32 1996  Doug Evans  <[email protected]>
2802
2803         * coff-arm.c (armcoff_little_vec): If COFF_WITH_PE is defined, add
2804         SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
2805
2806 Mon Apr 29 13:15:17 1996  Ian Lance Taylor  <[email protected]>
2807
2808         * elf32-mips.c (struct mips_elf_link_hash_entry): Add
2809         mips_32_relocs field.
2810         (mips_elf_link_hash_newfunc): Initialize mips_32_relocs field.
2811         (mips_elf_relocate_section): Copy R_MIPS_REL32 and R_MIPS_32
2812         relocs against a global symbol which is not defined in a regular
2813         file.
2814         (mips_elf_check_relocs): For a R_MIPS_REL32 or R_MIPS_32 reloc
2815         against a global symbol, increment mips_32_relocs.
2816         (mips_elf_adjust_dynamic_symbol): If mips_32_relocs is set, and
2817         the symbol is not defined in a regular file, make room in the
2818         .rel.dyn section.
2819
2820 Fri Apr 26 18:00:37 1996  Ian Lance Taylor  <[email protected]>
2821
2822         * ecoff.c (ecoff_compute_section_file_positions): Track the real
2823         file position and the virtual file position separately.  Set
2824         filepos information bsaed on the real file position.
2825         (_bfd_ecoff_set_section_contents): Handle .lib sections like the
2826         Jan 23 change to coffcode.h.
2827
2828         * som.c (som_slurp_symbol_table): Set the symbol count to the
2829         number of BFD symbols created.
2830
2831 Fri Apr 26 12:34:29 1996  Michael Meissner  <[email protected]>
2832
2833         * elf32-ppc.c (ppc_elf_check_relocs): Forward relocations to the
2834         output file if linking shared objects.  Loop to check all relocs,
2835         rather than returning false on first error.
2836
2837 Thu Apr 25 13:25:12 1996  Michael Meissner  <[email protected]>
2838
2839         * elf32-ppc.c (ppc_elf_create_linker_section): Add PLT case.
2840         (ppc_elf_additional_program_headers): If .interp section, bump #
2841         of program headers by 1.
2842         (ppc_elf_adjust_dynamic_symbol): Flesh out support.
2843         (ppc_elf_size_dynamic_sections): Add support for .plt section.
2844         (ppc_elf_check_relocs): Print out filename in debug code.  Enable
2845         PLT support.
2846         (ppc_elf_finish_dynamic_symbol): Add support for PLT's, beef up
2847         debug output.
2848         (ppc_elf_relocate_section): If the output section isn't defined,
2849         don't abort, just give an error message.
2850
2851         * elflink.c (_bfd_elf_create_dynamic_sections): If the section
2852         being created is .sdata or .sdata2, don't make the symbol dynamic.
2853
2854 Wed Apr 24 14:04:07 1996  Ian Lance Taylor  <[email protected]>
2855
2856         * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through the
2857         members of an archive for dynamic objects with no symbols, and
2858         pass them directly to check_archive_element.
2859         (xcoff_link_check_ar_symbols): Pass dynamic objects to
2860         xcoff_link_check_dynamic_ar_symbols.
2861         (xcoff_link_check_dynamic_ar_symbols): New static function.
2862
2863         * coff-rs6000.c (rs6000coff_vec): Change BFD_JUMP_TABLE_DYNAMIC
2864         from _bfd_nodynamic to _bfd_xcoff.
2865         * libcoff-in.h (_bfd_xcoff_get_dynamic_symtab_upper_bound):
2866         Declare.
2867         (_bfd_xcoff_canonicalize_dynamic_symtab): Declare.
2868         (_bfd_xcoff_get_dynamic_reloc_upper_bound): Declare.
2869         (_bfd_xcoff_canonicalize_dynamic_reloc): Declare.
2870         * libcoff.h: Rebuild.
2871         * xcofflink.c (xcoff_swap_ldrel_in): New static function.
2872         (xcoff_get_section_contents): New static function.
2873         (_bfd_xcoff_get_dynamic_symtab_upper_bound): New function.
2874         (_bfd_xcoff_canonicalize_dynamic_symtab): New function.
2875         (_bfd_xcoff_get_dynamic_reloc_upper_bound): New function.
2876         (xcoff_dynamic_reloc): New static variable.
2877         (_bfd_xcoff_canonicalize_dynamic_reloc): New function.
2878         (xcoff_link_add_dynamic_symbols): Use xcoff_get_section_contents.
2879         
2880 Tue Apr 23 12:48:42 1996  Ian Lance Taylor  <[email protected]>
2881
2882         * coff-sparc.c (bfd_coff_generic_reloc): Return bfd_reloc_ok even
2883         if reloc_entry->addend is not 0.
2884         (CALC_ADDEND): Just set the addend to reloc.r_offset.
2885
2886 Mon Apr 22 18:29:01 1996  Doug Evans  <[email protected]>
2887
2888         * elf32-sparc.c (_bfd_sparc_elf_howto_table): Fix spelling of
2889         R_SPARC_GLOB_JMP.
2890         * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
2891         Add entries for R_SPARC_[56].
2892         (sparc_reloc_map): Add entries for R_SPARC_[56].
2893
2894 Mon Apr 22 15:07:24 1996  Ian Lance Taylor  <[email protected]>
2895
2896         Optimize linking of stabs in sections as used in ELF and COFF.
2897         * stabs.c: New file.
2898         * libbfd-in.h (_bfd_link_section_stabs): Declare.
2899         (_bfd_write_section_stabs): Declare.
2900         (_bfd_write_stab_strings): Declare.
2901         * libbfd.h: Rebuild.
2902         * libcoff-in.h (struct coff_section_tdata): Add stab_info field.
2903         (struct coff_link_hash_table): Add stab_info field.
2904         * libcoff.h: Rebuild.
2905         * cofflink.c (_bfd_coff_link_hash_table_init): Initialize
2906         stab_info field.
2907         (coff_link_add_symbols): Call _bfd_link_section_stabs if
2908         appropriate.
2909         (_bfd_coff_final_link): Write out stab strings hash table.
2910         (_bfd_coff_link_input_bfd): Handle optimized stabs sections.
2911         * coff-ppc.c (ppc_bfd_coff_final_link): Write out stab strings
2912         hash table.
2913         * elf-bfd.h (struct elf_link_hash_table): Add stab_info field.
2914         (struct bfd_elf_section_data): Add stab_info field.
2915         * elf.c (_bfd_elf_link_hash_table_init): Initialize stab_info
2916         field.
2917         * elflink.h (elf_link_add_object_symbols): If appropriate, call
2918         _bfd_link_section_stabs.
2919         (elf_bfd_final_link): Write out stab strings hash table.
2920         (elf_link_input_bfd): Handle optimized stabs sections.
2921         * reloc.c (_bfd_final_link_relocate): Check address against
2922         _raw_size rather than _cooked_size.
2923         * Makefile.in: Rebuild dependencies.
2924         (BFD_LIBS): Add stabs.o
2925         (BFD_LIBS_CFILES): Add stabs.c.
2926
2927         * VERSION: Increment for bfdlink.h change.
2928
2929         * coffgen.c (coff_renumber_symbols): Correct handling of
2930         BSF_NOT_AT_END common symbols.
2931
2932 Fri Apr 19 19:21:56 1996  Ian Lance Taylor  <[email protected]>
2933
2934         * coff-ppc.c (record_toc): Add cast to avoid warning.
2935         (ppc_allocate_toc_section): Likewise.
2936         (coff_ppc_relocate_section): Remove ANSI C string concatenation.
2937         (ppc_coff_reloc_type_lookup): Remove unreached code.
2938         * coffcode.h (coff_write_object_contents): Don't take the address
2939         of an array.
2940         * peicode.h (pe_print_idata): Add casts to avoid warning.
2941         (pe_print_edata): Likewise.
2942         (pe_print_reloc): Remove ANSI C string concatenation.
2943
2944 Thu Apr 18 18:51:18 1996  Ian Lance Taylor  <[email protected]>
2945
2946         * libcoff-in.h (struct coff_final_link_info): Add last_bf_index
2947         and last_bf fields.
2948         * libcoff.h: Rebuild.
2949         * coffswap.h (coff_swap_aux_in): Swap endndx field for C_FCN
2950         symbols.
2951         (coff_swap_aux_out): Likewise.
2952         * peicode.h (coff_swap_aux_in): Likewise.
2953         (coff_swap_aux_out): Likewise.
2954         * coffgen.c (coff_pointerize_aux): Check endndx field for C_FCN
2955         symbols.
2956         * cofflink.c (_bfd_coff_final_link): Initialize last_bf_index
2957         field.
2958         (_bfd_coff_link_input_bfd): Check endndx field for C_FCN symbols.
2959         Fix up .bf endndx link fields.
2960         * coff-ppc.c (ppc_bfd_coff_final_link): Initialize last_bf_index
2961         field.
2962         * xcofflink.c (xcoff_link_input_bfd): Check endndx field for C_FCN
2963         symbols.
2964
2965 Wed Apr 17 12:08:24 1996  Michael Meissner  <[email protected]>
2966
2967         * pe{,i}-ppc.c (PPC_PE): Define instead of PPC, so that compiling
2968         on Solaris PowerPC systems doesn't get confused.
2969
2970         * ccffcode.h (coff_write_object_contents): Use #ifdef PPC_PE, not
2971         #ifdef PPC.
2972
2973         * elfcore.h (bfd_prstatus, bfd_fpregset): Add thread argument.
2974         (elf_corefile_note): If HAVE_SYS_PROCFS_H is not defined, don't
2975         update did_reg and did_reg2.
2976
2977 Wed Apr 17 13:07:37 1996  Ian Lance Taylor  <[email protected]>
2978
2979         * xcofflink.c (xcoff_link_input_bfd): Check for TOC overflow.
2980
2981         * linker.c (_bfd_generic_link_add_one_symbol): When calling the
2982         callback routines, pass h->root.string rather than name, in case
2983         copy is true and name is transient.
2984
2985 Tue Apr 16 16:36:38 1996  Stu Grossman  ([email protected])
2986
2987         * elfcore.h:  Add support for core files with multiple threads.
2988         (Primarily for Solaris.)
2989
2990 Tue Apr 16 13:44:08 1996  Ian Lance Taylor  <[email protected]>
2991
2992         * aoutx.h (NAME(aout,squirt_out_relocs)): Don't do anything if
2993         section->orelocation is NULL.
2994
2995         * coffgen.c (bfd_coff_get_syment): New function.
2996         (bfd_coff_get_auxent): New function.
2997         * bfd-in.h (bfd_coff_get_syment): Declare.
2998         (bfd_coff_get_auxent): Declare.
2999         * bfd-in2.h: Rebuild.
3000
3001 Mon Apr 15 19:06:59 1996  Ian Lance Taylor  <[email protected]>
3002
3003         * elf32-mips.c (struct mips_hi16): Define.
3004         (mips_hi16_addr, mips_hi16_addend): Remove.
3005         (mips_hi16_list): New static variable.
3006         (mips_elf_hi16_reloc): Maintain a list of unmatched HI16 relocs.
3007         (mips_elf_lo16_reloc): Process mips_hi16_list.
3008         (mips_elf_relocate_section): Permit an arbitrary number of HI16
3009         relocs before the associated LO16 reloc.
3010
3011 Wed Apr 10 00:23:53 1996  Ian Lance Taylor  <[email protected]>
3012
3013         * versados.c (versados_scan): Check bfd_alloc return value.
3014         (versados_object_p): Check all bfd_read return values.  Require
3015         that lang field be less than 10, to avoid confusion with Intel Hex
3016         files.
3017
3018         * libaout.h (WRITE_HEADERS): Write out the relocs even if there
3019         aren't any symbols.
3020         * aoutx.h (NAME(aout,swap_std_reloc_out)): Set r_index to N_ABS,
3021         not 0, for an absolute symbol.
3022         (NAME(aout,swap_ext_reloc_out)): Likewise.
3023
3024         * ihex.c (ihex_scan): Accept a length of 4 for record type 5.
3025         (ihex_write_object_contents): For a large start address, output
3026         the full 32 bit address in record type 5.
3027
3028         * ieee.c (ieee_write_byte): Change second parameter from bfd_byte
3029         to int to avoid promotion problems in prototype.
3030
3031 Tue Apr  9 11:44:21 1996  Ian Lance Taylor  <[email protected]>
3032
3033         * configure.host: Use ${srcdir} when looking for picfrag.
3034
3035         * configure.host: Switch on ${libdir}, not $(libdir).  From
3036         [email protected] (Alan Modra).
3037
3038         * aoutx.h (aout_link_add_symbols): Always call add_dynamic_symbols
3039         entry point, not just for DYNAMIC objects.
3040         * sunos.c (sunos_add_dynamic_symbols): Always call
3041         sunos_create_dynamic_sections.  If called with a non DYNAMIC
3042         object, don't do anything else.
3043         (sunos_add_one_symbol): Don't call sunos_create_dynamic_sections.
3044
3045 Mon Apr  8 12:09:36 1996  Ian Lance Taylor  <[email protected]>
3046
3047         * configure.in: Permit --enable-shared to specify a list of
3048         directories.
3049         * configure: Rebuild.
3050
3051         * configure.host: Set HLDFLAGS and SHLIB_CFLAGS for *-dec-osf*
3052         host when configuring with --enable-shard.
3053
3054 Fri Apr  5 12:24:13 1996  Ian Lance Taylor  <[email protected]>
3055
3056         * config.bfd: Add i[345]86-*-freebsdelf* target; from John Polstra
3057         <[email protected]>.
3058
3059         * linker.c (link_action): For WARN_ROW/warn, use MWARN, not CYCLE,
3060         to avoid crashing in bfd_hash_replace.
3061
3062         * sysdep.h: Use #ifdef, not #if.
3063
3064 Thu Apr  4 23:32:23 1996  Ian Lance Taylor  <[email protected]>
3065
3066         * config.in: Rebuild.
3067
3068 Thu Apr  4 18:49:09 1996  Fred Fish  <[email protected]>
3069
3070         * configure.in (mips-sony-bsd*): Fix typo in AC_DEFINE.
3071         (AC_CHECK_HEADERS): Check for sys/time.h
3072         (AC_HEADER_TIME): Add macro.
3073         * configure: Rebuild.
3074         * sysdep.h: Use TIME_WITH_SYS_TIME and HAVE_SYS_TIME_H
3075         to control what combination of <time> and <sys/time.h>
3076         get included.
3077         
3078 Tue Apr  2 13:11:53 1996  Doug Evans  <[email protected]>
3079
3080         * aoutf1.h (sunos_32_set_arch_mach): Handle M_SPARCLET.
3081         (aout_32_sunos4_write_object_contents): Likewise.
3082         * aoutx.h (NAME(aout,machine_type)): Handle
3083         bfd_mach_sparc_{sparclet,sparclite}.
3084         * archures.c (bfd_mach_sparc_{sparclet,sparclite}): Define.
3085         (bfd_mach_sparc_v9_p): Update.
3086         * cpu-sparc.c (arch_info_struct): Add entries for sparclet,sparclite.
3087         * libaout.h (enum machine_type): Add M_SPARCLET.
3088         * sunos.c (MACHTYPE_OK): Define.
3089         * bfd-in2.h: Regenerated.
3090
3091 Tue Apr  2 00:33:18 1996  Ian Lance Taylor  <[email protected]>
3092
3093         * elf-bfd.h (struct elf_link_hash_table): Add hgot field.
3094         * elf.c (_bfd_elf_link_hash_table_init): Initialize hgot field.
3095         * elflink.c (_bfd_elf_create_got_section): Store the
3096         _GLOBAL_OFFSET_TABLE_ hash table entry in the hgot field.
3097         * elf32-sparc.c (elf32_sparc_check_relocs): If the size of the
3098         global offset table goes over 0x1000, set the value of
3099         _GLOBAL_OFFSET_TABLE_ to 0x1000 into the section.
3100         (elf32_sparc_relocate_section): Subtract the offset of
3101         _GLOBAL_OFFSET_TABLE_ when handling GOT relocations.
3102
3103         * elfcode.h: Don't include <string.h>.
3104
3105 Mon Apr  1 10:39:24 1996  Jeffrey A Law  ([email protected])
3106
3107         * linker.c (_bfd_generic_link_hash_newfunc): Renamed from
3108         generic_link_hash_newfunc.  All references changed.
3109         * genlink.h (_bfd_generic_link_hash_newfunc): Declaration
3110         moved here from libbfd-in.h.
3111         * libbfd-in.h: Corresponding changes.
3112         * libbfd.h: Regenerated.
3113
3114 Mon Apr  1 12:35:36 1996  Ian Lance Taylor  <[email protected]>
3115
3116         * aoutx.h (aout_link_input_section_std): When reporting an
3117         overflow error, use the name of the symbol in the hash table if
3118         available.
3119         (aout_link_input_section_ext): Likewise.
3120
3121         * elflink.h (elf_adjust_dynamic_symbol): If a common symbol got
3122         defined in a regular file, set ELF_LINK_HASH_DEF_REGULAR.
3123
3124 Sun Mar 31 01:58:41 1996  steve chamberlain  <[email protected]>
3125
3126         * peicode.h (coff_swap_aouthdr_out): Delete test for .junk.
3127         * coffcode.h (coff_compute_section_file_positions): Likewise.
3128         (coff_write_object_contents): Likewise.
3129         
3130 Fri Mar 29 12:44:36 1996  Ian Lance Taylor  <[email protected]>
3131
3132         * section.c (SEC_LINK_ONCE): Define.
3133         (SEC_LINK_DUPLICATES): Define.
3134         (SEC_LINK_DUPLICATES_DISCARD): Define.
3135         (SEC_LINK_DUPLICATES_ONE_ONLY): Define.
3136         (SEC_LINK_DUPLICATES_SAME_SIZE): Define.
3137         (SEC_LINK_DUPLICATES_SAME_CONTENTS): Define.
3138         * bfd-in2.h: Rebuild.
3139         * coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn
3140         SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT.
3141         (styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE
3142         into SEC_EXCLUDE.  If IMAGE_SCN_LNK_COMDAT is set, set
3143         SEC_LINK_ONCE, and look through the symbol table for the setting
3144         for SEC_LINK_DUPLICATES.
3145         (coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is
3146         set for a section, find the section symbol in the symbol table,
3147         and set the aux entry based on SEC_LINK_DUPLICATES.
3148         * coffgen.c (coff_print_symbol): Add a space before "checksum".
3149         * coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add
3150         SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
3151         * coff-i386.c (i386coff_vec): Likewise.
3152         * coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
3153
3154         * VERSION: Bump to 2.6.1.
3155         * Makefile.in (stamp-h): Depend upon VERSION.
3156
3157 Thu Mar 28 23:48:49 1996  Jeffrey A Law  ([email protected])
3158
3159         * libbfd-in.h (generic_link_hash_newfunc): Add declaration.
3160         * libbfd.h: Rebuilt.
3161         * linker.c (generic_link_hash_newfunc): No longer static.
3162         * coffcode.h (coff_bfd_link_hash_create): Allow specific targets
3163         to override.
3164         * coff-h8300.c: Add two derived hash tables and their associated
3165         funtions and #defines for use by the h8300 linker.
3166         (h8300_reloc16_extra_cases, case R_MEM_INDIRECT): Create entries in
3167         the function vector as needed.  Place the address of the function
3168         vector entry in the location specified by the R_MEM_INDIRECT reloc.
3169         Rewrite the vectors section contents as necessary.
3170         (h8300_bfd_link_add_symbols): New function for the h8300 linker. 
3171         (coff_bfd_link_add_symbols): Define to use h8300 specific version.
3172         (coff_bfd_link_hash_table_create): Likewise.
3173
3174 Thu Mar 28 17:44:08 1996  Ian Lance Taylor  <[email protected]>
3175
3176         * libhppa.h: If gcc 2.7 or higher, declare all the functions with
3177         __attribute__ ((__unused__)) so that -Wall doesn't warn about
3178         them.
3179         (hppa_rebuild_insn): Pass pointer to correct type to
3180         low_sign_unext and dis_assemble_21.
3181
3182 Thu Mar 28 11:00:36 1996  Doug Evans  <[email protected]>
3183
3184         * config.bfd (sparc64-{sysv4*,solaris2*}): Delete.
3185         Stick with sparc-*-{sysv4*,solaris2*}.
3186
3187 Wed Mar 27 10:43:34 1996  Ian Lance Taylor  <[email protected]>
3188
3189         * peicode.h (coff_swap_aux_in): Swap in extra PE x_scn fields.
3190         (coff_swap_aux_out): Swap out extra PE x_scn fields.
3191         * coffswap.h (coff_swap_aux_in): Zero out extra PE x_scn fields.
3192         * coffgen.c (coff_print_symbol): If any of the extra PE x_scn
3193         fields is non-zero, print them.
3194
3195         * coff-ppc.c (ppc_record_toc_entry): Put inside COFF_IMAGE_WITH_PE
3196         ifdef.  Remove unused variables.
3197         (ppc_record_data_in_toc_entry): Ifdef out.  Removed unused
3198         variables.
3199         (ppc_mark_symbol_as_glue): Put inside COFF_IMAGE_WITH_PE ifdef.
3200         (get_symbol_value): Ifdef out.
3201         (pe_ppc_reloc): Ifdef out.  Remove unused variables.
3202         (coff_ppc_relocate_section): Remove unused variables.  Make
3203         fprintf strings and argument types correspond.  Put before_addr in
3204         DEBUG_RELOC ifdef.
3205         (dump_toc): Make fprintf strings and argument types correspond.
3206         (ppc_process_before_allocation): Remove unused variables.  Always
3207         return a value.
3208         (ppc_reflo_reloc): Ifdef out.
3209         (ppc_addr32nb_reloc): Ifdef out.
3210         (ppc_coff_rtype2howto): Make fprintf strings and argument types
3211         correspond.
3212         (coff_ppc_rtype_to_howto): Likewise.
3213         (ppc_coff_swap_sym_in_hook): Remove unused variables.
3214
3215         * peicode.h (pe_print_idata): Move otherwise unused variables into
3216         the #ifdef where they are used.  Always return a value.
3217         (pe_print_edata): Make fprintf strings and argument types
3218         correspond.  Always return a value.
3219         (pe_print_pdata): Removed unused variable addr_value.  Always
3220         return a value.
3221         (pe_print_reloc): Remove unused variable onaline.  Make fprintf
3222         strings and argument types correspond.  Always return a value.
3223
3224         * elf32-ppc.c (ppc_elf_fake_sections): Return true.
3225         (ppc_elf_finish_dynamic_symbol): Move definition of unused
3226         variable rela inside #if 0 section where it is used.
3227
3228         * ns32k.h: New file.
3229         * cpu-ns32k.h: Include ns32k.h.  Rename externally visible
3230         functions to start with _bfd_.
3231         * aout-ns32k.c: Include ns32k.h.  Change references to renamed
3232         functions in cpu-ns32k.h.
3233         * Makefile.in: Rebuild dependencies.
3234         (HFILES): Add ns32k.h.
3235
3236         * section.c (struct sec): Add linker_mark field.  Change
3237         user_set_vma and reloc_done to be single bit fields.
3238         (STD_SECTION): Update accordingly.
3239         * bfd-in2.h: Rebuild.
3240         * aoutx.h (NAME(aout,final_link)): Mark sections included in the
3241         link.
3242         (aout_link_input_bfd): Don't link unmarked sections.
3243         * cofflink.c (_bfd_coff_final_link): Mark sections included in the
3244         link.
3245         (_bfd_coff_link_input_bfd): Don't link unmarked sections.
3246         * coff-ppc.c (ppc_bfd_coff_final_link): Mark sections included in
3247         the link.
3248         * elflink.h (elf_bfd_final_link): Mark sections included in the
3249         link.
3250         (elf_link_input_bfd): Don't link unmarked sections.
3251         * xcofflink.c (_bfd_xcoff_bfd_final_link): Mark sections included
3252         in the link.
3253         (xcoff_link_input_bfd): Don't link unmarked sections.
3254
3255         * coffswap.h (coff_swap_scnhdr_out): Include section name in
3256         overflow error messages.
3257
3258 Tue Mar 26 15:46:18 1996  Ian Lance Taylor  <[email protected]>
3259
3260         * bfd.c (_bfd_default_error_handler): If _bfd_error_program_name
3261         is not set, print "BFD: " before the error message.
3262
3263         * configure.in: Use AC_CHECK_TOOL to find ar and ranlib.  From
3264         Miles Bader <[email protected]>.
3265         * configure: Rebuild.
3266
3267 Fri Mar 22 12:17:00 1996  Ian Lance Taylor  <[email protected]>
3268
3269         * xcofflink.c (xcoff_link_input_bfd): Fix scan for C_BINCL/C_EINCL
3270         symbols.
3271
3272         * config.bfd: Add ieee_vec to targ_selvecs for i960 targets and
3273         m68k-aout, m68k-coff, and m68k-elf targets.
3274
3275 Fri Mar 22 11:33:44 1996  Martin Anantharaman  <[email protected]>
3276
3277         * ieee.c: Changed #ifdef KEEPMINUSPCININST to #if KEEPMINUSPCININST.
3278         (ieee_generic_stat_arch_elt): Restructured to prevent
3279         ieee_object_p from being called repeatedly.
3280
3281 Thu Mar 21 11:00:47 1996  steve chamberlain  <[email protected]>
3282
3283         * coffcode.h (coff_write_object_contents):  Allocate
3284         buffers large enough for any FILEHDR or AOUTHDR.
3285
3286 Thu Mar 21 16:28:17 1996  David Mosberger-Tang  <[email protected]>
3287
3288         * ecofflink.c (lookup_line): New static function, renamed and
3289         slighly changed from old _bfd_ecoff_locate_line.
3290         (_bfd_ecoff_locate_line): Cache line number information.  Use
3291         lookup_line for actual lookup.
3292
3293 Thu Mar 21 14:59:11 1996  Michael Meissner  <[email protected]>
3294
3295         * peicode.h (pe_print_pdata): Warn if the .pdata section is not a
3296         multiple of 20 bytes.
3297
3298 Thu Mar 21 13:54:40 1996  Ian Lance Taylor  <[email protected]>
3299
3300         * ecoff.c (_bfd_ecoff_find_nearest_line): Use bfd_zalloc to
3301         allocate ecoff_find_line, and don't initialize by hand.
3302         * elf32-mips.c (mips_elf_find_nearest_line): Use bfd_zalloc for
3303         mips_elf_find_line, and don't call memset.
3304
3305         * coffcode.h (coff_compute_section_file_positions): If not
3306         producing a final executable, don't consider sofar when aligning
3307         the section to the correct size.
3308
3309 Wed Mar 20 16:53:12 1996  Ian Lance Taylor  <[email protected]>
3310
3311         * coffcode.h (coff_add_missing_symbols): Ifdef out.
3312         (coff_write_object_contents): Don't call coff_add_missing_symbols.
3313         * coffgen.c (coff_section_symbol): Ifdef out.
3314
3315 Mon Mar 18 12:54:41 1996  Ian Lance Taylor  <[email protected]>
3316
3317         * elf32-mips.c (mips_elf_gprel32_reloc): Initialize gp if
3318         output_bfd is not NULL.
3319
3320 Thu Mar 14 17:12:06 1996  Doug Evans  <[email protected]>
3321
3322         * coffgen.c (coff_get_normalized_symtab): Call bfd_zalloc instead
3323         of bfd_alloc (fixes fix_line not being initialized).
3324         Delete zeroing of fix_{value,tag,end,scnlen} fields.
3325
3326 Thu Mar 14 16:06:06 1996  Jeffrey A Law  ([email protected])
3327
3328         * coffcode.h: Allow specific backends to override the
3329         bfd_link_add_symbols routine.
3330
3331         * coff-h8300.c: Include genlink.h.
3332         (howto_table): Add R_MEM_INDIRECT.
3333         (rtype2howto): Support R_MEM_INDIRECT.
3334         (h8300_reloc16_extra_cases): Handle R_MEM_INDIRECT like R_RELBYTE
3335         for now.
3336         
3337 Tue Mar 12 12:41:17 1996  David Mosberger-Tang  <[email protected]>
3338
3339         * coff-alpha.c (alpha_relocate_section): Use
3340         info->callbacks_warning, rather than _bfd_error_handler, for
3341         "multiple gp" warning.
3342
3343 Tue Mar 12 12:10:55 1996  Ian Lance Taylor  <[email protected]>
3344
3345         * linker.c (bfd_wrapped_link_hash_lookup): New function.
3346         (_bfd_generic_link_add_one_symbol): Remove BFD_ASSERT on hash
3347         table string.  Use bfd_wrapped_link_hash_lookup.
3348         (_bfd_generic_link_write_global_symbol): Remove BFD_ASSERT on hash
3349         table string.
3350         * aoutx.h (aout_link_write_symbols): Use the name from the hash
3351         table, if any, when writing out symbols.
3352         (aout_link_input_section_std): Use the name from the hash table,
3353         if any, when reporting undefined symbols.
3354         (aout_link_input_section_ext): Likewise.
3355         (aout_link_reloc_link_order): Use bfd_wrapped_link_hash_lookup.
3356         * bout.c (get_value): Likewise.
3357         * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
3358         * ecoff.c (ecoff_reloc_link_order): Likewise.
3359         * elflink.h (elf_link_add_object_symbols): Likewise.
3360         (elf_reloc_link_order): Likewise.       
3361         * linker.c (_bfd_generic_link_output_symbols): Likewise.
3362         (_bfd_generic_reloc_link_order): Likewise.
3363         (default_indirect_link_order): Likewise.
3364         * reloc16.c (bfd_coff_reloc16_get_value): Likewise.
3365         * sunos.c (sunos_add_one_symbol): Likewise.
3366         * xcofflink.c (xcoff_link_add_symbols): Likewise.
3367         (bfd_xcoff_link_count_reloc): Likewise.
3368         (xcoff_reloc_link_order): Likewise.
3369
3370         * ecoffswap.h (ecoff_swap_fdr_in): If ECOFF_64, turn 0xffffffff
3371         into -1 for intern->rss.
3372
3373         * configure: Rebuild with autoconf 2.8.
3374
3375 Mon Mar 11 12:28:31 1996  Ian Lance Taylor  <[email protected]>
3376
3377         * stab-syms.c (__define_stab_duplicate): Define.
3378         (bfd_get_stab_name): Rename from aout_stab_name.  Rewrite to use a
3379         switch.
3380         * bfd-in.h (bfd_get_stab_name): Declare.
3381         * bfd-in2.h: Rebuild.
3382         * Makefile.in: Rebuild dependencies.
3383         (BFD_LIBS): Add stab-syms.o.
3384         (BFD_LIBS_CFILES): Add stab-syms.c.
3385         (BFD32_BACKENDS): Remove stab-syms.o.
3386         (BFD32_BACKENDS_CFILES): Remove stab-syms.c.
3387         * configure.in: Don't list stab-syms.o in bfd_backends.
3388         * configure: Rebuild.
3389         * libaout.h (aout_stab_name): Don't declare.
3390         * aoutx.h (NAME(aout,get_symbol_info)): Call bfd_get_stab_name,
3391         not aout_stab_name.
3392
3393 Fri Mar  8 11:26:20 1996  Ian Lance Taylor  <[email protected]>
3394
3395         * elf.c (assign_file_positions_for_segments): Adjust file offset
3396         for section alignment even if SEC_LOAD is not set.
3397
3398 Tue Mar  5 12:02:23 1996  Ian Lance Taylor  <[email protected]>
3399
3400         * configure.in: Don't set SHLIB or SHLINK to an empty string,
3401         since they appear as targets in Makefile.in.
3402         * configure: Rebuild.
3403
3404         * sunos.c (sunos_scan_ext_relocs): If not making a shared library,
3405         don't fiddle with a symbol which is not defined anywhere.
3406
3407 Mon Mar  4 12:49:16 1996  Ian Lance Taylor  <[email protected]>
3408
3409         * xcofflink.c (xcoff_mark): Treat undefined imported symbols as
3410         though they are defined in a shared library.
3411         (xcoff_build_ldsyms): Likewise.
3412
3413         * coffgen.c (coff_find_nearest_line): Don't look at the line
3414         numbers for the section if section->lineno is NULL.
3415
3416         * elf.c (_bfd_elf_symbol_from_bfd_symbol): Print a useful error
3417         message rather than calling BFD_ASSERT.
3418         * elfcode.h (write_relocs): Check return value of
3419         _bfd_elf_symbol_from_bfd_symbol.
3420
3421 Fri Mar  1 09:42:59 1996  Michael Meissner  <[email protected]>
3422
3423         * elf32-ppc.c (ppc_elf_add_symbol_hook): Don't set SEC_LOAD flag
3424         for .sbss section.
3425
3426 Wed Feb 28 11:25:47 1996  Jeffrey A Law  ([email protected])
3427
3428         * libhppa.h (hppa_reloc_field_selector_type): Add R_HPPA_NLSEL
3429         and R_HPPA_NLRSEL.
3430         (e_nsel, e_nlsel, e_nlrsel): Undefine.  Add to
3431         hppa_reloc_field_selector_type_alt.
3432         (hppa_field_adjust): Handle e_nlsel, e_nlrsel.  Fix e_nsel handling.
3433         * som.c (hppa_som_gen_reloc_type): Handle N', NL' NLR' field
3434         selectors.
3435         (som_write_fixups): Finish handling of R_N0SEL and R_N1SEL.
3436
3437 Wed Feb 28 11:00:24 1996  Ian Lance Taylor  <[email protected]>
3438
3439         * elf.c (assign_file_positions_for_segments): Adjust the segment
3440         memory size for the alignment of a SEC_ALLOC section, not just a
3441         SEC_LOAD section.
3442
3443 Tue Feb 27 14:17:31 1996  Andreas Schwab  <[email protected]>
3444
3445         * m68klinux.c: New file.
3446         * hosts/m68klinux.h: New file.
3447         * config.bfd (m68*-*-linuxaout*, m68*-*-linux*): New targets.
3448         * configure.in (m68*-*-linux*): New native host.
3449         (m68klinux_vec): New vector.
3450         * configure: Rebuild.
3451         * targets.c (m68klinux_vec): Declare.
3452         * i386linux.c (bfd_i386linux_size_dynamic_sections): Renamed from
3453         bfd_linux_size_dynmic_sections to avoid clash with m68klinux.c.
3454         * bfd-in.h (bfd_i386linux_size_dynamic_sections): Rename
3455         declaration from bfd_linux_size_dynamic_sections.
3456         (bfd_m68klinux_size_dynamic_sections): Declare.
3457         * bfd-in2.h: Rebuild.
3458         * Makefile.in: Rebuild dependencies.
3459         (BFD32_BACKENDS): Add m68klinux.o.
3460         (BFD32_BACKENDS_CFILES): Add m68klinux.c.
3461
3462 Tue Feb 27 11:31:34 1996  Jeffrey A Law  ([email protected])
3463
3464         * libhppa.h (pa_arch): Add pa20.
3465         (hppa_reloc_field_selector_type): Add R_HPPA_NSEL.
3466         (e_nsel): Undefine.  Add to hppa_reloc_field_selector_type_alt.
3467         (hppa_field_adjust): Handle e_nsel.
3468         * som.c: Provide default definitions for many new relocs found only
3469         in hpux10 include files.
3470         (som_fixup_formats): Add several new relocs from hpux10.
3471         (som_hppa_howto_table): Add hpux10 relocs.
3472         (som_write_fixups): Handle R_N0SEL and R_N1SEL hpux10 relocs.
3473
3474 Mon Feb 26 12:52:48 1996  Stan Shebs  <[email protected]>
3475
3476         * mpw-make.sed: Edit out recent shared library support, and
3477         rules to rebuild .h files using doc/chew.
3478
3479 Mon Feb 26 14:48:39 1996  David Mosberger-Tang  <[email protected]>
3480
3481         * ecoff.c (ecoff_compute_section_file_positions): Adjust the file
3482         size even of sections with no contents.
3483
3484 Mon Feb 26 14:01:13 1996  Ian Lance Taylor  <[email protected]>
3485
3486         * cofflink.c (_bfd_coff_link_input_bfd): When merging, skip names
3487         starting with '$' the way we skip names starting with '.'.  When
3488         updating x_endndx, don't be fooled by an index which has been
3489         merged.
3490
3491         * cofflink.c (_bfd_coff_link_input_bfd): Don't try to optimize a
3492         struct/union/enum type with no elements.
3493
3494 Sat Feb 24 11:38:58 1996  Ian Lance Taylor  <[email protected]>
3495
3496         * bfd.c (bfd_errmsg): Handle a NULL return from strerror.
3497
3498         * archive.c (bfd_generic_archive_p): If the first file in the
3499         archive can not be recognized as an object, don't assume that this
3500         is the wrong format.
3501
3502         * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
3503         format is not bfd_object.
3504         (bfd_elf_get_dt_soname): Likewise.
3505
3506 Wed Feb 21 13:58:04 1996  Ian Lance Taylor  <[email protected]>
3507
3508         * coff-sh.c (sh_relax_delete_bytes): Correct range of R_SH_USES
3509         reloc.
3510
3511 Tue Feb 20 16:22:44 1996  J.T. Conklin  <[email protected]>
3512
3513         * bfd.c (tdata): Add netbsd_core_data.
3514         * bfd-in2.h: Regenerated.
3515
3516 Tue Feb 20 16:50:02 1996  Ian Lance Taylor  <[email protected]>
3517
3518         * sunos.c (SUNOS_CONSTRUCTOR): Define.
3519         (sunos_add_one_symbol): Don't let a symbol from a dynamic object
3520         override a constructor symbol.  Set SUNOS_CONSTRUCTOR when
3521         appropriate.
3522
3523         * bout.c (b_out_squirt_out_relocs): Use udata.i rather than flags
3524         to get the symbol index, matching 14 Jul 95 change.
3525
3526 Tue Feb 20 08:26:27 1996  Fred Fish  <[email protected]>
3527
3528         * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
3529         Remove duplicate definition of gp.
3530
3531 Mon Feb 19 12:37:41 1996  Ian Lance Taylor  <[email protected]>
3532
3533         * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Don't
3534         assume that we can set the GP value and then get the same value,
3535         since it won't be true if the output file is neither ELF nor
3536         ECOFF.
3537         * coff-mips.c (mips_adjust_reloc_in): Don't bother to use
3538         _bfd_get_gp_value here.
3539         (mips_gprel_reloc): Don't assume we can set and get the GP value.
3540         * elf32-mips.c (mips_elf_hi16_reloc): Get gp value from
3541         mips_elf_final_gp.
3542         (mips_elf_lo16_reloc): Likewise.
3543         (mips_elf_final_gp): Add pgp parameter.  Set it to the GP value.
3544         Don't require that the BFD be ELF.
3545         (mips_elf_gprel16_reloc): Get gp value from mips_elf_final_gp.
3546         (mips_elf_gprel32_reloc): Likewise.
3547         (mips_elf_relocate_section): Don't assume we can set and get the
3548         GP value.
3549         (mips_elf_finish_dynamic_symbol): Don't bother to use
3550         _bfd_get_gp_value here.
3551
3552         * elf32-mips.c (mips_elf_create_procedure_table): Initialize sv.
3553         Don't change epdr between malloc and free.  Be careful not to free
3554         NULL pointers.  Zero out the first RPDR.
3555
3556         * configure.host: On Linux, only pass -rpath option if $(libdir)
3557         is neither /lib nor /usr/lib.  From Alan Modra
3558         <[email protected]>.
3559
3560         * elf-bfd.h (struct elf_obj_tdata): Rename dt_needed_name to
3561         dt_name.
3562         (elf_dt_name): Rename from elf_dt_needed_name.
3563         * elf.c (bfd_elf_set_dt_needed_name): Use elf_dt_name, not
3564         elf_dt_needed_name.
3565         (bfd_elf_get_dt_soname): New function.
3566         * elflink.h (elf_link_add_object_symbols): Use elf_dt_name, not
3567         elf_dt_needed_name.  Save the SONAME back in elf_dt_name.
3568         * bfd-in.h (bfd_elf_get_dt_soname): Declare.
3569         * bfd-in2.h: Rebuild.
3570
3571 Mon Feb 19 02:50:23 1996  Doug Evans  <[email protected]>
3572
3573         * elf32-sparc.c (elf32_sparc_reloc_type_lookup): Renamed from
3574         _bfd_sparc_elf_reloc_type_lookup.
3575         (bfd_elf32_bfd_reloc_type_lookup): Update.
3576         * elf64-sparc.c (SPARC64_OLD_RELOCS): Define.
3577         (sparc64_elf_howto_table): Define.
3578         (sparc_reloc_map): Define.
3579         (sparc64_elf_reloc_type_lookup): New function.
3580         (sparc_elf_wdisp16_reloc): New function.
3581         (elf_info_to_howto): Use sparc64_elf_howto_table.
3582         (sparc64_elf_relocate_section): Likewise.
3583         (bfd_elf64_bfd_reloc_type_lookup): Update.
3584
3585 Sun Feb 18 15:02:25 1996  Ian Lance Taylor  <[email protected]>
3586
3587         * configure.host: Check for 'do not mix' from native linker before
3588         trying to use -rpath.
3589
3590 Fri Feb 16 12:46:18 1996  Ian Lance Taylor  <[email protected]>
3591
3592         * bfd.c (_bfd_get_gp_value): New function.
3593         (_bfd_set_gp_value): New function.
3594         * libbfd-in.h (_bfd_get_gp_value): Declare.
3595         (_bfd_set_gp_value): Declare.
3596         * libbfd.h: Rebuild.
3597         * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use
3598         _bfd_get_gp_value and _bfd_set_gp_value rather than referring
3599         directly to the fields in the tdata information.
3600         (alpha_relocate_section): Likewise.
3601         * coff-mips.c (mips_adjust_reloc_in): Likewise.
3602         (mips_gprel_reloc): Likewise.
3603         (mips_relocate_section): Likewise.
3604         * elf32-mips.c (mips_elf_hi16_reloc): Likewise.
3605         (mips_elf_lo16_reloc): Likewise.
3606         (mips_elf_final_gp): Likewise.
3607         (mips_elf_gprel16_reloc): Likewise.
3608         (mips_elf_gprel32_reloc): Likewise.
3609         (mips_elf_relocate_section): Likewise.
3610         (mips_elf_finish_dynamic_symbol): Likewise.
3611
3612         * bout.c (b_out_set_arch_mach): Recognize bfd_mach_i960_jx.
3613
3614 Thu Feb 15 11:29:13 1996  Ian Lance Taylor  <[email protected]>
3615
3616         * configure.in: Call AC_PROG_CC before configure.host.
3617         * configure: Rebuild.
3618         * configure.host: Don't set information which autoconf should
3619         figure out, namely CC, CFLAGS, LDFLAGS, AR, and RANLIB.
3620
3621         * configure.host: Remove go32 and win32 host information, since it
3622         should no longer be needed.
3623
3624         * elf.c (map_sections_to_segments): If we have a .dynamic section,
3625         then start a new segment rather than put a writable section in a
3626         readonly segment.
3627
3628         * configure.host: Set RPATH_ENVVAR.
3629
3630         * Makefile.in: Rebuild dependencies.
3631
3632         * elflink.c (_bfd_elf_create_linker_section): Remove unused
3633         zero_section variable.
3634
3635 Thu Feb 15 10:39:17 1996  H.J. Lu  <[email protected]>
3636
3637         * Makefile.in ($(srcdir)/bfd-in2.h): Rename target from bfd-in2.h.
3638         ($(srcdir)/libbfd.h): Rename from libbfd.h.
3639         ($(srcdir)/libcoff.h): Rename from libcoff.h.
3640
3641 Wed Feb 14 16:29:07 1996  Martin Anantharaman  <[email protected]>
3642
3643         * ieee.c (ieee_write_expression): Only use an R variable for a
3644         local symbol.  Don't output a zero offset.  Handle a zero address.
3645         (SRC_MASK, PCREL_OFFSET): Define based on KEEPMINUSPCININST.
3646         (rel32_howto, rel16_howto, rel8_howto): Use SRC_MASK and
3647         PCREL_OFFSET.
3648         (parse_expression): Don't try to handle multiple occurrences of a
3649         P variable.  Handle I variables differently from X variables.  Fix
3650         the order of minus expressions.
3651         (ieee_slurp_external_symbols): Generate an I variable for an NN
3652         record.  Fix handling of ATI and ATX records.
3653         (ieee_slurp_sections): Only set minimal section attributes.
3654         Adjust them later, based on the section contents.
3655         (ieee_object_p): Read in the file until just after the ME record.
3656         Call ieee_slurp_section_data to set the section flags.
3657         (do_one): Add iterations parameter.  Only repeat the first load
3658         item.  Set the section and file reloc flags.
3659         (ieee_slurp_section_data): Set section flags.  Pass iterations to
3660         do_one.
3661         (ieee_canonicalize_reloc): Handle I variables.
3662         (do_with_relocs): Only emit relocation size when necessary.
3663         Increase MAXRUN to 127.  Change ov to be assigned, and take
3664         src_mask and pcrel_offset into account.
3665         (ieee_write_data_part): Skip sections that are not loaded.
3666         (ieee_write_external_part): Don't output optional last entry of WX
3667         records.
3668         (ieee_write_me_part): Make setting of me_record neater.
3669         (ieee_generic_stat_arch_elt): Get the size of an archive element.
3670
3671         * syms.c (stt): Add entries for zerovars, vars, and code.
3672
3673         * elfcode.h (validate_reloc): New static function.
3674         (write_relocs): Call validate_reloc for non ELF relocs.
3675
3676         * elfxx-target.h (elf_symbol_leading_char): Define if not defined.
3677         (TARGET_BIG_SYM): Use elf_symbol_leading_char.
3678         (TARGET_LITTLE_SYM): Likewise.
3679
3680         * config.bfd (m68*-*-psos*): New target.
3681
3682 Tue Feb 13 15:56:22 1996  Bryan Ford  <[email protected]>
3683
3684         * i386msdos.c: Remove some #if 0 code.
3685         (msdos_write_object_contents): Don't include empty sections in the
3686         size computation, regardless of their address.
3687
3688 Tue Feb 13 15:36:37 1996  Michael Meissner  <[email protected]>
3689
3690         * elf32-ppc.c (ppc_elf_relocate_section): Don't segfault if dynboj
3691         is NULL, ie, the -r switch is used.
3692
3693 Tue Feb 13 14:35:15 1996  Ian Lance Taylor  <[email protected]>
3694
3695         * reloc.c (BFD_RELOC_MIPS_GOT_HI16): Define.
3696         (BFD_RELOC_MIPS_GOT_LO16): Define.
3697         (BFD_RELOC_MIPS_CALL_HI16, BFD_RELOC_MIPS_CALL_LO16): Define.
3698         * bfd-in2.h, libbfd.h: Rebuild.
3699         * elf32-mips.c (mips_reloc_map): Map new relocs.
3700
3701         * configure.host: Set HDLFLAGS for *-*-hpux with --enable-shared.
3702
3703         * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
3704         $(SHLINK).
3705
3706         * ieee.c (get_symbol): Set the section to bfd_abs_section.
3707         (do_with_relocs): If EXEC_P is set and there are no relocs, use a
3708         simple number for the section address, rather than an expression.
3709         Limit the number of bytes between relocs to MAXRUN.
3710         (ieee_write_me_part): Set me_record to the file offset after the
3711         start address.
3712         (ieee_write_processor): New static function.
3713         (ieee_write_object_contents): Use ieee_write_processor.
3714
3715 Fri Feb  9 10:53:00 1996  Ian Lance Taylor  <[email protected]>
3716
3717         * configure.host: Use ${CC-gcc} when testing for -rpath on SunOS.
3718
3719         * coff-aux.c: Change include of aux.h to aux-coff.h.
3720
3721 Thu Feb  8 14:01:03 1996  Andreas Schwab  <[email protected]>
3722
3723         * elf32-m68k.c (elf_m68k_relocate_section): For a R_68K_RELATIVE
3724         relocation put the addend both in the reloc entry and the data.
3725         (elf_m68k_finish_dynamic_symbol): Likewise.  Mask out marker in
3726         GOT offset value.
3727
3728         * elf32-m68k.c (elf_m68k_relocate_section): If -Bsymbolic, resolve
3729         a R_68K_PCxx reloc against a defined global symbol directly.
3730         (elf_m68k_check_relocs): Don't count such a reloc.
3731
3732         * elf32-m68k.c (elf_m68k_check_relocs): Don't record a symbol with
3733         a PLTxx reloc as dynamic.  Disallow PLTxxO reloc against a local
3734         symbol for now, otherwise always record the symbol as dynamic.
3735         (elf_m68k_adjust_dynamic_symbol): If a symbol with a PLTxx reloc
3736         is not referenced by a dynamic object, and we are not making a
3737         shared object, then don't make a PLT entry.  If we do make a PLT
3738         entry, make sure the symbol has been recorded as dynamic.
3739
3740 Wed Feb  7 13:56:06 1996  Ian Lance Taylor  <[email protected]>
3741
3742         * configure.host: When making a shared library, set HLDFLAGS to
3743         pass an appropriate -rpath option.  Use the make variable SONAME
3744         as the shared library soname, rather than computing it here.  On
3745         SunOS, build stamp-tshlink in place of $(SHLINK).
3746         * Makefile.in (SONAME): New variable.
3747         ($(SHLINK)): Make a link to the transformed name, as well.
3748         (stamp-tshlink): New target.
3749         (install): Skip stamp-tshlink during install.
3750
3751 Wed Feb  7 13:37:39 1996  Michael Meissner  <[email protected]>
3752
3753         * elf32-ppc.c (ppc_elf_add_symbol_hook): Do not assume that the
3754         linker sections have been set up yet.
3755
3756         * elf.c (make_mapping): Add an additional argument to suppress
3757         making the first section include the program headers.
3758         (map_sections_to_segments): If the user used -Ttext such that the
3759         program headers are on a different page, do not set the flags
3760         saying that this section includes the program headers.
3761
3762 Tue Feb  6 14:04:49 1996  J.T. Conklin  <[email protected]>
3763
3764         * configure.in (*-*-netbsd*): Set COREFILE to netbsd-core.c.
3765         don't define TRAD_HEADER.
3766         * configure: Rebuild.
3767
3768         * netbsd-core.c: New file, support for NetBSD core files.
3769         * hosts/*nbsd.h: Removed.
3770
3771 Tue Feb  6 11:47:49 1996  Doug Evans  <[email protected]>
3772
3773         * reloc.c (BFD_RELOC_SPARC_[567]): New reloc types.
3774         (BFD_RELOC_SPARC_LO7 reloc type): Deleted.
3775         * libbfd.h, bfd-in2.h: Regenerated.
3776         * elf32-sparc.c (_bfd_sparc_elf_reloc_type_lookup): Renamed from
3777         bfd_elf32_bfd_reloc_type_lookup.
3778         (reloc_type{,_names}): Deleted.
3779         (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
3780         Add sparc64 relocs.
3781         (sparc_reloc_map): Add sparc64 relocs.
3782         (sparc_elf_notsupported_reloc): New static function.
3783         (sparc_elf_wdisp16_reloc): New static function.
3784         (elf32_sparc_check_relocs): Handle R_SPARC_WDISP{16,19}.
3785         (elf32_sparc_relocate_section): Likewise.
3786         (bfd_elf32_bfd_reloc_type_lookup): Define.
3787         * elf64-sparc.c (sparc64_elf_wdisp16_reloc): Deleted.
3788         (reloc_type{,_names}): Deleted.
3789         (elf_sparc_howto_table): Deleted.
3790         (sparc_reloc_map): Deleted.
3791         (_bfd_sparc_elf_howto_table): Renamed from elf_sparc_howto_table.
3792         (bfd_elf64_bfd_reloc_type_lookup): Change from function to #define.
3793
3794 Tue Feb  6 12:12:22 1996  Ian Lance Taylor  <[email protected]>
3795
3796         * configure.host: Make SHLIB_CFLAGS include $(PICFLAG) on a
3797         *-*-hpux* host.
3798
3799         * Makefile.in (program_transform_name): New variable.
3800         (install): Transform library name before installing it.
3801
3802 Mon Feb  5 10:38:27 1996  Ian Lance Taylor  <[email protected]>
3803
3804         * archures.c (bfd_mach_i960_hx): Define.
3805         * bfd-in2.h: Rebuild.
3806         * cpu-i960.c (scan_960_mach): Accept machine "hx".
3807         (MATRIX): Expand entries for HX.
3808         (arch_info_struct): Add i960:hx entry.
3809         * bout.c (b_out_set_arch_mach): Handle bfd_mach_i960_hx.
3810         * coffcode.h (coff_set_arch_mach_hook): Handle F_I960HX.
3811         (coff_set_flags): Handle bfd_mach_i960_hx.
3812
3813         Support for building as a shared library, based on patches from
3814         Alan Modra <[email protected]>:
3815         * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
3816         New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
3817         SHLIB_CFLAGS, COMMON_SHLIB, PICLIST, SHLINK.
3818         * configure: Rebuild.
3819         * configure.host: If --enable-shared, adjust shared library stuff
3820         based on the host.  If the host is SunOS, and the linker supports
3821         -rpath, set HLDFLAGS to use it.
3822         * Makefile.in (ALLLIBS): New variable.
3823         (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
3824         (COMMON_SHLIB, SHLINK): New variables.
3825         (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
3826         (STAGESTUFF): Remove variable.
3827         (all): Depend upon $(ALLLIBS) and @PICLIST@ rather than
3828         $(TARGETLIB).
3829         (stamp-ofiles): New target, like old ofiles target, but build
3830         using a temporary file and move-if-change, and touch stamp-ofiles
3831         when done.
3832         (ofiles): Just depend upon stamp-ofiles.
3833         (stamp-piclist, piclist): New targets.
3834         ($(SHLIB), $(SHLINK)): New targets.
3835         (targets.o, archures.o): Build twice if PICFLAG is set.
3836         (do_mostlyclean): Remove pic/*.o.
3837         (do_clean): Remove stamp-ofiles, $(SHLIB), $(SHLINK), piclist, and
3838         stamp-piclist.
3839         (do_distclean): Remove pic and stamp-picdir.
3840         (install): Install shared libraries.
3841         ($(OFILES)): Depend upon stamp-picdir.
3842         (stamp-picdir): New target.
3843
3844         * libcoff-in.h: Add comment reminding people that libcoff.h is a
3845         generated file.
3846         * libcoff.h: Rebuild.
3847
3848         * elflink.h (elf_adjust_dynamic_symbol): Don't try to get the
3849         flavour of a section with no owner.
3850
3851         * elf32-mips.c (mips_elf_create_dynamic_sections): Clear
3852         ELF_LINK_NON_ELF flag.
3853         (mips_elf_create_got_section): Likewise.
3854
3855         * elf.c: Revert last change, since it breaks dynamic linking.
3856         * elf-bfd.h (struct elf_backend_data): Remove want_hdr_in_seg
3857         field.
3858         * elf32-mips.c (elf_backend_want_hdr_in_seg): Don't define.
3859         * elfxx-target.h (elf_backend_want_hdr_in_seg): Don't define.
3860         (elfNN_bed): Don't initialize want_hdr_in_seg field.
3861
3862 Sun Feb  4 20:45:13 1996  Michael Meissner  <[email protected]>
3863
3864         * elf.c (assign_file_positions_for_segments): If the backend does
3865         not want the elf header or the program headers in the address
3866         space, do not include them in the calculations.
3867
3868         * elf32-ppc.c (ppc_elf_additional_program_headers): New hook
3869         function to determine if we need additional program headers.
3870         (ppc_elf_modify_segment_map): Define as a NOP function for now.
3871         (ppc_elf_create_linker_section): .sdata2 is a read-only section.
3872
3873 Sat Feb  3 23:00:03 1996  Ian Lance Taylor  <[email protected]>
3874
3875         * coffcode.h: Move today's libcoff.h change into coffcode.h.
3876
3877 Sat Feb  3 15:43:44 1996  Fred Fish  <[email protected]>
3878
3879         * libcoff.h (bfd_coff_link_add_one_symbol): Combine macro args
3880         back into one line.  Some compilers (sunos 4.1.3 for example)
3881         won't accept args split across more than one line.
3882
3883 Fri Feb  2 11:42:15 1996  Steve Chamberlain  <[email protected]>
3884
3885         * aclocal.m4 (BFD_BINARY_FOPEN): Understand cygwin32.
3886         * configure: Regenerate.
3887
3888 Fri Feb  2 12:12:16 1996  Jeffrey A Law  ([email protected])
3889
3890         * elf32-hppa.c (elf32_hppa_backend_symbol_table_processing): Don't
3891         try to do arithmetic on a void *, cast it to a unsigned char * first.
3892
3893 Thu Feb  1 16:04:06 1996  Ian Lance Taylor  <[email protected]>
3894
3895         * elf-bfd.h (ELF_LINK_NON_ELF): Define.
3896         * elf.c (_bfd_elf_link_hash_newfunc): Set elf_link_hash_flags to
3897         ELF_LINK_NON_ELF.
3898         * elflink.h (elf_link_add_object_symbols): Reset ELF_LINK_NON_ELF
3899         flag for a newly defined symbol.
3900         (NAME(bfd_elf,record_link_assignment)): Likewise.
3901         (elf_adjust_dynamic_symbol): If ELF_LINK_NON_ELF is set, try to
3902         set the DEF or REF_REGULAR flags correctly.
3903
3904         * Makefile.in (bfd-in2.h): Make bfd.h, not protos, in docdir.
3905         (libbfd.h, libcoff.h): Corresponding change.
3906
3907         * elf32-i386.c (elf_i386_check_relocs): Don't record a symbol with
3908         a PLT32 reloc as dynamic.
3909         (elf_i386_adjust_dynamic_symbol): If a symbol with a PLT32 reloc
3910         is not referenced by a dynamic object, and we are not making a
3911         shared object, then don't make a PLT entry.  If we do make a PLT
3912         entry, make sure the symbol has been recorded as dynamic.
3913
3914 Wed Jan 31 17:23:32 1996  Steve Chamberlain  <[email protected]>
3915
3916         * coff-i386.c (coff_i386_reloc_type_lookup): Add BFD_RELOC_32_PCREL.
3917         * config.bfd (i[345]86-*-win32): Becomes i[345]86-*-cygwin32.
3918         (powerpcle-*-cygwin32): New.
3919         * peicode.h (add_data_entry): Get address from vma.
3920
3921 Wed Jan 31 16:23:57 1996  Michael Meissner  <[email protected]>
3922
3923         * elflink.c (_bfd_elf_create_linker_section): If the symbol
3924         attached to the section has already been created as an undefined
3925         symbol, treat it as if it hasn't been created yet.
3926
3927 Wed Jan 31 16:16:53 1996  Ian Lance Taylor  <[email protected]>
3928
3929         * elflink.h (elf_bfd_final_link): Don't output initial dummy
3930         symbol or section symbols if stripping all symbols and this is not
3931         a relocateable link.  Don't output the symbol string table if
3932         there are no symbols.
3933         (elf_link_flush_output_syms): Don't do anything if there are no
3934         symbols to flush.
3935
3936 Wed Jan 31 12:55:49 1996  Richard Henderson  <[email protected]>
3937
3938         * coff-aux.c: New file.
3939         * hosts/m68kaux.h: New file.
3940         * config.bfd (m68*-apple-aux*): New target.
3941         * configure.in (m68*-apple-aux*): New native host.
3942         (m68kaux_coff_vec): New vector.
3943         * configure: Rebuild.
3944         * targets.c (m68kaux_coff_vec): Declare.
3945         * coffcode.h (bfd_coff_backend_data): Add field
3946         _bfd_coff_link_add_one_symbol.
3947         (bfd_coff_link_add_one_symbol): Define.
3948         (compare_arelent_ptr): New static function if TARG_AUX.
3949         (coff_write_relocs): If TARG_AUX, sort the relocs.
3950         (coff_write_object_contents): Set A/UX aouthdr magic number.
3951         (coff_link_add_one_symbol): Define if not defined.
3952         (bfd_coff_std_swap_table): Initialize new field.
3953         * libcoff.h: Rebuild.
3954         * cofflink.c (coff_link_add_symbols): Call
3955         bfd_coff_link_add_one_symbol rather than
3956         _bfd_generic_link_add_one_symbol.
3957         * coff-m68k.c (COFF_PAGE_SIZE): Don't define if already defined.
3958         * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
3959         * coff-mips.c (mips_ecoff_backend_data): Likewise.
3960         * Makefile.in: Rebuild dependencies.
3961         (BFD32_BACKENDS): Add coff-aux.o.
3962         (BFD32_BACKENDS_CFILES): Add coff-aux.c.
3963
3964 Wed Jan 31 11:37:46 1996  Andreas Schwab  <[email protected]>
3965
3966         * elf32-m68k.c (elf_m68k_relocate_section): Fix R_68K_GOT*
3967         relocation; ignore addend with R_68K_{GOT,PLT}*O relocation.
3968
3969 Tue Jan 30 12:09:04 1996  Ian Lance Taylor  <[email protected]>
3970
3971         * Makefile.in (do_maintainer_clean): Remove $(srcdir)/bfd-in2.h,
3972         $(srcdir)/libbfd.h and $(srcdir)/libcoff.h.
3973         (maintainer-clean): Warn about deleting special files.
3974         (bfd-in2.h, libbfd.h, libcoff.h): New targets.
3975
3976         * elf32-hppa.c (elf32_hppa_relocate_section): Handle indirect and
3977         warning symbols correctly.
3978         * elf32-i386.c (elf_i386_relocate_section): Likewise.
3979         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
3980         * elf32-mips.c (mips_elf_relocate_section): Likewise.
3981         * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3982         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
3983         * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
3984
3985         * syms.c (_bfd_stab_section_find_nearest_line): Add casts to avoid
3986         warnings.
3987
3988 Mon Jan 29 14:27:24 1996  Kim Knuttila  <[email protected]>
3989
3990         * libcoff-in.h: aligned newly exported names with bfd naming 
3991         conventions. Removed an erroneous define of POWERPC_LE_PE.
3992         * libcoff.h: Rebuild.
3993         * cofflink.c, coff-ppc.c: the above function name changes
3994
3995 Mon Jan 29 13:06:28 1996  Ian Lance Taylor  <[email protected]>
3996
3997         From Basim Kadhim <[email protected]>:
3998         * ecoff.c (struct extsym_info): Define.
3999         (_bfd_ecoff_bfd_final_link): Pass a pointer to struct extsym_info
4000         to ecoff_link_write_external.
4001         (ecoff_link_write_external): Accept a struct extsym_info pointer.
4002         Strip symbols when appropriate.
4003
4004         Based on patches from Ronald F. Guilmette <[email protected]>:
4005         * syms.c (BSF_OBJECT): Define.
4006         (bfd_print_symbol_vandf): Print 'O' for BSF_OBJECT.
4007         * bfd-in2.h: Rebuild.
4008         * elfcode.h (elf_slurp_symbol_table): Set BSF_OBJECT for an
4009         STT_OBJECT symbol.
4010         * elf.c (swap_out_syms): Only set type to STT_OBJECT if BSF_OBJECT
4011         is set.
4012
4013         * elf32-i386.c (elf_i386_relocate_section): If -Bsymbolic, when
4014         copying relocs into a shared object, treat a defined global symbol
4015         as a local symbol.
4016         * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4017         * elf32-mips.c (mips_elf_relocate_section): Likewise.
4018         * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4019
4020         * elflink.h (elf_link_add_object_symbols): Only set weakdef to a
4021         real defined symbol, not to a weak defined symbol.
4022
4023 Mon Jan 29 11:34:36 1996  Kim Knuttila  <[email protected]>
4024
4025         * cofflink.c: removed the POWERPC_LE_PE hack, promoted some types
4026         and made a few static functions externs.
4027
4028         * coff-ppc.c (ppc_bfd_coff_final_link): new function, replaces the
4029         POWERPC_LE_PE hack in cofflink.
4030
4031         * libcoff-in.h: promoted the following from cofflink.c to allow
4032         _bfd_coff_final_link to be overridden -  STRING_SIZE_SIZE,
4033         coff_debug_merge_element, struct coff_debug_merge_type, 
4034         coff_debug_merge_hash_entry, coff_debug_merge_hash_table,
4035         coff_debug_merge_hash_table_init,  coff_debug_merge_hash_table_free,
4036         coff_debug_merge_hash_lookup, coff_link_section_info, 
4037         coff_final_link_info, coff_debug_merge_hash_newfunc,
4038         coff_write_global_sym, coff_link_input_bfd, coff_reloc_link_order.
4039
4040         * libcoff.h: re-gen'd
4041
4042 Fri Jan 26 18:33:35 1996  Ian Lance Taylor  <[email protected]>
4043
4044         * syms.c: Include "bfdlink.h".
4045         (struct stab_find_info): Define.
4046         (_bfd_stab_section_find_nearest_line): New function.
4047         * libbfd-in.h (_bfd_stab_section_find_nearest_line): Declare.
4048         * libbfd.h: Rebuild.
4049         * elf-bfd.h (struct elf_obj_tdata): Add line_info field.
4050         * elf.c (_bfd_elf_find_nearest_line): Try calling
4051         _bfd_stab_section_find_nearest_line before searching the ELF
4052         symbol table.  Find the closest STT_FUNC symbol, not the last one.
4053         * libcoff-in.h (coff_data_type): Add line_info field.
4054         * libcoff.h: Rebuild.
4055         * coffgen.c (coff_find_nearest_line): Try calling
4056         _bfd_stab_section_find_nearest_line before searching the COFF
4057         symbol table.
4058         * Makefile.in: Rebuild dependencies.
4059
4060 Fri Jan 26 16:11:19 1996  Michael Meissner  <[email protected]>
4061
4062         * elf32-ppc.c (R_PPC_EMB_SDA21 relocations): Make relocation size
4063         4 bytes, so we get the correct value when updating the register
4064         field in little endian mode.
4065
4066 Thu Jan 25 12:14:16 1996  Ian Lance Taylor  <[email protected]>
4067
4068         * libcoff-in.h (struct xcoff_tdata): Remove toc_section and
4069         entry_section fields.  Add sntoc and snentry fields.
4070         * libcoff.h: Rebuild.
4071         * coffcode.h (coff_mkobject_hook): Initialize sntoc and snentry,
4072         not toc_section and entry_section (the COFF file does not have any
4073         sections at this point).
4074         (coff_write_object_contents): Set o_snentry and o_sntoc from
4075         snentry and sntoc rather than entry_section and toc_section.
4076         * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy sntoc and
4077         snentry, not toc_section and entry_section.
4078         * xcofflink.c (bfd_xcoff_size_dynamic_sections): Don't set
4079         entry_section from hentry.
4080         (xcoff_link_input_bfd): If a defined symbol has XCOFF_ENTRY set,
4081         set snenty.
4082         (xcoff_link_input_bfd): Set sntoc, not toc_section.
4083         (xcoff_write_global_symbol): Get toc_section from sntoc, rather
4084         than using toc_section directly.
4085
4086         * archures.c: Add missing `.' in enum bfd_architecture.
4087         * bfd-in2.h: Rebuild.
4088
4089         * config.bfd (i[345]86-*-sco*elf*): Use bfd_elf32_i386_vec.  From
4090         Robert Lipe <[email protected]>.
4091
4092 Thu Jan 25 12:08:51 1996  Michael Meissner  <[email protected]>
4093
4094         * elf32-ppc.c (ppc_elf_size_dynamic_sections): Add .rela.sdata{,2}
4095         to sections we allocate.  Use bfd_zalloc to allocate initialial
4096         sections, not bfd_alloc.
4097         (ppc_elf_check_relocs): Remove BFD_ASSERTs for !shared from
4098         SDA{,2}I16 relocations.
4099         (ppc_elf_add_symbol_hook): Use the value of -G nn to determine
4100         whether to put something in .sbss or not.
4101         (ppc_elf_relocate_section): Add support for more relocations.  Add
4102         in sec->output_offset where appropriate.  Make error messages
4103         include the symbol name.
4104
4105         * elflink.c (_bfd_elf_create_linker_section): Lookup symbol before
4106         trying to add it to the symbol table, so _GLOBAL_OFFSET_TABLE_
4107         doesn't get redefined messages if -shared.
4108
4109         * elflink.h (elf_create_pointer_linker_section) Only bump RELA
4110         section if the rel_section field has been set up.
4111
4112 Wed Jan 24 20:40:26 1996  Michael Meissner  <[email protected]>
4113
4114         * elf32-ppc.c (ppc_elf_relocate_section): Fix typo in eabi
4115         relocations.
4116
4117 Wed Jan 24 10:38:34 1996  Doug Evans  <[email protected]>
4118
4119         * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Delete checking
4120         of flags, only flags used are controlled by mach number.  Bump up
4121         output file mach number to highest of input file mach numbers.
4122         (elf32_sparc_object_p): Watch for EF_SPARC_SUN_US1.
4123         (elf32_sparc_final_write_processing): Set EF_SPARC_SUN_US1 if v8plusa.
4124
4125         * config.bfd (sparc64-*-{sysv4*,solaris2*}): Comment out
4126         bfd_elf64_sparc_vec support.
4127
4128 Tue Jan 23 14:33:05 1996  Michael Meissner  <[email protected]>
4129
4130         * elf32-ppc.c (ppc_elf_copy_private_bfd_data): Don't complain if
4131         the embedded bit is set on some objects and not on others.  Just
4132         or it together.
4133         (ppc_elf_relocate_section): Implement R_PPC_EMB_{SDA21,RELSDA}
4134         relocations.
4135
4136 Tue Jan 23 14:22:45 1996  Ian Lance Taylor  <[email protected]>
4137
4138         * coffcode.h (coff_new_section_hook): Don't try to align the
4139         .stabstr section.
4140
4141         * coffcode.h (coff_set_section_contents): Fix the handling of the
4142         .lib section to work even if the entire section contents are
4143         written at once.  From Gvran Uddeborg <[email protected]> and
4144         Robert Lipe <[email protected]>.
4145
4146 Mon Jan 22 18:45:51 1996  Michael Meissner  <[email protected]>
4147
4148         * elflink.h (elf_finish_pointer_linker_section): Don't allocate
4149         memory here for contents.
4150
4151         * elf32-ppc.c (ppc_elf_relocate_section): Bump up _SDA_BASE_ and
4152         _SDA2_BASE_ by 32768.
4153         (ppc_elf_size_dynamic_sections): #if out PLT code which we haven't
4154         started using.  Allocate contents for .sdata and .sdata2 sections
4155         also.
4156         (ppc_elf_check_relocs): Use bfd_get_section_name in debug message,
4157         rather than _name.
4158         (ppc_elf_finish_dynamic_symbol): Remove code that attempted to
4159         size _SDA{,2}_BASE_.
4160         (ppc_elf_relocate_section): Change how sdata{,2} relocations are
4161         done.
4162
4163 Mon Jan 22 08:52:04 1996  Doug Evans  <[email protected]>
4164
4165         * elflink.h (elf_finish_pointer_linker_section): Fix typo.
4166
4167         * archures.c (bfd_mach_sparc_v9): Renamed from bfd_mach_sparc64.
4168         (bfd_mach_sparc_{v8plus,v8plusa}): Define.
4169         (bfd_mach_sparc_v9a): Define.
4170         (bfd_mach_sparc_v9_p): Define.
4171         * bfd-in2.h: Regenerated.
4172         * aoutx.h (aout,machine_type): bfd_mach_sparc64 renamed to
4173         bfd_mach_sparc_v9.
4174         * elf64-sparc.c (sparc64_elf_object_p): Likewise.
4175         * config.bfd (sparc64-*-sysv4*,sparc64-*-solaris2*): Set targ_defvec
4176         to bfd_elf32_sparc_vec.
4177         * cpu-sparc.c (arch_info_struct): Renamed from sparc_arch_info.
4178         Add v8plus{,a} support.
4179         Add v9a support.
4180         (sparc_compatible): New function.
4181         * elf32-sparc.h: #include "elf/sparc.h".
4182         (elf32_sparc_merge_private_bfd_data, elf32_sparc_object_p,
4183         elf32_sparc_final_write_processing): New functions.
4184         (bfd_elf32_bfd_merge_private_bfd_data, elf_backend_object_p,
4185         elf_backend_final_write_processing): Define.
4186
4187 Mon Jan 22 11:21:51 1996  Michael Meissner  <[email protected]>
4188
4189         * elf-bfd.h (struct elf_link_hash_entry): Add
4190         linker_section_pointer field.
4191         (enum elf_linker_section_enum): Enumeration for new way of
4192         creating linker dynamic sections and symbols.
4193         (elf_linker_section{,_pointers}): New structures for creating
4194         dynamic sections and symbols.
4195         (elf_obj_tdata): Add linker_section_pointers and linker_section
4196         fields.
4197         (elf_local_ptr_offsets,elf_linker_section): New accessor macros.
4198         (_bfd_elf_create_linker_section): New declarations.
4199         (_bfd_elf_find_pointer_linker_section): Ditto.
4200         (bfd_elf{32,64}_{create,finish}_pointer_linker_section): Ditto.
4201         (_bfd_elf_make_linker_section_rela): Ditto.
4202
4203         * elf.c (_bfd_elf_link_hash_newfunc): Initialize new fields.
4204
4205         * elf32-ppc.c (ppc_elf_create_dynamic_sections): Delete.
4206         (ppc_elf_create_linker_section): New function to create the
4207         sections .got, .sdata, and .sdata2.
4208         (ppc_elf_size_dynamic_sections): Zap .rela.{sdata,sdata2} if
4209         needed.
4210         (ppc_elf_check_relocs): Support more of the eabi relocations.
4211         (ppc_elf_relocate_section): Ditto.
4212         (ppc_elf_finish_dynamic_symbols): Adjust _SDA{,2}_BASE_ by 32768
4213         if the .sdata{,2} + .sbss{,2} section size is > 32k.
4214
4215         * elflink.h (elf_create_pointer_linker_section): New function to
4216         create initialized pointers in dynamic linker sections.
4217         (elf_finish_pointer_linker_section): Actually intialize the
4218         pointers created above.
4219
4220         * elfcode.h (bfd_elf{32,64}_create_pointer_linker_section): New
4221         macros to provide both 32 and 64 bit versions of
4222         elf_create_pointer_linker_section.
4223         (bfd_elf{32,64}_finish_pointer_linker_section): New macros to
4224         provide both 32 and 64 bit versions of
4225         elf_finish_pointer_linker_section.
4226
4227         * elflink.c (_bfd_elf_create_linker_section): New function to
4228         create a linker section.
4229         (_bfd_elf_find_pointer_linker_section): Find a unique pointer to a
4230         given address in the linker pointer offsets created for a given
4231         symbol.
4232         (_bfd_elf_make_linker_section_rela): Make a RELA section
4233         corresponding to the generated linker section.
4234
4235 Sat Jan 20 08:36:10 1996  Doug Evans  <[email protected]>
4236
4237         * elf32-sparc.c (ELF_MACHINE_ALT1): Define.
4238
4239 Thu Jan 18 18:25:34 1996  Kim Knuttila  <[email protected]>
4240
4241         * coff-ppc.c (coff_ppc_relocate_section): changed TOCDEFN relocs.
4242         (coff_ppc_relocate_section): Handle special values for gcc built dlls.
4243         (dump_toc): fix diagnosing code to identify out-of-toc-bounds entries.
4244         Also begin the toc at 4 as an eye catcher ('31313131' marks the first
4245         toc entry in an objdump) for now.
4246         (ppc_do_last, ppc_get_last): New function - needed to save processing 
4247         the toc owner to the end.
4248         (ppc_coff_swap_sym_in_hook): Removed an incorrect hack for doing the 
4249         toc owner last.
4250
4251         * cofflink.c (_bfd_coff_final_link): Added a new hack to keep the 
4252         toc owner from being done till last. Must define POWERPC_LE_PC 
4253         to enable it.
4254
4255         * coffcode.h (coff_set_alignment_hook): alignment setting for .stab
4256
4257         * peicode.h (coff_swap_scnhdr_out): set section flags for stab/str
4258         to INFO.
4259         (coff_swap_aouthdr_out): Removed a non-working hack for computing the
4260         SizeOfImage for PowerPC. Ignore the size of the .junk section.
4261
4262 Thu Jan 18 17:42:12 1996  Ian Lance Taylor  <[email protected]>
4263
4264         * elfcore.h: Include <signal.h> before <sys/procfs.h>.
4265
4266 Wed Jan 17 12:40:14 1996  Ian Lance Taylor  <[email protected]>
4267
4268         * cpu-powerpc.c (arch_info_struct): Change last entry to not point
4269         back to first.
4270         (bfd_powerpc_arch): Point at first entry in arch_info_struct.
4271
4272 Tue Jan 16 15:10:49 1996  Ian Lance Taylor  <[email protected]>
4273
4274         * elf.c (assign_file_positions_for_segments): Don't increment file
4275         offset for a segment which contains no loadable sections.
4276
4277 Mon Jan 15 17:46:27 1996  Michael Meissner  <[email protected]>
4278
4279         * reloc.c: Add new PowerPC relocations.
4280         * {bfd-in2,libbfd}.h: Regenerate.
4281
4282         * elf32-ppc.c (ppc_elf_howto_raw): Add more PPC relocations.
4283         (ppc_elf_reloc_type_lookup): Lookup new relocations.
4284
4285 Mon Jan 15 14:29:44 1996  Ian Lance Taylor  <[email protected]>
4286
4287         * aoutx.h (howto_table_ext): Fix RELOC_BASE10 and RELOC_BASE22
4288         entries.
4289
4290         * sunos.c (sunos_scan_ext_relocs): Don't fail assert if
4291         info->shared.
4292
4293         * coffgen.c (coff_find_nearest_line): Don't try to cache
4294         information in sections that are not owned by a BFD.  From Richard
4295         Henderson <[email protected]>.
4296
4297         * elf32-mips.c: Numerous changes to dynamic linking code, mostly
4298         from Kazumoto Kojima <[email protected]>.
4299         * elflink.h (elf_link_output_extsym): Remove special check for
4300         _rld_new_interface.
4301
4302         * ecoffswap.h: Add prototypes for static functions.
4303
4304 Sun Jan 14 21:36:08 1996  Michael Meissner  <[email protected]>
4305
4306         * elf32-ppc.c (ppc_elf_{unsupported,std}_reloc): Remove functions.
4307         (ppc_elf_howto_raw): Remove ppc_elf_{unsupported,std}_reloc
4308         references.
4309         (ppc_elf_relocate_section):  No longer allow .sdata/.sbss sections
4310         to satisfy a TOC16 relocation.  Rewrite unsupported relocation
4311         support.  Begin support for R_PPC_SDA{2,}REL.
4312
4313 Sat Jan 13 09:36:52 1996  Michael Meissner  <[email protected]>
4314
4315         * elf32-ppc.c (ppc_elf_create_dynamic_sections): New function to
4316         create the .got and .got.neg sections.
4317         (ppc_elf_size_dynamic_sections): Call it.
4318         (ppc_elf_check_relocs): Call it.
4319         (ppc_elf_size_dynamic_sections): Support .got.neg, just like .got.
4320         (ppc_elf_check_relocs): Add error messages for relocations we
4321         don't yet support.  Do not include R_PPC_SDAREL16 like a GOT
4322         relocation.
4323
4324 Fri Jan 12 15:27:59 1996  Michael Meissner  <[email protected]>
4325
4326         * elf32-ppc.c (ppc_elf_fake_sections): Define, and handle the new
4327         section flags for V.4 and eabi.
4328
4329 Fri Jan 12 13:59:16 1996  Ian Lance Taylor  <[email protected]>
4330
4331         * elf.c (assign_file_positions_for_segments): If a segment
4332         contains no sections, don't mark it as readable.
4333
4334         * elf-bfd.h (_bfd_elf_section_from_bfd_section): Declare.
4335         * elfcode.h (_bfd_elf_section_from_bfd_section): Don't declare.
4336
4337         * elf.c (_bfd_elf_print_private_bfd_data): Dump contents of
4338         dynamic section, if there is one.
4339         * elf-bfd.h (struct elf_size_info): Add swap_dyn_in field.
4340         (bfd_elf32_swap_dyn_in): Change type of second parameter to PTR.
4341         (bfd_elf64_swap_dyn_in): Likewise.
4342         * elfcode.h (elf_swap_dyn_in): Change type of second parameter to
4343         PTR.
4344         (NAME(_bfd_elf,size_info)): Initialize swap_dyn_in field.
4345
4346         * elf32-i386.c (elf_i386_size_dynamic_sections): Don't create a
4347         DT_TEXTREL entry because of .rel.plt.  From Martin Pirker
4348         <[email protected]>.
4349
4350 Thu Jan 11 17:06:14 1996  Michael Meissner  <[email protected]>
4351
4352         * section.c (SEC_{EXCLUDE,SORT_ENTRIES}): New section flags for
4353         PowerPC V.4 and eabi.
4354         * bfd-in2.h: Regenerate.
4355         * libfd.h: Regenerate.
4356
4357         * elfxx-target.h (TARGET_{BIG,LITTLE}_SYM): Add new flags.
4358
4359         * elf32-ppc.c (ppc_elf_section_from_shdr): Support SHT_ORDERED
4360         section type and SHF_EXCLUDE section flag, turning them into the
4361         appropriate bfd section flag.
4362
4363 Thu Jan 11 11:23:30 1996  Ian Lance Taylor  <[email protected]>
4364
4365         * xcofflink.c (xcoff_link_add_symbols): Create the special
4366         sections if we see a DYNAMIC object, in case that is the only
4367         XCOFF input object we see.
4368         
4369         * elf32-mips.c: Extensive changes for a start at dynamic linking
4370         support, from Kazumoto Kojima <[email protected]>.
4371
4372         * elf-bfd.h (struct elf_backend_data): Add type_change_ok field.
4373         (struct elf_backend_data): Remove
4374         elf_backend_create_program_headers field.  Add
4375         elf_backend_additional_program_headers and
4376         elf_backend_modify_segment_map fields.
4377         * elfxx-target.h (elf_backend_type_change_ok): Define if not
4378         defined.
4379         (elf_backend_additional_program_headers): Likewise.
4380         (elf_backend_modify_segment_map): Likewise.
4381         (elf_backend_create_program_headers): Don't define.
4382         (elfNN_bed): Change to account for field changes.
4383         * elf.c (assign_file_positions_for_segments): Call new
4384         modify_segment_map backend function.  Don't call old
4385         create_program_headers backend function.
4386         (get_program_header_size): Call additional_program_headers rather
4387         than create_program_headers.
4388         * elflink.h (elf_link_add_object_symbols): Initialize
4389         type_change_ok from new backend field.
4390         (elf_link_output_extsym): Don't warn if _rld_new_interface is
4391         defined.
4392         (elf_reloc_link_order): Treat a reloc against a defined symbol as
4393         a reloc against the appropriate section.
4394
4395         * elf-bfd.h (struct bfd_elf_section_data): Add tdata field.
4396         (struct elf_obj_tdata): Rename ppc_flags_init field to flags_init.
4397         (elf_flags_init): Rename from elf_ppc_flags_init.
4398         * elf32-ppc.c (ppc_elf_set_private_flags): Use elf_flags_init, not
4399         elf_ppc_flags_init.
4400         (ppc_elf_copy_private_bfd_data): Likewise.
4401         (ppc_elf_merge_private_bfd_data): Likewise.
4402
4403         * elf32-m68k.c (howto_table): Change src_mask to 0 for all
4404         relocation entries.
4405
4406 Tue Jan  9 15:22:53 1996  David Mosberger-Tang  <[email protected]>
4407
4408         * coff-alpha.c (alpha_relocate_section): During final link, allow
4409         output .lita section to be bigger than 64k by adjusting gp value
4410         on a per-input section basis.
4411         * libecoff.h (struct ecoff_tdata): Add issued_multiple_gp_warning
4412         field.
4413         (struct ecoff_section_tdata): Add gp field.
4414
4415 Tue Jan  9 12:00:36 1996  Ian Lance Taylor  <[email protected]>
4416
4417         Handle Alpha ECOFF changes in OSF/1 3.2.
4418         * libecoff.h (struct ecoff_backend_data): Add get_elt_at_filepos
4419         field.
4420         * coff-alpha.c: Include "aout/ar.h".
4421         (alpha_ecoff_get_relocated_section_contents): Don't require an
4422         ALPHA_R_IGNORE reloc after an ALPHA_R_GPDISP reloc, since OSF/1
4423         3.2 doesn't generate one.
4424         (alpha_relocate_section): Likewise.
4425         (alpha_ecoff_slurp_armap): Define.
4426         (alpha_ecoff_slurp_extended_name_table): Define.
4427         (alpha_ecoff_construct_extended_name_table): Define.
4428         (alpha_ecoff_truncate_arname): Define.
4429         (alpha_ecoff_write_armap): Define.
4430         (alpha_ecoff_generic_stat_arch_elt): Define.
4431         (alpha_ecoff_update_armap_timestamp): Define.
4432         (ARFZMAG): Define.
4433         (alpha_ecoff_read_ar_hdr): New static function.
4434         (alpha_ecoff_get_elt_at_filepos): New static function.
4435         (alpha_ecoff_openr_next_archived_file): New static function.
4436         (alpha_ecoff_get_elt_at_index): New static function.
4437         (alpha_ecoff_backend_data): Initialize get_elt_at_filepos field.
4438         (ecoffalpha_little_vec): Change BFD_JUMP_TABLE_ARCHIVE from
4439         _bfd_ecoff to alpha_ecoff.
4440         * ecoff.c (ecoff_link_add_archive_symbols): Use get_elt_at_filepos
4441         field from backend structure, rather than always calling
4442         _bfd_get_elt_at_filepos.
4443         * coff-mips.c (mips_ecoff_backend_data): Initialize
4444         get_elt_at_filepos field.
4445         * archive.c (_bfd_generic_read_ar_hdr_mag): New function, copied
4446         from _bfd_generic_read_ar_hdr with minor changes.
4447         (_bfd_generic_read_ar_hdr): Use _bfd_generic_read_ar_hdr_mag.
4448         * libbfd-in.h (_bfd_generic_read_ar_hdr_mag): Declare.
4449         * libbfd.h: Rebuild.
4450
4451         * bfd-in.h (BFD_IN_MEMORY): Define.
4452         * libbfd-in.h (struct bfd_in_memory): Define.
4453         * libbfd.c (bfd_read): Handle BFD_IN_MEMORY flag.
4454         (bfd_get_file_window): Don't try to map a BFD_IN_MEMORY file.
4455         (bfd_write, bfd_stat): Abort if BFD_IN_MEMORY is set.
4456         (bfd_tell, bfd_flush, bfd_seek): Handle BFD_IN_MEMORY flag.
4457         * bfd.c (struct _bfd): Change iostream field from char * to PTR.
4458         (bfd_get_size): Handle BFD_IN_MEMORY flag.
4459         * cache.c (bfd_cache_close): Ignore BFD_IN_MEMORY files.
4460         (bfd_open_file): Cast to PTR, not char *, when setting iostream.
4461         (bfd_cache_lookup_worker): Abort if BFD_IN_MEMORY is set.
4462         * opncls.c (bfd_fdopenr): Cast to PTR, not char *, when setting
4463         iostream.
4464         (bfd_openstreamr): Likewise.
4465         * aoutx.h (NAME(aout,some_aout_object_p)): Only fstat iostream if
4466         BFD_IN_MEMORY is not set.
4467         * riscix.c (riscix_some_aout_object_p): Likewise.
4468         * bfd-in2.h, libbfd.h: Rebuild.
4469
4470         * targets.c (bfd_target): Add _bfd_get_elt_at_index field.
4471         (BFD_JUMP_TABLE_ARCHIVE): Add _get_elt_at_index.
4472         (bfd_get_elt_at_index): Define.
4473         * archive.c (_bfd_generic_get_elt_at_index): Rename from
4474         bfd_get_elt_at_index.  Change index parameter from int to
4475         symindex.
4476         * libbfd-in.h (_bfd_generic_get_elt_at_index): Declare.
4477         (_bfd_noarchive_get_elt_at_index): Define.
4478         (_bfd_archive_bsd_get_elt_at_index): Define.
4479         (_bfd_archive_coff_get_elt_at_index): Define.
4480         * bfd-in2.h, libbfd.h: Rebuild.
4481         * aout-target.h (MY_get_elt_at_index): Define if not defined.
4482         * coff-rs6000.c (xcoff_get_elt_at_index): Define.
4483         * ieee.c (ieee_get_elt_at_index): Define.
4484         * libecoff.h (_bfd_ecoff_get_elt_at_index): Define.
4485         * oasys.c (oasys_get_elt_at_index): Define.
4486         * som.c (som_get_elt_at_index): Define.
4487
4488         * ecoff.c (_bfd_ecoff_find_nearest_line): Don't restrict line
4489         numbers to the .text section.
4490
4491 Mon Jan  8 17:00:57 1996  Ian Lance Taylor  <[email protected]>
4492
4493         * ieee.c (ieee_write_debug_part): Change return type to boolean.
4494         If there is a SEC_DEBUGGING section, get the contents of the debug
4495         information part from it.
4496         (ieee_set_section_contents): Store the contents of a SEC_DEBUGGING
4497         section in memory.
4498         (ieee_write_object_contents): Check ieee_write_debug_part return.
4499
4500 Thu Jan  4 17:12:37 1996  Fred Fish  <[email protected]>
4501
4502         * config.bfd (i[345]86-*-freebsd*): Add target.
4503         * configure.in (i386freebsd_vec): Add vec.
4504         * configure: Regenerate.
4505         * Makefile.in (BFD32_BACKENDS): Add i386freebsd.o.
4506         (BFD32_BACKENDS_CFILES): Add i386freebsd.c.
4507         Rebuild dependencies..
4508         * freebsd.h: New file.
4509         * i386freebsd.c: New file.
4510         * targets.c (i386freebsd_vec): Declare.
4511         (bfd_target_vector): Add i386freebsd_vec.
4512         * i386linux.c (SEGMENT_SIZE): Define as TARGET_PAGE_SIZE
4513         * i386netbsd.c (SEGMENT_SIZE):  Define as TARGET_PAGE_SIZE
4514         
4515 Thu Jan  4 16:27:46 1996  Ian Lance Taylor  <[email protected]>
4516
4517         * ieee.c (ieee_slurp_debug): New static function.
4518         (ieee_object_p): Call it.
4519         (ieee_slurp_section_data): Skip debugging sections.
4520         (ieee_get_reloc_upper_bound): Likewise.
4521         (ieee_get_section_contents): Likewise.
4522         (ieee_canonicalize_reloc): Likewise.
4523         (ieee_write_section_part): Likewise.
4524         (ieee_write_debug_part): Likewise.
4525         (ieee_write_data_part): Likewise.
4526         (init_for_output): Likewise.
4527
4528 Wed Jan  3 19:42:47 1996  Michael Meissner  <[email protected]>
4529
4530         * elf32-ppc.c (ppc_elf_relocate_section): Make @GOT relocations
4531         work.
4532         (ppc_elf_howto_raw): Just use bfd_elf_generic_reloc for all howto
4533         relocs, since ppc_elf_relocate_section handles the linker case.
4534         (ppc_elf_{addr16_ha,got16,toc16,brtaken}_reloc): Delete, no longer
4535         used.
4536         (ppc_elf_{addr16_ha,got16,toc16,brtaken}_inner): Merge these into
4537         ppc_elf_relocate_section since that is now the only caller.
4538         (ppc_elf_relocate_section): Ditto.
4539
4540 Wed Jan  3 15:11:30 1996  Ian Lance Taylor  <[email protected]>
4541
4542         * coffcode.h (coff_write_object_contents): If we don't know the
4543         section of the entry point for an XCOFF executable, always set the
4544         entry address to -1.
4545
4546 Tue Jan  2 14:17:15 1996  Michael Meissner  <[email protected]>
4547
4548         * elf.c (bfd_section_from_shdr): Add support for note sections.
4549
4550 Tue Jan  2 13:10:25 1996  Ian Lance Taylor  <[email protected]>
4551
4552         * bfd-in.h (struct _symbol_info): Add stab_type field.
4553         * bfd-in2.h: Rebuild.
4554         * aoutx.h (NAME(aout,get_symbol_info)): Set stab_type.
4555
4556         * elf32-ppc.c: Remove trailing newline from calls to
4557         _bfd_error_handler.
4558         (ppc_elf_merge_private_bfd_data): Only warn about endianness
4559         difference if target endianness is known.
4560
4561 Thu Dec 21 12:43:49 1995  Michael Meissner  <[email protected]>
4562
4563         * elf32-ppc.c (ppc_elf_howto_raw): Add a phony reloc to handle the
4564         old style TOC16 references without using R_PPC_GOT.
4565         (ppc_reloc_type): Ditto.
4566         (ppc_elf_reloc_type_lookup): Add support for TOC16.
4567         (ppc_elf_toc16_inner): Renamed from ppc_elf_got16_inner.
4568         (ppc_elf_toc16_reloc): Renamed from ppc_elf_toc16_reloc.
4569         (ppc_elf_got16_{inner,reloc}): Stubs for real GOT support.
4570         (ppc_elf_check_relocs): New function for GOT/PLT support that is
4571         work in progress.
4572         (ppc_elf_adjust_dynamic_symbol): Ditto.
4573         (ppc_elf_adjust_dynindx): Ditto.
4574         (ppc_elf_size_dynamic_sections): Ditto.
4575         (ppc_elf_finish_dynamic_symbol): Ditto.
4576         (ppc_elf_finish_dynamic_sections): Ditto.
4577         (ELF_DYNAMIC_INTERPRETER): Define.
4578
4579 Wed Dec 20 19:14:18 1995  Ken Raeburn  <[email protected]>
4580
4581         * elf.c (copy_private_bfd_data): When attaching sections to
4582         segments ignore sections that won't be allocated.  Patch from
4583         Andreas Schwab.
4584
4585 Tue Dec 19 20:01:43 1995  Ken Raeburn  <[email protected]>
4586
4587         * config.bfd: Match on m68k-cbm-* only if OS doesn't match
4588         anything else.
4589
4590 Tue Dec 19 16:38:59 1995  Ian Lance Taylor  <[email protected]>
4591
4592         * coff-i960.c (CALC_ADDEND): Define.
4593         (coff_i960_relocate_section): Add the input section VMA to the
4594         addend for PC relative relocs.
4595
4596 Sun Dec 17 20:11:55 1995  Kim Knuttila  <[email protected]>
4597
4598         * peicode.h (pe_print_pdata): Must test the entire entry for zero
4599         to correctly terminate.
4600
4601 Fri Dec 15 12:05:57 1995  Ian Lance Taylor  <[email protected]>
4602
4603         * targets.c (enum bfd_endian): Define.
4604         (bfd_target): Rename byteorder_big_p to byteorder, and change it
4605         from boolean to enum bfd_endian.  Change header_byteorder_big_p
4606         correspondingly.
4607         * bfd-in.h (bfd_big_endian, bfd_little_endian): New macros.
4608         (bfd_header_big_endian, bfd_header_little_endian): New macros.
4609         * bfd-in2.h: Rebuild.
4610         * All targets: Change initialization of byteorder and
4611         header_byteorder to use enum bfd_endian values rather than
4612         booleans.
4613         * All files: Change all references to byteorder_big_p and
4614         header_byteorder_big_p to use new bfd_*_endian macros.
4615
4616         * coffgen.c (make_a_section_from_file): Set lma to s_paddr, not
4617         s_vaddr.
4618         * coffcode.h (coff_write_object_contents): Set s_paddr to lma, not
4619         vma.
4620         * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
4621
4622 Fri Dec 15 07:32:09 1995  steve chamberlain  <[email protected]>
4623
4624         * pe[i]-i386.c (TARGET_UNDERSCORE): Define to '_'.
4625
4626 Thu Dec 14 13:45:37 1995  Ian Lance Taylor  <[email protected]>
4627
4628         * ieee.c: Lots of minor cleanups.  Make many functions return
4629         errors rather than calling abort.  Also:
4630         (ieee_write_twobyte): Remove; change callers to call existing
4631         ieee_write_2bytes function.
4632         (ieee_write_expression): Don't output the section twice when
4633         outputting a local symbol.  Don't emit an extraneous zero if there
4634         is only one term.
4635         (ieee_slurp_sections): Set the lma as well as the vma.
4636         (ieee_archive_p): Use bfd_alloc_grow rather than an obstack.
4637
4638         * ihex.c (ihex_set_arch_mach): Don't accept any architecture, just
4639         a recognized one or bfd_arch_unknown.
4640         (ihex_get_symtab_upper_bound): Define as bfd_0l, to permit objcopy
4641         to succeed.
4642         (ihex_get_symtab): Likewise.
4643
4644 Wed Dec 13 15:44:06 1995  Ian Lance Taylor  <[email protected]>
4645
4646         * aoutx.h: Include <ctype.h>.
4647         (struct aout_link_includes_table): Define.
4648         (struct aout_link_includes_totals): Define.
4649         (struct aout_link_includes_entry): Define.
4650         (aout_link_includes_lookup): Define macro.
4651         (struct aout_final_link_info): Add includes field.
4652         (aout_link_includes_newfunc): New static function.
4653         (NAME(aout,final_link)): Initialize includes hash table.
4654         (aout_link_write_symbols): Eliminate duplicate N_BINCL entries.
4655
4656 Wed Dec 13 10:52:14 1995  Stan Shebs  <[email protected]>
4657
4658         * mpw-config.in: Match on mips-*-* instead of mips-idt-ecoff.
4659
4660 Wed Dec 13 11:07:45 1995  Kim Knuttila  <[email protected]>
4661
4662         * coff-ppc.c (coff_ppc_relocate_section): removed debugging code.
4663
4664 Tue Dec 12 17:42:06 1995  Kim Knuttila  <[email protected]>
4665
4666         * peicode.h (pe_print_reloc): New function to dump the .reloc section.
4667         (pe_print_private_bfd_data): call pe_print_reloc.
4668         * coffcode.h (coff_set_alignment_hook): .reloc section alignment.
4669         * coff-ppc.c (in_reloc_p): Added missing non-eligible relocs. Spiffed
4670         up some debugging as well.
4671
4672 Tue Dec 12 11:34:23 1995  Ian Lance Taylor  <[email protected]>
4673
4674         * config.bfd: Handle sparc-*-elf*.  From Ronald F. Guilmette
4675         <[email protected]>.
4676
4677 Fri Dec  8 17:47:07 1995  Ian Lance Taylor  <[email protected]>
4678
4679         * elflink.h (elf_link_add_object_symbols): Set section_count to 0
4680         when setting sections to NULL.
4681
4682 Wed Dec  6 17:05:37 1995  Ian Lance Taylor  <[email protected]>
4683
4684         * xcofflink.c (struct xcoff_loader_info): Add export_defineds
4685         field.
4686         (bfd_xcoff_size_dynamic_sections): Add export_defineds parameter.
4687         (xcoff_build_ldsyms): If export_defineds is set, set XCOFF_EXPORT
4688         for all symbols.
4689         * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
4690         * bfd-in2.h: Rebuild.
4691
4692 Mon Dec  4 16:40:47 1995  Kim Knuttila  <[email protected]>
4693
4694         * coffcode.h (coff_set_alignment_hook): Removed some debugging printf's
4695
4696 Mon Dec  4 11:25:39 1995  Ian Lance Taylor  <[email protected]>
4697
4698         * ihex.c (ihex_scan): Handle record types 4 and 5.
4699         (ihex_object_p): Permit types 4 and 5.
4700         (ihex_set_section_contents): Remove check for out of range
4701         addresses.
4702         (ihex_write_object_contents): Generate types 4 and 5.
4703
4704         * elflink.h (elf_link_output_extsym): Just ignore warning and
4705         indirect references to symbols which don't really exist.
4706
4707 Sun Dec  3 19:00:27 1995  Kim Knuttila  <[email protected]>
4708
4709         * peicode.h (pe_print_idata): Minor format fixes
4710         (pe_print_edata): New function. Under private printing, this formats
4711         the edata section of a PE file.
4712         (pe_print_private_bfd_data): Added call to pe_print_edata.
4713
4714 Sun Dec  3 16:46:54 1995  Richard Earnshaw ([email protected])
4715
4716         * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
4717         index, don't call stoi.
4718
4719 Fri Dec  1 14:46:51 1995  Ian Lance Taylor  <[email protected]>
4720
4721         * srec.c (srec_scan): Set lma as well as vma.
4722
4723         * ihex.c: New file; support for Intel Hex format.
4724         * targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
4725         (ihex_vec): Declare.
4726         (bfd_target_vector): Always include ihex_vec.
4727         * bfd.c (struct _bfd): Add ihex_data field to tdata union.
4728         * Makefile.in: Rebuild dependencies.
4729         (BFD_LIBS): Add ihex.o
4730         (BFD_LIBS_CFILES): Add ihex.c.
4731         * bfd-in2.h: Rebuild.
4732
4733         * elf.c (assign_file_positions_for_segments): Sort the sections in
4734         each segment.
4735         (get_program_header_size): Return the right size if segment_map is
4736         not NULL.
4737         (copy_private_bfd_data): Don't bother to sort the sections.
4738
4739         * bfd.c (bfd_record_phdr): New function.
4740         * bfd-in.h (bfd_record_phdr): Declare.
4741         * bfd_in2.h: Rebuild.
4742
4743         * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
4744         BFD_ASSERT.
4745
4746         * libbfd.c (bfd_malloc, bfd_realloc): New functions.
4747         (bfd_zmalloc): Return PTR, not char *.  Take size_t, not
4748         bfd_size_type.
4749         * libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
4750         (bfd_zmalloc): Change declaration.
4751         * libbfd.h: Rebuild.
4752         * Many files: Use bfd_malloc and bfd_realloc rather than malloc
4753         and realloc.  Don't set bfd_error_no_memory if they fail.
4754
4755 Thu Nov 30 19:32:26 1995  Kim Knuttila  <[email protected]>
4756
4757         * coff-ppc.c: Added macros to tidy up toc cell treatment. Numerous
4758         uses as well. Added a new howto to deal with TOCREL16 relocs that 
4759         are TOCDEFN as well.
4760         (coff_ppc_relocate_section): Expanded treatment of ADDR32NB relocs
4761         to handle RVA relocs from dlltool.
4762         (ppc_coff_rtype2howto): TOCDEFN reloc addition.
4763         (coff_ppc_rtype_to_howto): TOCDEFN reloc addition.
4764         (ppc_coff_reloc_type_lookup): TOCDEFN reloc addition.
4765
4766         * coffcode.h (coff_set_alignment_hook): check idata$X sections 
4767         to get the right section alignment.
4768
4769 Thu Nov 30 16:48:18 1995  Ian Lance Taylor  <[email protected]>
4770
4771         * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
4772         p_paddr if p_paddr is zero.
4773         (make_mapping): Set includes_filehdr and includes_phdrs for first
4774         PT_LOAD segment.
4775         (map_sections_to_segments): Set includes_phdrs for PT_PHDR
4776         segment.
4777         (assign_file_positions_for_segments): Handle includes_filehdr and
4778         includes_phdrs.  Remove special handling of PT_PHDR and first
4779         PT_LOAD segments.
4780         (copy_private_bfd_data): Set includes_filehdr and includes_phdr
4781         when appropriate.  Remove special handling of PT_PHDR segment.
4782         Use a more complex condition for when a section is included in a
4783         segment to handle Solaris linker oddities.
4784
4785 Thu Nov 30 11:17:33 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <[email protected]>
4786
4787         * coff-m88k.c (howto_table): Reformatted for easier reading;
4788         special_function now points to new function m88k_special_reloc.
4789         (howto_hvrt16): Function previously used for handling HVRT16 relocs
4790         removed.
4791         (rtype2howto): Do not add reloc's r_offset to the addend, this will
4792         be done correctly by m88k_special_reloc.
4793         (reloc_processing): New function to be used by RELOC_PROCESSING.
4794         (RELOC_PROCESSING): Define to call reloc_processing.
4795
4796 Wed Nov 29 12:42:36 1995  Ian Lance Taylor  <[email protected]>
4797
4798         * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
4799         (pe_print_pdata): Likewise.
4800
4801         * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
4802         obstack_alloc fails.
4803         (bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
4804         fails.
4805         * libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
4806         * Many files: don't set bfd_error_no_memory if one of the above
4807         routines fails.
4808
4809         * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
4810         if p_paddr_valid is set.
4811         (copy_private_bfd_data): New static function.
4812         (_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.
4813
4814         * elf.c (assign_file_positions_for_segments): Fix case where extra
4815         program headers were allocated.
4816
4817         * elf.c (_bfd_elf_print_private_bfd_data): New function.
4818         * elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
4819         * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
4820         _bfd_elf_print_private_bfd_data.
4821
4822         * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
4823         r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
4824         Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
4825         (alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
4826         RELOC_SECTION_LITA for ALPHA_R_IGNORE.
4827         (alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
4828         RELOC_SECTION_ABS to RELOC_SECTION_NONE.
4829
4830 Tue Nov 28 16:59:50 1995  Ian Lance Taylor  <[email protected]>
4831
4832         * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
4833         * elf.c (make_mapping): New static function.
4834         (map_sections_to_segments): New static function.
4835         (elf_sort_sections): New static function.
4836         (assign_file_positions_for_segments): New static function.
4837         (map_program_segments): Remove.
4838         (get_program_header_size): Remove sorted_hdrs, count, and
4839         maxpagesize parameters.  Simplify.
4840         (assign_file_positions_except_relocs): When generating an
4841         executable, use assign_file_positions_for_segments.
4842         (elf_sort_hdrs): Remove.
4843         (_bfd_elf_sizeof_headers): Remove eliminated parameters from call
4844         to get_program_header_size.
4845
4846 Mon Nov 27 12:27:46 1995  Ian Lance Taylor  <[email protected]>
4847
4848         * hp300hpux.c (MY(callback)): Set lma as well as vma.
4849
4850         * configure, config.in: Regenerate with autoconf 2.7.
4851
4852         * elf32-i386.c (elf_backend_plt_readonly): Set correctly, to 1.
4853         * elf32-sparc.c (elf_backend_plt_readonly): Set correctly, to 0.
4854
4855 Wed Nov 22 12:02:09 1995  Ian Lance Taylor  <[email protected]>
4856
4857         * ecoff.c (_bfd_ecoff_new_section_hook): Handle .rconst section.
4858         (ecoff_sec_to_styp_flags): Likewise.
4859         (_bfd_ecoff_styp_to_sec_flags): Handle STYP_RCONST.
4860         (ecoff_set_symbol_info): Handle scRConst.
4861         (ecoff_slurp_reloc_table): Handle RELOC_SECTION_RCONST.
4862         (ecoff_compute_section_file_positions): Handle .rconst section.
4863         (_bfd_ecoff_write_object_contents): Likewise.
4864         (ecoff_link_check_archive_element): Handle scRConst.
4865         (ecoff_link_add_externals): Likewise.
4866         (ecoff_link_write_external): Handle .rconst section.
4867         (ecoff_reloc_link_order): Likewise.
4868         * ecofflink.c (bfd_ecoff_debug_accumulate): Handle scRConst.
4869         * coff-alpha.c (alpha_convert_external_reloc): Handle .rconst
4870         section.
4871         (alpha_relocate_section): Handle RELOC_SECTION_RCONST.
4872
4873         * sunos.c (sunos_scan_dynamic_symbol): Only set written if the
4874         DEF_DYNAMIC flag is set.
4875
4876 Tue Nov 21 13:25:29 1995  Ken Raeburn  <[email protected]>
4877
4878         * host-aout.c: If TRAD_HEADER is defined, include it.
4879
4880 Tue Nov 21 13:03:57 1995  Ian Lance Taylor  <[email protected]>
4881
4882         * aclocal.m4 (AC_PROG_CC): Remove local definition.
4883         (BFD_BINARY_FOPEN): Require AC_CANONICAL_SYSTEM.
4884         (BFD_NEED_DECLARATION): New function.
4885         * configure.in: Use BFD_NEED_DECLARATION.
4886         * acconfig.h: Put NEED_DECLARATION_* in @TOP@ section.
4887         * configure, config.in: Rebuild with autoconf 2.6.
4888
4889         * xcofflink.c (bfd_xcoff_size_dynamic_sections): Clear
4890         special_sections before returning when called with a non XCOFF
4891         BFD.
4892
4893         * coffgen.c (coff_renumber_symbols): Sort common symbols with
4894         global symbols.
4895
4896         * coffcode.h (coff_compute_section_file_positions): Only pad the
4897         previous section to force file alignment when creating an
4898         executable.
4899
4900 Mon Nov 20 14:54:09 1995  Ian Lance Taylor  <[email protected]>
4901
4902         * coffcode.h (coff_compute_section_file_positions): If
4903         RS6000COFF_C, set up the .debug section.
4904
4905         * xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
4906         if it is not large enough to accomodate the entire TOC area with
4907         signed 16 bit offsets.
4908         (xcoff_write_global_symbol): Handle negative TOC offsets in global
4909         linkage code.
4910         (_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
4911         TOC anchor to use the TOC value used in the output file.
4912
4913 Sat Nov 18 18:01:41 1995  Ian Lance Taylor  <[email protected]>
4914
4915         * coffgen.c (_bfd_coff_get_external_symbols): Cast malloc return.
4916         (_bfd_coff_read_string_table): Likewise.
4917
4918 Sat Nov 18 19:43:04 1995  Richard Earnshaw ([email protected])
4919
4920         * pe-arm.c: Fix typos.
4921         * coff-arm.c: Likewise.
4922
4923 Fri Nov 17 16:22:04 1995  Kim Knuttila  <[email protected]>
4924
4925         * coff-ppc.c (list_ele): Added "cat"egory member.
4926         (record_toc): New category parameter (priv or pub).
4927         (ppc_record_toc_entry): Check to see if toc bounds exceeded.
4928         (ppc_process_before_allocation): Removed embrionic data-in-toc from
4929         the mainline. It addes extra toc cells in error.
4930         (ppc_coff_swap_sym_in_hook): Added some documentation.
4931         (dump_toc): Can now diagnose "virtual toc" chicanery.
4932
4933 Fri Nov 17 10:41:25 1995  Philippe De Muyter  <[email protected]>
4934
4935         * elf-bfd.h (struct elf_link_hash_table): Change type of
4936         dynsymcount and bucketcount fields from size_t to bfd_size_type.
4937
4938 Fri Nov 17 10:02:58 1995  Ian Lance Taylor  <[email protected]>
4939
4940         * coffcode.h (coff_pointerize_aux_hook): I960 version: don't
4941         pointerize C_LEAFSTAT or C_LEAFEXT entries.
4942
4943         * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
4944         DT_INIT and DT_FINI entries if the _init or _fini symbol is
4945         defined or mentioned in a regular file.
4946
4947 Thu Nov 16 15:16:42 1995  Kim Knuttila  <[email protected]>
4948
4949         * coff-ppc.c (ppc_record_data_in_toc_entry): new function
4950         (coff_ppc_relocate_section): Handle TOCDEFN attribute
4951         (coff_ppc_relocate_section): Correct REL24 handling
4952         (ppc_process_before_allocation): Correct TOCDEFN handling
4953
4954         * peicode.h (dir_names): Added name descriptions
4955
4956 Thu Nov 16 03:38:03 1995  Ken Raeburn  <[email protected]>
4957
4958         * VERSION: Updated to cygnus-2.6.
4959
4960 Wed Nov 15 19:30:07 1995  Ken Raeburn  <[email protected]>
4961
4962         * targets.c (m68k4knetbsd_vec): Declare.
4963
4964 Wed Nov 15 18:05:52 1995  Ian Lance Taylor  <[email protected]>
4965
4966         * targets.c (bfd_target): Change type of second argument to
4967         _bfd_print_private_bfd_data from void * to PTR.
4968         * libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
4969         using PTR rather than void *.
4970         * bfd-in2, libbfd.h: Rebuild.
4971         * peicode.h (pe_print_private_bfd_data): Change vfile from void *
4972         to PTR.
4973         * elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
4974         _bfd_generic_bfd_print_private_bfd_data rather than casting
4975         bfd_true.
4976
4977 Wed Nov 15 04:09:14 1995  Ken Raeburn  <[email protected]>
4978
4979         * Makefile.in (.dep1): Fix stupid typo in last change.  Remove any
4980         "DO NOT DELETE" lines or blank lines that mkdep writes on some
4981         systems.
4982         (BFD_LIBS_CFILES, ALL_MACHINES_CFILES, BFD32_BACKENDS_CFILES,
4983         BFD64_BACKENDS_CFILES): New variables.
4984         (CFILES): Use them.
4985         
4986 Tue Nov 14 11:52:23 1995  Ian Lance Taylor  <[email protected]>
4987
4988         * peicode.h (coff_swap_aouthdr_out): For PPC PE, start isize at 0,
4989         not at the file position of the first section.
4990         * coffcode.h (coff_compute_section_file_positions): Avoid using
4991         unportable #elif.
4992         (coff_write_object_contents): When generating a PPC PE executable
4993         with no symbols, round up the file size to a COFF_PAGE_SIZE
4994         boundary.
4995         * cofflink.c (_bfd_coff_final_link): If there are no symbols,
4996         don't write out a string table.
4997
4998         * elf.c (bfd_section_from_shdr): When using a different section
4999         header, pass the new one to _bfd_elf_make_section_from_shdr.
5000         (elf_fake_sections): Don't set sh_info and sh_entsize fields.
5001         (elf_map_symbols): Add section VMA to symbol value when comparing
5002         against 0.
5003         (_bfd_elf_compute_section_file_positions): Only build symbol table
5004         if there are some symbols.  Set file offset of symtab and strtab
5005         sections.
5006         (assign_file_positions_except_relocs): Remove dosyms parameter.
5007         Change all callers.  Never set file offset of symtab and strtab
5008         sections.
5009         (_bfd_elf_copy_private_section_data): New function.
5010         (MAP_ONESYMTAB, MAP_DYNSYMTAB, MAP_STRTAB, MAP_SHSTRTAB): Define.
5011         (_bfd_elf_copy_private_symbol_data): New function.
5012         (swap_out_syms): Check for special mapping of st_shndx created by
5013         copy_private_symbol_data.
5014         * elfxx-target.h: Use new copy routines.
5015         * elf-bfd.h (_bfd_elf_copy_private_symbol_data): Declare.
5016         (_bfd_elf_copy_private_section_data): Declare.
5017
5018         * config.bfd (sh-*-*): Set targ_defvec to shcoff_vec.
5019
5020         * coffcode.h (coff_slurp_symbol_table): If COFF_WITH_PE, handle
5021         C_NT_WEAK.
5022
5023         * coff-sh.c (shlcoff_vec): Use _bfd_generic_archive_p, not
5024         _bfd_dummy_target, matching the recent change to archive
5025         recognition.
5026
5027 Mon Nov 13 13:24:38 1995  Ian Lance Taylor  <[email protected]>
5028
5029         * libbfd.c (bfd_get_file_window): Use casts to avoid doing
5030         arithmetic on PTR types.
5031
5032         * aout-target.h (MY(callback)): Set the lma of the sections.
5033
5034         * ecoff.c (ecoff_reloc_link_order): Turn a reloc against a defined
5035         symbol into a reloc against the section.
5036
5037 Mon Nov 13 07:31:35 1995  Kim Knuttila  <[email protected]>
5038
5039         * coff-ppc.c (ppc_coff_link_hash_entry): added support for inline
5040         glue for the relocs: IMGLUE and IFGLUE.
5041         (record_toc): new function - tracks toc contents
5042         (ppc_mark_symbol_as_glue): new function - supports the IMGLUE reloc
5043         (coff_ppc_relocate_section): Added support and fixes for IMGLUE/IFGLUE
5044         (ppc_coff_rtype2howto): removed invalid IMGLUE hack
5045         (coff_ppc_rtype_to_howto): removed invalid IMGLUE hack
5046         (ppc_record_toc_entry): Removed a debug define (duh)
5047
5048         * peicode.h (coff_swap_scnhdr_out): Fixed invalid strcmp for ".reldata"
5049         (pe_print_idata): New function - formats the idata section data
5050         (pe_print_pdata): New function - formats the pdata section data
5051         (pe_print_private_bfd_data): calls to above
5052
5053 Sun Nov 12 12:23:24 1995  Stan Shebs  <[email protected]>
5054
5055         * Makefile.in (bfd_libs_here, etc): Provide empty definitions.
5056         * coff-rs6000.c (rs6000coff_vec): Add conditional defines
5057         TARGET_SYM and TARGET_NAME for vector and BFD name.
5058         * coff-pmac.c (pmac_xcoff_vec): Remove.
5059         (TARGET_SYM, TARGET_NAME): Define.
5060         * coffcode.h (coff_set_arch_mach_hook) [POWERMAC]: Set the
5061         machine to 0, not all PowerMacs are 601s.
5062
5063 Fri Nov 10 12:10:14 1995  Ian Lance Taylor  <[email protected]>
5064
5065         * elfcode.h (elf_object_p): Read in any program headers.
5066         * elf.c (_bfd_elf_make_section_from_shdr): Adjust section lma
5067         based on the program headers, if any.
5068         (elf_fake_sections): Set sh_addr from the vma, not the lma.
5069         (map_program_segments): Set p_paddr of program headers based on
5070         the lma.
5071
5072 Thu Nov  9 13:01:31 1995  Ian Lance Taylor  <[email protected]>
5073
5074         * archive.c (bfd_generic_archive_p): Preserve tdata in case of
5075         failure.
5076
5077         * aoutx.h (NAME(aout,final_link)): Report a reasonable error when
5078         trying to do a relocateable link with a non-a.out object file.
5079
5080         * archive.c (bfd_generic_archive_p): Check the first object file
5081         in an archive even if target_defaulted is set.  If the object file
5082         has the wrong xvec, reject it.
5083
5084         * aoutx.h (NAME(aout,set_section_contents)): If a section can not
5085         be represented, report the name via _bfd_error_handler.
5086         (translate_to_native_sym_flags): Likewise.
5087         * elf32-mips.c (mips_elf_final_link): Likewise.
5088         * oasys.c (oasys_write_sections): Likewise.
5089
5090         * coffcode.h (coff_set_alignment_hook): Write RS6000COFF_C version
5091         which checks for STYP_OVRFLO sections.
5092         (coff_compute_section_file_positions): If RS6000COFF_C, handle
5093         reloc and lineno count overflows.
5094         (coff_write_object_contents): Call coff_count_linenumbers before
5095         coff_compute_section_file_positions.  If RS6000COFF_C, handle
5096         reloc and lineno count overflows.
5097         * xcofflink.c (_bfd_xcoff_bfd_final_link): Count line numbers and
5098         relocs before dealing with .pad sections.  Count overflow section
5099         headers when handling .pad sections.
5100
5101         * coffcode.h (coff_write_object_contents): Set a.out vstamp to 1
5102         if RS6000COFF_C.
5103
5104         * xcofflink.c (XCOFF_DESCRIPTOR): Define.
5105         (struct xcoff_link_hash_table): Add descriptor_section and
5106         special_sections fields.
5107         (_bfd_xcoff_bfd_link_hash_table_create): Initialize new fields.
5108         (xcoff_link_add_symbols): Set linkage section alignment.  Create
5109         descriptor section.  Check for magic symbol names (_text, etc.),
5110         and record them in special_sections if found.  Set
5111         XCOFF_DESCRIPTOR flag for a function descriptor, and set its
5112         descriptor field to point back to the function code symbol.
5113         (xcoff_sweep): Always mark the special descriptor_section.
5114         (bfd_xcoff_export_symbol): Check whether the symbol might be a
5115         function descriptor, and mark it if it is.
5116         (bfd_xcoff_size_dynamic_sections): Add new special_sections
5117         parameter, and fill it in.  Allocate space for the descriptor
5118         section.
5119         (xcoff_build_ldsyms): Set XCOFF_DEF_REGULAR flag when defining
5120         global linkage code.  If an undefined function descriptor is
5121         exported, arrange to define it.  Warn about any other undefined
5122         exported symbol.
5123         (_bfd_xcoff_bfd_final_link): Write out the descriptor section.
5124         (xcoff_write_global_symbol): Create a function descriptor when
5125         necessary.
5126         * bfd-in.h (bfd_xcoff_size_dynamic_sections): Update declaration.
5127         * bfd-in2.h: Rebuild.
5128
5129 Thu Nov  9 08:40:23 1995  Kim Knuttila  <[email protected]>
5130
5131         * coff-ppc.c (ppc_coff_link_hash_entry): new types for hashing
5132         (ppc_coff_link_hash_table): new types for hashing
5133         (ppc_coff_link_hash_newfunc): hash entry constructor
5134         (ppc_coff_link_hash_table_init): hash table initializer
5135         (ppc_coff_link_hash_table_create): hash table constructor
5136         (ppc_record_toc_entry): changed references to hash table
5137         (coff_ppc_relocate_section): changed references to hash table
5138
5139         * libcoff-in.h (coff_link_hash_entry): removed toc_offset
5140         * libcoff.h: Rebuild
5141
5142         * cofflink.c (_bfd_coff_link_hash_newfunc): removed toc_offset init
5143         (coff_link_add_symbols): removed toc_offset init
5144
5145 Thu Nov  9 04:00:38 1995  Ken Raeburn  <[email protected]>
5146
5147         * Makefile.in (.dep1): Make sure the file mkdep is to write exists
5148         first.
5149
5150         * configure.in: Added new option --with[out]-mmap.  Set USE_MMAP
5151         if it is given and mmep is available.
5152         * acconfig.h: Undef USE_MMAP.
5153         * configure, config.in: Regenerated.
5154         * aoutx.h: If USE_MMAP is not defined, do all symbol and string
5155         table handling the old way.
5156         (aout_get_external_symbols): Don't complain if last byte of string
5157         table is nonzero.
5158         * libbfd.c [HAVE_MADVISE]: Include sys/types.h and sys/mman.h.
5159         (bfd_free_window) [! USE_MMAP]: Don't define.
5160         (bfd_get_file_window,
5161         _bfd_generic_get_section_contents_in_window) [! USE_MMAP]: Abort.
5162
5163 Wed Nov  8 20:03:44 1995  Eric Freudenthal <[email protected]>
5164
5165         * coff-a29k.c (SIGN_EXTEND_HWORD): Use ~0xffff rather than
5166         0xffff0000.
5167
5168 Wed Nov  8 11:31:11 1995  Ian Lance Taylor  <[email protected]>
5169
5170         * coff-a29k.c (a29k_reloc): Change handling of R_IREL reloc to be
5171         compatible with AMD generated COFF files.  Try to support both AMD
5172         and GNU formats simultaneously.
5173         (coff_a29k_relocate_section): Likewise.
5174
5175         * libbfd.c (bfd_get_file_window): Change writable parameter from
5176         int to boolean; update all callers.  Pass MAP_SHARED if not
5177         writable--it's required on Solaris.  Cast fprintf argument to
5178         avoid warning.
5179         * bfd-in.h (bfd_get_file_window): Update declaration.
5180         * bfd-in2.h: Rebuild.
5181         * aoutx.h: Update calls to bfd_get_file_window.
5182
5183         * xcofflink.c (XCOFF_DEF_DYNAMIC): Rename from XCOFF_REF_DYNAMIC.
5184         Change all uses.
5185         (xcoff_swap_ldhdr_in): New static function.
5186         (xcoff_swap_ldsym_in): New static function.
5187         (xcoff_find_reloc): Handle the case of a single reloc correctly.
5188         (xcoff_link_add_symbols): If we just created a descriptor, pass it
5189         to _bfd_generic_link_add_one_symbol, to save a hash lookup.
5190         Handle XTY_ER/XMC_XO symbols correctly.
5191         (xcoff_link_add_dynamic_symbols): Rewrite to read .loader symbols
5192         rather than normal symbol table.
5193         (bfd_xcoff_import_symbol): It's not an error if the symbol is
5194         already defined with the same absolute value.
5195         (xcoff_mark): When considering called symbols, check whether the
5196         descriptor is from a dynamic object, rather than the symbol
5197         itself.
5198         (xcoff_build_ldsyms): Likewise.
5199
5200         * libbfd.c (bfd_get_file_window): Change return type to boolean.
5201         Cast realloc and malloc return values.  If malloc or realloc fail,
5202         set bfd_error_no_memory.
5203         * bfd-in.h (bfd_get_file_window): Change type to boolean.
5204         * bfd-in2.h: Rebuild.
5205
5206 Tue Nov  7 11:53:48 1995  Kim Knuttila  <[email protected]>
5207
5208         * coff-ppc.c (ppc_record_toc_entry): new function.
5209         (in_reloc_p): changed return value.
5210         (coff_ppc_relocate_section): much rework.
5211         (ppc_allocate_toc_section): new function.
5212         (ppc_process_before_allocation): new function.
5213         (ppc_coff_swap_sym_in_hook): new function.
5214
5215         * cofflink.c (_bfd_coff_link_hash_newfunc): initialize toc_offset.
5216         (coff_link_add_symbols): initialize toc_offset.
5217
5218         * peicode.h (coff_swap_sym_in): Added coff_swap_sym_in_hook
5219         (coff_swap_aouthdr_out): Added more sections to the data
5220         dictionary for the pe file header. Also changed linker version
5221         number on the ppc side.
5222         (dir_names): small improvements to the dictionary printing.
5223         (pe_mkobject_hook): save the file level flags.
5224
5225         * libcoff-in.h (coff_link_hash_entry): added toc_offset field
5226         (pe_tdata): added real_flags field
5227         (coff_tdata): added local_toc_sym_map and access macro
5228
5229         * libcoff.h (coff_link_hash_entry): added toc_offset field
5230         (pe_tdata): added real_flags field
5231         (coff_tdata): added local_toc_sym_map and access macro
5232
5233         * coffcode.h (coff_set_alignment_hook): added hook for PE.
5234         (coff_mkobject): init for local_toc_sym_map
5235         (coff_write_object_contents): set the internal_a.magic to
5236         IMAGE_NT_OPTIONAL_HDR_MAGIC which appears to be what other
5237         ppc compilers use.
5238
5239 Tue Nov  7 13:48:58 1995  Ian Lance Taylor  <[email protected]>
5240
5241         * ecofflink.c (_bfd_ecoff_locate_line): Keep looking through stabs
5242         entries until both the line number address and the function name
5243         address are too large.
5244
5245         * configure.in: Call AC_CHECK_PROG to find and cache AR.
5246         * configure: Rebuilt.
5247
5248         * aclocal.m4 (BFD_CC_FOR_BUILD): Don't define CC_FOR_BUILD if it
5249         is defined in the environment.
5250
5251 Tue Nov  7 10:57:24 1995  Jeffrey A Law  ([email protected])
5252
5253         * som.c (som_get_section_contents_in_window): Define to use
5254         generic version.
5255
5256 Mon Nov  6 17:13:15 1995  Harry Dolan  <[email protected]>
5257
5258         * coff-i860.c: New file, based on coff-i386.c.
5259         * cpu-i860.c: New file, based on cpu-i386.c.
5260         * hosts/i860mach3.h: New file, based on hosts/i386mach3.h.
5261         * config.bfd (i860-*-mach3*, i860-*-osf1*, i860-*-coff*): New
5262         targets, using i860coff_vec.
5263         * configure.in (i860-*-mach3*, i860-*-osf1*): New hosts, using
5264         trad-core.o and hosts/i860mach3.h.
5265         (i860coff_vec): Use coff-i860.o and cofflink.o.
5266         * configure: Rebuild.
5267         * Makefile.in: Rebuild dependencies.
5268         (ALL_MACHINES): Add cpu-i860.o.
5269         (BFD32_BACKENDS): Add coff-i860.o.
5270         (CFILES): Add cpu-i860.c and coff-i860.c.
5271         * targets.c (i860coff_vec): Declare.
5272         (bfd_target_vector): Add &i860coff_vec. 
5273         * archures.c (bfd_i860_arch): Declare.
5274         (bfd_archures_list): Add &bfd_i860_arch.
5275         * coffcode.h (coff_set_arch_mach_hook): Handle I860 magic number.
5276         (coff_set_flags): Handle bfd_arch_i860.
5277         (coff_write_object_contents): Handle I860 a.out magic number.
5278
5279 Mon Nov  6 14:34:07 1995  Ian Lance Taylor  <[email protected]>
5280
5281         * xcofflink.c (xcoff_link_add_symbols): Set the alignment power of
5282         the created .tc section to 2.
5283         (xcoff_mark): Don't keep a .loader reloc for a call to an
5284         undefined symbol when creating a shared library.
5285         (xcoff_build_ldsyms): When creating a shared library, generate
5286         global linkage code for a call to an undefined symbol.
5287
5288 Sun Nov  5 21:44:13 1995  Ken Raeburn  <[email protected]>
5289
5290         * Makefile.in (CFILES): Rebuild list from BFD_LIBS, ALL_MACHINES,
5291         BFD32_BACKENDS, BFD64_BACKENDS.
5292         (.dep1): Put mkdep output in a separate file.
5293         Rebuilt dependencies.
5294
5295         * ecoff.c (_bfd_ecoff_slurp_armap): Cast _bfd_read_ar_hdr return
5296         value.
5297
5298         Permit use of mmap when available:
5299
5300         * configure.in: Check for mmap, madvise, mprotect.
5301         * config.in, configure: Regenerated.
5302
5303         * libbfd.c (struct _bfd_window_internal): Define type.
5304         (bfd_init_window, bfd_free_window, bfd_get_file_window): New
5305         functions.
5306         (ok_to_map): New static variable for debugging.
5307         (_bfd_generic_get_section_contents_in_window): New function.
5308         * bfd-in.h (bfd_window_internal): Declare type.
5309         (bfd_window): Define type.
5310         (bfd_init_window, bfd_free_window, bfd_get_file_window): Declare.
5311         * libbfd-in.h (_bfd_generic_get_section_contents_in_window):
5312         Declare.
5313
5314         * libaout.h (struct aoutdata): Add two window fields.
5315         (obj_aout_sym_window, obj_aout_string_window): New macros.
5316         * aoutx.h (some_aout_object_p): Initialize windows.
5317         (aout_get_external_symbols): Get symbol data and strings in
5318         windows instead of explicitly allocated buffers.
5319         (slurp_symbol_table): Free window instead of memory.
5320         (bfd_free_cached_info): Release windows instead of freeing storage
5321         directly.
5322         (aout_link_free_symbols): Ditto.
5323
5324         * targets.c (bfd_target): Add new field for
5325         get_section_contents_in_window.
5326         (BFD_JUMP_TABLE_GENERIC): Updated.
5327         * aout-adobe.c, aout-target.h, binary.c, bout.c, coff-alpha.c,
5328         coff-mips.c, elfxx-target.h, i386msdos.c, i386os9k.c, ieee.c,
5329         libcoff-in.h, oasys.c, srec.c, tekhex.c, versados.c: Added new
5330         macros for get_section_contents_in_window field.
5331
5332 Sat Nov  4 12:23:26 1995  Fred Fish  <[email protected]>
5333
5334         * core.c: Renamed to corefile.c
5335         * makefile.dos (OBJS): Change core.o to corefile.o
5336         * Makefile.in (CFILES, BFD_LIBS): Use corefile.c instead of core.c
5337         
5338 start-sanitize-gm
5339 Sat Nov  4 10:16:54 1995  Stu Grossman  ([email protected])
5340
5341         * config.bfd (mips*-*-magic*):  Add bfd_elf32_bigmips_vec to
5342         targ_selvecs to allow debugging under Irix-5 native.
5343
5344 end-sanitize-gm
5345 Fri Nov  3 15:54:59 1995  Ian Lance Taylor  <[email protected]>
5346
5347         * xcofflink.c (xcoff_link_add_symbols): Rename local variable sub
5348         to o.  Clobber and restore the list of new csects around the call
5349         to _bfd_generic_link_add_one_symbol, in case it wants to report a
5350         linker error and the linker wants to read the symbol table.  Reset
5351         the line number count of a real section even if it has no relocs.
5352         (_bfd_xcoff_bfd_final_link): If shared, set the DYNAMIC flag.
5353
5354         * coffgen.c (_bfd_coff_read_string_table): Warn if the string size
5355         is too small.
5356
5357 Thu Nov  2 23:16:39 1995  Ian Lance Taylor  <[email protected]>
5358
5359         * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Don't warn about
5360         an undefined symbol in a shared link.
5361
5362         * linker.c (_bfd_generic_link_add_one_symbol): Correct type of
5363         oldtype from bfd_link_order_type to bfd_link_hash_type.  From
5364         [email protected] (Philippe De Muyter).
5365
5366 Wed Nov  1 14:26:02 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <[email protected]>
5367
5368         * coff-m88k.c (rtype2howto): New static function.
5369         (RTYPE2HOWTO): Use it rather than a macro definition.
5370
5371         * coffcode.h (coff_write_object_contents): set internal_a.magic
5372         to PAGEMAGICPEXECPAGED #if defined (M68) && !defined (LYNXOS).
5373
5374         * configure.in: m68*-motorola-sysv* does not use ptrace-core.o;
5375         define TRAD_HEADER to new file hosts/delta68.h.
5376         m88*-motorola-sysv*, however, does use ptrace-core.o.
5377         * hosts/delta68.h: New file.
5378
5379         * ptrace-core.c (ptrace_unix_core_file_p): change bfd_zmalloc to
5380         bfd_zalloc; provide proper parm abfd to calls to bfd_zalloc.
5381
5382 Wed Nov  1 13:51:54 1995  Ken Raeburn  <[email protected]>
5383
5384         * i386linux.c (MY(vec)): Declare before use.
5385
5386 Wed Nov  1 11:45:07 1995  Ian Lance Taylor  <[email protected]>
5387
5388         * reloc16.c (bfd_coff_reloc16_get_relocated_section_contents):
5389         Pass input_bfd, not in_bfd, to bfd_coff_reloc16_extra_cases.
5390
5391         * elf.c (bfd_elf_set_dt_needed_name): Don't do anything if the
5392         BFD is not of the right type.
5393         (bfd_elf_get_needed_list): Likewise.
5394         * i386linux.c (bfd_linux_size_dynamic_sections): Likewise.
5395         * sunos.c (bfd_sunos_get_needed_list): Likewise.
5396         * xcofflink.c (XCOFF_XVECP): Define.
5397         (bfd_xcoff_link_record_set): Don't do anything if the BFD is not
5398         of the right type.
5399         (bfd_xcoff_import_symbol): Likewise.
5400         (bfd_xcoff_export_symbol): Likewise.
5401         (bfd_xcoff_link_count_reloc): Likewise.
5402         (bfd_xcoff_record_link_assignment): Likewise.
5403         (bfd_xcoff_size_dynamic_sections): Likewise.
5404
5405         * sunos.c (sunos_scan_ext_relocs): Only check the reloc symbol
5406         table index against the number of symbols for a base relative
5407         reloc.
5408
5409         * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Change from macro to
5410         static function.
5411         * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Set
5412         full_aouthdr flag here...
5413         (_bfd_xcoff_bfd_final_link): ...not here.
5414
5415 Tue Oct 31 12:52:02 1995  Fred Fish  <[email protected]>
5416
5417         * libelf.h:  Rename to elf-bfd.h to avoid conflict with
5418         systems that have a system <libelf.h>.
5419         * Makefile.in: Globally replace libelf.h with elf-bfd.h.
5420         * bfd.c, elf.c, elf32-arc.c, elf32-gen.c, elf32-hppa.c,
5421         elf32-hppa.h, elf32-i386.c, elf32-i860.c, elf32-m68k.c,
5422         elf32-m88k.c, elf32-mips.c, elf32-ppc.c, elf32-sparc.c,
5423         elf64-gen.c, elf64-sparc.c, elfcode.h, elflink.c,
5424         elfxx-target.h: Include elf-bfd.h rather than libelf.h.
5425         * elfxx-target.h: Change libelf.h reference to elf-bfd.h.
5426
5427 Tue Oct 31 15:30:07 1995  David Mosberger-Tang  <[email protected]>
5428
5429         * ecoff.c (ecoff_set_symbol_info): Add new parameter weak.  If
5430         set, set BSF_WEAK in symbol.  Change all callers.
5431         (ecoff_get_extr): Set weakext based on BSF_WEAK.
5432         (ecoff_link_add_externals): If weakext is set, pass BSF_WEAK to
5433         _bfd_generic_link_add_one_symbol.
5434         (ecoff_indirect_link_order): Check that the section tdata relocs
5435         are not NULL before using them.
5436
5437         * configure.in (alpha*-*-linux*): Set COREFILE to trad-core.o and
5438         define TRAD_HEADER as hosts/alphalinux.h.
5439         * configure: Rebuild.
5440         * hosts/alphalinux.h: New file.
5441         * trad-core.c (trad_unix_core_file_p): Cast u.u_ar0 to bfd_vma,
5442         not int.
5443
5444 Tue Oct 31 12:34:11 1995  Ian Lance Taylor  <[email protected]>
5445
5446         * coffcode.h (coff_slurp_symbol_table): Accept C_BCOMM and
5447         C_ECOMM storage classes.
5448
5449         * xcofflink.c (xcoff_mark_symbol): New static function, broken out
5450         of xcoff_mark.
5451         (xcoff_mark): Call xcoff_mark_symbol.
5452         (bfd_xcoff_export_symbol): Call xcoff_mark_symbol.
5453         (bfd_xcoff_link_count_reloc): Call xcoff_mark_symbol rather than
5454         doing it by hand.
5455         (xcoff_build_ldsyms): Build a .loader symbol for an export symbol.
5456
5457 Mon Oct 30 14:53:48 1995  Ian Lance Taylor  <[email protected]>
5458
5459         * xcofflink.c (struct xcoff_final_link_info): Add new line_filepos
5460         field.
5461         (xcoff_find_reloc): New static function.
5462         (xcoff_link_add_symbols): Use it.
5463         (_bfd_xcoff_bfd_final_link): Set finfo.line_filepos.
5464         (xcoff_link_input_bfd): Handle C_BINCL and C_EINCL.  Don't
5465         relocate the value of C_DECL.
5466
5467         * elf.c (elf_fake_sections): Remove bogus BFD_ASSERT.
5468
5469 Sat Oct 28 01:25:34 1995  steve chamberlain  <[email protected]>
5470
5471         * cofflink.c (_bfd_coff_generic_relocate_section): Make
5472         callback decide what goes in .relocs.
5473         * pe[i]-i386.c (TARGET_UNDERSCORE): Define.
5474         * peicode.h (pe_mkobject_hook): Only copy aouthdr if
5475         there is one.
5476
5477 Sat Oct 28 01:51:02 1995  Ian Lance Taylor  <[email protected]>
5478
5479         * xcofflink.c (xcoff_link_add_symbols): Handle csects in the
5480         absolute section.
5481
5482 Fri Oct 27 18:14:39 1995  Ian Lance Taylor  <[email protected]>
5483
5484         * xcofflink.c: More improvements, mostly to fix handling of
5485         constructors and a few other special cases.
5486         * coff-rs6000.c (rs6000coff_vec): Set symbol_leading_char back to
5487         zero, reverting yesterday's change.
5488         * bfd-in.h (bfd_xcoff_link_record_set): Declare.
5489         (bfd_xcoff_link_count_reloc): Declare.
5490         (bfd_xcoff_record_link_assignment): Declare.
5491         * bfd-in2.h: Rebuild.
5492
5493 Fri Oct 27 14:42:15 1995  Niklas Hallqvist  <[email protected]>
5494
5495         * PORTING, aout-arm.c, aout-encap.c, aout-target.h,
5496         aoutx.h, gen-aout.c, host-aout.c, hp300bsd.c, i386aout.c
5497         i386bsd.c, i386dynix.c, i386linux.c, i386lynx.c, i386mach3.c,
5498         i386netbsd.c, m68klynx.c, m88kmach3.c, mipsbsd.c, newsos3.c,
5499         ns32knetbsd.c, pc532-mach.c, riscix.c, sparclynx.c, sparcnetbsd.c:
5500         Change PAGE_SIZE to TARGET_PAGE_SIZE.
5501
5502         * m68knetbsd.c: Ditto as well as add support for the m68k4k object
5503         format.
5504
5505         * netbsd.h: Double ditto (incl. m68k4k support).  NetBSD's text
5506         segments includes the a.out header.  See to that the magic number
5507         *always* is big-endian.
5508
5509         * config.bfd: Add m68*-hp*-netbsd* case.  Cross-pollinate m68k and
5510         m68k4k NetBSD configurations.
5511
5512         * configure.in, configure: Separate i386 & mips NetBSD
5513         configurations from other BSD ones.  Don't assume DEC is the only
5514         thing NetBSD/mips run on.  Add {m68k,ns32k,sparc}-*-netbsd*
5515         configurations.  Add support for m68k4k NetBSD object format.
5516
5517         * libaout.h: Added M_68K4K_NETBSD magic.
5518
5519         * m68k4knetbsd.c: New file.
5520         
5521         * hosts/{m68k,sparc}nbsd.h: Don't define HOST_BIG_ENDIAN_P.
5522
5523         * hosts/nbsd.h: Define HOST_BIG_ENDIAN_P according to
5524         <machine/endian.h>.
5525
5526         * hosts/mipsnbsd.h: New file.
5527         
5528 start-sanitize-gm
5529 Fri Oct 27 09:41:51 1995  Stu Grossman  ([email protected])
5530
5531         * config.bfd:  Add config stuff for mips*-*-magic* to set
5532         targ_defvec to ecoff_big_vec.
5533
5534 end-sanitize-gm
5535 Thu Oct 26 14:16:47 1995  Ian Lance Taylor  <[email protected]>
5536
5537         * xcofflink.c: Numerous changes to get closer to a working XCOFF
5538         linker.
5539         * libcoff-in.h (struct xcoff_tdata): Add full_aouthdr,
5540         toc_section, and entry_section fields.
5541         (struct xcoff_section_tdata): Remove ldrel_count field.
5542         * libcoff.h: Rebuild.
5543         * coffcode.h (coff_mkobject_hook): Initialize new xcoff_data
5544         fields.
5545         (coff_compute_section_file_positions): If RS6000COFF_C, generate
5546         full a.out header if full_aouthdr is set in xcoff_data.
5547         (coff_write_object_contents): Likewise.  Set o_snentry and o_sntoc
5548         based on sections stored in xcoff_data.
5549         * coff-rs6000.c (xcoff_copy_private_bfd_data): Copy new xcoff_data
5550         fields.
5551         (xcoff_reloc_type_lookup): Handle BFD_RELOC_CTOR.
5552         (rs6000coff_vec): Set symbol_leading_char to '.'.
5553         * coffgen.c (coff_get_symbol_info): If fix_value is set, fix the
5554         value stored in ret rather than returning a pointer value.
5555         
5556 Wed Oct 25 23:10:39 1995  Michael Meissner  <[email protected]>
5557
5558         * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Remove MAC
5559         format for now.
5560
5561 Wed Oct 25 16:19:27 1995  Jeffrey A Law  ([email protected])
5562
5563         * som.c (som_slurp_string_table): Allocate the strings with malloc
5564         since they're free'd by free_cached_info.
5565         (som_slurp_symbol_table): Similarly for the symbol table.
5566
5567 Wed Oct 25 14:59:22 1995  Per Bothner  <[email protected]>
5568
5569         * Makefile.in (diststuff):  Don't make headers.
5570
5571 Wed Oct 25 11:32:54 1995  Ian Lance Taylor  <[email protected]>
5572
5573         * Makefile.in: Rebuild dependencies.
5574
5575         * sunos.c (bfd_sunos_record_link_assignment): Don't do anything if
5576         output_bfd is not SunOS.
5577         (bfd_sunos_size_dynamic_sections): Likewise.  Don't scan relocs of
5578         non-SunOS input files.
5579
5580         * xcofflink.c: Extensive changes to support linking shared objects
5581         and generating a .loader section.
5582         * libcoff-in.h (struct xcoff_tdata): Add import_file_id field.
5583         (struct xcoff_section_tdata): Add lineno_count, first_symndx,
5584         last_symndx, and ldrel_count fields.
5585         * libcoff.h: Rebuild.
5586         * coff-rs6000.c (xcoff_howto_table): Correct reloc names.
5587         * coffcode.h (styp_to_sec_flags): Don't set any flags if STYP_PAD
5588         is set.
5589         * bfd-in.h (bfd_xcoff_import_symbol): Declare.
5590         (bfd_xcoff_export_symbol): Declare.
5591         (bfd_xcoff_size_dynamic_sections): Declare.
5592         * bfd-in2.h: Rebuild.
5593
5594 Tue Oct 24 17:44:20 1995  Stan Shebs  <[email protected]>
5595
5596         * configure.in: Add xcofflink.o to pmac_xcoff_vec.
5597         * configure: Rebuild.
5598         * mpw-config.in: Add xcofflink.c.o to powerpc-apple-macos.
5599         * coff-pmac.c: Include coff-rs6000.c instead of duplicating its
5600         contents.
5601         (pmac_xcoff_vec): Update to use new xcoff support.
5602         * coff-rs6000.c (xcoff_generic_stat_arch_elt): Make static.
5603         (xcoff_write_armap): Declare buf as unsigned char.
5604         * xcofflink.c (xcoff_link_add_symbols): Declare a local as PTR.
5605
5606         * mpw-make.sed: Generalize subdir_do edit.
5607         
5608 Tue Oct 24 10:25:01 1995  Jeffrey A Law  ([email protected])
5609
5610         * hppabsd-core.c (make_bfd_asection): Initialize asect->filepos
5611         correctly.  Don't initialize asect->vma.
5612
5613 Fri Oct 20 13:23:48 1995  Ken Raeburn  <[email protected]>
5614
5615         * opncls.c (_bfd_new_bfd): If _bfd_chunksize wasn't preset, use
5616         something a little less than the page size.
5617
5618 Thu Oct 19 13:06:09 1995  Ian Lance Taylor  <[email protected]>
5619
5620         * coff-i960.c (coff_i960_adjust_symndx): Clear *adjustedp.
5621
5622 Wed Oct 18 16:20:08 1995  steve chamberlain  <[email protected]>
5623
5624         * coff-i386.c (coff_i386_reloc_type_lookup): New.
5625         * coffcode.h (coff_write_object_contents): If .bss is before
5626         .data us that as data_start.
5627         * cofflink.c (_bfd_coff_generic_relocate_section): Get reloc
5628         calc correct.
5629         * peicode.h (add_data_entry): Use _cooked_size of data directory.
5630         (coff_swap_outhdr_out): Hardwire in version number.
5631         
5632 Wed Oct 18 16:50:54 1995  Ken Raeburn  <[email protected]>
5633
5634         * sunos.c (sunos_add_dynamic_symbols): Rename local variables
5635         major and minor to *_vno, since the former are also macros in
5636         SunOS header files.  Cast result of bfd_alloc to appropriate
5637         type.
5638
5639         * coffgen.c (coff_find_nearest_line): Cast used_by_bfd value
5640         before assigning to sec_data.
5641
5642 Wed Oct 18 13:25:17 1995  Ian Lance Taylor  <[email protected]>
5643
5644         * ecoff.c (_bfd_ecoff_find_nearest_line): The offset argument is
5645         now relative to the section, not absolute.
5646         * ecofflink.c (_bfd_ecoff_locate_line): Use the right symbol to
5647         get the file name when there is a N_SO directory name.  When
5648         handling stabs, remember that section->vma was added to the
5649         offset.
5650
5651 Tue Oct 17 18:24:54 1995  Ian Lance Taylor  <[email protected]>
5652
5653         * sunos.c (struct sunos_link_hash_table): Add needed field.
5654         (sunos_link_hash_table_create): Call bfd_release, not free.
5655         (sunos_link_hash_table_create): Initialize needed field.
5656         (sunos_add_dynamic_symbols): Record needed objects.
5657         (bfd_sunos_get_needed_list): New function.
5658         * bfd-in.h (bfd_sunos_get_needed_list): Declare.
5659         * bfd-in2.h: Rebuild.
5660
5661 Mon Oct 16 14:43:59 1995  steve chamberlain  <[email protected]>
5662
5663         * libcoff-in.h (pe_data_type.in_reloc_p): New.
5664
5665 Mon Oct 16 10:52:50 1995  Ian Lance Taylor  <[email protected]>
5666
5667         * bfd-in.h (struct bfd_link_needed_list): Rename from
5668         bfd_elf_link_needed_list.
5669         * bfd-in2.h: Rebuild.
5670         * elf.c, elflink.h, libelf.h: Corresponding changes.
5671
5672         Add start at AIX linker support; no shared libraries yet.
5673         * xcofflink.c: New file.
5674         * configure.in (rs600coff_vec): Use xcofflink.o.
5675         * configure: Rebuild.
5676         * libcoff-in.h (struct xcoff_tdata): Add csects and debug_indices
5677         fields.
5678         (struct xcoff_section_tdata): Define.
5679         (xcoff_section_data): Define macro.
5680         (_bfd_xcoff_bfd_link_hash_table_create): Declare.
5681         (_bfd_xcoff_bfd_link_add_symbols): Declare.
5682         (_bfd_xcoff_bfd_final_link): Declare.
5683         (_bfd_ppc_xcoff_relocate_section): Declare.
5684         * libcoff.h: Rebuild.
5685         * coff-rs6000.c: Clean up a bit.
5686         (xcoff_mkobject): Default modtype to 1L, not RE.  Initialize
5687         cputype, csects, and debug_indices.
5688         (xcoff_copy_private_bfd_data): Copy cputype.
5689         (xcoff_howto_table): Rename from rs6000coff_howto_table.
5690         (xcoff_rtype2howto): Rename from rs6000coff_rtype2howto.
5691         (xcoff_reloc_type_lookup): Rename from
5692         rs6000coff_reloc_type_lookup.
5693         (coff_relocate_section): Define.
5694         (_bfd_xcoff_sizeof_headers): Define.
5695         (_bfd_xcoff_bfd_get_relocated_section_contents): Define.
5696         (_bfd_xcoff_bfd_relax_section): Define.
5697         (_bfd_xcoff_bfd_link_split_section): Define.
5698         (rs6000coff_vec): For BFD_JUMP_TABLE_LINK, use _bfd_xcoff, not
5699         coff.
5700         * coffcode.h (coff_compute_section_file_positions): If AIX,
5701         increment sofar by SMALL_AOUTSZ if not executable.
5702         (coff_write_object_contents): If AIX, always output an a.out
5703         header; if not executable, header size of SMALL_AOUTSZ.
5704         * hash.c (struct bfd_strtab_hash): Add xcoff field.
5705         (_bfd_stringtab_init): Initialize xcoff field.
5706         (_bfd_xcoff_stringtab_init): New function.
5707         (_bfd_stringtab_add): In XCOFF mode, leave two bytes for length.
5708         (_bfd_stringtab_emit): In XCOFF mode, write out length.
5709         * libbfd-in.h (_bfd_xcoff_stringtab_init): Declare.
5710         * libbfd.h: Rebuild.
5711         * Makefile.in: Rebuild dependencies.
5712         (BFD32_BACKENDS): Add xcofflink.o.
5713         (CFILES): Add xcofflink.c.
5714
5715         * elf32-mips.c (mips_elf_symbol_processing): Set SEC_ALLOC, not
5716         SEC_NO_FLAGS, for .acommon section.  From Peter Schauer
5717         <[email protected]>.
5718
5719 Sat Oct 14 21:36:02 1995  Michael Meissner  <[email protected]>
5720
5721         * coff-ppc.c (in_reloc_p): Add, clone from coff-i386.c.
5722
5723 Fri Oct 13 17:48:43 1995  Ken Raeburn  <[email protected]>
5724
5725         * acconfig.h (HAVE_SYS_PROCFS_H): Undef, with comment.
5726         * config.in: Regenerated.
5727
5728         * opncls.c (getpagesize) [!HAVE_GETPAGESIZE]: Define as 2048.
5729         (_bfd_chunksize): New variable.
5730         (_bfd_new_bfd): Set it to getpagesize() if negative, and use it
5731         for obstack chunk size.
5732         * configure.in: Check for getpagesize.
5733         * configure: Regenerated.
5734
5735         Mon Sep 25 22:49:32 1995  Andreas Schwab  <[email protected]>
5736
5737         * trad-core.c (rawptr): Make it a local variable of
5738         ptrace_unix_core_file_p.
5739
5740 Fri Oct 13 11:22:01 1995  steve chamberlain  <[email protected]>
5741
5742         * coff-arm.c (in_reloc_p): New.
5743         * coff-i386.c (in_reloc_p): New.
5744         * coffcode.h: Allways include peicode.h if COFF_WITH_PE.
5745         (coff_write_object_contents): Only set has_reloc_section
5746         if PE_IMAGE.
5747         * cofflink.c (_bfd_coff_generic_relocate_section): Call
5748         in_reloc_p to decide if reloc should be emitted.
5749         * libcoff.h (pe_data_type.in_reloc_p): New.
5750         * peicode.h (pe_mkobject): Initialize in_reloc_p.
5751
5752 Wed Oct 11 00:49:29 1995  Ian Lance Taylor  <[email protected]>
5753
5754         * cofflink.c (_bfd_coff_internal_syment_name): Move to coffgen.c.
5755         (_bfd_coff_read_internal_relocs): Likewise.
5756         * coffgen.c (_bfd_coff_internal_syment_name): Copy from coffgen.c.
5757         (_bfd_coff_read_internal_relocs): Likewise.
5758
5759         * elflink.h (elf_link_add_object_symbols): Correct conditions
5760         under which type and size change warnings are issued.
5761
5762 Tue Oct 10 18:32:46 1995  Ian Lance Taylor  <[email protected]>
5763
5764         * coffgen.c (coff_count_linenumbers): Don't count line numbers for
5765         a symbol which is not in a real section.
5766         (coff_write_native_symbol): Corresponding change.
5767
5768         * cofflink.c (_bfd_coff_link_hash_newfunc): Rename from
5769         coff_link_hash_newfunc and make non-static.
5770         (_bfd_coff_link_hash_table_init): New function, broken out of
5771         _bfd_coff_link_hash_table_create.
5772         (_bfd_coff_link_hash_table_create): Use it.
5773         (process_embedded_commands): Make static.
5774         * libcoff-in.h ((_bfd_coff_link_hash_newfunc): Declare.
5775         (_bfd_coff_link_hash_table_init): Declare.
5776         * libcoff.h: Rebuild.
5777
5778         * coffcode.h (coff_mkobject_hook): If RS6000COFF_C, set cputype
5779         field in XCOFF tdata.
5780         (coff_set_arch_mach_hook): Check ifdef RS6000COFF_C, not ifdef
5781         U802ROMAGIC, for clarity.  Try to set arch and machine correctly
5782         based on cputype stored in a.out header, or in n_type of initial
5783         .file symbol.
5784         (coff_write_object_contents): Set cputype correctly in a.out
5785         header.
5786         (coff_slurp_symbol_table): Add casts to file_ptr to avoid
5787         warnings.
5788         * coffswap.h (coff_swap_aouthdr_in): Swap in cputype field.
5789         (coff_swap_aouthdr_out): Swap out cputype field.  Don't clear
5790         old resv1 field.
5791         * libcoff-in.h (struct xcoff_tdata): Add cputype field.
5792         * libcoff.h: Rebuild.
5793
5794         * cpu-rs6000.c (rs6000_compatible): New static function.
5795         (bfd_rs6000_arch): Use it.
5796         * cpu-powerpc.c (powerpc_compatible): New static function.
5797         (arch_info_struct): Define various flavours of PowerPC.
5798         (bfd_powerpc_arch): Use powerpc_compatible.  Point at
5799         arch_info_struct.
5800
5801 Tue Oct 10 10:50:46 1995  Fred Fish  <[email protected]>
5802
5803         * Makefile.in (FLAGS_TO_PASS):  Remove BISON.
5804
5805 Tue Oct 10 01:28:29 1995  Ian Lance Taylor  <[email protected]>
5806
5807         * elflink.h (elf_link_add_object_symbols): Don't warn about
5808         changing the size or type if the old definition was weak.
5809
5810 Mon Oct  9 11:24:08 1995  Ian Lance Taylor  <[email protected]>
5811
5812         * coffcode.h (combined_entry_type): Add fix_line field.
5813         (coff_slurp_line_table): Warn if we try to set the lineno field of
5814         a symbol twice.
5815         (coff_slurp_symbol_table): If RS6000COFF_C, handle C_BINCL and
5816         C_EINCL by setting fix_line.  Fix C_BSTAT symbol value.
5817         * coffgen.c (coff_mangle_symbols): Handle fix_line.
5818         (coff_write_symbol): Only use N_DEBUG if the symbol is in the
5819         absolute section.
5820         (coff_print_symbol): Print fix_value symbols in a useful fashion.
5821         * libcoff.h: Rebuild.
5822
5823         * libcoff-in.h (struct xcoff_tdata): Define.
5824         (xcoff_data): Define.
5825         * bfd.c (struct _bfd): Add xcoff_obj_data field to tdata union.
5826         * bfd-in2.h, libcoff.h: Rebuild.
5827         * coff-rs6000.c (xcoff_mkobject): New static function.
5828         (coff_mkobject): Define.
5829         (xcoff_copy_private_bfd_data): New static function.
5830         (coff_bfd_copy_private_bfd_data): Define.
5831         (rs6000coff_howto_table): Change R_TOC complain_on_overflow from
5832         signed to bitfield.
5833         (rs6000coff_vec): Add DYNAMIC to object_flags.
5834         * coffcode.h (sec_to_styp_flags): If RS6000COFF_C, handle .pad and
5835         .loader sections specially.
5836         (coff_new_section_hook): If RS6000COFF_C, get the .text and .data
5837         section alignment from the XCOFF tdata information.
5838         (coff_mkobject_hook): If RS6000COFF_C, set DYNAMIC based on
5839         F_SHROBJ, and copy the extra a.out header information into the
5840         XCOFF tdata structure.
5841         (coff_write_object_contents): If RS6000COFF_C, set F_SHROBJ,
5842         F_DYNLOAD and the extra a.out header information.
5843         (coff_slurp_symbol_table): Set BSF_NOT_AT_END for a C_EXT or
5844         C_HIDEXT symbol with attached csect information.
5845         * coffswap.h (coff_swap_aouthdr_in): If RS6000COFF_C, swap
5846         in the o_maxdata field.
5847         (coff_swap_aouthdr_out): If RS6000COFF_C, swap extra XCOFF fields.
5848         * coffgen.c (coff_renumber_symbols): Don't move any symbol to the
5849         end if BSF_NOT_AT_END is set.
5850
5851         * targets.c (bfd_target): Rename _bfd_read_ar_hdr field to
5852         _bfd_read_ar_hdr_fn.
5853         * libbfd-in.h (_bfd_read_ar_hdr): Update accordingly.
5854         * bfd-in2.h, libbfd.h: Rebuild.
5855         * archive.c (_bfd_get_elt_at_filepos): Cast _bfd_read_ar_hdr
5856         return value.
5857         (do_slurp_bsd_armap, do_slurp_coff_armap): Likewise.
5858         (bfd_slurp_bsd_armap_f2): Likewise.
5859         (_bfd_slurp_extended_name_table): Likewise.
5860
5861 Fri Oct  6 16:18:35 1995  Ken Raeburn  <[email protected]>
5862
5863         Mon Sep 25 22:49:32 1995  Andreas Schwab  <[email protected]>
5864
5865         * archive.c (bfd_get_next_mapent): Return BFD_NO_MORE_SYMBOLS
5866         when the symbol table is empty.
5867
5868         * elf32-m68k.c (elf_m68k_size_dynamic_sections): Don't reserve
5869         space for section symbols, since we don't output them either.
5870         (elf_m68k_adjust_dynindx): Removed.
5871
5872         * ptrace-core.c (rawptr): Make it a local variable of
5873         ptrace_unix_core_file_p.
5874
5875 Fri Oct  6 12:24:47 1995  Michael Meissner  <[email protected]>
5876
5877         * coff-rs6000.c (xcoff_write_archive_contents): Return false, not
5878         NULL.
5879
5880         * config.bfd (powerpc{,le}-{elf,sysv4,eabi,solaris2}): Add NT, and
5881         Mac object file formats.
5882
5883 Fri Oct  6 12:04:02 1995  Ian Lance Taylor  <[email protected]>
5884
5885         * coffgen.c (coff_fix_symbol_name): Don't try to set up file
5886         auxent if there isn't one.
5887         (coff_write_symbols): If there is no file auxent, use SYMNMLEN
5888         rather than FILNMLEN as the maximum name length.
5889
5890         * coffcode.h (bfd_coff_backend_data): Add new field
5891         _bfd_coff_print_aux.
5892         (bfd_coff_print_aux): New static function.
5893         (coff_pointerize_aux_hook (RS6000COFF_C version)): Pointerize the
5894         scnlen field of an XTY_LD csect aux entry.
5895         (coff_print_aux): New static function.
5896         (coff_slurp_symbol_table): Don't pointerize scnlen field; now done
5897         in coff_pointerize_aux_hook.
5898         (bfd_coff_std_swap_table): Initialize new field.
5899         * coffgen.c (coff_print_symbol): Call bfd_coff_print_aux.
5900         * libcoff.h: Rebuild.
5901         * coff-alpha.c (alpha_ecoff_backend_data): Initialize new field.
5902         * coff-mips.c (mips_ecoff_backend_data): Likewise.
5903
5904         * coffcode.h (coff_write_object_contents): On AIX, clear F_RELFLG
5905         if there are symbols, for native AIX ld compatibility.
5906
5907         * coffcode.h (bfd_coff_backend_data): Add new field
5908         _bfd_coff_pointerize_aux_hook.
5909         (coff_pointerize_aux_hook): Define as a function if RS6000COFF_C
5910         or I960, and as 0 otherwise.
5911         (bfd_coff_std_swap_table): Initialize new field.
5912         * libcoff.h: Rebuild.
5913         * coffgen.c (coff_pointerize_aux): Change parameters  to take
5914         symbol pointer instead of type and class, and to take aux index.
5915         Call _bfd_coff_pointerize_aux_hook if it is defined.
5916         (coff_get_normalized_symtab): Always call coff_pointerize_aux.
5917         * coff-alpha.c (alpha_ecoff_backend_data): Initialize all fields.
5918         * coff-mips.c (mips_ecoff_backend_data): Likewise.
5919
5920         * coff-rs6000.c: Add full support for AIX archives.  Rewrite old
5921         read-only/host-only support.
5922
5923         * coffcode.h (coff_slurp_symbol_table): Set C_HIDEXT symbols to be
5924         BSF_LOCAL.
5925         (OTHER_GLOBAL_CLASS): Do not define to be C_HIDEXT if
5926         RS6000COFF_C.
5927
5928         * targets.c (bfd_target): Add _bfd_read_ar_hdr field.  Modify
5929         BFD_JUMP_TABLE_ARCHIVE accordingly.
5930         * libbfd-in.h (_bfd_snarf_ar_hdr): Don't declare.
5931         (_bfd_compute_and_write_armap): Declare.
5932         (_bfd_generic_read_ar_hdr): Declare.
5933         (_bfd_read_ar_hdr): Define.
5934         (_bfd_noarchive_read_ar_hdr): Define.
5935         (_bfd_archive_bsd_read_ar_hdr): Define.
5936         (_bfd_archive_coff_read_ar_hdr): Define.
5937         * archive.c: Change all callers of _bfd_snarf_ar_hdr to call
5938         _bfd_read_ar_hdr instead.
5939         (_bfd_generic_read_ar_hdr): Rename from _bfd_snarf_ar_hdr.
5940         (_bfd_compute_and_write_armap): Rename from
5941         compute_and_write_armap.  Make non-static.  Change all callers.
5942         * ecoff.c (_bfd_ecoff_slurp_armap): Call _bfd_read_ar_hdr rather
5943         than _bfd_snarf_ar_hdr.
5944         * aout-target.h (MY_read_ar_hdr): Define if not defined.
5945         * ieee.c (ieee_read_ar_hdr): Define.
5946         * libecoff.h (_bfd_ecoff_read_ar_hdr): Define.
5947         * oasys.c (oasys_read_ar_hdr): Define.
5948         * som.c (som_read_ar_hdr): Define.
5949         * bfd-in2.h, libbfd.h: Rebuild.
5950
5951 Thu Oct  5 14:04:07 1995  steve chamberlain  <[email protected]>
5952
5953         * peicode.c (coff_swap_filehdr_in): If symptr is
5954         zero, there aren't any symbols, even if nsyms is set.
5955
5956 Thu Oct  5 11:45:02 1995  Ian Lance Taylor  <[email protected]>
5957
5958         * libecoff.h (struct ecoff_backend_data): Add adjust_headers
5959         field.
5960         * ecoff.c (ecoff_sec_to_styp_flags): Check for various Alpha
5961         sections, and set styp correctly for them: .got, .hash, .dynamic,
5962         .liblist, .rel.dyn, .conflic, .dynstr, .dynsym, .comment.
5963         (_bfd_ecoff_styp_to_sec_flags): Check for various Alpha section
5964         types.
5965         (ecoff_sort_hdrs): New static function.
5966         (ecoff_compute_section_file_positions): Return boolean, not void.
5967         Sort the sections by VMA before looking through them.  Put the
5968         first non SEC_ALLOC section on a new page.  Put every SEC_ALLOC
5969         section on an appropriate boundary within the page.
5970         (ecoff_compute_reloc_file_positions): Check return value of
5971         ecoff_compute_section_file_positions.
5972         (_bfd_ecoff_set_section_contents): Likewise.
5973         (_bfd_ecoff_write_object_contents): Check for various Alpha
5974         section types when incrementing text_size and data_size.  Call
5975         adjust_headers backend function if it exists.
5976         * coff-alpha.c (alpha_adjust_headers): New static function.
5977         (alpha_ecoff_backend_data): Initialize adjust_headers field.
5978         * coff-mips.c (mips_ecoff_backend_data): Likewise.
5979
5980         * hosts/i386bsd.h: Restore file incorrectly deleted on Sep 6.
5981
5982 Wed Oct  4 18:15:02 1995  Jeff Law  ([email protected])
5983
5984         * rs6000-core.c (CORE_VERSION_1): Use CORE_VERSION_1 instead
5985         of ALTERNATE_AIX_CORE_FORMAT.
5986         * configure.in (aix4): No longer need CORE_FLAGS.
5987         * configure: Updated.
5988
5989 Wed Oct  4 15:36:36 1995  Ken Raeburn  <[email protected]>
5990
5991         NS32k changes from Ian Dall:
5992         * aoutx.h (MY_final_link_relocate, MY_relocate_contents): New
5993         macros.
5994         (aout_link_input_section_std, aout_link_input_section_ext,
5995         aout_link_reloc_link_order): Call them instead of _bfd_*
5996         versions.
5997         * aout-target.h (MY_exec_header_not_counted): New macro, defaults
5998         to zero.
5999         (backend_data): Use it instead of hardcoded zero.
6000
6001         * aout-ns32k.c (CTOR_TABLE_RELOC_HOWTO): New macro.
6002         (MY_swap_std_reloc_out): Use udata.i for KEEPIT, don't call stoi.
6003
6004         * ns32knetbsd.c: Include bfd.h.
6005         (MY_text_includes_header, MY_bfd_reloc_type_lookup): New macros.
6006         (MY_bfd_reloc_type_lookup): Declare function too.
6007         * pc532-mach.c (set_sizes): Don't declare.
6008         (MY_text_includes_header, MY_exec_header_not_counted): Define.
6009         (backend_data, MY_backend_data): Don't define.
6010
6011         * config.bfd: Treat ns32k-pc532-ux* like ns32k-pc532-mach*, and
6012         ns32k-*-lites* like ns32k-*-netbsd*.
6013
6014         * hosts/nbsd.h: Swap order of sys/vmparam.h and sys/param.h, to
6015         compile on lites.
6016
6017 Wed Oct  4 14:15:52 1995  Ian Lance Taylor  <[email protected]>
6018
6019         * coffcode.h (coff_write_object_contents): Restore setting
6020         f_timdat to 0, deleted on August 22.
6021
6022 Tue Oct  3 16:28:32 1995  steve chamberlain  <[email protected]>
6023
6024         * coffcode.h (coff_bfd_copy_private_symbol_data,
6025         coff_bfd_copy_private_section_data,
6026         coff_bfd_copy_private_bfd_data): ifdef to allow overrides.
6027         * peicode.h (coff_bfd_copy_private_bfd_data): New
6028         (pe_bfd_copy_private_bfd_data): New.
6029         (coff_swap_scnhdr_in): Swap bss size into the right place.
6030         (pe_print_private_bfd_data): Add some newlines.
6031
6032 Tue Oct  3 11:53:04 1995  Jeff Law  ([email protected])
6033
6034         * som.c (setup_sections): Don't die if a space has no subspaces.
6035
6036 Mon Oct  2 14:08:55 1995  Ian Lance Taylor  <[email protected]>
6037
6038         * elflink.h (elf_link_add_object_symbols): Don't let a weak
6039         dynamic symbol override a common symbol.  Don't change the size or
6040         type if they have been set and the new symbol is not a definition.
6041         Warn if the size or type changes.
6042
6043 Sun Oct  1 01:34:41 1995  Jeff Law  ([email protected])
6044
6045         * som.c (som_begin_writing): Don't write the symbol table or
6046         symbol  strings.
6047         (som_finish_writing): Write them here.  Place them after the
6048         subspace data, but before the relocs.
6049
6050 Fri Sep 29 11:01:55 1995  Ian Lance Taylor  <[email protected]>
6051
6052         * sunos.c (sunos_add_one_symbol): Just pass false, not
6053         info->shared_library, to sunos_create_dynamic_sections.
6054         (sunos_scan_ext_relocs): Don't warn about a reloc in the .text
6055         section.
6056         (sunos_check_dynamic_reloc): Remove .text section assertion.
6057
6058 Thu Sep 28 18:48:47 1995  Stan Shebs  <[email protected]>
6059
6060         * config.bfd: Add powerpc-*-macos*, powerpc-*-mpw*.
6061         * configure, configure.in: Add pmac_xcoff_vec case.
6062         * Makefile.in (BFD32_BACKENDS): Add coff-pmac.o.
6063         * coff-pmac.c: New file, PowerMac XCOFF support.
6064         * coffcode.h (coff_set_arch_mach_hook): Add PowerMac case.
6065         * targets.c (pmac_xcoff_vec): Declare.
6066
6067         * mpw-config.in: Various changes to be compatible with the
6068         autoconf-based configury.
6069         * mpw-make.sed: New file, sed commands to translate Unix
6070         makefile into MPW syntax.
6071         * mpw-make.in: Remove.
6072         * hosts/mpw.h: Remove.
6073         * bfd-in.h, bfd-in2.h: If MPW, include the file that defines
6074         true and false as enums, then define TRUE_FALSE_ALREADY_DEFINED.
6075
6076 Thu Sep 28 17:06:23 1995  steve chamberlain  <[email protected]>
6077
6078         * binary.c (binary_get_symtab): Return an empty string on error.
6079         * opncls.c (bfd_fdpenr): Change WIN32 restriction to WINGDB.
6080
6081 Thu Sep 28 15:30:44 1995  Kim Knuttila  <krk@nellie>
6082
6083         * coff-ppc.c: Reformatted according to gnu conventions
6084                       Removed irrelevant "if 0" code
6085
6086 Thu Sep 28 11:19:53 1995  Ian Lance Taylor  <[email protected]>
6087
6088         * hp300hpux.c (convert_sym_type): Treat secondary symbols as weak
6089         symbols rather than as indirect symbols.
6090         (MY(slurp_symbol_table)): Don't do anything special about
6091         secondary symbols.
6092
6093         * coffcode.h (coff_new_section_hook): Make sure that the alignment
6094         of .ctors and .dtors sections is no larger than 2.
6095
6096         * sunos.c (sunos_add_one_symbol): Don't change
6097         bfd_link_hash_common to bfd_link_hash_new, since it may be on the
6098         undef list.
6099         (bfd_sunos_record_link_assignment): Don't put __DYNAMIC in the
6100         dynamic symbols when creating a shared library.
6101         (sunos_scan_ext_relocs): Handle relocs correctly when creating a
6102         shared library.
6103         (sunos_scan_dynamic_symbol): Don't mark the __DYNAMIC symbol as
6104         written even if it is not defined in a regular object.
6105         (sunos_write_dynamic_symbol): Use plt_offset for the address of
6106         the jump table reloc.  Add an assertion.  Use RELOC_JMP_SLOT
6107         rather than the constant 22.
6108         (sunos_check_dynamic_reloc): Handle creating a shared library.
6109         (sunos_finish_dynamic_link): Set the first entry in the GOT to
6110         zero when creating a shared library.
6111         * aoutx.h (NAME(aout,final_link)): If there is a symbol __DYNAMIC,
6112         write it out at the start of the symbol table.
6113
6114         * Makefile.in (BFD32_BACKENDS): Add coff-arm.o.
6115
6116 Thu Sep 28 00:58:05 1995  Doug Evans  <[email protected]>
6117
6118         * config.bfd: Add arm-*-coff.
6119         * configure.in, configure: Add armcoff_{little,big}_vec.
6120         * targets.c (armcoff_{little,big}_vec): Declare.
6121         (bfd_target_vector): Add armcoff_{little,big}_vec.
6122         * coff-arm.c (armcoff_{little,big}_vec): Always define.
6123
6124 Wed Sep 27 10:37:14 1995  Ian Lance Taylor  <[email protected]>
6125
6126         * targets.c (bfd_find_target): Remove debugging code.
6127
6128 Wed Sep 27 07:23:39 1995  Kim Knuttila  <krk@nellie>
6129
6130         * coff-ppc.c, pe-ppc.c, pei-ppc.c: Initial bfd for coff/PE 
6131         support on powerpc.
6132         * Makefile.in: added *-ppc files
6133         * coffcode.h: ppc MAGIC, and use peicode.h rather than coffswap.h to
6134         allow pe based .o's to be shared with other tools on ppc/NT
6135         * config.bfd: added powerpc[le]-[pe|winnt] config support
6136         * configure, configure.in: added bfd_powerpc[le]_pe[i]_vec 
6137         * peicode.h: Added more section flags for PE on ppc
6138                      Added coff_swap_filehdr_out to allow peicode.h to be
6139                      used for non-image PE files on ppc.
6140                      Check for image, or not, before copying pe_opthdr
6141         * targets.c: Added new bfd's
6142         * targets.c: Removed two inactive bfds that shouldn't have made it this
6143                      far.
6144
6145 Tue Sep 26 14:06:41 1995  Michael Meissner  <[email protected]>
6146
6147         * elf32-ppc.c (ppc_reloc_type): Rename from reloc_type, and use
6148         explicit values to initialize all relocs.  Change all users.
6149         (ppc_elf_brtaken_inner): New function to handle branch predicition
6150         relocs.
6151         (ppc_elf_brtaken_reloc): Ditto.
6152         (ppc_elf_howto_raw): Use new functions.  Make sure all unsupported
6153         relocs use ppc_elf_unsupported_reloc.
6154         (ppc_elf_merge_private_bfd_data): Keep track of whether an error
6155         needs to be reported.
6156         (ppc_elf_relocate_section): Support branch prediction relocs.
6157
6158 Tue Sep 26 12:48:05 1995  Ian Lance Taylor  <[email protected]>
6159
6160         * bfd.c (bfd_assert): Remove \n from string passed to
6161         _bfd_error_handler.
6162
6163         * coff-i386.c: (TWO_DATA_SECS): Don't define.
6164         * coffcode.h (bfd_coff_backend_data): Remove _bfd_make_section_hook.
6165         (bfd_coff_make_section_hook): Don't define.
6166         (coff_make_section_hook): Remove.
6167         (sec_to_styp_flags): Remove TWO_DATA_SECS case.
6168         (styp_to_sec_flags): Likewise.
6169         (coff_write_object_contents): Likewise.
6170         (bfd_coff_std_swap_table): Don't initialize make_section_hook
6171         field.
6172         * libcoff.h: Rebuild.
6173         * coffgen.c (make_a_section_from_file): Just call
6174         bfd_make_section_anyway, not bfd_make_section or
6175         bfd_coff_make_section_hook.
6176         * ecoff.c (_bfd_ecoff_make_section_hook): Remove.
6177         * libecoff.h (_bfd_ecoff_make_section_hook): Don't declare.
6178         * coff-alpha.c (alpha_ecoff_backend_data): Don't initialize
6179         make_section_hook field.
6180         * coff-mips.c (mips_ecoff_backend_data): Likewise.
6181
6182         * aoutx.h (translate_from_native_sym_flags): Don't try to stuff
6183         pointers into value field for warning and indirect symbols; just
6184         leave the value field alone.
6185         * linker.c (generic_link_add_symbol_list): Use next symbol for
6186         warning and indirect symbols, rather than looking in symbol value.
6187         * ecoff.c (ecoff_set_symbol_info): Remove indirect_ptr_ptr
6188         parameter.  Change all callers.  Remove support for indirect
6189         symbols; it didn't work anyhow.
6190         (_bfd_ecoff_slurp_symbol_table): Remove indirect_ptr variable.
6191         * syms.c: Change comments about BSF_WARNING and BSF_INDIRECT.
6192         * bfd-in2.h: Rebuild.
6193
6194 Mon Sep 25 16:04:09 1995  Michael Meissner  <[email protected]>
6195
6196         * elf32-ppc.c (ppc_elf_howto_raw): For all 14-bit branch relocs,
6197         go back to telling the tools this reloc operates on 32 bits.
6198
6199 Mon Sep 25 11:48:02 1995  Ian Lance Taylor  <[email protected]>
6200
6201         * aout-adobe.c (aout_adobe_callback): Use _bfd_error_handler
6202         rather than a direct fprintf.
6203         * archive.c (_bfd_write_archive_contents): Likewise.
6204         * coffcode.h (coff_slurp_symbol_table): Likewise.
6205         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Likewise.
6206         (ppc_elf_unsupported_reloc): Likewise.
6207         (ppc_elf_relocate_section): Likewise.
6208         * i386linux.c (linux_tally_symbols): Likewise.
6209         (linux_finish_dynamic_link): Likewise.
6210         * osf-core.c (osf_core_core_file_p): Likewise.
6211         * rs6000-core.c (rs6000coff_get_section_contents): Likewise.
6212         * som.c (som_sizeof_headers): Likewise.
6213         * srec.c (srec_bad_byte): Likewise.
6214         * bfd.c (bfd_assert): Likewise.  Also change file to be const.
6215         * libbfd-in.h (bfd_assert): Declare first parameter const.
6216         * libbfd.h: Rebuild.
6217         * coff-a29k.c (a29k_reloc): Don't bother to fprintf; returning
6218         bfd_reloc_overflow is enough.
6219         * coff-h8300.c (rtype2howto): Don't bother to fprintf; just abort.
6220         * coff-h8500.c (rtype2howto): Likewise.
6221         * coff-z8k.c (rtype2howto): Likewise.
6222         * coffcode.h (dummy_reloc16_extra_cases): Likewise.
6223         * elf.c (_bfd_elf_get_lineno): Likewise.
6224         (_bfd_elf_no_info_to_howto): Likewise.
6225         (_bfd_elf_no_info_to_howto_rel): Likewise.
6226         * hp300hpux.c (convert_sym_type): Likewise.
6227         (MY(swap_std_reloc_in)): Likewise.
6228         * elf.c (bfd_section_from_shdr): Remove #if 0 sections.
6229
6230         * libaout.h (struct aoutdata): Add line_buf field.
6231         * aoutx.h (NAME(aout,find_nearest_line)): Remove statics buffer
6232         and filename_buffer.  Instead, use a malloc buffer stored in the
6233         new line_buf field.  Remove length restrictions.
6234
6235         * coffgen.c (string_size): Remove static variable.
6236         (debug_string_size, debug_string_section): Likewise.
6237         (coff_fix_symbol_name): Add string_size_p, debug_string_section_p,
6238         and debug_string_size_p parameters.  Use them instead of the
6239         global variables.  Change all callers.
6240         (coff_write_symbol): Likewise.
6241         (coff_write_alien_symbol, coff_write_native_symbol): Likewise.
6242         (coff_write_symbols): Add local variables to replace removed
6243         global variables.
6244
6245         * libcoff-in.h (struct coff_section_tdata): Add offset, i,
6246         function, and line_base fields.
6247         * libcoff.h: Rebuild.
6248         * coffgen.c (coff_find_nearest_line): Use section tdata to cache
6249         information, rather than using static variables.
6250
6251         * sunos.c (sunos_read_dynamic_info): Adjust offsets in an NMAGIC
6252         file.  From Peter DeWolf <[email protected]>.
6253
6254         * init.c (initialized): Remove static variable.
6255         (bfd_init): Don't bother setting initialized.
6256         (bfd_check_init): Remove.
6257         * opncls.c (_bfd_new_bfd): Don't call bfd_check_init.
6258         * libbfd.h: Rebuild.
6259
6260 Sat Sep 23 01:22:23 1995  Peter Schauer  ([email protected])
6261
6262         * rs6000-core.c (rs6000coff_core_p):  Don't check the core file
6263         size for full core dumps. Copy core file header to private data.
6264         (rs6000coff_core_file_failing_command,
6265         rs6000coff_core_file_failing_signal):  New functions to extract
6266         the file name and terminating signal from the core file.
6267         * coff-rs6000.c:  Use them.
6268
6269 Fri Sep 22 17:44:47 1995  Ian Lance Taylor  <[email protected]>
6270
6271         Change arch info to be const, initialized at compile time.
6272         * archures.c: Reindent many functions.  Change CONST to const.
6273         (bfd_arch_info_type): Make arch_name const.  Remove disassemble;
6274         nothing set it anyhow.  Make next const.
6275         (bfd_arch_info_list): Remove.
6276         (bfd_archures_list): Rename from archures_init_table.  Change from
6277         a table of function pointers to a table of bfd_arch_info_type
6278         structure addresses.
6279         (bfd_scan_arch): Rewrite accordingly.  Return a const pointer.
6280         (bfd_lookup_arch): Likewise.
6281         (bfd_set_arch_info): Rewrite accordingly.  Change argument to be a
6282         const pointer.
6283         (bfd_default_arch_struct): Make const.
6284         (bfd_arch_init, bfd_arch_linkin): Remove.
6285         (bfd_get_arch_info): Return a const pointer.
6286         * init.c (bfd_init): Don't call bfd_arch_init.
6287         * bfd.c (struct _bfd): Make arch_info const.
6288         * bfd-in2.h: Rebuild.
6289         * libbfd.h: Rebuild.
6290         * configure.in: Put & before everything in $selarchs.
6291         * configure: Rebuild.
6292         * cpu-*.c: Change bfd_*_arch from a function which calls
6293         bfd_arch_linkin to a const structure.
6294         * ieee.c (ieee_object_p): Make arch const.
6295
6296 Fri Sep 22 16:23:18 1995  Michael Meissner  <[email protected]>
6297
6298         * reloc.c (bfd_reloc_code_type): Add relocations to support all of
6299         PowerPC V.4.
6300         * bfd-in2.h: Regenerate.
6301         * libbfd.h: Regenerate.
6302
6303         * elf32-ppc.c (reloc_type): Update names to match current draft.
6304         (ppc_elf_howto_raw): Mark 14 bit relocs as short sized and PC
6305         relative.  Update names to current V.4 draft.
6306         (ppc_elf_reloc_type_lookup): Add support for more relocations.
6307         (ppc_elf_relocate_section): Rename relocations to match draft.
6308
6309 Thu Sep 21 21:53:18 1995  Michael Meissner  <[email protected]>
6310
6311         * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Allow modules
6312         compiled with -mrelocatable-lib to be linked with either normal
6313         modules or -mrelocatable modules.
6314
6315 Wed Sep 20 12:03:26 1995  Ian Lance Taylor  <[email protected]>
6316
6317         * coffcode.h (coff_write_object_contents): Clear the vstamp field
6318         in the a.out header.
6319
6320         * aoutx.h (NAME(aout,swap_ext_reloc_out)): Don't set r_extern for
6321         a reloc against a local symbol, even if it's not a section.
6322
6323 Tue Sep 19 17:02:26 1995  Ian Lance Taylor  <[email protected]>
6324
6325         * targets.c (bfd_target): Remove unused align_power_min field.
6326         * bfd-in2.h: Rebuild.
6327         * All backends: Remove initialization of align_power_min.
6328
6329 Tue Sep 19 14:02:21 1995  steve chamberlain  <[email protected]>
6330
6331         * peicode.h (coff_swap_scnhdr_out): Get sizes for BSS right.
6332
6333 Mon Sep 18 14:35:01 1995  Arne H. Juul  <[email protected]>
6334
6335         * config.bfd (mips-dec-netbsd*): New target.
6336         * configure.host (mips-dec-netbsd*): New host.
6337         * configure.in (mips-dec-netbsd*): New native.
6338         * configure: Rebuild.
6339
6340 Fri Sep 15 10:24:36 1995  Ian Lance Taylor  <[email protected]>
6341
6342         Make the COFF backend linker merge common types:
6343         * cofflink.c (struct coff_debug_merge_element): Define.
6344         (struct coff_debug_merge_type): Define.
6345         (struct coff_debug_merge_hash_entry): Define.
6346         (struct coff_debug_merge_hash_table): Define.
6347         (coff_debug_merge_hash_table_init): Define.
6348         (coff_debug_merge_hash_table_free): Define.
6349         (coff_debug_merge_hash_lookup): Define.
6350         (struct coff_final_link_info): Add debug_merge field.
6351         (coff_debug_merge_hash_newfunc): New static function.
6352         (_bfd_coff_final_link): Allocate and free debug_merge table.
6353         (coff_link_input_bfd): Merge identical enum, struct and union
6354         types.
6355
6356 Thu Sep 14 14:53:58 1995  Ian Lance Taylor  <[email protected]>
6357
6358         Convert i960 COFF to use COFF backend linker.
6359         * coff-i960.c (coff_i960_relocate): Use a coff_section_data
6360         structure to store the symbol being used.
6361         (coff_i960_start_final_link): New static function.
6362         (coff_i960_relocate_section): New static function.
6363         (coff_i960_adjust_symndx): New static function.
6364         (coff_start_final_link): Define.
6365         (coff_relocate_section): Define.
6366         (coff_adjust_symndx): Define.
6367         * coffcode.h (bfd_coff_backend_data): Add new callback function
6368         _bfd_coff_start_final_link.
6369         (bfd_coff_start_final_link): Define.
6370         (coff_start_final_link): Define if not defined.
6371         (bfd_coff_std_swap_table): Add coff_start_final_link.
6372         * cofflink.c (_bfd_coff_internal_syment_name): Make globally
6373         visible.
6374         (_bfd_coff_final_link): Call bfd_coff_start_final_link if the
6375         function callback is not NULL.
6376         * libcoff-in.h (struct coff_section_tdata): Add tdata field.
6377         (_bfd_coff_internal_syment_name): Declare.
6378         * libcoff.h: Rebuild.
6379         * configure.in (icoff_big_vec): Add cofflink.o.
6380         (icoff_little_vec): Likewise.
6381         * configure: Rebuild.
6382
6383 Wed Sep 13 17:38:23 1995  Fred Fish  <[email protected]>
6384
6385         * Makefile.in (clean-info): Remove extraneous tab from line
6386         following action.
6387
6388 Wed Sep 13 13:27:53 1995  Ian Lance Taylor  <[email protected]>
6389
6390         * cofflink.c (coff_link_input_bfd): Fail if a section with no
6391         contents has relocs.
6392
6393 Thu Sep 12 12:45:34 1995  steve chamberlain  <[email protected]>
6394
6395         * coffcode.h (coff_compute_section_file_positions): Keep the
6396         raw size safe. 
6397         (coff_write_object_contents): Remember if it's a relocatable
6398         file.
6399         * libcoff-in.h (pe_data_type): New member 'has_reloc_section'
6400         * peicode.h (coff_swap_filehdr_out): Clear not-reloc flag
6401         if relocatable file. Swap out saved raw size.
6402
6403 Tue Sep 12 12:14:33 1995  Ian Lance Taylor  <[email protected]>
6404
6405         * Makefile.in (do_maintainer_clean): Rename from do_realclean.
6406         (maintainer-clean): Rename from realclean, passing
6407         maintainer-clean down to subdirectories, but leave realclean as a
6408         synonym.
6409
6410         * linker.c (_bfd_generic_link_add_one_symbol): Pass symbol name to
6411         warning callback.
6412
6413         * dep-in.sed: Remove config.h from generated dependencies.
6414
6415         * sunos.c (sunos_slurp_dynamic_symtab): New static function,
6416         broken out of sunos_canonicalize_dynamic_symtab.
6417         (sunos_canonicalize_dynamic_symtab): Call new function
6418         sunos_slurp_dynamic_symtab.
6419         (sunos_add_dynamic_symbols): Add three new parameters.  Return the
6420         dynamic symbol table to the caller.
6421         * aoutx.h (aout_link_add_symbols): Permit add_dynamic_symbols
6422         callback to override the symbols being read.
6423         * libaout.h (struct aout_backend_data): Add three new parameters
6424         to add_dynamic_symbols callback.
6425
6426         Extensive minor changes to avoid various gcc warnings.  Also:
6427         * Makefile.in (BFD32_BACKENDS): Remove coff-arm.o.
6428         * archures.c (bfd_arch_info_type): Change mach field from long to
6429         unsigned long.
6430         (bfd_lookup_arch): Change machine parameter from long to unsigned
6431         long.
6432
6433 Mon Sep 11 10:55:47 1995  Ian Lance Taylor  <[email protected]>
6434
6435         * sunos.c (sunos_scan_std_relocs): Fix BFD_ASSERT: it's OK to find
6436         a symbol with a non-zero plt_offset.
6437
6438 Fri Sep  8 11:47:24 1995  Ian Lance Taylor  <[email protected]>
6439
6440         * elfcode.h (align_file_position): Remove; not used.
6441
6442         * configure.in: Only check for <sys/procfs.h> on a native system,
6443         and make sure it defines prstatus_t.
6444         * configure: Rebuild.
6445
6446 Thu Sep  7 12:48:01 1995  Ian Lance Taylor  <[email protected]>
6447
6448         * sunos.c (sunos_write_dynamic_symbol): Correct m68k abort test.
6449
6450         * config.in: Rename from config.h.in.
6451         * configure.in: Call AC_CONFIG_HEADER with config.h:config.in.
6452         Check for config.h:config.in when creating stamp-h.
6453         * configure: Rebuild.
6454         * Makefile.in (stamp-h): Depend upon config.in rather than
6455         config.h.in.  Set CONFIG_HEADERS to config.h:config.in when
6456         calling config.status.
6457
6458         * Makefile.in (do_distclean): Remove config.h and stamp-h.
6459         (Makefile): Just rebuild Makefile.
6460         (config.h, stamp-h): New targets.
6461         * configure.in: Create stamp-h when rebuilding config.h.
6462         * configure: Rebuild.
6463
6464 Wed Sep  6 15:00:33 1995  Ian Lance Taylor  <[email protected]>
6465
6466         * configure.in: Call AC_CONFIG_HEADER.  Substitute
6467         HOST_64BIT_LONG.  Check that various header files exist.  Check
6468         that fcntl exists.  Call BFD_BINARY_FOPEN.  Check whether malloc
6469         and/or free need to be declared.  Don't make a link to sysdep.h.
6470         Define TRAD_HEADER for various hosts.
6471         * configure: Rebuild.
6472         * configure.host: Don't set my_host.  Add definitions taken from
6473         host header files for various entries.  Remove entries which now
6474         do nothing.
6475         * acconfig.h: New file.
6476         * config.h.in: New file, built by autoheader.
6477         * sysdep.h: New file.
6478         * Makefile.in (do_distclean): Don't remove sysdep.h.
6479         (RECONFIG): Remove.
6480         (LOCAL_H_DEPS): New variable.
6481         ($(BFD_LIBS)): Use $(LOCAL_H_DEPS) rather than libbfd.h and
6482         $(RECONFIG).
6483         ($(BFD_MACHINES), $(BFD_BACKENDS)): Likewise.
6484         ($(OPTIONAL_BACKENDS)): Likewise.
6485         (stmp-bfd.h): Just substitute for BFD_HOST_64BIT_LONG, rather than
6486         looking through sysdep.h.
6487         * bfd-in.h (BFD_HOST_64BIT_LONG): Define; set by Makefile.
6488         (BFD_HOST_64_BIT): Define based on BFD_HOST_64BIT_LONG.
6489         (fprintf_vma, sprintf_vma): Likewise.
6490         (int64_type, uint64_type): Don't define.
6491         * bfd-in2.h: Rebuild.
6492         * archures.c, bfd.c, srec.c: Include <ctype.h>.
6493         * elfcore.h: Check HAVE_SYS_PROCFS_H rather than HAVE_PROCFS.
6494         * lynx-core.c: Include stuff from old hosts/lynx.h.
6495         * opncls.c (bfd_fdopenr): Check HAVE_FNCTL and defined (F_GETFL),
6496         rather than NO_FCNTL.
6497         * targets.c (bfd_target_list): Check HOST_HPPAHPUX and ! __STDC__
6498         rather than NATIVE_HPPAHPUX_COMPILER.
6499         * trad-core.c: Don't include <errno.h>.  Include TRAD_HEADER if it
6500         is defined.
6501         * hosts/*.h: Remove all header files which merely include,
6502         declare, and define things.  Leave header files which define
6503         information needed by trad-core.c.
6504
6505         * aclocal.m4 (BFD_BINARY_FOPEN): Define.
6506         (BFD_CC_FOR_BUILD): Define.
6507         * configure.in: Use BFD_CC_FOR_BUILD.
6508         * configure: Rebuild.
6509
6510 Tue Sep  5 19:35:28 1995  Ian Lance Taylor  <[email protected]>
6511
6512         * aclocal.m4: Don't try to grep ../Makefile if it doesn't exist.
6513         * configure: Rebuild.
6514
6515         * coff-sparc.c (CALC_ADDEND): Don't set the addend to the value of
6516         a global symbol.
6517
6518 Tue Sep  5 12:48:26 1995  Jason Molenda   ([email protected])
6519
6520         * config.bfd: i386pe_ve -> i386pe_vec.
6521
6522 Mon Sep  4 14:02:43 1995  Ian Lance Taylor  <[email protected]>
6523
6524         * configure.host: Incorporate host Makefile fragments by setting
6525         shell variables.
6526         * configure.in: Call AC_PROG_CC.  Substitute CFLAGS, HDEFINES and
6527         AR.  Call AC_PROG_INSTALL.  Substitute CC_FOR_BUILD, choosing a
6528         value based on whether the code is being compiled by a cross
6529         compiler.  Don't substitute host_makefile_frag or frags.
6530         * aclocal.m4: New file to define local AC_PROG_CC.
6531         * configure: Rebuild.
6532         * Makefile.in (INSTALL): Set to @INSTALL@.
6533         (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
6534         (INSTALL_DATA): Set to @INSTALL_DATA@.
6535         (AR): Set to @AR@.
6536         (CC): Define as @CC@.
6537         (CFLAGS): Set to @CFLAGS@.
6538         (CC_FOR_BUILD): Set to @CC_FOR_BUILD@.
6539         (@host_makefile_frag@): Remove.
6540         (ALL_CFLAGS): Change $(HDEFINES) to @HDEFINES@.  Move $(CFLAGS)
6541         after other options.
6542         (config.status): Remove dependency upon @frags@.
6543         * config/*.mh, config/README: Remove.
6544
6545         * config.bfd: Rewrite to incorporate the contents of the Makefile
6546         fragments by setting shell variables, rather than merely returning
6547         the name of a Makefile fragment.
6548         * configure.in: Use shell variables set by config.bfd rather than
6549         looking at the target Makefile fragment files.  Don't substitute
6550         target_makefile_frag.  Do substitute TDEFINES.
6551         * configure: Rebuild.
6552         * Makefile.in (@target_makefile_frag@): Remove.
6553         (ALL_CFLAGS): Change $(TDEFINES) to @TDEFINES@.
6554         * config/*.mt: Remove.
6555
6556 Mon Sep  4 03:13:28 1995  Ken Raeburn  <[email protected]>
6557
6558         * configure.in: Put changequote lines around "i[345]86" patterns
6559         section of core file support.
6560
6561 Sun Sep  3 11:31:58 1995  Jeff Law  ([email protected])
6562
6563         * som.c (som_bfd_print_private_bfd_data): Define to use the
6564         generic version.
6565
6566 Fri Sep  1 17:08:40 1995  steve chamberlain  <[email protected]>
6567
6568         * peicode.h (coff_swap_aouthdr_in): Add ImageBase to
6569         entry, text_start and data_start.
6570
6571 Fri Sep  1 18:06:28 1995  Ian Lance Taylor  <[email protected]>
6572
6573         * Makefile.in (OFILES): Remove $(TDEPFILES).
6574         * config/apollo.mt (TDEPFILES): Remove.
6575         * config/README: Update.
6576
6577         * configure.in: For a native configuration, set COREFILE and
6578         COREFLAG based on the canonical host name.
6579         * configure: Rebuild.
6580         * Makefile.in: Rebuild dependencies.
6581         (ALL_CFLAGS): Add @COREFLAG@.
6582         (OFILES): Replace $(HDEPFILES) with @COREFILE@.
6583         * coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
6584         support routines.  Check LYNX_CORE rather than HOST_LYNX.
6585         * lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
6586         * i386lynx.c: Likewise.
6587         * m68klynx.c: Likewise.
6588         * sparclynx.c: Likewise.
6589         * rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
6590         * *-core.c: Comment changes.
6591         * config/decstation.mh (HDEPFILES): Remove.
6592         (HDEFINES): Remove -DTRAD_CORE.
6593         * config/irix3.mh (RANLIB): Remove.
6594         * config/irix4.mh (HDEPFILES, RANLIB): Remove.
6595         (HDEFINES): Remove -DIRIX_CORE.
6596         * config/riscos.mh (RANLIB, HDEPFILES): Remove.
6597         (HDEFINES): Remove -DTRAD_CORE.
6598         * config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
6599         * config/ultra3.mh (RANLIB): Remove.
6600         * config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
6601         * config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
6602         * config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
6603         * config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
6604         * config/hppahpux.mh, config/hppaosf.mh: Remove.
6605         * config/i386aix.mh, config/i386bsd.mh: Remove.
6606         * config/i386linux.mh, config/i386mach3.mh: Remove.
6607         * config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
6608         * config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
6609         * config/mipsmach3.mh, config/news-mips.mh: Remove.
6610         * config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
6611         * config/rs600.mh, config/rs6000lynx.mh: Remove.
6612         * config/solaris2.mh, config/stratus.mh: Remove.
6613         * config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
6614         * config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
6615
6616 Fri Sep  1 15:18:50 1995  Kazumoto Kojima  <[email protected]>
6617
6618         * elflink.h (elf_bfd_final_link): Don't change a DT_INIT or
6619         DT_FINI entry if the appropriate symbol is not in the hash table.
6620
6621         * libelf.h (struct elf_backend_data): Add create_program_headers
6622         and want_hdr_in_seg fields.
6623         * elfxx-target.h (elf_backend_want_hdr_in_seg): Define if not
6624         defined.
6625         (elf_backend_create_program_headers): Likewise.
6626         (elfNN_bed): Initialize create_program_headers and
6627         want_hdr_in_seg.
6628         * elf.c (get_program_header_size): Call create_program_headers
6629         backend routine.
6630         (map_program_segments): Check want_hdr_in_seg backend field.  Call
6631         create_program_headers backend routine.
6632
6633         * elf.c (assign_file_positions_except_relocs): Align non allocated
6634         sections when creating an executable.
6635
6636         * elfcode.h (elf_swap_phdr_in): Make non static.
6637         (elf_swap_phdr_out): Make non static.
6638         * libelf.h (bfd_elf32_swap_phdr_in): Declare.
6639         (bfd_elf32_swap_phdr_out): Declare.
6640         (bfd_elf64_swap_phdr_in): Declare.
6641         (bfd_elf64_swap_phdr_out): Declare.
6642
6643         * ecofflink.c (ecoff_collect_shuffle): New static function.
6644         (_bfd_ecoff_get_accumulated_pdr): New function.
6645         (_bfd_ecoff_get_accumulated_sym): New function.
6646         (_bfd_ecoff_get_accumulated_ss): New function.
6647         * libbfd-in.h (_bfd_ecoff_get_accumulated_pdr): Declare.
6648         (_bfd_ecoff_get_accumulated_sym): Declare.
6649         (_bfd_ecoff_get_accumulated_ss): Declare.
6650         * libbfd.h: Rebuild.
6651
6652 Fri Sep  1 13:20:25 1995  Ian Lance Taylor  <[email protected]>
6653
6654         * libecoff.h (_bfd_ecoff_bfd_print_private_bfd_data): Fix typo.
6655
6656         * elflink.h (elf_link_add_object_symbols): Handle indirect and
6657         warning symbols.  If any section is named .gnu.warning.XXX, treat
6658         the contents as a warning to be issued if the symbol XXX is
6659         referenced.
6660         (elf_link_output_extsym): For an indirect or warning symbol, just
6661         output the symbol it points to.
6662
6663         * linker.c (_bfd_link_hash_newfunc): Don't bother to set bfd_error
6664         if bfd_hash_allocate fails, since it will already be set.
6665         (generic_link_hash_newfunc): Likewise.
6666         (archive_hash_newfunc): Likewise.
6667         (hash_entry_bfd): New static function.
6668         (_bfd_generic_link_add_one_symbol): Pass new arguments to warning
6669         callback.  Allocate a new warning using the hash table newfunc.
6670         Use bfd_hash_replace to update the entry in the hash table, rather
6671         than assuming we can copy the fields with structure assignment.
6672
6673         * hash.c (bfd_hash_replace): New function.
6674         * bfd-in.h (bfd_hash_replace): Declare.
6675         * bfd-in2.h: Rebuild.
6676
6677 Fri Sep  1 08:12:50 1995  James G. Smith  <[email protected]>
6678
6679         * config.bfd: Add mips*vr4300-*-elf* target.
6680         * config/mipsbvr4300.mt: Added.
6681
6682 See file ChangeLog.2
6683
6684 \f
6685 Local Variables:
6686 mode: change-log
6687 left-margin: 8
6688 fill-column: 74
6689 version-control: never
6690 End:
This page took 0.422022 seconds and 4 git commands to generate.