1 2001-11-10 Alan Modra <amodra@bigpond.net.au>
3 * elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF
4 relocs into shared libs.
5 * elf32-cris.c (cris_elf_relocate_section): Likewise.
6 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
8 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
9 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
10 * elf32-sh.c (sh_elf_relocate_section): Likewise.
11 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
12 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
13 * elf64-s390.c (elf_s390_relocate_section): Likewise.
14 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
15 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
16 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
18 * elf.c (bfd_section_from_r_symndx): New function.
19 * elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define.
20 (struct sym_sec_cache): New.
21 (bfd_section_from_r_symndx): Declare.
22 (struct bfd_elf_section_data): Change local_dynrel type to PTR.
23 * elflink.h (elf_link_input_bfd): Don't test for removed linkonce
24 relocs when relocatable. Don't zero entire reloc, just zero the
26 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add sym_sec.
27 (elf32_hppa_link_hash_table_create): Init it.
28 (elf32_hppa_check_relocs): Track dynamic relocs needed for local
29 syms on a per-section basis as we do for globals.
30 (elf32_hppa_gc_sweep_hook): Update for local_dynrel change.
31 (allocate_dynrelocs): Warning fix.
32 (elf32_hppa_size_dynamic_sections): Don't allocate relocs when
33 section has been discarded.
34 (elf32_hppa_relocate_section): Don't copy STN_UNDEF relocs
36 * elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec.
37 (elf_i386_link_hash_table_create): Init it.
38 (elf_i386_check_relocs): Track dynamic relocs needed for local
39 syms on a per-section basis as we do for globals.
40 (elf_i386_gc_sweep_hook): Update for local_dynrel change.
42 (allocate_dynrelocs): Warning fix.
43 (elf_i386_size_dynamic_sections): Don't allocate relocs when
44 section has been discarded.
45 (elf_i386_relocate_section): Don't copy STN_UNDEF relocs
47 * elf32-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
48 (elf_s390_link_hash_table_create): Init it.
49 (elf_s390_check_relocs): Track dynamic relocs needed for local
50 syms on a per-section basis as we do for globals.
51 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
53 (allocate_dynrelocs): Warning fix.
54 (elf_s390_size_dynamic_sections): Don't allocate relocs when
55 section has been discarded.
56 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
58 * elf64-ppc.c (struct ppc_link_hash_table): Add sym_sec.
59 (ppc64_link_hash_table_create): Init it.
60 (ppc64_elf_check_relocs): Track dynamic relocs needed for local
61 syms on a per-section basis as we do for globals.
62 (ppc64_elf_gc_sweep_hook): Update for local_dynrel change.
63 (allocate_dynrelocs): Call the correct record_dynamic_dymbol
64 function. Warning fix.
65 (ppc64_elf_size_dynamic_sections): Don't allocate relocs when
66 section has been discarded.
67 (ppc64_elf_relocate_section): Don't copy STN_UNDEF relocs
69 * elf64-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
70 (elf_s390_link_hash_table_create): Init it.
71 (elf_s390_check_relocs): Track dynamic relocs needed for local
72 syms on a per-section basis as we do for globals.
73 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
75 (allocate_dynrelocs): Warning fix.
76 (elf_s390_size_dynamic_sections): Don't allocate relocs when
77 section has been discarded.
78 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
81 2001-11-08 Martin Schwidefsky <schwidefsky@de.ibm.com>
83 * elf32-s390: Major rework that introduces all recent changes to
84 the s390 backends. Get a closer match to elf32-i386.
85 (elf_s390_relocate_section): Make use of dynamic section short-cuts.
86 Localise vars, and delay setting. Better error reporting, replace
87 BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a
88 symbol is not defined in the regular object file and tread the weak
89 definition as the normal one. Don't discard relocs for undefweak or
90 undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in
91 test for avoided copy relocs. Reinstate fudge for unresolved relocs
92 in debugging sections.
93 (elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy
94 reloc processing for weakdefs. Remove redundant casts and aborts.
95 Delay setting of vars until needed. Move creation of dynamic symbols
96 and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace
97 BFD_ASSERT with abort. Discard .plt entries for everything with
99 (elf_s390_check_relocs): Don't allocate space for dynamic relocs,
100 .got or .relgot here but do it in allocate_dynrelocs. Reference count
101 possible .plt and .got entries. Don't test input section SEC_READONLY
102 here to try to avoid copy relocs, and keep dyn_relocs regardless of
103 ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of
104 variables until needed. Remove separate switch stmt for creating .got
105 section. Initialise local_got_refcounts to 0. Cache pointer to
106 "sreloc" section in elf_section_data. Tweak condition under which .got
107 created. Report files with bad relocation section names.
108 (elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that
109 have been forced local. Use same test to decide if we can use a
110 relative reloc for got as elf_s390_relocate_section. Expand SHN_UNDEF
111 comment. Move expressions out of function calls. Replace BFD_ASSERT
113 (elf_s390_finish_dynamic_sections): Migrate common code out of switch
114 statement. Replace BFD_ASSERT with abort.
115 (elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i"
116 to "ibfd". Allocate space for local dyn relocs. Use DF_TEXTREL flag
117 instead of looking up section names for DT_TEXTREL. Replace
118 BFD_ASSERT with abort. Zero out the dynamic allocated content space.
119 Add a comment to remind us that one day this ought to be fixed.
120 (struct elf_s390_link_hash_entry): Rename "root" to "elf".
121 (struct elf_s390_link_hash_table): Likewise.
122 (elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get
123 rid of unnecessary casts.
124 (struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields.
125 Remove "section" field.
126 (elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
127 Reference count possible .plt entries. Don't deallocate .got and
129 (struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs.
131 (struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to
133 (elf_s390_discard_copies): Delete.
134 (elf_s390_link_hash_traverse): Delete.
135 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
136 rather than gc variety).
137 (struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt,
138 srelplt, sdynbss, srelbss fields.
139 (elf_s390_link_hash_table_create): Init them.
140 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
141 (allocate_dynrelocs): New function.
142 (create_got_section): New function.
143 (elf_backend_can_refcount): Define.
144 (elf_backend_copy_indirect_symbol): Define.
145 (elf_s390_copy_indirect_symbol): New function.
146 (elf_s390_create_dynamic_sections): New function.
147 (readonly_dynrelocs): New function.
148 * elf64-s390.c: Likewise.
150 2001-11-07 Jakub Jelinek <jakub@redhat.com>
152 * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo.
153 (BFD32_BACKENDS_CFILES): Add elf-strtab.c.
154 (elf-strtab.lo): Add rule.
155 * Makefile.in: Rebuilt.
156 * configure.in (elf): Add elf-strtab.lo.
157 * configure: Rebuilt.
158 * elf-bfd.h (elf_strtab_hash): Forward declare.
159 (struct elf_link_hash_table): Change dynstr type to
160 struct elf_strtab_hash *.
161 (struct elf_obj_tdata): Change strtab_ptr type to
162 struct elf_strtab_hash *.
163 (_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add,
164 _bfd_elf_strtab_addref, _bfd_elf_strtab_delref,
165 _bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size,
166 _bfd_elf_strtab_offset, _bfd_elf_strtab_emit,
167 _bfd_elf_strtab_finalize): New prototypes.
168 * elf-strtab.c: New file.
169 * elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add
170 and _bfd_elf_strtab_size instead of _bfd_stringtab calls.
171 Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or
172 when forcing dynamic symbol to local.
173 (elf_link_create_dynamic_sections): Call
174 _bfd_elf_strtab_init instead of elf_stringtab_init.
175 (elf_link_record_local_dynamic_symbol): Likewise, change
176 dynstr type. Use _bfd_elf_strtab functions instead of
177 _bfd_stringtab calls.
178 (size_dynamic_sections): Use _bfd_elf_strtab functions instead of
179 _bfd_stringtab calls. For DT_RUNPATH and Verdaux vda_name fields,
180 call _bfd_elf_strtab_addref. Call elf_finalize_dynstr.
181 (elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions.
182 (elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing
183 dynamic symbol to local.
184 (elf_link_assign_sym_version): Likewise.
185 (elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of
187 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr
188 type. Call _bfd_elf_strtab functions instead of
189 _bfd_stringtab functions.
190 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
191 * elf.c (_bfd_elf_init_reloc_shdr): Likewise.
192 (elf_fake_sections): Likewise.
193 (assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs
194 on shstrtab hash table, call _bfd_elf_strtab_addref on each section
195 name in the output. Call _bfd_elf_strtab_finalize and
196 use _bfd_elf_strtab_offset to finalize sh_name section header fields.
197 (_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size
198 instead of _bfd_stringtab_size.
199 (prep_headers): Change shstrtab type.
200 Use _bfd_elf_strtab calls instead of _bfd_stringtab calls.
202 2001-11-07 Alan Modra <amodra@bigpond.net.au>
204 * elflink.h (elf_link_input_bfd <removed linkonce relocs>): Fix
205 bad symtab segfault. Formatting and warning fixes. Improve
206 error message for internationalisation.
208 2001-11-06 H.J. Lu (hjl@gnu.org)
210 * elflink.h (elf_link_input_bfd): Complain about relocs against
213 2001-11-03 Alan Modra <amodra@bigpond.net.au>
215 * elfxx-target.h (elfNN_bed): Correct want_got_sym, want_dynbss order.
217 2001-11-02 H.J. Lu <hjl@gnu.org>
219 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
220 dynamic relocation for symbols defined in regular objects when
221 creating executables.
223 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
225 * configure.in (ALL_LINGUAS): Add "fr".
226 * configure: Regenerate.
227 * po/fr.po: New file.
229 * coffgen.c (coff_object_p): Add comment to H.J.'s recent patch.
231 2001-11-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
233 * som.c (setup_sections): Initialize subspace_sections.
235 2001-11-02 H.J. Lu (hjl@gnu.org)
237 * coffgen.c (coff_object_p): Return 0 if the header is too big.
239 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
241 * elfcore.h (elf_core_file_p): Preserve and clear abfd section
242 information. Save bfd arch and mach values. Restore on error.
244 2001-11-02 Alan Modra <amodra@bigpond.net.au>
246 * elf32-hppa.c (hppa_handle_PIC_calls): Rename to mark_PIC_calls.
247 (allocate_PIC_calls): New function.
248 (allocate_dynrelocs): Don't allocate pic_call plt entries here.
249 (elf32_hppa_size_dynamic_sections): Call allocate_PIC_calls.
250 (elf32_hppa_finish_dynamic_symbol): Remove dead code.
252 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
254 * elf32-cris.c (cris_elf_grok_prstatus): New function.
255 (cris_elf_grok_psinfo): New function.
256 (elf_backend_grok_prstatus): Define.
257 (elf_backend_grok_psinfo): Define.
259 2001-11-01 Alan Modra <amodra@bigpond.net.au>
261 * elf64-ppc.c (ppc64_elf_relocate_section): Correct branch
264 2001-10-31 Chris Demetriou <cgd@demetriou.com>
266 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Handle PC-relative
267 relocations properly.
269 2001-10-31 H.J. Lu <hjl@gnu.org>
271 * elflink.h (elf_link_output_extsym): Don't clear the visibility
272 field for relocateable.
274 2001-11-01 Alan Modra <amodra@bigpond.net.au>
276 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count
277 .plt relocs in DT_RELASZ.
279 2001-10-29 NIIBE Yutaka <gniibe@m17n.org>
281 * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
284 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
286 * targets.c: Fix typo: bfd_mmo_mmix_vec => bfd_mmo_vec.
288 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
290 * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo.
291 (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo.
292 (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c.
293 Regenerate dependencies.
294 * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors.
295 * config.bfd: [BFD64] (mmix-*-*): New case.
296 * cpu-mmix.c, mmo.c, elf64-mmix.c: New files.
297 * archures.c (enum bfd_architecture): Add bfd_arch_mmix.
298 (bfd_mmix_arch): Declare.
299 (bfd_archures_list): Add bfd_mmix_arch.
300 * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour.
301 (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare.
302 (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and
304 * reloc.c: Add MMIX relocations.
305 * bfd.c (struct _bfd, tdata): Add mmo_data.
306 * Makefile.in: Regenerate.
307 * configure: Regenerate.
308 * libbfd.h: Regenerate.
309 * bfd-in2.h: Regenerate.
310 * configure: Rebuild.
312 2001-10-30 Richard Earnshaw (rearnsha@arm.com)
314 * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
315 p_paddr of the segment that contains it.
316 (copy_private_bfd_data): If the LMA for a segment is known, use it
317 for matching sections to segments.
318 (assign_file_positions_for_segments): Use the LMA when adjusting
319 for inter-section alignment padding.
321 2001-10-29 Kazu Hirata <kazu@hxi.com>
323 * README: Fix a typo.
325 2001-10-24 Richard Henderson <rth@redhat.com>
327 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
328 timestamp to time_t for ctime.
330 2001-10-24 Hans-Peter Nilsson <hp@axis.com>
332 * elf32-cris.c (cris_reloc_type_lookup): Change loop to use
333 unsigned, increasing index.
335 2001-10-23 H.J. Lu <hjl@gnu.org>
337 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
338 m != NULL before accessing it.
340 2001-10-23 Alan Modra <amodra@bigpond.net.au>
342 * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing
343 bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup
344 doesn't accept BFD_RELOC_* on some targets, eg. hppa.
346 * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs.
347 (hppa_link_hash_newfunc): Likewise.
348 (elf32_hppa_finish_dynamic_symbol): Likewise.
349 (allocate_dynrelocs): Always allocate .got relocs if shared.
350 (elf32_hppa_relocate_section): Output them too. Similarly
351 consolidate .plt reloc code, and no longer initialise .plt
352 when a reloc is output.
353 (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries
354 when no reloc is output.
356 From Herbert Xu <herbert@gondor.apana.org.au>
357 * elf32-hppa.c (final_link_relocate): Call bfd_set_error for
358 unreachable branches.
360 2001-10-22 H.J. Lu <hjl@gnu.org>
362 * configure.in (WIN32LIBADD): Use -L../libiberty for
364 * configure: Rebuild.
366 2001-10-21 H.J. Lu <hjl@gnu.org>
368 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
369 if shared library is enabled only for Linux hosts.
370 * configure: Rebuild.
372 2001-10-21 H.J. Lu <hjl@gnu.org>
374 * configure.in (WIN32LIBADD): Check if PICFLAG is defined in
375 ../libiberty/Makefile instead of $enable_shared.
376 * configure: Rebuild.
378 2001-10-21 H.J. Lu <hjl@gnu.org>
380 * elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover
383 2001-10-20 H.J. Lu <hjl@gnu.org>
385 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
386 if shared library is enabled.
387 * configure: Rebuild.
389 2001-10-20 H.J. Lu <hjl@gnu.org>
391 * elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
393 2001-10-19 H.J. Lu <hjl@gnu.org>
395 * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
398 2001-10-18 H.J. Lu <hjl@gnu.org>
400 * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
401 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
403 2001-10-18 Jakub Jelinek <jakub@redhat.com>
405 * section.c (_bfd_strip_section_from_output): Don't count
406 SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
408 2001-10-17 Alan Modra <amodra@bigpond.net.au>
410 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
411 Elf_Internal_Shdr.contents now that it's no longer a PTR.
412 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
413 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
414 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
415 * elf32-sh.c (sh_elf_relax_section): Likewise.
416 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
417 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
418 * elf.c (setup_group): Warning fixes.
419 * elflink.h (elf_link_sort_relocs): Likewise.
420 * pdp11.c (slurp_reloc_table): Likewise.
422 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
424 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
427 2001-10-15 H.J. Lu <hjl@gnu.org>
429 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
430 for relocations against discarded link-once section.
432 2001-10-15 Alan Modra <amodra@bigpond.net.au>
434 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
435 bfd_reloc_outofrange and similar errors.
437 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
438 rather than ind->weakdef.
439 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
440 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
441 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
442 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
443 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
445 2001-10-15 Alan Modra <amodra@bigpond.net.au>
446 H.J. Lu <hjl@gnu.org>
448 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
449 counts for aliases instead of aborting.
450 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
451 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
453 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
454 to -1 for non-function symbols.
455 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
456 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
457 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
458 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
459 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
460 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
461 plt.offset instead of plt.refcount when setting to -1.
463 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
465 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
466 like R_ARM_PC24. Include reloc number in error message about
469 2001-10-10 Jakub Jelinek <jakub@redhat.com>
471 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
472 relocations against the same symbol in .rel{,a}.dyn section.
474 2001-10-10 Kazu Hirata <kazu@hxi.com>
476 * aout-encap.c: Fix comment typos.
478 * archive.c: Likewise.
480 * coff64-rs6000.c: Likewise.
481 * coffcode.h: Likewise.
482 * coffgen.c: Likewise.
483 * cofflink.c: Likewise.
484 * coff-mips.c: Likewise.
486 * elf32-m32r.c: Likewise.
487 * libcoff-in.h: Likewise.
488 * libecoff.h: Likewise.
489 * libxcoff.h: Likewise.
490 * nlm32-i386.c: Likewise.
492 * section.c: Likewise.
495 * bfd-in2.h: Regenerate.
496 * libcoff.h: Likewise.
498 2001-10-10 Alan Modra <amodra@bigpond.net.au>
500 * elf.c (elf_map_symbols): Don't create new section symbols; Use
501 existing section syms. Update comments.
502 (copy_private_bfd_data): Formatting fixes.
503 (elfcore_grok_win32pstatus): Likewise.
504 (swap_out_syms): Likewise. Remove unnecessary level of braces.
506 2001-10-09 Alan Modra <amodra@bigpond.net.au>
508 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
510 (elf_group_name): Define.
511 (elf_next_in_group): Define.
512 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
513 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
514 first member section; Instead use elf_next_in_group.
515 (bfd_section_from_shdr): Likewise.
516 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
518 2001-10-09 Alan Modra <amodra@bigpond.net.au>
520 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
521 "next_in_group". Fix gp and gp_size comments.
522 * elf.c (union elf_internal_group): New.
523 (setup_group): New function.
524 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
525 Call setup_group for SHF_GROUP sections.
526 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
527 (elf_fake_sections): Set header type for SEC_GROUP, and header
528 flags for sections in a group.
529 (set_group_contents): New function.
530 (_bfd_elf_compute_section_file_positions): Call it.
531 (assign_section_numbers): Set sh_link for SHT_GROUP.
533 * elflink.h (gc_mark_hook): Handle section groups.
534 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
535 * section.c (SEC_GROUP): Define.
536 (struct sec): Comment fixes.
537 * bfd-in2.h: Regenerate.
539 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
540 out of function args.
541 (_bfd_elf_canonicalize_reloc): Similarly.
542 (_bfd_elf_get_symtab): Here too.
543 (_bfd_elf_canonicalize_dynamic_symtab): And here.
544 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
545 bfd_bread, and remove unnecessary cast.
547 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
549 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
551 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
553 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
556 2001-10-06 Alan Modra <amodra@bigpond.net.au>
558 * bfd.c (bfd_assert): Report bfd version.
559 (_bfd_abort): Likewise.
561 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
562 section sym values. Instead replace any relocs against them with
563 relocs against STN_UNDEF, which has a zero value.
565 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
568 2001-10-05 Jeff Law <law@redhat.com>
570 * som.h (som_exec_data): New field "version_id".
571 * som.c (som_object_setup): Record the version_id if it
573 (som_prep_headers): Do not initialize version_id here.
574 (som_finish_writing): Initialize version_id here.
576 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
578 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
579 according to the MIPS/SGI ELF64 ABI Draft.
580 (mips_elf_sort_hash_table): Typo.
582 2001-10-04 Alan Modra <amodra@bigpond.net.au>
584 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
586 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
587 copying flags if this is a weakdef.
589 2001-10-04 Alan Modra <amodra@bigpond.net.au>
591 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
594 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
595 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
596 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
598 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
599 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
600 backends we configure. Run "make dep-am".
601 (install-data-local): Install symcat.h.
602 * dep-in.sed: Remove symcat.h from dependencies.
603 * Makefile.in: Regenerate.
605 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
607 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
609 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
611 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
612 (elf_backend_default_use_rela_p): New define.
614 2001-10-03 Alan Modra <amodra@bigpond.net.au>
616 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
619 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
620 * configure: Regenerate.
621 * Makefile.am (BFD_H_FILES): Add version.h.
622 * Makefile.in: Regenerate.
623 * po/SRC-POTFILES.in: Regenerate.
625 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
626 elf_backend_copy_indirect_symbol so that backend has a chance to
627 copy other necessary fields.
628 * elf-bfd.h (struct elf_backend_data): Update description of
629 elf_backend_copy_indirect_symbol.
630 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
631 copying flags if this is a weakdef.
632 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
633 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
634 than bfd_link_hash_lookup.
635 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
636 reloc processing for weakdefs.
637 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
638 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
640 2001-10-02 Alan Modra <amodra@bigpond.net.au>
642 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
643 result of ELF64_R_TYPE to enum before using in a switch.
644 (ppc64_elf_gc_mark_hook): Likewise.
645 (ppc64_elf_gc_sweep_hook): Likewise.
646 (ppc64_elf_reloc_type_class): Likewise.
648 2001-10-02 Alan Modra <amodra@bigpond.net.au>
650 * version.h: New file.
651 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
652 (BFD_VERSION_DATE): Define.
653 (BFD_VERSION_STRING): Define.
654 * configure.in: AC_SUBST bfd_version, bfd_version_date and
656 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
657 * bfd-in2.h: Regenerate.
658 * configure: Regenerate.
659 * Makefile.am: Run "make dep-am".
660 * Makefile.in: Regenerate.
662 * bfd-in.h: Include "symcat.h".
663 (CONCAT4): Redefine as for old CAT4.
664 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
665 Add warning regarding whitespace.
666 * aout-cris.c: Likewise.
667 * aout-ns32k.c: Likewise.
668 * aout-sparcle.c: Likewise.
669 * aout-tic30.c: Likewise.
671 * armnetbsd.c: Likewise.
672 * demo64.c: Likewise.
673 * elf-bfd.h: Likewise.
674 * gen-aout.c: Likewise.
675 * host-aout.c: Likewise.
676 * hp300bsd.c: Likewise.
677 * hp300hpux.c: Likewise.
678 * i386aout.c: Likewise.
679 * i386bsd.c: Likewise.
680 * i386dynix.c: Likewise.
681 * i386freebsd.c: Likewise.
682 * i386linux.c: Likewise.
683 * i386lynx.c: Likewise.
684 * i386mach3.c: Likewise.
685 * i386netbsd.c: Likewise.
686 * libaout.h: Likewise.
687 * m68k4knetbsd.c: Likewise.
688 * m68klinux.c: Likewise.
689 * m68klynx.c: Likewise.
690 * m68knetbsd.c: Likewise.
691 * m88kmach3.c: Likewise.
692 * mipsbsd.c: Likewise.
693 * newsos3.c: Likewise.
694 * ns32knetbsd.c: Likewise.
695 * pc532-mach.c: Likewise.
697 * riscix.c: Likewise.
698 * sparclinux.c: Likewise.
699 * sparclynx.c: Likewise.
700 * sparcnetbsd.c: Likewise.
702 * targets.c: Likewise.
703 * vaxnetbsd.c: Likewise.
704 * vms-hdr.c: Likewise.
706 2001-10-01 Alan Modra <amodra@bigpond.net.au>
708 * bfd-in.h: Remove comments regarding generated files.
709 * libbfd-in.h: Likewise.
710 * libcoff-in.h: Likewise.
711 * bfd-in2.h: Regenerate.
712 * libbfd.h: Likewise.
713 * libcoff.h: Likewise.
715 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
716 Hans-Peter Nilsson <hp@bitrange.com>
718 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
719 partial_inplace, matching assembler output. Set src_mask to
721 (sh_elf_relocate_section): Delete misplaced comment.
722 For relocatable linking against section symbol, call
723 _bfd_relocate_contents for partial_inplace relocs and adjust
724 rel->r_addend for others.
725 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
726 bfd_get_32, not at rel->r_addend.
728 2001-09-30 Alan Modra <amodra@bigpond.net.au>
730 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
731 the old dir refcount, so we indirectly set them to init_refcount.
732 Short-circuit asserts when we've just verified they are true.
734 2001-09-29 Alan Modra <amodra@bigpond.net.au>
736 * section.c (struct sec): Remove kept_section.
737 (STD_SECTION): Remove kept_section initialisation.
738 (bfd_make_section_anyway): Here too.
739 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
740 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
741 * elflink.h (elf_link_input_bfd): Set discarded link-once section
742 symbols to zero, and remove all code involved with kept_section
743 and tracking section symbol values.
744 * bfd-in2.h: Regenerate.
745 * configure.in: Bump version number.
746 * configure: Regenerate.
748 2001-09-29 Alan Modra <amodra@bigpond.net.au>
750 * elf64-ppc.c (struct ppc_dyn_relocs): New.
751 (IS_ABSOLUTE_RELOC): Define.
752 (struct ppc_link_hash_entry): New.
753 (struct ppc_link_hash_table): New.
754 (ppc_hash_table): Define.
755 (link_hash_newfunc): New function.
756 (ppc64_elf_link_hash_table_create): New function.
757 (create_got_section): New function.
758 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
759 pointers to our dynamic sections in hash table.
760 (ppc64_elf_copy_indirect_symbol): New function.
761 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
762 dynamic sections. Localise vars. Modify code for refcounts
763 starting from zero. Don't allocate here, or force symbols dynamic.
764 Don't copy all relocs if shared, select ones we need. Add code
765 to track possible copy relocs for non-shared link.
766 (ppc64_elf_gc_mark_hook): Update comment.
767 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
768 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
769 code for reference counting garbage collection. Don't create .plt
770 entries for functions that don't comply with ABI naming convention,
771 and don't allocate .plt space here. Use short-cuts to dynamic
772 sections. If possible, keep dynamic relocations instead of using
773 copy relocs. Remove confused comments.
774 (ppc_adjust_dynindx): Delete.
775 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
776 (allocate_dynrelocs): New function.
777 (readonly_dynrelocs): New function.
778 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
779 space here, and call allocate_dynrelocs to allocate space for
780 global .plt, .got and reloc sections. Use short-cuts to dynamic
781 sections. Call readonly_dynrelocs to determine whether we need
782 DT_TEXTREL. Don't generate section symbols here, the generic
783 ELF linker code does it for us.
784 (ppc64_elf_final_link): Call regular ELF backend linker rather than
785 gc variety, since we do our own .got handling.
786 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
787 dynamic section short-cuts. Localise vars, and delay setting.
788 Handle unknown relocs in main switch statement. Replace ugly
789 complicated tests for unresolvable relocs with a simple direct
790 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
791 before allowing an undefined sym in a shared lib. Do R_*_DS tests
792 after main switch, when we've set addend. Do non-addend insn
793 tweaks before main swithc. Ignore input_section->vma when
794 calculating reloc offsets as it's always zero. Rewrite dynamic
795 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
796 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
797 of dynamic section short-cuts. Reorganise .plt handling code.
798 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
799 Move expressions out of swap_reloca_out function calls.
800 (ppc64_elf_reloc_type_class): New function.
801 (ppc64_elf_info_to_howto): Move common expression to local var.
802 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
803 of dynamic section short-cuts. Don't fiddle with section syms
804 here as the ELF linker does it for us.
805 (elf_backend_can_refcount): Define.
806 (bfd_elf64_bfd_link_hash_table_create): Define.
807 (elf_backend_copy_indirect_symbol): Define.
808 (elf_backend_reloc_type_class): Define.
809 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
811 2001-09-29 Alan Modra <amodra@bigpond.net.au>
813 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
814 (struct elf_backend_data): Add can_refcount.
815 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
816 got.refcount and plt.refcount from init_refcount.
817 (_bfd_elf_link_hash_table_init): Set up init_refcount.
818 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
819 rather than got/plt.offset, and test for <= 0 rather than -1.
820 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
821 * elfxx-target.h (elf_backend_can_refcount): Define.
822 (elfNN_bed): Init can_refcount.
823 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
824 (_bfd_generic_link_hash_newfunc): Likewise.
825 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
827 (elf_backend_can_refcount): Define.
828 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
830 (elf32_hppa_copy_indirect_symbol): Make static to agree with
832 (elf_backend_can_refcount): Define.
833 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
835 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
836 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
837 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
838 (elf_backend_can_refcount): Define.
839 (elf_i386_copy_indirect_symbol): Make static to agree with
840 prototype. Formatting fix.
841 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
843 (elf_backend_can_refcount): Define.
844 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
846 (elf_backend_can_refcount): Define.
847 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
849 (elf_backend_can_refcount): Define.
850 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
852 (elf_backend_can_refcount): Define.
853 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
855 (elf_backend_can_refcount): Define.
857 * som.c (som_write_symbol_strings): Cast current_offset in
858 bfd_seek call to match param type.
860 2001-09-28 J. Brobecker <brobecker@gnat.com>
862 * som.c (som_write_symbol_strings): Fix incorrect type of
863 current_offset to match the function definition. Fixes a build
864 failure on HPUX-11.00.
866 2001-09-28 Richard Henderson <rth@redhat.com>
868 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
869 SEC_MERGE, SEC_STRINGS.
871 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
872 * bfd-in2.h: Rebuild.
874 2001-09-28 Alan Modra <amodra@bigpond.net.au>
876 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
877 reloc code using x86_64_reloc_map.
879 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
880 no longer allocate here. Localise some vars to blocks where they
882 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
883 setting of vars until needed.
884 (allocate_dynrelocs): Don't create a .plt entry without a reloc
885 when symbol visibilty makes a function local.
886 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
887 swap_reloca_out function calls.
888 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
889 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
892 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
893 no longer allocate here. Localise some vars to blocks where they
894 are used. Remove separate switch stmt for creating .got sec.
895 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
896 redundant casts and aborts. Delay setting of vars until needed.
897 (allocate_dynrelocs): Remove redundant casts and aborts.
898 (elf_i386_size_dynamic_sections): Move comment.
899 (elf_i386_finish_dynamic_symbol): Move expressions out of function
901 (elf_i386_relocate_section): Likewise. Comment typo fix.
902 (elf_i386_finish_dynamic_sections): Migrate common code out of
904 (elf_backend_* defines): Sort.
906 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
907 without a reloc when symbol visibilty makes a function local.
909 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
911 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
912 conflicting float flags.
914 2001-09-26 Alan Modra <amodra@bigpond.net.au>
916 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
917 (elf_backend_copy_indirect_symbol): Define.
918 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
919 (struct elf_i386_link_hash_table): Likewise.
920 (link_hash_newfunc): Get rid of unnecessary casts.
921 (elf_i386_link_hash_table_create): Likewise.
922 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
923 Don't test input section SEC_READONLY here to try to avoid copy
924 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
925 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
926 here to properly test whether we need copy relocs. Do so for weak
929 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
930 (elf_backend_copy_indirect_symbol): Define.
931 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
932 (stub_hash_newfunc): Get rid of unnecessary casts.
933 (hppa_link_hash_newfunc): Likewise.
934 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
935 Don't test input section SEC_READONLY here to try to avoid copy
936 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
937 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
938 here to properly test whether we need copy relocs. Do so for weak
941 2001-09-26 Alan Modra <amodra@bigpond.net.au>
943 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
944 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
945 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
947 2001-09-25 Jakub Jelinek <jakub@redhat.com>
949 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
952 2001-09-25 H.J. Lu <hjl@gnu.org>
954 * bfd-in2.h: Regenerated.
956 2001-09-25 Alan Modra <amodra@bigpond.net.au>
958 * elf32-i386.c: Add comment re linker function names and ordering.
959 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
960 (elf_i386_grok_prstatus): Move before linker functions.
961 (elf_i386_grok_psinfo): Likewise.
962 (elf_i386_fake_sections): Move so that functions are ordered.
963 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
965 2001-09-25 Alan Modra <amodra@bigpond.net.au>
967 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
970 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
971 code handling this option.
972 (LONG_BRANCH_VIA_PLT): Likewise.
973 (RELATIVE_DYNRELOCS): Define as zero.
974 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
975 "pc_count" fields. Remove "section" field.
976 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
977 (elf32_hppa_check_relocs): Don't allocate space for dynamic
978 relocs here. Instead, record all needed dynamic relocs via
979 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
981 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
982 (allocate_plt_and_got_and_discard_relocs): Rename to
983 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
984 (readonly_dynrelocs): New function.
985 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
986 Call readonly_dynrelocs to determine need for DT_TEXTREL.
987 Rename "i" to "ibfd". Allocate space for local dyn relocs.
988 (elf32_hppa_relocate_section): Make use of cached sreloc.
989 (elf32_hppa_reloc_type_class): New function.
990 (elf_backend_reloc_type_class): Define.
992 2001-09-25 Alan Modra <amodra@bigpond.net.au>
994 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
996 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
997 "pc_count" fields. Remove "section" field.
998 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
999 allocate space for dynamic relocs here. Instead, record all
1000 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
1001 pointer to "sreloc" section in elf_section_data.
1002 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1003 (allocate_plt_and_got_and_discard_relocs): Rename to
1004 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
1005 (readonly_dynrelocs): New function.
1006 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
1007 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1008 (elf_i386_relocate_section): Make use of cached sreloc.
1010 2001-09-24 Alan Modra <amodra@bigpond.net.au>
1012 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
1013 reloc rather than just the type.
1014 (_bfd_elf_reloc_type_class): Likewise.
1015 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1016 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
1017 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
1018 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
1019 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
1020 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
1021 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
1022 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
1023 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
1024 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
1025 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
1026 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
1027 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
1028 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
1029 * elflink.h: Formatting fixes.
1030 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
1031 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
1032 o->contents to PTR. Update call to elf_backend_reloc_type_class.
1034 2001-09-22 John Reiser <jreiser@BitWagon.com>
1036 * elfcode.h (elf_object_p): Allow for no section header at all in
1037 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
1039 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
1041 * elfxx-ia64.c: Fix compile time warning messages.
1042 * coff-mcore.c: Fix compile time warning messages.
1043 * coff-ppc.c: Fix compile time warning messages.
1044 * coffcode.h: Fix compile time warning messages.
1045 * elf32-mips.c: Fix compile time warning messages.
1046 * elf64-alpha.c: Fix compile time warning messages.
1047 * libbfd.c: Fix compile time warning messages.
1048 * bfd-in2.h: Regenerate.
1050 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1052 * Makefile.am: Run "make dep-am".
1053 * Makefile.in: Regenerate.
1055 * aoutx.h: Formatting fixes.
1056 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
1058 * linker.c: Replace bfd_get_filename with bfd_archive_filename
1061 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1063 * bfd.c (bfd_archive_filename): New function.
1064 * bfd-in2.h: Regenerate.
1065 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
1066 in error messages where the bfd is an input bfd.
1067 * aout-cris.c: Likewise.
1068 * coff-arm.c: Likewise.
1069 * coff-mcore.c: Likewise.
1070 * coff-ppc.c: Likewise.
1071 * coff-rs6000.c: Likewise.
1072 * coff-sh.c: Likewise.
1073 * coff-tic54x.c: Likewise.
1074 * coff-tic80.c: Likewise.
1075 * coff64-rs6000.c: Likewise.
1076 * coffcode.h: Likewise.
1077 * coffgen.c: Likewise.
1078 * cofflink.c: Likewise.
1079 * ecofflink.c: Likewise.
1080 * elf-hppa.h: Likewise.
1082 * elf32-arm.h: Likewise.
1083 * elf32-cris.c: Likewise.
1084 * elf32-gen.c: Likewise.
1085 * elf32-hppa.c: Likewise.
1086 * elf32-i370.c: Likewise.
1087 * elf32-i386.c: Likewise.
1088 * elf32-m32r.c: Likewise.
1089 * elf32-mcore.c: Likewise.
1090 * elf32-mips.c: Likewise.
1091 * elf32-ppc.c: Likewise.
1092 * elf32-s390.c: Likewise.
1093 * elf32-sh.c: Likewise.
1094 * elf32-sparc.c: Likewise.
1095 * elf32-v850.c: Likewise.
1096 * elf64-alpha.c: Likewise.
1097 * elf64-gen.c: Likewise.
1098 * elf64-ppc.c: Likewise.
1099 * elf64-s390.c: Likewise.
1100 * elf64-sparc.c: Likewise.
1101 * elf64-x86-64.c: Likewise.
1102 * elflink.h: Likewise.
1103 * elfxx-ia64.c: Likewise.
1106 * libbfd.c: Likewise.
1107 * pdp11.c: Likewise.
1108 * pe-mips.c: Likewise.
1109 * peicode.h: Likewise.
1111 * xcofflink.c: Likewise.
1113 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
1115 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
1118 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
1121 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
1122 Consolidate error messages, and split long messages to two lines.
1124 2001-09-20 John Reiser <jreiser@BitWagon.com>
1126 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
1127 and info->allow_shlib_undefined.
1128 * elf32-cris.c: Likewise.
1129 * elf32-hppa.c: Likewise.
1130 * elf32-m68k.c: Likewise.
1131 * elf32-mips.c: Likewise.
1132 * elf32-ppc.c: Likewise.
1133 * elf32-s390.c: Likewise.
1134 * elf32-sh.c: Likewise.
1135 * elf32-sparc.c: Likewise.
1136 * elf64-alpha.c: Likewise.
1137 * elf64-hppa.c: Likewise.
1138 * elf64-ppc.c: Likewise.
1139 * elf64-s390.c: Likewise.
1140 * elf64-sparc.c: Likewise.
1141 * elf64-x86-64.c: Likewise.
1142 * elfxx-ia64.c: Likewise.
1144 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1146 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
1147 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1148 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
1149 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
1150 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
1151 (bfd_default_scan): Use ISDIGIT instead of isdigit.
1152 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
1153 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
1154 isxdigit/isdigit/islower.
1155 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
1156 (mangle_name): Use ISALNUM instead of isalnum.
1157 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
1158 (scan): Use ISDIGIT instead of isdigit.
1159 * hosts/alphavms.h: Don't include <ctype.h>.
1160 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
1161 (ieee_object_p): Use TOUPPER instead of toupper.
1162 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
1163 (ihex_bad_byte): Use ISPRINT instead of isprint.
1164 * merge.c: Don't include <ctype.h>.
1165 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
1166 (oasys_write_sections): Use ISDIGIT instead of isdigit.
1167 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
1168 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1169 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
1170 (mangle_name): Use ISALNUM instead of isalnum.
1171 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
1172 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
1173 isupper/islower/isdigit.
1174 (som_decode_symclass): Use TOUPPER instead of toupper.
1175 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
1176 (srec_bad_byte): Use ISPRINT instead of isprint.
1177 (srec_scan): Use ISSPACE instead of isspace.
1178 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
1179 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
1180 * syms.c: Include "safe-ctype.h"
1181 (islower, toupper): Remove macro definitions.
1182 (bfd_decode_symclass): Use TOUPPER instead of toupper.
1183 * vms-gsd.c: Don't include <ctype.h>.
1184 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
1185 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
1187 * vms-tir.c: Don't include <ctype.h>.
1189 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1191 * libbfd.c (bfd_bread): New function replacing bfd_read without
1192 redundant params. Allow reads up to (size_t) -2 in length.
1193 (bfd_bwrite): Similarly for bfd_write.
1194 (real_read): Return a size_t.
1195 (bfd_read): Call bfd_bread.
1196 (bfd_write): Call bfd_bwrite.
1197 (warn_deprecated): New function to annoy everybody.
1198 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
1199 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
1200 (bfd_read, bfd_write): Define as macro.
1201 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
1202 likewise for bfd_write. Ensure function args are correct size by
1203 using casts or local vars. In some cases, remove unnecessary
1204 casts. Formatting fixes, in some cases removing a large expression
1205 from function args by using a local var. Replace CONST with const.
1206 Modify variable types to avoid warings. Use casts to avoid
1207 warnings when using negative numbers in unsigned expressions.
1208 * aout-adobe.c: Likewise.
1209 * aout-arm.c: Likewise.
1210 * aout-cris.c: Likewise.
1211 * aout-encap.c: Likewise.
1212 * aout-ns32k.c: Likewise.
1213 * aout-target.h: Likewise.
1214 * aout-tic30.c: Likewise.
1215 * aoutf1.h: Likewise.
1216 * aoutx.h: Likewise.
1217 * archive.c: Likewise.
1218 * archures.c: Likewise.
1219 * bfd-in.h: Likewise.
1221 * binary.c: Likewise.
1223 * cache.c: Likewise.
1224 * cisco-core.c: Likewise.
1225 * coff-a29k.c: Likewise.
1226 * coff-alpha.c: Likewise.
1227 * coff-arm.c: Likewise.
1228 * coff-h8300.c: Likewise.
1229 * coff-h8500.c: Likewise.
1230 * coff-i386.c: Likewise.
1231 * coff-i860.c: Likewise.
1232 * coff-i960.c: Likewise.
1233 * coff-ia64.c: Likewise.
1234 * coff-m68k.c: Likewise.
1235 * coff-m88k.c: Likewise.
1236 * coff-mcore.c: Likewise.
1237 * coff-mips.c: Likewise.
1238 * coff-ppc.c: Likewise.
1239 * coff-rs6000.c: Likewise.
1240 * coff-sh.c: Likewise.
1241 * coff-sparc.c: Likewise.
1242 * coff-stgo32.c: Likewise.
1243 * coff-tic30.c: Likewise.
1244 * coff-tic54x.c: Likewise.
1245 * coff-tic80.c: Likewise.
1246 * coff-w65.c: Likewise.
1247 * coff-z8k.c: Likewise.
1248 * coff64-rs6000.c: Likewise.
1249 * coffcode.h: Likewise.
1250 * coffgen.c: Likewise.
1251 * cofflink.c: Likewise.
1252 * coffswap.h: Likewise.
1253 * corefile.c: Likewise.
1254 * cpu-arc.c: Likewise.
1255 * cpu-h8300.c: Likewise.
1256 * cpu-h8500.c: Likewise.
1257 * cpu-i960.c: Likewise.
1258 * cpu-ia64-opc.c: Likewise.
1259 * cpu-ns32k.c: Likewise.
1260 * cpu-pdp11.c: Likewise.
1261 * cpu-pj.c: Likewise.
1262 * cpu-sh.c: Likewise.
1263 * cpu-w65.c: Likewise.
1264 * cpu-z8k.c: Likewise.
1265 * dwarf1.c: Likewise.
1266 * dwarf2.c: Likewise.
1267 * ecoff.c: Likewise.
1268 * ecofflink.c: Likewise.
1269 * ecoffswap.h: Likewise.
1270 * elf-bfd.h: Likewise.
1271 * elf-hppa.h: Likewise.
1272 * elf-m10200.c: Likewise.
1273 * elf-m10300.c: Likewise.
1275 * elf32-arc.c: Likewise.
1276 * elf32-arm.h: Likewise.
1277 * elf32-avr.c: Likewise.
1278 * elf32-cris.c: Likewise.
1279 * elf32-fr30.c: Likewise.
1280 * elf32-gen.c: Likewise.
1281 * elf32-h8300.c: Likewise.
1282 * elf32-hppa.c: Likewise.
1283 * elf32-i370.c: Likewise.
1284 * elf32-i386.c: Likewise.
1285 * elf32-i860.c: Likewise.
1286 * elf32-m32r.c: Likewise.
1287 * elf32-m68k.c: Likewise.
1288 * elf32-mcore.c: Likewise.
1289 * elf32-mips.c: Likewise.
1290 * elf32-openrisc.c: Likewise.
1291 * elf32-pj.c: Likewise.
1292 * elf32-ppc.c: Likewise.
1293 * elf32-s390.c: Likewise.
1294 * elf32-sh-lin.c: Likewise.
1295 * elf32-sh.c: Likewise.
1296 * elf32-sparc.c: Likewise.
1297 * elf32-v850.c: Likewise.
1298 * elf64-alpha.c: Likewise.
1299 * elf64-hppa.c: Likewise.
1300 * elf64-mips.c: Likewise.
1301 * elf64-ppc.c: Likewise.
1302 * elf64-s390.c: Likewise.
1303 * elf64-sparc.c: Likewise.
1304 * elf64-x86-64.c: Likewise.
1305 * elfarm-nabi.c: Likewise.
1306 * elfcode.h: Likewise.
1307 * elfcore.h: Likewise.
1308 * elflink.c: Likewise.
1309 * elflink.h: Likewise.
1310 * elfxx-ia64.c: Likewise.
1311 * elfxx-target.h: Likewise.
1312 * format.c: Likewise.
1314 * hp300hpux.c: Likewise.
1315 * hppabsd-core.c: Likewise.
1316 * hpux-core.c: Likewise.
1317 * i386aout.c: Likewise.
1318 * i386dynix.c: Likewise.
1319 * i386linux.c: Likewise.
1320 * i386lynx.c: Likewise.
1321 * i386mach3.c: Likewise.
1322 * i386msdos.c: Likewise.
1323 * i386os9k.c: Likewise.
1326 * irix-core.c: Likewise.
1327 * libaout.h: Likewise.
1328 * libbfd-in.h: Likewise.
1329 * libbfd.c: Likewise.
1330 * libcoff-in.h: Likewise.
1331 * libecoff.h: Likewise.
1332 * libieee.h: Likewise.
1333 * libnlm.h: Likewise.
1334 * libpei.h: Likewise.
1335 * libxcoff.h: Likewise.
1336 * linker.c: Likewise.
1337 * lynx-core.c: Likewise.
1338 * m68klinux.c: Likewise.
1339 * merge.c: Likewise.
1340 * mipsbsd.c: Likewise.
1341 * netbsd-core.c: Likewise.
1343 * nlm32-alpha.c: Likewise.
1344 * nlm32-i386.c: Likewise.
1345 * nlm32-ppc.c: Likewise.
1346 * nlm32-sparc.c: Likewise.
1347 * nlmcode.h: Likewise.
1348 * nlmswap.h: Likewise.
1349 * ns32k.h: Likewise.
1350 * oasys.c: Likewise.
1351 * opncls.c: Likewise.
1352 * osf-core.c: Likewise.
1353 * pc532-mach.c: Likewise.
1354 * pdp11.c: Likewise.
1355 * pe-mips.c: Likewise.
1356 * peXXigen.c: Likewise.
1357 * peicode.h: Likewise.
1358 * ppcboot.c: Likewise.
1359 * ptrace-core.c: Likewise.
1360 * reloc.c: Likewise.
1361 * reloc16.c: Likewise.
1362 * riscix.c: Likewise.
1363 * rs6000-core.c: Likewise.
1364 * sco5-core.c: Likewise.
1365 * section.c: Likewise.
1367 * sparclinux.c: Likewise.
1368 * sparclynx.c: Likewise.
1370 * stabs.c: Likewise.
1371 * sunos.c: Likewise.
1373 * targets.c: Likewise.
1374 * tekhex.c: Likewise.
1375 * trad-core.c: Likewise.
1376 * versados.c: Likewise.
1377 * vms-gsd.c: Likewise.
1378 * vms-hdr.c: Likewise.
1379 * vms-misc.c: Likewise.
1380 * vms-tir.c: Likewise.
1383 * xcofflink.c: Likewise.
1384 * bfd-in2.h: Regenerate.
1385 * libbfd.h: Regenerate.
1386 * libcoff.h: Regenerate.
1388 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
1389 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
1390 (ufile_ptr): Define.
1391 (bfd_tell): Return a ufile_ptr.
1392 * libbfd.c (bfd_tell): Likewise.
1393 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
1395 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
1396 * aoutf1.h: Likewise.
1398 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
1399 larger than unsigned long can represent.
1401 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
1402 size overflows size_t.
1403 (bfd_realloc): Likewise.
1404 (bfd_zmalloc): Likewise.
1405 * opncls.c (bfd_alloc): Likewise.
1406 (bfd_zalloc): Likewise.
1407 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1408 (bfd_alloc, bfd_zalloc): Update.
1410 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1412 (bfd_get_signed_8): Likewise.
1413 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1414 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1415 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1416 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1417 * libaout.h: Likewise define and use here.
1418 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1419 * aout-arm.c: Likewise.
1420 * aout-encap.c: Likewise.
1421 * aout-ns32k.c: Likewise.
1422 * aout-tic30.c: Likewise.
1423 * aoutf1.h: Likewise.
1424 * aoutx.h: Likewise.
1426 * coff-alpha.c: Likewise.
1427 * coff-h8300.c: Likewise.
1428 * coff-h8500.c: Likewise.
1429 * coff-i960.c: Likewise.
1430 * coff-ia64.c: Likewise.
1431 * coff-m88k.c: Likewise.
1432 * coff-mips.c: Likewise.
1433 * coff-ppc.c: Likewise.
1434 * coff-rs6000.c: Likewise.
1435 * coff-sh.c: Likewise.
1436 * coff-sparc.c: Likewise.
1437 * coff-stgo32.c: Likewise.
1438 * coff-tic30.c: Likewise.
1439 * coff-tic80.c: Likewise.
1440 * coff-w65.c: Likewise.
1441 * coff-z8k.c: Likewise.
1442 * coff64-rs6000.c: Likewise.
1443 * coffgen.c: Likewise.
1444 * cofflink.c: Likewise.
1445 * coffswap.h: Likewise.
1446 * ecoff.c: Likewise.
1447 * ecoffswap.h: Likewise.
1449 * elf32-mips.c: Likewise.
1450 * elf64-mips.c: Likewise.
1451 * hp300hpux.c: Likewise.
1452 * i386dynix.c: Likewise.
1453 * i386lynx.c: Likewise.
1454 * i386msdos.c: Likewise.
1455 * i386os9k.c: Likewise.
1456 * libpei.h: Likewise.
1457 * nlm32-alpha.c: Likewise.
1458 * nlm32-i386.c: Likewise.
1459 * nlm32-ppc.c: Likewise.
1460 * nlmcode.h: Likewise.
1461 * nlmswap.h: Likewise.
1462 * oasys.c: Likewise.
1463 * pdp11.c: Likewise.
1464 * pe-mips.c: Likewise.
1465 * peXXigen.c: Likewise.
1466 * peicode.h: Likewise.
1467 * riscix.c: Likewise.
1468 * sunos.c: Likewise.
1469 * xcofflink.c: Likewise.
1470 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1471 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1472 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1473 equivalent H_PUT_* macro instead.
1474 (GETWORD, GETHALF, GETBYTE): Similarly.
1475 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1476 (GETWORD, GETHALF, GETBYTE): Likewise.
1477 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1479 * bfd-in.h (struct orl): Change "pos" to a union.
1480 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1481 (bsd_write_armap): Here too.
1482 (coff_write_armap): And here.
1483 * coff-rs6000.c (xcoff_write_armap_old): And here.
1484 (xcoff_write_one_armap_big): And here.
1485 (xcoff_write_armap_big): And here.
1486 * ecoff.c (_bfd_ecoff_write_armap): And here.
1487 * elf64-mips.c (mips_elf64_write_armap): And here.
1489 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1490 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1491 * elf32-h8300.c (elf32_h8_mach): Likewise.
1492 * elf32-mips.c (elf_mips_mach): Likewise.
1493 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1495 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1497 (aix386_core_vec): Typo fix.
1499 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1500 etc. to avoid redefined macro warning.
1501 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1502 (MY(fix_pcrel_26)): Likewise.
1503 * aout-ns32k.c (MY(put_reloc)): Likewise.
1504 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1505 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1506 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1508 * aout-encap.c: Include "file", not <file> for binutils headers.
1509 (encap_object_p): Half baked attempt to fix compile errors in
1510 code dealing with "magic".
1512 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1513 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1514 bfd_vma's rather than longs.
1515 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1516 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1517 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1519 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1520 Use unsigned comparisons.
1521 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1522 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1523 (_bfd_do_ns32k_reloc_contents): Likewise.
1524 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1525 (_bfd_ns32k_get_immediate): Likewise.
1526 (_bfd_ns32k_put_displacement): Likewise.
1527 (_bfd_ns32k_put_immediate): Likewise.
1528 (bfd_reloc_status_type): Likewise.
1530 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1532 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1533 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1534 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1536 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1537 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1538 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1540 (_bfd_elfcore_strndup): Likewise for "dup".
1541 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1542 "name" to avoid shadowing.
1543 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1544 definition of "off".
1545 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1546 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1548 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1550 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1552 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1554 (elf_link_input_bfd): Likewise.
1555 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1556 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1557 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1559 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1560 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1561 (sunos_write_dynamic_symbol): Remove unused vars.
1562 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1563 innermost "directory_name" and "file_name" vars.
1564 * tekhex.c (first_phase): Rename local var "type" to "stype".
1565 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1566 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1567 doing comparison at caller.
1568 (vms_esecflag_by_name): Likewise.
1569 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1570 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1571 (xcoff_write_global_symbol): Rename "p" param to "inf".
1573 * cisco-core.c: Add missing prototypes.
1574 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1575 (cisco_core_file_failing_signal): Likewise.
1576 (cisco_core_file_matches_executable_p): Likewise.
1577 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1578 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1579 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1580 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1582 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1583 thumb_glue_size and arm_glue_size.
1584 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1586 * coff64-rs6000.c: Group prototypes together.
1588 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1589 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1591 * cpu-arc.c: Add missing prototypes.
1592 * cpu-h8500.c: Likewise.
1593 * cpu-i960.c: Likewise.
1594 * cpu-pj.c: Likewise.
1595 * cpu-sh.c: Likewise.
1596 * cpu-w65.c: Likewise.
1597 * cpu-z8k.c: Likewise.
1598 * elf32-fr30.c: Likewise.
1599 * elf32-h8300.c: Likewise.
1600 * elf32-i370.c: Likewise.
1601 * hpux-core.c: Likewise.
1602 * versados.c: Likewise.
1604 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
1605 * cpu-h8500.c: Likewise.
1606 * cpu-i960.c: Likewise.
1607 * cpu-z8k.c: Likewise.
1609 * cpu-ia64-opc.c: Correct comment.
1611 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
1613 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
1615 (bfd_elf32_write_out_phdrs): Likewise.
1616 (bfd_elf64_write_out_phdrs): Likewise.
1617 (elf_linker_section_pointers): Change addend to bfd_vma.
1618 (_bfd_elf_find_pointer_linker_section): Likewise.
1619 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
1620 filepos to unsigned file_ptr.
1621 (_bfd_elfcore_strndup): Change max param to size_t.
1622 * elf.c (_bfd_elfcore_make_pseudosection): As above.
1623 (_bfd_elfcore_strndup): Likewise.
1624 (_bfd_elf_find_pointer_linker_section): Likewise.
1626 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
1627 insn and sym_value to ints.
1629 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
1631 (elfcore_read_notes): Likewise.
1633 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
1634 param from unsigned char to int.
1635 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
1636 for info_to_howto call.
1637 (add_dynamic_entry): Define macro.
1638 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
1640 * elf32-cris.c (add_dynamic_entry): Define macro.
1641 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
1643 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
1644 (elf32_h8_object_p): Likewise.
1645 (elf32_h8_merge_private_bfd_data): Likewise.
1646 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
1648 * elf32-hppa.c (add_dynamic_entry): Define macro.
1649 (elf32_hppa_size_dynamic_sections): Use it.
1650 * elf32-i370.c (add_dynamic_entry): Define macro.
1651 (i370_elf_size_dynamic_sections): Use it.
1652 (i370_noop): Make static.
1653 * elf32-i386.c (add_dynamic_entry): Define macro.
1654 (elf_i386_size_dynamic_sections): Use it.
1655 * elf32-m68k.c (add_dynamic_entry): Define macro.
1656 (elf_m68k_size_dynamic_sections): Use it.
1657 * elf32-ppc.c (add_dynamic_entry): Define macro.
1658 (ppc_elf_size_dynamic_sections): Use it.
1659 * elf32-s390.c (add_dynamic_entry): Define macro.
1660 (elf_s390_size_dynamic_sections): Use it.
1661 * elf64-alpha.c (add_dynamic_entry): Define macro.
1662 (elf64_alpha_size_dynamic_sections): Use it.
1663 * elf64-hppa.c (add_dynamic_entry): Define macro.
1664 (elf64_hppa_size_dynamic_sections): Use it.
1665 * elf64-ppc.c (add_dynamic_entry): Define macro.
1666 (ppc64_elf_size_dynamic_sections): Use it.
1667 * elf64-s390.c (add_dynamic_entry): Define macro.
1668 (elf_s390_size_dynamic_sections): Use it.
1669 * elf64-sparc.c (add_dynamic_entry): Define macro.
1670 (sparc64_elf_size_dynamic_sections): Use it.
1671 * elf64-x86-64.c (add_dynamic_entry): Define macro.
1672 (elf64_x86_64_size_dynamic_sections): Use it.
1673 * elfxx-ia64.c (add_dynamic_entry): Define macro.
1674 (elfNN_ia64_size_dynamic_sections): Use it.
1676 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
1677 (v850_elf_perform_relocation): Make "r_type" param unsigned.
1679 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
1680 false if the first malloc fails rather than going via error_return.
1682 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
1684 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
1686 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
1688 * elfxx-ia64.c (global_sym_index): Return a long.
1690 * ieee.c (get_symbol): Use int rather than char param.
1691 (ieee_slurp_sections): Move "section" var to inner blocks.
1692 (copy_expression): Don't init "value" to zero or worry about
1693 clearing to zero after using.
1694 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
1697 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
1700 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
1701 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
1703 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
1705 * pc532-mach.c (MYNSX): Delete.
1706 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
1707 (write_object_contents): Correct prototype.
1709 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
1710 than unsigned short.
1712 * section.c (bfd_set_section_contents): Remove redundant
1713 "offset < 0" test. Check that "count" doesn't overflow size_t.
1714 (bfd_get_section_contents): Likewise.
1716 * som.c (som_fixup_formats): Add missing braces.
1717 (som_reloc_addend): Pass a bfd_vma for "addend".
1719 * srec.c (srec_write_record): Pass "type" as an unsigned int.
1720 (srec_write_symbols): Remove an unnecessary var.
1722 * targets.c (_bfd_target_vector): Sort entries. Sort externs
1724 * configure.in: Sort to match. Bump version number.
1725 * configure: Regenerate.
1727 * tekhex.c (move_section_contents): Assert offset == 0.
1729 * versados.c (new_symbol_string): Constify arg.
1730 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
1731 (versados_get_symbol_info): Make static.
1732 (versados_print_symbol): Likewise.
1733 (versados_get_reloc_upper_bound): Likewise.
1734 (versados_canonicalize_reloc): Likewise.
1736 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
1738 * elflink.h (elf_link_input_bfd): Fix typo in error message.
1740 2001-09-17 H.J. Lu <hjl@gnu.org>
1742 * dwarf1.c (parse_die): Take a new arg for the end of the
1743 section. Return false if die is beyond the section.
1744 (parse_functions_in_unit): Pass the end of the section to
1746 (_bfd_dwarf1_find_nearest_line): Likewise.
1748 2001-09-14 Michael Rauch <mrauch@netbsd.org>
1750 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1751 just like R_SPARC_32.
1753 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1755 * configure.bfd: Add arm-openbsd target.
1757 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1759 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1760 Add support for mips64.
1762 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
1764 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1766 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
1768 * elf.c (prep_headers): Get the machine code from the elf
1770 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
1771 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
1772 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
1773 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
1774 * elf-arc.c (arc_elf_final_write_processing): Don't override
1775 e_machine, it's now properly set in prep_headers.
1776 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
1778 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
1779 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
1780 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
1781 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
1782 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
1783 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
1784 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
1785 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
1786 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
1787 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
1788 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
1789 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
1791 2001-09-11 Richard Henderson <rth@redhat.com>
1793 * elf64-alpha.c (elf64_alpha_section_flags): New.
1794 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
1796 2001-09-11 Richard Henderson <rth@redhat.com>
1798 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
1799 apply HINT relocations against dynamic symbols.
1801 2001-09-11 H.J. Lu <hjl@gnu.org>
1803 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
1805 2001-09-09 Richard Henderson <rth@redhat.com>
1807 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
1809 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1810 following a call to a near function.
1812 2001-09-08 Richard Henderson <rth@redhat.com>
1814 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1815 relocation errors. Fail gp-relative relocations against
1818 2001-09-08 Alan Modra <amodra@bigpond.net.au>
1820 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1821 as well as DEF_DYNAMIC in test for avoided copy relocs.
1822 (allocate_plt_and_got_and_discard_relocs): Likewise.
1823 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1824 (allocate_plt_and_got_and_discard_relocs): Likewise.
1826 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1828 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1831 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1833 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1835 (mips_elf64_howto_table_rel): Likewise.
1837 2001-09-05 Tom Rix <trix@redhat.com>
1839 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1840 and syscall symbols.
1841 (write_global_symbol) : Same.
1842 (bfd_xcoff_export_symbol): Remove unused syscall param.
1843 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1844 bfd_xcoff_import_symbol.
1846 * bfd-in2.h : Regenerate.
1848 2001-09-04 Richard Henderson <rth@redhat.com>
1850 * elf64-alpha.c (SKIP_HOWTO): New.
1851 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1852 Fix sizes of 16-bit mem format relocs.
1853 (elf64_alpha_reloc_map): Update to match.
1854 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1855 (elf64_alpha_relax_without_lituse): Likewise.
1856 (elf64_alpha_check_relocs): Handle GPREL16.
1857 (elf64_alpha_relocate_section): Likewise.
1858 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1859 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1860 * bfd-in2.h, libbfd.h: Rebuild.
1862 2001-09-04 Jeff Law <law@redhat.com>
1864 * elf32-h8300.c (elf32_h8_relax_section): New function.
1865 (elf32_h8_relax_delete_bytes): Likewise.
1866 (elf32_h8_symbol_address_p): Likewise.
1867 (elf32_h8_get_relocated_section_contents): Likewise.
1868 (bfd_elf32_bfd_relax_section): Define.
1869 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1871 * elf32-h8300.c (special): New function.
1872 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1874 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1875 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1876 Fix minor problems with 8bit and 16bit PC relative relocations.
1878 2001-09-01 Andreas Jaeger <aj@suse.de>
1880 * vms-tir.c: Add missing prototypes.
1881 * vms-hdr.c: Likewise.
1882 * vms-gsd.c: Likewise.
1883 * vms-misc.c: Likewise.
1885 2001-08-31 H.J. Lu <hjl@gnu.org>
1887 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1888 with bad relocation.
1890 2001-08-31 Eric Christopher <echristo@redhat.com>
1891 Jason Eckhardt <jle@redhat.com>
1893 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1894 mips32_4k and mips64.
1895 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1896 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1897 * bfd/cpu-mips.c: Ditto.
1898 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1899 * bfd/bfd-in2.h: Regenerate.
1901 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1903 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1904 value into R_ALPHA_RELATIVE's addend.
1905 (elf64_alpha_finish_dynamic_symbol): Likewise.
1907 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1909 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1910 recomputed addend during relocatable link if not USE_REL.
1912 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1915 2001-08-30 H.J. Lu <hjl@gnu.org>
1917 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1919 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1920 relocations for weak definitions.
1922 2001-08-30 H.J. Lu <hjl@gnu.org>
1924 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1925 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1926 * Makefile.in: Rebuild.
1928 2001-08-30 H.J. Lu <hjl@gnu.org>
1930 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1931 dynamic relocation for undefined weak symbols when creating
1932 executables. Check h->root.root.type, instead of h->root.type.
1934 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1936 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1937 default from coff to elf.
1939 2001-08-29 Jeff Law <law@redhat.com>
1941 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1943 (h8_reloc_map): Similarly.
1944 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1945 Add support for PC relative relocations.
1947 * elf32-h8300.c: Put all prototypes together.
1948 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1949 (elf32_h8_final_link_relocate): New function for linker.
1950 (elf32_h8_relocate_section): Similarly.
1951 (elf_backend_relocate_section): Define.
1953 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1954 (h8300_scan): Handle architecture:machine encodings typically
1955 found in linker scripts.
1956 * elf.c (prep_headers): Do not try to do H8 machine recognition
1958 * elf32-h8300.c: Add some missing prototypes.
1959 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1960 (elf32_h8_object_p): Similarly.
1962 2001-08-29 Tom Rix <trix@redhat.com>
1964 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1965 does not follow a XTY_SD.
1967 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1969 * targmatch.sed: Delete case statements.
1970 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1973 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1975 * Makefile.am (elf32-h8300.lo): New target.
1976 * config.bfd (h8300*-*-elf): New case.
1977 * configure.in (bfd_elf32_h8300_vec): New case.
1978 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1979 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1980 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1981 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1982 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1983 * elf32-h8300.c: New file.
1984 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1986 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1988 * sparclynx.c: Add missing prototypes.
1989 * coff-mcore.c: Add missing prototypes.
1990 * elf32-pj.c: Add missing prototypes.
1991 * nlm32-sparc.c: Add missing prototypes.
1992 * oasys.c: Add missing prototypes.
1993 * pdp11.c: Add missing prototypes.
1994 * pe-mips.c: Add missing prototypes.
1995 * riscix.c: Add missing prototypes.
1997 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1999 * elf32-i386.c: Add missing prototypes.
2000 * elf32-ppc.c: Likewise.
2001 * elf32-sh-lin.c: Likewise.
2002 * elfarm-nabi.c: Likewise.
2004 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2006 * elf32-i386.c (elf_i386_grok_prstatus): New function.
2007 (elf_i386_grok_psinfo): New function.
2008 (elf_backend_grok_prstatus): Define.
2009 (elf_backend_grok_psinfo): Likewise.
2010 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
2011 (ppc_elf_grok_psinfo): New function.
2012 (elf_backend_grok_prstatus): Define.
2013 (elf_backend_grok_psinfo): Likewise.
2014 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
2015 (elf32_shlin_grok_psinfo): New function.
2016 (elf_backend_grok_prstatus): Define.
2017 (elf_backend_grok_psinfo): Likewise.
2018 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
2019 (elf32_arm_nabi_grok_psinfo): New function.
2020 (elf_backend_grok_prstatus): Define.
2021 (elf_backend_grok_psinfo): Likewise.
2023 2001-08-27 H.J. Lu <hjl@gnu.org>
2025 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
2027 (mips_elf_calculate_relocation): Create dynamic relocation for
2028 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
2031 2001-08-27 H.J. Lu <hjl@gnu.org>
2033 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
2034 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
2035 (_bfd_elf32_mips_grok_prstatus): Likewise.
2036 (_bfd_elf32_mips_grok_psinfo): Likewise.
2037 (_bfd_mips_elf_hide_symbol): Make it static and cast to
2038 `struct mips_elf_link_hash_entry *'.
2039 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
2041 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2043 * mipsbsd.c: Add missing prototypes.
2044 * hp300hpux.c: Add missing prototypes.
2045 * i386aout.c: Add missing prototypes.
2046 * i386lynx.c: Add missing prototypes.
2047 * i386mach3.c: Add missing prototypes.
2048 * i386msdos.c: Add missing prototypes.
2049 * i386os9k.c: Add missing prototypes.
2051 2001-08-27 Linus Nordberg <linus@swox.se>
2052 Torbjorn Granlund <tege@swox.com>
2053 Staffan Ulfberg <staffanu@swox.se>
2054 Alan Modra <amodra@bigpond.net.au>
2056 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
2057 targ64_selvecs for 32 bit powerpc targets.
2058 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
2059 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
2061 * Makefile.in: Regenerate.
2062 * configure.in: Add elf64_powerpc vecs.
2063 * configure: Regenerate.
2064 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
2065 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
2066 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
2067 * elf64-ppc.c: New file.
2068 * reloc.c: Add powerpc64 relocs.
2069 * libbfd.h: Regenerate.
2070 * bfd-in2.h: Regenerate.
2072 2001-08-27 Andreas Schwab <schwab@suse.de>
2074 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
2075 reloc is against read-only section.
2076 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
2077 looking up section names for DT_TEXTREL.
2078 (elf32_m68k_reloc_type_class): New function.
2079 (elf_backend_reloc_type_class): Define.
2081 2001-08-27 Andreas Jaeger <aj@suse.de>
2083 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2084 reloc is against read-only section.
2085 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2086 looking up section names for DT_TEXTREL.
2087 (elf_s390_reloc_type_class): New.
2088 (elf_backend_reloc_type_class): Define.
2090 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2091 reloc is against read-only section.
2092 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2093 looking up section names for DT_TEXTREL.
2094 (elf_s390_reloc_type_class): New.
2095 (elf_backend_reloc_type_class): Define.
2097 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
2098 is against read-only section.
2099 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2100 looking up section names for DT_TEXTREL.
2101 (ppc_elf_reloc_type_class): New.
2102 (elf_backend_reloc_type_class): Define.
2104 2001-08-26 Andreas Jaeger <aj@suse.de>
2106 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
2107 reloc is against read-only section.
2108 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
2109 looking up section names for DT_TEXTREL.
2110 (elf_cris_reloc_type_class): New.
2111 (elf_backend_reloc_type_class): Define.
2113 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
2114 against read-only section.
2115 (elf_backend_reloc_type_class): Define.
2116 (sh_elf_reloc_type_class): New.
2117 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2118 looking up section names for DT_TEXTREL.
2120 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
2121 reloc is against read-only section.
2122 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
2123 looking up section names for DT_TEXTREL.
2124 (elf32_arm_reloc_type_class): New.
2125 (elf_backend_reloc_type_class): Define.
2127 2001-08-25 Andreas Jaeger <aj@suse.de>
2129 * oasys.c: Add missing prototypes.
2131 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
2132 attribute for parameter.
2133 * elf.c (_bfd_elf_reloc_type_class): Likewise.
2135 * versados.c (get_4): Make static.
2136 (get_10): Make static.
2137 Add missing prototypes.
2138 (process_esd): Fix call to versados_new_symbol.
2140 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
2142 * coff-a29k.c: Add missing prototypes.
2143 * coff-apollo.c: Add missing prototypes.
2144 * coff-arm.c: Add missing prototypes.
2145 * coff-i860.c: Add missing prototypes.
2146 * coff-rs6000.c: Add missing prototypes.
2147 * coff-tic80.c: Add missing prototypes.
2148 * elf-m10200.c: Add missing prototypes.
2149 * elf-m10300.c: Add missing prototypes.
2150 * elf32-arm.h: Add missing prototypes.
2151 * elf32-d10v.c: Add missing prototypes.
2152 * elf32-m32r.c: Add missing prototypes.
2153 * elf32-mcore.c: Add missing prototypes.
2154 * elf32-openrisc.c: Add missing prototypes.
2155 * elf32-sh.c: Add missing prototypes.
2156 * elf32-sparc.c: Add missing prototypes.
2157 * elf32-v850.c: Add missing prototypes.
2158 * elfarm-nabi.c: Add missing prototypes.
2159 * elfarm-oabi.c: Add missing prototypes.
2161 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2163 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
2164 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
2166 2001-08-24 H.J. Lu <hjl@gnu.org>
2168 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
2171 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
2173 * elf-bfd.h (elf_hash_table): Revert definition.
2174 (is_elf_hash_table): New macro.
2175 * elflink.h (elf_link_add_object_symbols): Test
2176 is_elf_hash_table before accessing ELF only fields in hash
2178 (elf_link_create_dynamic_sections): Fail if not using an ELF
2180 (elf_add_dynamic_entry): Fail if not using an ELF hash
2182 (elf_link_record_local_dynamic_symbol): Fail if not using an
2184 (size_dynamic_sections): Fail if not using an ELF hash
2186 (elf_adjust_dynamic_symbol): Fail if not using an ELF
2188 (elf_bfd_final_link): Fail if not using an ELF hash
2191 2001-08-24 H.J. Lu <hjl@gnu.org>
2193 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
2194 table is not an ELF linker hash table.
2196 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
2197 table type to bfd_link_elf_hash_table.
2199 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
2202 * linker.c (_bfd_link_hash_table_init): Set the linker hash
2203 table type to bfd_link_generic_hash_table.
2205 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2207 * bfd.c (bfd_alt_mach_code): New function.
2208 * bfd-in2.h: Rebuilt.
2210 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2212 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
2213 `type' field in the hash entry when deciding whether to follow a
2216 2001-08-24 Jakub Jelinek <jakub@redhat.com>
2218 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
2220 (elf_link_sort_relocs): Adjust accordingly.
2222 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
2223 (elf64_alpha_check_relocs): Set it if section this reloc is against
2224 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
2226 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
2227 is is against read-only section.
2228 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
2229 check section names.
2230 (elf64_alpha_reloc_type_class): New.
2231 (elf_backend_reloc_type_class): Define.
2233 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2235 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
2238 2001-08-23 Andreas Jaeger <aj@suse.de>
2240 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
2241 the reloc is against read-only section.
2242 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
2243 of looking up section names for DT_TEXTREL.
2244 (elf64_x86_64_reloc_type_class): New.
2245 (elf_backend_reloc_type_class): Define.
2247 2001-08-23 H.J. Lu <hjl@gnu.org>
2249 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
2250 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
2252 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
2253 bfd_print_symbol_vandf.
2254 * coffgen.c (coff_print_symbol): Likewise.
2255 * elf.c (bfd_elf_print_symbol): Likewise.
2256 * ieee.c (ieee_print_symbol): Likewise.
2257 * nlmcode.h (nlm_print_symbol): Likewise.
2258 * oasys.c (oasys_print_symbol): Likewise.
2259 * pdp11.c (NAME(aout,print_symbol)): Likewise.
2260 * som.c (som_print_symbol): Likewise.
2261 * srec.c (srec_print_symbol): Likewise.
2262 * tekhex.c (tekhex_print_symbol): Likewise.
2263 * versados.c (versados_print_symbol): Likewise.
2264 * vms.c (vms_print_symbol): Likewise.
2266 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
2267 with bfd_fprintf_vma.
2268 (bfd_elf_print_symbol): Likewise.
2269 * syms.c (bfd_print_symbol_vandf): Likewise.
2271 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2273 * aoutf1.h (sunos_write_object_contents): Silence compile time
2275 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
2277 * bout.c: Add missing function prototypes. Fix formatting.
2278 * coff-z8k.c: Add missing function prototypes. Fix formatting.
2279 * coff-w65.c: Add missing function prototypes. Fix formatting.
2280 * coff-h8500.c: Add missing function prototypes. Fix formatting.
2281 * coff-h8300.c: Add missing function prototypes. Fix formatting.
2282 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
2283 * coff-tic30.c: Add missing function prototypes. Fix formatting.
2284 * coff-m68k.c: Add missing function prototypes. Fix formatting.
2285 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
2286 * coff-sh.c: Add missing function prototypes. Fix formatting.
2288 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2290 * elf-bfd.h (enum elf_reloc_type_class): New.
2291 (struct elf_backend_data): Add elf_backend_reloc_type_class.
2292 (_bfd_elf_reloc_type_class): New.
2293 * elfxx-target.h (elf_backend_reloc_type_class): Define.
2294 (elfNN_bed): Add elf_backend_reloc_type_class.
2295 * elf.c (_bfd_elf_reloc_type_class): New.
2296 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
2297 is against read-only section.
2298 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
2299 looking up section names for DT_TEXTREL.
2300 (elf_i386_reloc_type_class): New.
2301 (elf_backend_reloc_type_class): Define.
2302 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
2303 reloc is against read-only section.
2304 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
2305 looking up section names for DT_TEXTREL.
2306 (elf32_sparc_reloc_type_class): New.
2307 (elf_backend_reloc_type_class): Define.
2308 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
2309 reloc is against read-only section.
2310 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2311 looking up section names for DT_TEXTREL.
2312 (sparc64_elf_reloc_type_class): New.
2313 (elf_backend_reloc_type_class): Define.
2314 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
2315 (elfNN_ia64_hash_table_create): Clear ia64_info.
2316 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
2318 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
2319 instead of looking up section names for DT_TEXTREL.
2320 (elfNN_ia64_reloc_type_class): New.
2321 (elf_backend_reloc_type_class): Define.
2322 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
2323 (struct elf_link_sort_rela): New.
2324 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
2325 (elf_bfd_final_link): Call elf_link_sort_relocs.
2326 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
2329 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2331 * configure.in (x86-bsdi): No corefile support.
2332 * configure: Regenerate.
2334 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
2336 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
2339 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
2341 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
2342 the alignment of dwarf2 linkonce sections to 0.
2343 * coff-sto32.c: Likewise.
2345 2001-08-20 Andreas Jaeger <aj@suse.de>
2347 * coff-sparc.c: Add missing prototypes.
2348 * elf32-s390.c: Likewise.
2349 * elf32-i960.c: Likewise.
2350 * aout-target.h: Likewise.
2352 2001-08-20 H.J. Lu <hjl@gnu.org>
2354 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
2355 (elf_num_section_syms): New for num_section_syms.
2357 * elf.c (elf_map_symbols): Set num_section_syms.
2358 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
2359 the section symbol index.
2361 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
2363 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
2364 select the generic has table creator. All elf backends need elf
2365 specific fields in the hash table.
2367 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2369 * archive.c (offsetof): Remove define.
2372 * sysdep.h (offsetof): Define.
2374 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2376 * bfd.c (bfd_get_gp_size): Return an unsigned int.
2377 (bfd_set_gp_size): Make param unsigned.
2378 * bfd-in2.h: Regenerate.
2379 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
2380 than calling bfd_get_gp_size.
2381 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
2382 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2384 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2386 * linker.c (default_fill_link_order): Handle four byte fill value.
2388 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2390 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
2392 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
2394 * elf64-mips.c (UNUSED_RELOC): Define.
2395 (mips_elf64_howto_table_rel): Use it.
2396 (mips_elf64_howto_table_rela): Here too.
2397 (mips_elf64_write_relocs): Fix signed/unsigned warning.
2399 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
2401 * coffgen.c (coff_print_symbol): Fix warnings.
2402 (coff_find_nearest_line): Likewise.
2403 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2404 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
2405 * format.c (bfd_check_format_matches): Likewise.
2406 (bfd_set_format): Likewise.
2407 * coff-ia64.c: Add missing prototypes.
2408 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2409 signed to silence warnings.
2410 (elf64_alpha_relocate_section): Likewise.
2411 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2412 (elf64_alpha_add_symbol_hook): Likewise.
2413 (elf64_alpha_final_link): Likewise.
2414 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2415 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2416 (elf64_alpha_size_got_sections): Likewise.
2417 * elfxx-ia64.c: Add missing prototypes.
2418 (elfNN_ia64_relocate_section): Fix warning.
2419 (elfNN_ia64_unwind_entry_compare): Make params const.
2421 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2423 * config.bfd (targ64_selvecs): New.
2424 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2426 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2427 (BFD_DEFAULT_TARGET_SIZE): New.
2428 (BFD_ARCH_SIZE): Comment.
2429 * configure.in (target_size): New. Set instead of target64 in
2430 selvecs case statement. Set target64 from it.
2431 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2432 * bfd-in2.h: Regenerate.
2433 * configure: Regenerate.
2435 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2437 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2438 (bfd_errmsgs): Add corresponding message.
2439 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2440 finding an archive that contains different format object files.
2441 Return bfd_error_wrong_object_format for this case.
2442 * format.c: Formatting fixes. s/CONST/const/.
2443 (bfd_check_format_matches): Accept archives that give
2444 bfd_error_wrong_object_format if no full match is found. Tidy
2445 code handling matching_vector. Don't return a pointer to freed
2446 memory in `matching'. Handle ambiguous matches as for partial
2448 * bfd-in2.h: Regenerate.
2450 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2452 * libieee.h (common_header_type): Add last_byte field.
2454 * ieee.c: Add missing prototypes. Some format fixes.
2455 (struct output_buffer_struct): Move for availability to prototypes.
2456 (ieee_part_after): New function.
2457 (ieee_slurp_debug): Use it here.
2458 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2459 ieee_part_after to set last_byte to one past end of current part.
2461 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2463 (parse_expression): Don't go beyond the end of the current part.
2464 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2465 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2466 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2467 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2468 ieee_set_section_contents, ieee_write_object_contents,
2469 ieee_make_empty_symbol): Make static.
2470 (ieee_archive_p): Correct comments regarding bfd_read.
2471 (ieee_object_p): Similarly.
2472 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2473 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2474 input_bfd, output_bfd, output_buffer.
2475 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2476 do_with_relocs, ie. as a symbol for relocatable files.
2477 (ieee_vec): Add comments showing functions referenced by macros.
2479 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2481 * aout-tic30.c: Add missing prototypes. Fix formatting.
2482 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2483 * peXXigen.c: Add missining prototypes. Fix formatting.
2484 * aout-adobe.c: Add missining prototypes. Fix formatting.
2486 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2488 * elf32-v850.c: Add missing function prototypes.
2489 Fix some formatting.
2491 * cpu-v850.c: Add missing function prototype.
2492 Fix some formatting.
2494 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2496 * elf-bfd.h (struct elf_backend_data): Add new fields
2497 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2498 (bfd_elf_sprintf_vma): Rename function prototype to
2499 '_bfd_elf_sprintf_vma'.
2500 (bfd_elf_fprintf_vma): Rename function prototype to
2501 '_bfd_elf_fprintf_vma'.
2502 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2503 directly, instead indirect via the elf_backend_data structure.
2504 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2505 instead indirect via the elf_backend_data structure.
2506 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2507 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2508 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2510 (elf_backend_fprintf_vma): Initialise if not already defined.
2511 (struct elf_backend_data): Initialise the
2512 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2514 2001-08-10 Andreas Jaeger <aj@suse.de>
2516 * elf64-sparc.c: Add missing prototypes.
2517 * elf32-cris.c: Likewise.
2518 * elf32-i370.c: Likewise.
2519 * elf64-hppa.c: Likewise.
2520 * elf64-s390.c: Likewise.
2522 2001-08-10 Andreas Jaeger <aj@suse.de>
2524 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2525 Add prototypes where needed.
2527 2001-08-10 H.J. Lu <hjl@gnu.org>
2529 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2530 (bfd_fprintf_vma): Likewise.
2532 2001-08-10 H.J. Lu <hjl@gnu.org>
2534 * bfd.c (bfd_sprintf_vma): Don't return void.
2535 (bfd_fprintf_vma): Likewise.
2537 2001-08-10 Andreas Jaeger <aj@suse.de>
2539 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2541 * configure: Regenerate.
2543 2001-08-10 Alan Modra <amodra@bigpond.net.au>
2545 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2546 warning if not BFD64. Add braces so emacs auto format works.
2547 (bfd_elf_fprintf_vma): Likewise.
2549 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2551 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2552 param to agree with libxcoff.h.
2553 (xcoff_swap_ldhdr_out): Likewise.
2554 (xcoff_swap_ldsym_in): Likewise.
2555 (xcoff_swap_ldsym_out): Likewise.
2556 (xcoff_swap_ldrel_in): Likewise.
2557 (xcoff_swap_ldrel_out): Likewise.
2558 (xcoff_create_csect_from_smclas): Likewise.
2559 * coff64-rs6000.c: Add missing prototypes.
2560 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2562 (xcoff64_swap_ldhdr_out): Likewise.
2563 (xcoff64_swap_ldsym_in): Likewise.
2564 (xcoff64_swap_ldsym_out): Likewise.
2565 (xcoff64_swap_ldrel_in): Likewise.
2566 (xcoff64_swap_ldrel_out): Likewise.
2567 (xcoff64_ppc_relocate_section): Make static.
2568 (xcoff64_slurp_armap): Likewise.
2569 (xcoff64_archive_p): Likewise.
2570 (xcoff64_openr_next_archived_file): Likewise.
2571 (xcoff64_sizeof_headers): Likewise.
2572 (xcoff64_is_lineno_count_overflow): Likewise.
2573 (xcoff64_is_reloc_count_overflow): Likewise.
2574 (xcoff64_loader_symbol_offset): Likewise.
2575 (xcoff64_loader_reloc_offset): Likewise.
2576 * elf64-gen.c: Add missing prototypes.
2578 2001-08-09 H.J. Lu <hjl@gnu.org>
2580 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2581 (bfd_elf_fprintf_vma): Likewise.
2583 2001-08-09 H.J. Lu <hjl@gnu.org>
2585 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2588 * bfd-in2.h: Regenerated.
2590 2001-08-09 H.J. Lu <hjl@gnu.org>
2592 * bfd-in.h (bfd_sprintf_vma): New prototype.
2593 (bfd_fprintf_vma): Likewise.
2594 (bfd_elf_sprintf_vma): Likewise.
2595 (bfd_elf_fprintf_vma): Likewise.
2596 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2597 * bfd-in2.h: Regenerated.
2599 * bfd.c (bfd_sprintf_vma): New. Defined.
2600 (bfd_fprintf_vma): Likewise.
2602 * elf.c (bfd_elf_sprintf_vma): New. Defined.
2603 (bfd_elf_fprintf_vma): Likewise.
2605 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2607 * coff-rs6000.c: Add missing prototypes.
2608 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
2609 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
2610 xcoff_loader_reloc_offset): Make static.
2611 * dwarf1.c: Add missing prototypes.
2612 * dwarf2.c: Add missing prototypes.
2613 (struct abbrev_info): Move definition.
2614 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
2615 * elf.c: Add missing prototypes.
2616 * elf32-gen.c: Likewise.
2617 * elf32-i386.c: Likewise.
2618 * elf32-ppc.c: Likewise.
2619 (ppc_elf_sort_rela): Use PTR instead of "void *".
2620 * elflink.h: Add missing prototypes. Formatting fixes.
2621 * merge.c: Add missing prototypes.
2622 (last4_eq): Use PTR instead of "void *".
2623 (last_eq): Likewise.
2624 * syms.c: Add missing prototypes.
2626 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2628 * bfd.c: Fix formatting.
2629 * bfd-in2.h: Regenerate.
2631 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2633 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
2634 true (this target uses REL relocations) and 'pcrel_offset' to
2635 false (the PC is implied, not stored in the offset).
2637 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2639 1999-10-19 Linus Nordberg <linus@swox.se>
2640 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
2641 * elfxx-target.h (elf_backend_want_got_sym): Define.
2642 (elfNN_bed): Add elf_backend_want_got_sym.
2643 * elflink.c (_bfd_elf_create_got_section): Define
2644 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2646 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
2648 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
2649 (find_rela_addend): New function.
2650 (parse_comp_unit): Call it to find the abbrev offset addend.
2651 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
2652 members of dwarf2_debug as debugging information is read.
2654 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
2656 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
2657 targets as well as sh-pe.
2659 2001-08-03 Ben Harris <bjh21@netbsd.org>
2661 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
2662 reloc from start of section when computing value for R_ARM_REL32
2665 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2667 From H.J. Lu <hjl@gnu.org>
2668 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
2669 keep relocs for undefined syms if there are no dynamic sections in
2671 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
2673 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2675 * cofflink.c (coff_link_check_ar_symbols): also search for
2676 __imp__symbol as well as _symbol.
2677 * linker.c (_bfd_generic_link_add_archive_symbols): also
2678 search for __imp__symbol as well as _symbol.
2680 2001-08-01 Adam Nemet <anemet@lnxw.com>
2682 * elf.c (elf_sort_sections): Return zero only as the last step.
2684 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
2686 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
2688 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
2689 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
2692 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2694 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
2695 to match corresponding bfd_coff_backend data member.
2697 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2699 * Makefile.am: Update dependencies with "make dep-am".
2700 * Makefile.in: Regenerate
2702 2001-07-15 H.J. Lu <hjl@gnu.org>
2704 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
2705 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
2706 * Makefile.in: Regenerate.
2708 2001-07-11 H.J. Lu <hjl@gnu.org>
2710 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
2711 flags when creating the reloc section if the ALLOC flag in the
2712 source section is set.
2714 2001-07-11 Steve Ellcey <sje@cup.hp.com>
2716 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
2717 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
2718 * bfd-in2.h: Regenerate.
2719 * libbfd.h: Regenerate.
2720 * elfxx-ia64.c (ia64_howto_table): Define how to handle
2722 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
2723 (elfNN_ia64_check_relocs): Likewise.
2724 (elfNN_ia64_install_value): Likewise.
2725 (elfNN_ia64_relocate_section): Likewise.
2727 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2729 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
2731 (elf32_sparc_check_relocs): Likewise.
2732 Only create .rela section for alloced sections in shared libraries.
2733 (elf32_sparc_relocate_section): Likewise.
2734 Remove redundant check.
2735 Optimize unaligned reloc usage.
2736 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
2739 2001-07-11 H.J. Lu <hjl@gnu.org>
2741 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
2742 ALLOC|LOAD flags as the source section for debugging sections
2743 when creating the reloc section.
2745 2001-07-05 Jim Wilson <wilson@redhat.com>
2747 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2748 the section of the bigger symbol.
2750 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2752 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2754 * peicode.h (coff_swap_scnhdr_in): For sections containing
2755 uninitialised data, only set their size to s_paddr if this does
2756 not reset their size to zero. MS's latest compilers will set
2759 2001-07-04 H.J. Lu <hjl@gnu.org>
2761 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2762 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2765 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
2767 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
2769 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
2770 sections being discarded.
2772 2001-06-30 Alan Modra <amodra@bigpond.net.au>
2774 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
2775 instead of _bfd_elfcore_section_from_phdr.
2776 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
2777 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
2778 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
2779 (elfcore_grok_prstatus): Likewise.
2780 (elfcore_grok_lwpstatus): Likewise.
2781 (bfd_get_elf_phdr_upper_bound): Likewise.
2782 (elfcore_make_note_pseudosection): Formatting.
2783 (_bfd_elfcore_strndup): Formatting.
2784 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
2785 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
2787 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
2789 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
2790 and _bfd_elfcore_strndup.
2791 (struct elf_backend_data): Add elf_backend_grok_prstatus
2792 and elf_backend_grok_psinfo.
2793 * elf.c (_bfd_elfcore_make_pseudosection): New function.
2794 (elfcore_grok_prstatus): Use it.
2795 (elfcore_make_note_pseudosection): Likewise.
2796 (elfcore_strndup): Rename to...
2797 (_bfd_elfcore_strndup): Here, and make global.
2798 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
2799 (elfcore_grok_note): Call elf_backend_grok_prstatus
2800 and elf_backend_grok_psinfo if available.
2801 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
2802 (_bfd_elf32_mips_grok_psinfo): New function.
2803 (elf_backend_grok_prstatus): Define.
2804 (elf_backend_grok_psinfo): Define.
2805 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
2806 (elf_backend_grok_psinfo): Likewise.
2807 (elfNN_bed): Include elf_backend_grok_prstatus and
2808 elf_backend_grok_psinfo.
2810 2001-06-29 H.J. Lu <hjl@gnu.org>
2812 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2813 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2814 is NULL before filling PLT.
2816 2001-06-29 Alan Modra <amodra@bigpond.net.au>
2818 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2820 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2822 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2824 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2825 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2828 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2829 (IS_ABSOLUTE_RELOC): Define.
2830 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2831 (hppa_link_hash_newfunc): Always init it.
2832 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2833 create COPY relocs only when the reloc is in a read-only section.
2834 Instead, allocate space for a dynamic reloc to reference the
2835 library symbol directly. Keep track of space we allocate using
2837 (hppa_discard_copies): Delete, and move code to..
2838 (allocate_plt_and_got): ..here. Rename to
2839 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2840 relocs for non-shared link.
2841 (elf32_hppa_size_dynamic_sections): Update calls to above.
2842 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2843 in lieu of COPY relocs.
2845 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2847 (elf_i386_adjust_dynamic_symbol): ..nor here..
2848 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2850 (elf_i386_size_dynamic_sections): Fix a comment.
2851 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2852 involved in writing reloc out.
2854 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2856 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2857 Ensure syms are dynamic if we might be emitting a reloc.
2858 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2859 for undefweak or undefined syms..
2860 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2862 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2863 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2864 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2865 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2867 2001-06-24 H.J. Lu <hjl@gnu.org>
2869 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2870 strncasecmp/strcasecmp instead of strncmp/strcmp.
2872 2001-06-23 H.J. Lu <hjl@gnu.org>
2874 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2875 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2876 in the regular object file and treat the weak definition as
2879 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2881 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2882 unresolved_reloc test to exclude cases where we use "relocation"
2883 before setting it to point into the .got. Reinstate fudge for
2884 unresolved relocs in debugging sections.
2886 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2887 complicated tests for unresolvable relocs with a simple direct
2888 scheme using "unresolved_reloc" var.
2890 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2891 elf_i386_dyn_relocs. Update comment.
2892 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2894 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2896 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2898 (elf_i386_size_dynamic_sections): Likewise.
2899 (elf_i386_finish_dynamic_symbol): Likewise.
2900 (elf_i386_finish_dynamic_sections): Likewise.
2901 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2904 Avoid creating COPY relocs if possible.
2905 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2906 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2907 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2908 reloc is in a read-only section. Instead, allocate space for a
2909 dynamic reloc to reference the library symbol directly. Keep
2910 track of space we allocate using pcrel_relocs_copied.
2911 (discard_copies): Delete, and move code to ..
2912 (allocate_plt_and_got): ..here. Rename to
2913 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2914 relocs for non-shared link.
2915 (elf_i386_size_dynamic_sections): Update calls to above functions.
2916 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2917 more ugly logic to avoid "unresolvable relocation" error. Use
2918 htab shortcut in place of elf_hash_table macro.
2919 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2920 not always be created now.
2922 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2924 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2927 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2929 * configure.host (mips64-*-linux): Reformat.
2931 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2933 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2934 allocate local .got space. Use shortcuts from hash table for .got
2935 and .plt rather than comparing section names.
2936 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2937 adjusting index into local_got_refcounts to document what we are
2939 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2940 Tidy .got and .plt error checking.
2942 2001-06-20 Catherine Moore <clm@redhat.com>
2944 * elf-bfd.h (struct elf_backend_data):
2945 elf_backend_emit_relocs: New field: Function for emitting
2947 elf_backend_count_relocs: New field: Function for determining
2948 the number of relocs to be emitted.
2949 * elfxx-target.h: Provide default (NULL) values for
2950 elf_backend_emit_relocs and elf_backend_count_relocs.
2951 * elflink.h (elf_link_size_reloc_section): Make the hash table
2952 big enough to hold the relocs counted by either reloc_count or
2954 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2955 should be emitted, either because of a command line option
2956 stored in the info structure or because the target provides a
2957 special reloc emitting function.
2958 If the target provides a reloc counting function use it,
2959 unless performing a relocatable link or emitting all relocs.
2960 Also set the SEC_RELOC flag on any output section which will
2962 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2963 should be emitted, either because of a command line option
2964 stored in the info structure or because the target provides a
2965 special reloc emitting function.
2966 If the target provides a reloc emitting function, use it,
2967 unless performing a relocatable link or emitting all relocs.
2969 2001-06-20 H.J. Lu <hjl@gnu.org>
2971 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2972 allocate local .got space.
2974 2001-06-19 Andreas Jaeger <aj@suse.de>
2976 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2979 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2981 * elflink.h (struct elf_assign_sym_version_info): Remove member
2982 export_dynamic. All users changed to use info member.
2983 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2984 export_dynamic, instead use member in parameter info.
2985 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2986 bfd_elf64_size_dynamic_sections): Update prototype.
2987 * bfd-in2.h: Regenerate.
2989 2001-06-18 H.J. Lu <hjl@gnu.org>
2991 * elflink.h (elf_info_failed): Add a new field, verdefs.
2992 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2994 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2997 2001-06-17 H.J. Lu <hjl@gnu.org>
2999 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
3000 readonly_reloc, to record if a relocation in the .rel.dyn
3001 section is against a read-only section.
3002 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
3004 (_bfd_mips_elf_check_relocs): Record if there is a relocation
3005 in the .rel.dyn section against a read-only section by setting
3006 DF_TEXTREL or readonly_reloc.
3007 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
3009 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
3010 there is a relocation in the .rel.dyn section against a
3012 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
3015 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3017 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
3018 function. Move flagword result into parameter list. Remove
3019 comment about setting bfd_error_handler to intercept failure
3021 * coffgen.c (make_a_section_from_file): Examine result of
3022 calling bfd_coff_styp_to_sec_flags and pass a failure back to
3024 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
3025 function. Move flagword result into parameter list.
3026 * libcoff.h: Regenerate.
3027 * libecoff.h: Regenerate.
3029 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
3031 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
3032 section is going to follow it.
3034 2001-06-12 Catherine Moore <clm@redhat.com>
3036 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
3037 with the file_align entry from elf_backend_data.
3038 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3039 (elf_gc_record_vtentry): Likewise.
3041 2001-06-10 Alan Modra <amodra@bigpond.net.au>
3043 * elflink.h: Whitespace changes.
3044 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
3045 rather than "unsigned char".
3046 (elf_link_output_relocs): Likewise.
3047 (elf_link_input_bfd): Likewise.
3048 (elf_reloc_link_order): LIkewise.
3049 * elf.c: s/CONST/const/. Whitespace changes.
3050 * elf32-mips.c: Formatting fix.
3052 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
3053 * Makefile.in: Regenerate.
3054 * po/Make-in: Remove trailing tab.
3056 2001-06-09 Philip Blundell <philb@gnu.org>
3058 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
3060 (elf32_arm_plt_entry): Likewise.
3062 2001-06-08 H.J. Lu <hjl@gnu.org>
3064 * elf.c (swap_out_syms): Keep names for global section symbols.
3066 2001-06-07 H.J. Lu <hjl@gnu.org>
3068 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
3069 MIPS-based machines need it.
3071 2001-06-07 H.J. Lu <hjl@gnu.org>
3073 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
3076 * config.bfd: Remove ecoff from Linux/mips.
3078 2001-06-07 Andreas Jaeger <aj@suse.de>
3080 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
3082 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
3083 alignment of 8 for .rela sections; handle further relocations.
3085 2001-06-06 Christian Groessler <cpg@aladdin.de>
3087 * coff-z8k.c: Fix formatting.
3088 Fix howtos: howto->size was always 1.
3090 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3092 * configure.host (mips64*-*-linux*): Define.
3094 2001-06-05 Alan Modra <amodra@bigpond.net.au>
3096 * elf32-i386.c (elf_i386_discard_copies): Rename to
3097 discard_copies, and use elf_link_hash_entry arg rather than
3098 elf_i386_link_hash_entry.
3099 (elf_i386_link_hash_traverse): Delete.
3100 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
3101 Tidy sizing of dynamic sections.
3102 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
3103 possible .plt entries.
3104 (elf_i386_gc_sweep_hook): Likewise.
3105 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
3106 everything with plt.refcount <= 0.
3108 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
3110 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
3111 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
3113 (allocate_plt_and_got): ..instead do it all here. New function.
3114 (elf_i386_size_dynamic_sections): Allocate local .got space and
3115 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
3116 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
3117 rather than gc variety).
3118 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3119 (elf_i386_relocate_section): Use it here and correct handling of
3120 R_386_GOT32. Provide section and offset for "unresolvable
3121 relocation" error message.
3122 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
3124 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
3125 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
3126 (elf_i386_link_hash_table_create): Init them.
3127 (create_got_section): New function.
3128 (elf_i386_create_dynamic_sections): New function.
3129 (elf_backend_create_dynamic_sections): Set to above.
3130 (elf_i386_check_relocs): Use shortcuts from hash table rather than
3131 calling bfd_get_section_by_name.
3132 (elf_i386_gc_sweep_hook): Likewise.
3133 (elf_i386_adjust_dynamic_symbol): Likewise.
3134 (elf_i386_size_dynamic_sections): Likewise.
3135 (elf_i386_relocate_section): Likewise.
3136 (elf_i386_finish_dynamic_sections): Likewise.
3138 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
3140 2001-06-02 H.J. Lu <hjl@gnu.org>
3142 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
3144 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
3146 2001-06-02 H.J. Lu <hjl@gnu.org>
3148 * aout-cris.c (MACHTYPE_OK): New. Defined.
3150 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
3152 * section.c (_bfd_strip_section_from_output): Handle NULL
3155 2001-06-02 H.J. Lu <hjl@gnu.org>
3157 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
3158 rs6000coff64_vec only if BFD64 is defined.
3159 (powerpc64-*-aix*): Enable only if BFD64 is defined.
3161 2001-06-02 H.J. Lu <hjl@gnu.org>
3163 * coff-ia64.c (ia64coff_object_p): Rewrite with
3164 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
3166 2001-06-01 Andreas Jaeger <aj@suse.de>
3168 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
3169 relocation, small reformatting.
3171 2001-05-29 Andreas Jaeger <aj@suse.de>
3173 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
3174 (elf64_x86_64_relocate_section): Likewise.
3176 2001-05-30 Alan Modra <amodra@one.net.au>
3178 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
3179 millicode. Don't allocate .got and .rela.got space here..
3180 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
3181 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
3183 (hppa_handle_PIC_calls): ..nor here..
3184 (allocate_plt_and_got): ..instead do it all here. New function.
3185 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
3186 call allocate_plt_and_got. No need to zap .got if not dynamic.
3187 (elf32_hppa_final_link): Call regular bfd_final_link instead of
3188 gc_common_final_link.
3189 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3190 (elf32_hppa_relocate_section): Use it here.
3191 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
3192 dynamic_sections_created.
3193 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
3195 2001-05-28 Andreas Jaeger <aj@suse.de>
3197 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
3198 generic version since we want a hashsize of 4.
3199 (elf_backend_size_info): Likewise.
3201 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3203 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
3205 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
3206 (elf_link_input_bfd): Likewise.
3207 (elf_reloc_link_order): Likewise.
3208 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
3209 relocations correctly.
3211 2001-05-28 Nicolas Pitre <nico@cam.org>
3213 * elf32-arm.h: fix PLT generation for big endian ARM
3215 2001-05-28 Alan Modra <amodra@one.net.au>
3217 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
3218 for symbols forced local that need plabels.
3219 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
3220 .plt.rela for local syms if non-shared.
3221 (hppa_build_one_stub): Mask lsb of plt.offset.
3222 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
3223 (clobber_millicode_symbols): Correct comment.
3224 (elf32_hppa_relocate_section): Likewise.
3225 (elf32_hppa_finish_dynamic_symbol): Likewise.
3227 2001-05-28 Jeff Sturm <jsturm@one-point.com>
3229 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
3230 * bfd-in2.h: Regenerate.
3231 * libbfd.h: Regenerate.
3232 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
3233 and BFD_RELOC_SPARC_UA64 mapping
3234 * elf64-sparc.c: Likewise.
3236 2001-05-25 H.J. Lu <hjl@gnu.org>
3238 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
3239 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
3240 (coff-rs6000.lo): Remove the old dependency.
3241 * Makefile.in: Rebuild.
3243 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
3246 2001-05-25 H.J. Lu <hjl@gnu.org>
3248 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
3249 rs6000coff_core_file_matches_executable_p,
3250 rs6000coff_core_file_failing_command and
3251 rs6000coff_core_file_failing_signal only if AIX_CORE is
3253 (pmac_xcoff_vec): Likewise.
3254 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
3256 2001-05-25 Timothy Wall <twall@redhat.com>
3258 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
3259 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
3261 2001-05-25 H.J. Lu <hjl@gnu.org>
3263 * bfd-in2.h: Regenerated.
3264 * libcoff.h: Likewise.
3266 2001-05-25 Alan Modra <amodra@one.net.au>
3268 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
3269 undefined millicode syms in shared libs.
3270 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
3271 (elf32_hppa_check_relocs): Likewise.
3272 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3273 (elf32_hppa_size_dynamic_sections): Likewise.
3274 (elf32_hppa_relocate_section): Likewise.
3275 (elf32_hppa_finish_dynamic_symbol): Likewise.
3276 (elf32_hppa_finish_dynamic_sections): Likewise.
3278 2001-05-24 Tom Rix <trix@redhat.com>
3280 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
3281 xcoff-target.h not used to define rs6000 or ppc bfd.
3284 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
3287 * coff-rs6000.c : Many changes for 64 bit support. Move common
3288 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
3291 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
3292 linker now supported. Explictly define the rs6000coff64_vec.
3294 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
3295 (coff_print_aux) same
3296 (coff_write_object_contents) same
3297 (coff_slurp_line_table) same
3299 * coffgen.c : (coff_fix_symbol_name) formatting
3300 (coff_mangle_symbols) xcoff 64 bit support
3301 (coff_write_symbol) same
3302 (coff_write_alien_symbol) same
3303 (coff_write_native_symbol) same
3304 (coff_write_symbols) same
3305 (coff_get_symbol_info) same
3306 (bfd_coff_get_syment) same
3307 (coff_print_symbol) same
3309 * config.bfd : add powerpc64-*-aix* target
3311 * libcoff-in.h : formatting
3313 * libcoff.h : move xcoff extern declarations to libxcoff.h
3315 * libxcoff.h : New file
3317 * xcofflink.c : Many changes for xcoff64 support. Move common
3318 structures to include/coff/xcoff.h. Move specific structure to
3319 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
3320 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
3322 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
3325 (xcoff_build_ldsyms) : handle special __rtinit symbol.
3327 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3329 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
3332 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3334 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
3335 * libbfd.h: Regenerate.
3336 * bfd-in2.h: Regenerate.
3338 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
3339 * archures.c (bfd_mach_mips12000): Define.
3340 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
3341 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
3343 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
3344 * bfd-in2.h: Regenerate.
3345 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
3347 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
3349 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
3350 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
3351 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
3352 that is used by GCC.
3354 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3356 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
3357 of entries in a structured section.
3358 * elf.c: Use new macro.
3359 * elf32-i386.c: Use new macro.
3360 * elf32-mips.c: Use new macro.
3361 * elf64-alpha.c: Use new macro.
3362 * elf64-sparc.c: Use new macro.
3363 * elfcode.h: Use new macro.
3364 * elflink.h: Use new macro.
3366 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3368 * bfdint.texi: Replace -oformat with --oformat.
3370 2001-05-21 Andreas Jaeger <aj@suse.de>
3372 * dwarf2.c (decode_line_info): Fix error message.
3373 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
3374 adjust error message.
3376 2001-05-18 H.J. Lu <hjl@gnu.org>
3378 * elflink.h (elf_link_add_object_symbols): Revert the last
3381 2001-05-17 Alan Modra <amodra@one.net.au>
3383 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
3384 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
3385 (hppa_build_one_stub): Add an assert to check plt.offset.
3387 2001-05-17 H.J. Lu <hjl@gnu.org>
3389 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
3390 version definition to basename of the output filename.
3392 2001-05-17 H.J. Lu <hjl@gnu.org>
3394 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
3395 basename of the bfd filename.
3397 2001-05-16 Alan Modra <amodra@one.net.au>
3399 * section.c (asection): Add linker_has_input field.
3400 (STD_SECTION): Adjust initialization to suit.
3401 * ecoff.c (bfd_debug_section): Likewise.
3402 * bfd-in2.h: Regenerate.
3404 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
3406 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3407 negative 32-bit operands to 16 operands when the operand is
3408 going to be zero-extended by the modified opcode.
3410 2001-05-12 Peter Targett <peter.targett@arccores.com>
3412 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3413 name for 'arc5' core versions.
3414 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3416 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3418 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3420 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3422 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3424 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3425 to .gnu.linkonce.t.FOO text section.
3427 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3429 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3430 fields, change sec into secinfo.
3431 (struct sec_merge_info): Add chain, remove last fields.
3432 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3433 (sec_merge_hash_lookup): If lookup could not use a string only
3434 because it has bad alignment, mark the old string for deletion.
3435 (sec_merge_add): Add secinfo argument. Don't compute entry's
3436 position, instead record the section.
3437 (sec_merge_emit): Update for the sec into secinfo change in
3438 struct sec_merge_hash_entry.
3439 (_bfd_merge_section): Only record the section for merging, defer
3440 putting strings into the hash table.
3441 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3442 _bfd_merge_sections): New functions.
3443 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3445 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3446 (_bfd_nolink_bfd_merge_sections): Define.
3447 * libbfd.h: Likewise.
3448 (bfd_generic_merge_sections): Add prototype.
3449 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3450 (struct bfd_target): Likewise.
3451 * bfd.c (bfd_merge_sections): Define.
3452 * bfd-in2.h: Rebuilt.
3453 * elf.c (_bfd_elf_merge_sections): New function.
3454 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3455 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3456 * reloc.c (bfd_generic_merge_sections): New function.
3457 * vms.c (vms_bfd_merge_sections): New function.
3458 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3459 * aout-target.h (MY_bfd_merge_sections): Define.
3460 * aout-tic30.c (MY_bfd_merge_sections): Define.
3461 * binary.c (binary_bfd_merge_sections): Define.
3462 * bout.c (b_out_bfd_merge_sections): Define.
3463 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3464 * coffcode.c (coff_bfd_merge_sections): Define.
3465 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3466 * i386msdos.c (msdos_bfd_merge_sections): Define.
3467 * i386os9k.c (os9k_bfd_merge_sections): Define.
3468 * ieee.c (ieee_bfd_merge_sections): Define.
3469 * ihex.c (ihex_bfd_merge_sections): Define.
3470 * nlm-target.h (nlm_bfd_merge_sections): Define.
3471 * oasys.c (oasys_bfd_merge_sections): Define.
3472 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3473 * som.c (som_bfd_merge_sections): Define.
3474 * srec.c (srec_bfd_merge_sections): Define.
3475 * tekhex.c (tekhex_bfd_merge_sections): Define.
3476 * versados.c (versados_bfd_merge_sections): Define.
3477 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3479 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3481 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3482 to be unsigned long, in order to match its use.
3484 2001-05-10 H.J. Lu <hjl@gnu.org>
3486 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3489 2001-05-09 H.J. Lu <hjl@gnu.org>
3491 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3492 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3493 Remove the unused veriable `dynver'.
3495 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3497 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3498 NULL or is not COFF.
3499 (coff_i386_rtype_to_howto): Don't dump core if output section
3502 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3504 * ecoff.c (bfd_debug_section): Fix initialization.
3505 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3506 is always a positive integer. Cast away sign mismatch.
3507 * elf32-mips.c: Fix misleading comment and typo.
3508 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3510 * elflink.c: Fix typo.
3511 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3512 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3514 2001-05-04 Richard Henderson <rth@redhat.com>
3516 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3518 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3520 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3521 EF_ARM_HASENTRY if the start address is set.
3523 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3525 * targets.c (_bfd_target_vector_entries): Compute value based on
3526 the size of the _bfd_target_vector and not bfd_target_vector.
3528 2001-05-03 H.J. Lu <hjl@gnu.org>
3530 * elfcode.h: Include "libiberty.h".
3532 * elflink.h (elf_link_add_object_symbols): Set
3533 elf_dt_name (abfd) to basename of the bfd filename.
3534 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3535 of the bfd filename.
3537 2001-05-03 Andreas Jaeger <aj@suse.de>
3539 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3540 (elf_generic_info_to_howto_rel): Likewise.
3541 * coff-alpha.c (reloc_nil): Likewise.
3542 (alpha_ecoff_bad_format_hook): Likewise.
3543 (alpha_adjust_reloc_out): Likewise.
3544 (alpha_bfd_reloc_type_lookup): Likewise.
3545 (alpha_convert_external_reloc): Likewise.
3546 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3547 (elf64_alpha_reloc_bad): Likewise.
3548 (elf64_alpha_reloc_gpdisp): Likewise.
3549 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3550 (elf64_alpha_info_to_howto): Likewise.
3551 (elf64_alpha_add_symbol_hook): Likewise.
3552 (elf64_alpha_create_got_section): Likewise.
3553 (elf64_alpha_is_local_label_name): Likewise.
3554 (elf64_alpha_merge_ind_symbols): Likewise.
3555 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3556 (mips_elf64_get_reloc_upper_bound): Likewise.
3557 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3558 (nlm_alpha_get_public_offset): Likewise.
3560 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3562 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3563 about overflow in R_OPENRISC_LO_16_IN_INSN and
3564 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3566 2001-04-30 H.J. Lu <hjl@gnu.org>
3568 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3569 only for ELF_LINK_FORCED_LOCAL.
3570 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3571 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3572 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3574 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3575 if the symbol has hidden or internal visibility.
3577 2001-04-30 Alan Modra <amodra@one.net.au>
3579 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3580 calls to undefined weak symbols.
3582 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3584 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3585 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3587 2001-04-27 Andreas Jaeger <aj@suse.de>
3589 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3590 out handled entries.
3591 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3592 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3593 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3596 2001-04-27 Sean McNeil <sean@mcneil.com>
3598 * config.bfd: Add arm-vxworks target.
3599 * coff-arm (coff_arm_relocate_section): Add in symbol value to
3600 addend (fro VXworks targets).
3602 2001-04-26 H.J. Lu <hjl@gnu.org>
3604 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
3607 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3609 * bfd-in.h (bfd_cache_close): Declare newly exported function.
3610 * bfd-in2.h: Regenerated.
3612 2001-04-24 Jakub Jelinek <jakub@redhat.com>
3614 * merge.c (struct sec_merge_hash_entry): Add alignment field.
3615 (struct sec_merge_hash): Remove alignment_power.
3616 (sec_merge_hash_newfunc): Clear alignment.
3617 (sec_merge_hash_lookup): Pass alignment as argument.
3618 Use hashp->root.next, not hashp->next to walk the hash chain.
3619 If a string already in the hashtable does not have required
3620 alignment, create a new hashtable entry.
3621 (sec_merge_init): Remove alignment_power argument.
3622 (sec_merge_add): Add alignment argument.
3623 (sec_merge_emit): Alignment is now a per-entity thing, not per
3625 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
3626 for proper alignment.
3627 Pass alignment information to sec_merge_add.
3629 2001-04-24 Christian Groessler <cpg@aladdin.de>
3631 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
3632 and R_REL16 reloc types; accept odd values for R_REL16 type
3634 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
3636 * cpu-openrisc.c: New file.
3637 * elf32-openrisc.c: Likewise.
3639 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
3640 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
3641 (BFD32_BACKENDS): Add elf32-openrisc.lo.
3642 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
3643 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
3644 * Makefile.in: Regenerated.
3645 * config.bfd: (openrisc-*-elf): New target.
3646 * configure.in (bfd_elf32_openrisc_vec): New vector.
3647 * configure: Regenerated.
3648 * libbfd.h: Regenerated.
3649 * bfd-in2.h: Regenerated.
3650 * reloc.c: Add OpenRISC relocations.
3651 * targets.c (bfd_elf32_openrisc_vec): Declare.
3652 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
3653 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
3654 (bfd_openrisc_arch): Declare.
3655 (bfd_archures_list): Add bfd_openrisc_arch.
3656 * elf.c (prep_headers): Add bfd_arch_openrisc.
3658 2001-04-23 Bo Thorsen <bo@suse.de>
3660 * elf64-x86-64.c: Add c++ vtable hack.
3661 Small whitespace and comment changes.
3663 2001-04-19 Andreas Jaeger <aj@suse.de>
3665 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
3666 (elf64_x86_64_plt_entry): Likewise.
3667 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
3668 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
3670 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
3672 * elf32-cris.c: Tweak comments related to dynamic linking.
3673 (cris_elf_relocate_section): When not creating shared object, fill
3674 in the .got table for any symbol not in the dynamic symbol table.
3675 (elf_cris_finish_dynamic_symbol): When not creating shared object,
3676 only emit a .got.rela reloc if the symbol is in the dynamic symbol
3678 (cris_elf_check_relocs): Use variable r_type in all places rather
3679 than the original expression. Add default case in switch for
3681 (elf_cris_size_dynamic_sections): Iterate over
3682 elf_cris_discard_excess_program_dynamics when not creating shared
3684 (elf_cris_discard_excess_dso_dynamics): Renamed from
3685 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
3686 (elf_cris_discard_excess_program_dynamics): New.
3688 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
3690 * coffcode.h (coff_write_object_contents): Use
3691 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
3693 2001-04-14 H.J. Lu <hjl@gnu.org>
3695 * bfd-in2.h: Regenerate.
3697 2001-04-14 Jakub Jelinek <jakub@redhat.com>
3699 * section.c (STD_SECTION): Add entsize.
3701 2001-04-13 H.J. Lu <hjl@gnu.org>
3703 * section.c (SEC_MERGE): Define new flag for merging.
3704 (SEC_STRINGS): Likewise.
3705 (entsize): New field.
3707 2001-04-13 Roger Sayle <roger@metaphorics.com>
3709 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
3710 flag on pe-i386 targets.
3712 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3714 * libbfd-in.h (_bfd_merge_section): New.
3715 (_bfd_write_merged_section): New.
3716 (_bfd_merged_section_offset): New.
3717 * libbfd.h: Rebuilt.
3718 * linker.c (_bfd_generic_link_output_symbols): Handle
3720 * aoutx.h (aout_link_write_symbols): Likewise.
3721 * pdp11.c (aout_link_write_symbols): Likewise.
3722 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
3723 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
3725 (elf_link_sec_merge_syms): New.
3726 (elf_link_input_bfd): Call _bfd_merged_section_offset
3727 and _bfd_write_merged_section.
3728 Handle discard_sec_merge.
3729 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
3731 (struct bfd_elf_section_data): Likewise.
3732 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
3733 SEC_STRINGS section flags and entsize from their ELF counterparts.
3734 (_bfd_elf_link_hash_table_init): Initialize merge_info.
3735 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
3736 from their BFD counterparts.
3737 * merge.c: New file.
3738 * Makefile.am: Add strtab.lo.
3739 * Makefile.in: Rebuilt.
3741 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
3743 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
3744 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
3746 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3748 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3749 endian MIPS ELF target.
3750 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3753 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3754 64bit big endian MIPS ELF target.
3755 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3756 endian MIPS ELF target.
3757 * configure: Regenerated.
3759 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3760 little endian targets.
3761 (mips_elf_sym_is_global): Handle traditional targets.
3763 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3764 64bit big endian MIPS ELF target.
3765 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3766 endian MIPS ELF target.
3768 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
3769 and bfd_elf64_tradlittlemips_vec.
3771 2001-04-05 David Mosberger <davidm@hpl.hp.com>
3773 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
3774 ordinary "progbits" section.
3776 2001-04-04 Alan Modra <alan@linuxcare.com.au>
3778 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
3779 when -Bsymbolic causes a symbol to no longer need a .plt entry.
3781 2001-04-03 David Mosberger <davidm@hpl.hp.com>
3783 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
3785 2001-03-30 H.J. Lu <hjl@gnu.org>
3787 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
3788 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
3790 2001-03-26 H.J. Lu <hjl@gnu.org>
3792 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
3793 if there are any relocations for generic ELF.
3794 (bfd_elf32_bfd_link_add_symbols): Defined to
3795 elf32_generic_link_add_symbols.
3796 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
3797 if there are any relocations for generic ELF.
3798 (bfd_elf64_bfd_link_add_symbols): Defined to
3799 elf64_generic_link_add_symbols.
3801 2001-03-23 Nick Clifton <nickc@redhat.com>
3803 * Makefile.am (BUILD_CFILES): New variable: List of C source
3804 files created in build directory.
3805 (BUILD_HFILES): New variable: List of header files created in
3808 (po/POTFILES.in): Replace rule with empty entry.
3809 (po/SRC-POTFILES.in): New rule: Create a list of source files
3810 in the source directory.
3811 (po/BLD-POTFILES.in): New rule: Create a list of source files
3812 in the build directory.
3813 (MOSTLYCLEAN): Do not delete source files created in build
3815 * Makefile.in: Regenerate.
3816 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3818 * configure: Regenerate.
3820 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3822 Add .. to the search path when building bfd.pot.
3823 Delete POTFILES when performing distclean.
3824 Add comment describing why distclean is broken in maintainer mode.
3825 * po/POTFILES.in: Delete.
3826 * po/SRC-POTFILES.in: New file.
3827 * po/BLD-POTFILES.in: New file.
3828 * po/bfd.pot: Regenerate.
3830 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3832 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3833 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3834 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3835 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3836 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3837 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3839 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3840 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3841 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3842 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3843 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3844 New HOWTO members for new relocs.
3845 (cris_reloc_map): Map new relocs.
3846 (ELF_DYNAMIC_INTERPRETER): Define.
3847 (PLT_ENTRY_SIZE): Define.
3848 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3849 elf_cris_pic_plt_entry): New, PLT templates.
3850 (struct elf_cris_pcrel_relocs_copied, struct
3851 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3852 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3853 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3854 positive values. Adjust PCREL relocs to be relative to location
3856 (cris_elf_relocate_section): Handle relocations to dynamic
3857 objects. Handle new relocations. Call error handler when seeing
3858 non-PIC relocation for read-only sections while generating shared
3860 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3862 (bfd_elf32_bfd_link_hash_table_create,
3863 elf_backend_adjust_dynamic_symbol,
3864 elf_backend_size_dynamic_sections,
3865 elf_backend_finish_dynamic_symbol,
3866 elf_backend_finish_dynamic_sections,
3867 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3868 elf_backend_hide_symbol, elf_backend_want_got_plt,
3869 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3870 elf_backend_got_header_size, elf_backend_plt_header_size):
3873 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3874 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3875 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3876 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3877 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3878 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3879 * bfd-in2.h, libbfd.h: Regenerate.
3881 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3883 (_bfd_mips_elf_relocate_section): Give a better error message when
3884 a relocation is not recognized.
3886 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3888 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3889 non-NULL before attempting to dereference.
3891 2001-03-20 H.J. Lu <hjl@gnu.org>
3893 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3894 * configure: Rebuild.
3896 2001-03-20 Andreas Schwab <schwab@suse.de>
3898 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3899 relocation value when resolving a reference from a debugging
3902 2001-03-16 Scott Thomason <SThomaso@hii.com>
3904 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3905 (xcoff64_swap_sym_out): Fix syntax errors.
3907 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3909 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3911 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3913 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3914 (hppa_link_hash_newfunc): Init it.
3915 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3916 section appears to be non-PIC.
3917 (final_link_relocate): Likewise.
3918 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3919 possible candidate function, and set pic_call for those that will
3920 only have a .plt entry for the PIC call stub.
3921 (hppa_handle_PIC_calls): Set maybe_pic_call.
3923 2001-03-12 DJ Delorie <dj@redhat.com>
3925 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3926 R_SH_DIR8WP* relocs if they're against external symbols, else
3927 they're just for relaxing. Validate the reloc values.
3929 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3931 * binary.c (bfd_external_binary_architecture): Declare.
3932 (binary_object_p): If bfd_external_binary_architecture is defined,
3933 set the architecture to this string.
3935 2001-03-11 Philip Blundell <philb@gnu.org>
3937 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3938 entries that could serve as a definition for a weak symbol.
3940 2001-03-08 Nick Clifton <nickc@redhat.com>
3942 * Most files: Update copyright notices using Perl script created
3943 by Kevin Buettner <kevinb@redhat.com>.
3945 2001-03-07 Nick Clifton <nickc@redhat.com>
3947 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3948 prior patch on ! defined OLD_ARM_ABI.
3950 2001-03-07 Andreas Jaeger <aj@suse.de>
3952 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3953 some relocation values.
3955 2001-03-06 Nick Clifton <nickc@redhat.com>
3957 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3958 of offset in BLX(1) instruction.
3959 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3960 offset in BLX(1) instruction.
3963 2001-03-06 Nick Clifton <nickc@redhat.com>
3965 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3966 BFD_RELOC_THUMB_PCREL_BLX.
3968 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3970 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3971 * bfd-in2.h: Regenerate.
3972 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3973 * ieee.c (ieee_write_processor): Set proper id for
3976 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3978 * configure.in: Add s390 target.
3979 * configure: Regenerate.
3981 2001-02-28 Andreas Jaeger <aj@suse.de>
3983 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3986 2001-02-28 Philip Blundell <pb@futuretv.com>
3988 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3989 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3991 2001-02-27 H.J. Lu <hjl@gnu.org>
3993 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3994 abfd->tdata.aout_data == NULL.
3996 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3998 * elf32-hppa.c: Correct field selector in stub comments.
3999 (clobber_millicode_symbols): Formatting fix.
4001 * configure.in: Bump version to 2.11.90.
4002 * configure: Regenerate.
4003 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
4004 (CFILES): $SOURCE_CFILES + generated C files.
4005 (POTFILES): Include $HFILES not $SOURCE_HFILES.
4007 * Makefile.in: Regenerate.
4008 * doc/Makefile.in: This too.
4010 2001-02-26 Timothy Wall <twall@cygnus.com>
4012 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
4015 2001-02-26 Nick Clifton <nickc@redhat.com>
4017 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
4018 up, replacing multiple if statements with a switch.
4019 (handle_COMDAT): New function.
4021 2001-02-26 H.J. Lu <hjl@gnu.org>
4023 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
4024 a warning for section flags we do not handle instead of
4027 2001-02-26 Andreas Jaeger <aj@suse.de>
4029 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
4031 2001-02-22 Timothy Wall <twall@cygnus.com>
4033 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
4034 * configure.in: Add objects for elf64_ia64_aix vectors.
4035 * configure: Regenerated.
4036 * configure.host: Recognize ia64-*-aix*.
4037 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
4038 for AIX. AIX5 requires most relocations to be dynamic (*all*
4039 binaries are somewhat similar to shared libraries).
4040 * targets.c: Add elf64_ia64_aix vectors.
4042 2001-02-21 David Mosberger <davidm@hpl.hp.com>
4044 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
4045 C8 said "1" instead of "8". Clarify error string for IMM22:
4046 "signed integer" instead of just "integer".
4048 2001-02-20 Andreas Jaeger <aj@suse.de>
4050 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
4051 PLT entries that could serve as a definition for a weak symbol.
4053 2001-02-19 Jakub Jelinek <jakub@redhat.com>
4055 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
4056 entries that could serve as a definition for a weak symbol.
4057 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
4059 2001-02-18 David O'Brien <obrien@FreeBSD>
4061 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
4062 FreeBSD/i386-CURRENT differently until I can figure out the needed
4064 * configure: Regenerate.
4065 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
4066 FreeBSD/PowerPC, and FreeBSD/sparc64.
4068 2001-02-18 lars brinkhoff <lars@nocrew.org>
4070 * Makefile.am: Add PDP-11 a.out target.
4071 * config.bfd: Likewise.
4072 * configure.in: Likewise.
4073 * targets.c: Likewise.
4074 * archures.c: Likewise.
4075 * bfd-in2.h: Likewise. Add PDP-11 relocations.
4076 * libbfd.h: Add PDP-11 relocations.
4077 * reloc.c: Likewise.
4078 * cpu-pdp11.c: New file.
4079 * pdp11.c: New file.
4081 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
4082 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4083 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4084 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
4085 (GET_MAGIC): New macro.
4086 (PUT_MAGIC): Likewise.
4087 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
4089 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
4091 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
4092 multiarch needs it).
4094 2001-02-18 H.J. Lu <hjl@gnu.org>
4096 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
4099 2001-02-18 Kazu Hirata <kazu@hxi.com>
4101 * vms-misc.c: Fix formatting.
4103 2001-02-16 Kazu Hirata <kazu@hxi.com>
4105 * vms.c: Fix formatting.
4107 2001-02-14 H.J. Lu <hjl@gnu.org>
4109 * elf.c (elf_find_function): New function.
4110 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
4111 the file name and function name.
4113 2001-02-14 Nick Clifton <nickc@redhat.com>
4115 * ecoff.c (bfd_debug_section): Update to initialise new fields in
4118 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
4119 (BFD64_BACKENDS): Add pepigen.c
4120 Add rules to create peigen.c and pepigen.c from peXXigen.c.
4122 * Makefile.in: Regenerate.
4123 * configure: Regenerate.
4124 * po/POTFILES.in: Regenerate.
4125 * po/bfd.pot: Regenerate.
4127 2001-02-14 H.J. Lu <hjl@gnu.org>
4129 * libcoff-in.h (pe_tdata): Add members target_subsystem and
4130 force_minimum_alignment.
4132 2001-02-14 Bo Thorsen <bo@suse.de>
4134 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
4135 (elf64_86_64_size_info): Struct added to fix a problem
4136 with the hashtable string entries.
4137 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
4138 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
4139 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
4140 remove the FIXME for this.
4141 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
4142 section. Also removed the FIXME for it.
4143 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
4144 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
4145 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
4147 2001-02-13 Richard Henderson <rth@redhat.com>
4149 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
4150 and not user provided.
4152 2001-02-13 Kazu Hirata <kazu@hxi.com>
4154 * vms.c (vms_print_symbol): Remove unreachable code.
4156 * rs6000-core.c: Fix formatting.
4158 2001-02-13 David Mosberger <davidm@hpl.hp.com>
4160 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
4161 as _bfd_XXi_only_swap_filehdr_out.
4162 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
4163 pe->force_minimum_alignment to TRUE.
4164 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
4165 PEI_TARGET_SUBSYSTEM.
4166 (pe_print_private_bfd_data): Call
4167 _bfd_XX_print_private_bfd_data_common() instead of
4168 _bfd_pe_print_private_bfd_data_common().
4169 (pe_bfd_copy_private_bfd_data): Call
4170 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
4171 _bfd_pe_bfd_copy_private_bfd_data_common().
4172 (coff_bfd_copy_private_section_data): Define as
4173 _bfd_XX_bfd_copy_private_section_data instead of
4174 _bfd_pe_bfd_copy_private_section_data.
4175 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
4176 of a _bfd_pe_get_symbol_info.
4180 * peXXigen.c: Renamed from peigen.c.
4181 (COFF_WITH_XX): Define this macro (will get expanded into
4182 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
4183 compiled as peigen.c or pepigen.c.
4184 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
4185 define the canonical PEP structures and definitions.
4186 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
4187 effect, enforce minimum file and section alignments. If
4188 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
4189 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
4190 so, by default, this is a no-op).
4192 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
4193 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
4194 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
4195 _bfd_pefoo if it's not defined. Use these macros to define
4198 * libcoff.h (pe_tdata): Add members target_subsystem and
4199 force_minimum_alignment.
4201 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
4203 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
4205 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
4208 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
4209 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
4212 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
4213 (BFD64_BACKENDS_CFILES): Mention pepigen.c
4214 (peigen.c): Add rule to generate from peXXigen.c.
4216 (pepigen.lo): List dependencies for pepigen.lo.
4218 2001-02-13 Alan Modra <alan@linuxcare.com.au>
4220 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
4221 $global$ referenced but not defined, set its value here.
4223 2001-02-09 Bo Thorsen <bo@suse.de>
4225 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
4227 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
4229 (elf64_x86_64_relocate_section): Fix formatting.
4230 (elf64_x86_64_relocate_section): Fix addend for relocation of
4231 R_X86_64_(8|16|32|PC8|PC16|PC32).
4233 2001-02-12 Jan Hubicka <jh@suse.cz>
4235 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
4237 2001-02-11 H.J. Lu <hjl@gnu.org>
4239 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
4242 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4244 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
4245 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
4246 relocations against dynsym symbols.
4248 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
4249 the R_MIPS_26 relocation.
4250 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
4251 the R_MIPS_26 relocation.
4252 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
4254 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
4255 the R_MIPS_26 relocation.
4256 (mips_elf64_howto_table_rela): Likewise.
4258 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
4259 member to mark symbols that have non-CALL relocations against
4261 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
4262 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
4264 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
4265 non-CALL relocation against it is encountered.
4266 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
4267 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
4268 no_fn_stub is not set.
4270 * elf32-mips.c (mips_elf_output_extsym): Get the output section
4271 information from the real symbol for indirect ones.
4272 Check no_fn_stub to find out if a symbol has a function stub
4275 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4277 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
4278 * Makefile.in: Regenerate.
4280 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4282 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
4283 true if section name is an unwind table section name.
4284 (elfNN_ia64_additional_program_headers): Count each unwind section
4286 (elfNN_ia64_modify_segment_map): Install one unwind program header
4287 for each unwind separate section. Note: normally the linker
4288 script merges the unwind sections that go into a single segment,
4289 so this still generates at most one unwind program header per
4292 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
4293 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
4294 (elfNN_ia64_fake_sections): Mark sections with names that start
4295 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
4298 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
4299 Use it to make sh_info in unwind section point to the text section
4302 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4304 * Makefile.am: Add linux target for S/390.
4305 * archures.c: Likewise.
4306 * bfd-in2.h: Likewise.
4307 * config.bfd: Likewise.
4308 * configure.in: Likewise.
4310 * libbfd.h: Likewise.
4311 * targets.c: Likewise.
4312 * cpu-s390.c: New file.
4313 * elf32-s390.c: New file.
4314 * elf64-s390.c: New file.
4316 2001-02-09 Nick Clifton <nickc@redhat.com>
4318 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
4319 ImageBase. This has already been done by coff_swap_hdr_in.
4321 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4323 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
4325 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4327 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
4328 (sparc64_elf_relocate_section): Likewise.
4330 2001-02-09 Mark Kettenis <kettenis@gnu.org>
4332 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
4333 similar to R_SPARC_32.
4334 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
4336 2001-02-08 H.J. Lu <hjl@gnu.org>
4338 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
4339 relocation entries for weak definitions when building DSO with
4342 2001-02-08 Richard Henderson <rth@redhat.com>
4344 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
4345 before visibility. Locally defined protected symbols are not
4348 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
4350 * config.bfd: Enable coff64 for rs6000-*. Patch from
4351 <hzoli@austin.ibm.com>.
4353 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
4355 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
4356 found, do not attempt to find dwarf2 info before returning.
4358 2001-02-07 Jakub Jelinek <jakub@redhat.com>
4360 * elflink.h (is_global_symbol_definition): Rename to
4361 is_global_data_symbol_definition and have it reject function
4363 (elf_link_is_defined_archive_symbol): Use renamed function.
4365 2001-02-07 Todd Vierling <tv@wasabisystems.com>
4367 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
4368 * libbfd.h (bfd_target_vector): Likewise.
4369 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
4370 make static; create pointer reference named bfd_target_vector.
4371 (_bfd_target_vector_entries): Calculate this based on the array
4372 typed _bfd_target_vector.
4374 2001-02-06 H.J. Lu <hjl@gnu.org>
4376 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
4377 internal symbols are not dynamic.
4378 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
4380 2001-02-06 Nick Clifton <nickc@redhat.com>
4382 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
4383 that it will not be pulled into the list of files that make up
4385 * Makefile.in: Regenerate.
4386 * po/bfd.pot: Regenerate.
4388 2001-02-06 H.J. Lu <hjl@gnu.org>
4390 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
4392 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
4393 external_PEI_IMAGE_hdr.
4395 2001-02-06 Kazu Hirata <kazu@hxi.com>
4397 * elf-m10200.c: Fix formatting.
4399 2001-02-04 Nick Clifton <nickc@redhat.com>
4401 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
4402 rel, it will be handled later on.
4404 2001-02-02 Fred Fish <fnf@ninemoons.com>
4406 * Makefile.in: Fix typo.
4408 2001-02-01 Kazu Hirata <kazu@hxi.com>
4410 * elf-m10300.c: Fix formatting.
4412 2001-01-30 Alan Modra <alan@linuxcare.com.au>
4414 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4415 (elf_backend_get_symbol_type): Define.
4416 (elf64_hppa_object_p): Set architecture and machine from elf
4419 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4421 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4424 2001-01-26 Richard Henderson <rth@redhat.com>
4426 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4427 for non-default visibility.
4428 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4429 delete ugly macro and replace with pretty function.
4431 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4433 * coff-go32.c: Update copyright.
4434 * coff-stgo32.c: Likewise.
4435 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4436 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4437 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4438 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4440 2001-01-25 Kazu Hirata <kazu@hxi.com>
4442 * bfd-in2.h: Rebuild.
4443 * libbfd.h: Likewise.
4445 2001-01-23 H.J. Lu <hjl@gnu.org>
4447 * bfd-in2.h: Rebuild.
4449 2001-01-23 H.J. Lu <hjl@gnu.org>
4451 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4452 is NULL or PRIV(vms_rec) is outside of the buffer.
4454 2001-01-23 Kazu Hirata <kazu@hxi.com>
4456 * coff64-rs6000.c: Fix formatting.
4457 * coff-arm.c: Likewise.
4458 * coffgen.c: Likewise.
4459 * cofflink.c: Likewise.
4460 * coff-mcore.c: Likewise.
4461 * coff-mips.c: Likewise.
4462 * coff-pmac.c: Likewise.
4463 * coff-ppc.c: Likewise.
4464 * coff-rs6000.c: Likewise.
4465 * elf32.c: Likewise.
4466 * elf32-fr30.c: Likewise.
4467 * elf32-i370.c: Likewise.
4468 * elf32-i860.c: Likewise.
4469 * elf32-m32r.c: Likewise.
4470 * elf32-m68k.c: Likewise.
4471 * elf32-mcore.c: Likewise.
4472 * elf32-ppc.c: Likewise.
4473 * elf32-sh.c: Likewise.
4474 * elf32-v850.c: Likewise.
4475 * elf64-alpha.c: Likewise.
4476 * elf64-sparc.c: Likewise.
4477 * elflink.c: Likewise.
4478 * elflink.h: Likewise.
4479 * elf-m10200.c: Likewise.
4480 * elf-m10300.c: Likewise.
4481 * elfxx-ia64.c: Likewise.
4483 * aoutx.h: Fix formatting.
4485 * bfd-in2.h: Likewise.
4486 * bfd-in.h: Likewise.
4487 * cpu-i386.c: Likewise.
4488 * cpu-m68hc11.c: Likewise.
4489 * dwarf2.c: Likewise.
4490 * elf64-x86-64.c: Likewise.
4491 * format.c: Likewise.
4492 * freebsd.h: Likewise.
4494 * hp300hpux.c: Likewise.
4495 * hppabsd-core.c: Likewise.
4496 * hpux-core.c: Likewise.
4498 2001-01-22 Bo Thorsen <bo@suse.de>
4500 * elf64-x86-64.c: Added PIC support for X86-64.
4501 (elf64_x86_64_link_hash_newfunc): Function added.
4502 (elf64_x86_64_link_hash_table_create): Likewise.
4503 (elf64_x86_64_check_relocs): Likewise.
4504 (elf64_x86_64_gc_mark_hook): Likewise.
4505 (elf64_x86_64_gc_sweep_hook): Likewise.
4506 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4507 (elf64_x86_64_size_dynamic_sections): Likewise.
4508 (elf64_x86_64_discard_copies): Likewise.
4509 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4510 (elf64_x86_64_finish_dynamic_sections): Likewise.
4511 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4513 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4515 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4516 * Makefile.in: Regenerate.
4518 2001-01-21 Kazu Hirata <kazu@hxi.com>
4520 * coff-a29k.c: Fix formatting.
4522 2001-01-19 H.J. Lu <hjl@gnu.org>
4524 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4525 relocation section names.
4526 (elf_i386_relocate_section): Report files with bad relocation
4527 section names and return false.
4529 2001-01-17 Bo Thorsen <bo@suse.de>
4531 * targets.c: Alphabetize list of xvecs.
4533 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4535 * config.bfd: Add linux target variant for elfxx-hppa.
4536 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4537 bfd_elf64_hppa_linux_vec.
4538 * configure: Regenerate.
4539 * elf64-hppa.c: Include elf64-target.h again to support linux
4541 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4542 * elf32-hppa.c: Include elf32-target.h again to support linux
4544 (elf32_hppa_post_process_headers): New function.
4545 (elf_backend_post_process_headers): Define.
4546 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4547 bfd_elf32_hppa_linux_vec.
4549 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4550 and data_segment_base fields.
4551 (elf32_hppa_link_hash_table_create ): Init them.
4552 (elf32_hppa_check_relocs): Update comments.
4553 (hppa_record_segment_addr): New function.
4554 (elf32_hppa_relocate_section): Call it.
4555 (final_link_relocate): Handle R_PARISC_SEGREL32.
4556 (elf32_hppa_final_link): New function.
4557 (bfd_elf32_bfd_final_link): Define to call it.
4558 (hppa_unwind_entry_compare): New function.
4559 * cache.c (bfd_open_file): Create files in write+read mode.
4561 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4562 SEGREL32 and numerous other relocs. Change duplicate
4563 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4565 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4568 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4569 .plt entries for DT_INIT and DT_FINI.
4570 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4571 DT_INIT and DT_FINI.
4573 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4574 offsets for stub .plt access if wide mode. Check offset in range.
4576 2001-01-13 Nick Clifton <nickc@redhat.com>
4578 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4581 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4584 2001-01-12 Alan Modra <alan@linuxcare.com.au>
4586 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4587 * configure: Regenerate.
4589 2001-01-11 Peter Targett <peter.targett@arccores.com>
4591 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4592 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4593 * cpu-arc.c (arch_info_struct): Add entries for variants.
4594 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4595 (arc_get_mach) Don't assume machine names prefixed arc- before
4597 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4599 (arc_elf_final_write_processing) Likewise.
4600 (ELF_MACHINE_CODE) Use EM_ARC.
4602 2001-01-10 Nick Clifton <nickc@redhat.com>
4604 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
4606 2001-01-07 Philip Blundell <philb@gnu.org>
4608 * README: Replace `bug-gnu-utils@gnu.org' with
4609 `bug-binutils@gnu.org'.
4611 2001-01-04 Kazu Hirata <kazu@hxi.com>
4613 * som.c: Fix formatting.
4615 2001-01-03 Kazu Hirata <kazu@hxi.com>
4617 * ecoffswap.h: Fix formatting.
4618 * elf-bfd.h: Likewise.
4619 * elfarm-nabi.c: Likewise.
4620 * elfarm-oabi.c: Likewise.
4621 * elfcode.h: Likewise.
4622 * elfcore.h: Likewise.
4623 * elflink.c: Likewise.
4624 * elflink.h: Likewise.
4625 * elfxx-ia64.c: Likewise.
4626 * elfxx-target.h: Likewise.
4627 * libbfd.c: Likewise
4628 * linker.c: Likewise.
4629 * lynx-core.c: Likewise.
4631 2001-01-02 Kazu Hirata <kazu@hxi.com>
4633 * pc532-mach.c: Fix formatting.
4634 * pe-arm.c: Likewise.
4635 * pe-i386.c: Likewise.
4636 * pe-mips.c: Likewise.
4637 * pe-ppc.c: Likewise.
4638 * pe-sh.c: Likewise.
4639 * pei-mips.c: Likewise.
4640 * pei-sh.c: Likewise.
4641 * peicode.h: Likewise.
4642 * ppcboot.c: Likewise.
4643 * ptrace-core.c: Likewise.
4645 2001-01-01 Kazu Hirata <kazu@hxi.com>
4647 * reloc.c: Fix formatting.
4648 * riscix.c: Likewise.
4649 * rs6000-core.c: Likewise.
4650 * xcoff-target.h: Likewise.
4652 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4654 * elfcode.h (elf_object_p): Also restore the bfd mach field on
4655 error, by calling bfd_default_set_arch_mach with incoming
4658 2000-12-26 Kazu Hirata <kazu@hxi.com>
4660 * vaxnetbsd.c: Fix formatting.
4661 * versados.c: Likewise.
4662 * vms-gsd.c: Likewise.
4663 * vms-hdr.c: Likewise.
4664 * vms-misc.c: Likewise.
4666 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
4668 * archive.c (coff_write_armap): Don't write more than symbol_count
4669 `archive_member_file_ptr's.
4671 2000-12-25 Kazu Hirata <kazu@hxi.com>
4673 * vms-tir.c: Fix formatting.
4675 2000-12-23 Kazu Hirata <kazu@hxi.com>
4677 * vms.c: Fix formatting.
4680 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
4682 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
4684 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
4686 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
4689 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
4691 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
4693 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
4695 * libbfd.c (bfd_get_bits): Added
4696 (bfd_put_bits): Likewise
4697 * bfd-in.h: Declared the above.
4698 * bfd-in2.h: Regenerated.
4700 2000-12-20 Kazu Hirata <kazu@hxi.com>
4702 * targets.c: Fix formatting.
4703 * tekhex.c: Likewise.
4704 * trad-core.c: Likewise.
4706 2000-12-19 Kazu Hirata <kazu@hxi.com>
4708 * sco5-core.c: Fix formatting.
4709 * section.c: Likewise.
4710 * sparclinux.c: Likewise.
4711 * sparclynx.c: Likewise.
4712 * sparcnetbsd.c: Likewise.
4714 * stabs.c: Likewise.
4715 * stab-syms.c: Likewise.
4716 * sunos.c: Likewise.
4718 * sysdep.h: Likewise.
4720 2000-12-18 Nick Clifton <nickc@redhat.com>
4722 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
4724 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
4725 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
4727 2000-12-18 Nick Clifton <nickc@redhat.com>
4729 * vms-misc.c (_bfd_vms_get_record): Add default case to
4732 2000-12-15 Miloslav Trmac <mitr@volny.cz>
4734 * elfcore.h (elf_core_file_p): Move to the start of the program
4735 headers before attempting to read them.
4737 2000-12-14 Kazu Hirata <kazu@hxi.com>
4739 * peigen.c: Fix formatting.
4743 2000-12-13 Kazu Hirata <kazu@hxi.com>
4745 * peigen.c: Fix formatting.
4747 2000-12-12 Jim Wilson <wilson@redhat.com>
4749 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4751 2000-12-08 Mark Salter <msalter@redhat.com>
4753 * binary.c (binary_set_section_contents): Ignore sections
4756 2000-12-12 Kazu Hirata <kazu@hxi.com>
4758 * m68klinux.c: Fix formatting.
4759 * m68knetbsd.c: Likewise.
4760 * mipsbsd.c: Likewise.
4761 * netbsd-core.c: Likewise.
4762 * netbsd.h: Likewise.
4763 * newsos3.c: Likewise.
4764 * nlm32-alpha.c: Likewise.
4765 * nlm32-i386.c: Likewise.
4766 * nlm32-ppc.c: Likewise.
4767 * nlm32-sparc.c: Likewise.
4768 * nlmcode.h: Likewise.
4769 * nlmswap.h: Likewise.
4770 * nlm-target.h: Likewise.
4771 * ns32knetbsd.c: Likewise.
4773 2000-12-10 Fred Fish <fnf@be.com>
4775 * elflink.h (elf_link_output_extsym): Don't complain about undefined
4776 symbols in shared objects if allow_shlib_undefined is true.
4778 2000-12-12 Nick Clifton <nickc@redhat.com>
4780 * cpu-sh.c: Fix formattng.
4781 * elf.c: Fix formattng.
4782 * elf32-mips.c: Fix formattng.
4783 * elf32-sh.c: Fix formattng.
4784 * elf64-alpha.c: Fix formattng.
4786 2000-12-09 Nick Clifton <nickc@redhat.com>
4788 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
4789 dwarf2_find_line_info as last parameter to invocation of
4790 _bfd_dwarf2_find_nearest_line.
4791 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
4792 dwarf2_find_line_info as last parameter to invocation of
4793 _bfd_dwarf2_find_nearest_line.
4795 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
4797 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
4798 (BFD_LIBS): ...to here.
4799 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
4800 (BFD_LIBS_CFILES): ...to here.
4801 * Makefile.in: Regenerate.
4802 * configure.in: Remove dwarf.lo from the elf shell variable.
4803 * configure: Regenerate.
4804 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
4805 * libcoff.h: Regenerate.
4806 * coffgen.c (coff_find_nearest_line): Call
4807 _bfd_dwarf2_find_nearest_line.
4808 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4810 (read_abbrevs): Likewise
4811 (decode_line_info): Likewise.
4812 (parse_comp_unit): Likewise.
4813 (comp_unit_find_nearest_line): Likewise.
4814 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4815 * libbfd.h: Regenerate.
4816 * elf.c (_bfd_elf_find_nearest_line): Update call.
4817 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4818 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4819 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4820 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4821 (styp_to_sec_flags): Handle DWARF2 sections.
4822 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4823 to _bfd_find_nearest_line.
4824 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4825 call to _bfd_find_nearest_line.
4827 2000-12-08 Kazu Hirata <kazu@hxi.com>
4829 * coffgen.c: Fix formatting.
4830 * elf-m10300.c: Likewise.
4831 * elf32-i386.c: Likewise.
4832 * elf32-i960.c: Likewise.
4833 * elf32-m68k.c: Likewise.
4834 * elf32-mcore.c: Likewise.
4835 * elf32-ppc.c: Likewise.
4836 * elf32-sh.c: Likewise.
4837 * elf32-sparc.c: Likewise.
4838 * elf32-v850.c: Likewise.
4839 * elf64-alpha.c: Likewise.
4840 * elf64-hppa.c: Likewise.
4841 * elf64-mips.c: Likewise.
4842 * elf64-sparc.c: Likewise.
4844 2000-12-07 Kazu Hirata <kazu@hxi.com>
4846 * elf32-ppc.c: Fix formatting.
4847 * elf64-x86-64.c: Likewise.
4849 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4851 From Ralf Baechle <ralf@gnu.org>
4853 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4854 BFDs containing no sections or empty .text, .data or .bss sections
4855 to be merged, regardless of their flags.
4857 2000-12-06 Kazu Hirata <kazu@hxi.com>
4859 * elf32-m32r.c: Fix formatting.
4860 * elf32-m68hc11.c: Likewise.
4861 * elf32-m68hc12.c: Likewise.
4862 * elf32-m68k.c: Likewise.
4863 * elf32-mcore.c: Likewise.
4864 * elf32-pj.c: Likewise.
4865 * elf32-ppc.c: Likewise.
4867 2000-12-05 Kazu Hirata <kazu@hxi.com>
4869 * elf32-fr30.c: Fix formatting.
4870 * elf32-hppa.c: Likewise.
4871 * elf32-i370.c: Likewise.
4872 * elf32-i386.c: Likewise.
4873 * elf32-i860.c: Likewise.
4874 * elf32-i960.c: Likewise.
4876 2000-12-03 Kazu Hirata <kazu@hxi.com>
4878 * elf32-arm.h: Fix formatting.
4879 * elf32-avr.c: Likewise.
4880 * elf32-cris.c: Likewise.
4881 * elf32-d10v.c: Likewise.
4882 * elf32-d30v.c: Likewise.
4883 * elf-hppa.h: Likewise.
4884 * elf-m10200.c: Likewise.
4885 * elf-m10300.c: Likewise.
4887 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4889 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4890 bfd_mach_mips32_4k. Update FIXME comment.
4891 * archures.c (bfd_mach_mips32): New constant.
4892 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4893 the latter, renumber it.
4894 * bfd-in2.h (bfd_mach_mips32): New constant.
4895 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4896 the latter, renumber it.
4897 * cpu-mips.c (I_mips32): New constant.
4898 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4899 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4900 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4901 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4902 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4903 with E_MIPS_MACH_MIPS32_4K.
4904 (_bfd_mips_elf_final_write_processing): Replace
4905 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4906 bfd_mach_mips32 case.
4907 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4908 comparison with support for MIPS32.
4909 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4912 * aoutx.h (NAME(aout,machine_type)): Add cases for
4913 bfd_mach_mips5 and bfd_mach_mips64.
4914 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4915 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4916 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4917 (arch_info_struct): Add entries for bfd_mach_mips5 and
4919 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4920 _bfd_mips_elf_print_private_bfd_data): Add cases for
4921 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4922 (_bfd_mips_elf_final_write_processing): Add cases for
4923 bfd_mach_mips5 and bfd_mach_mips64.
4925 * aoutx.h (NAME(aout,machine_type)): Add a
4926 bfd_mach_mips_sb1 case.
4927 * archures.c (bfd_mach_mips_sb1): New constant.
4928 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4929 * cpu-mips.c (I_sb1): New constant.
4930 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4931 * elf32-mips.c (elf_mips_mach): Add case for
4933 (_bfd_mips_elf_final_write_processing): Add case for
4936 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4938 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4939 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4940 (sparc*-*-rtems*): Switched from a.out to ELF.
4942 2000-11-30 Jan Hubicka <jh@suse.cz>
4944 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4945 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4946 (elf64-x86-64.lo): Add dependencies.
4947 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4948 bfd_mach_x86_64_intel_syntax.
4949 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4950 * config.bfd (x86_64): Add.
4951 * configure.in: Add support for bfd_elf64_x86_64_vec.
4952 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4953 (bfd_i386_arch, i8086_ar): Link in.
4954 * elf64-x86-64.c: New file.
4955 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4956 * targets.c (bfd_elf64_x86_64_vec): Add.
4957 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4959 2000-11-30 Kazu Hirata <kazu@hxi.com>
4961 * xcofflink.c: Fix formatting.
4963 2000-11-28 Kazu Hirata <kazu@hxi.com>
4965 * aoutx.h: Fix formatting.
4966 * bfd-in.h: Likewise.
4967 * bfd-in2.h: Likewise.
4968 * cache.c: Likewise.
4969 * cisco-core.c: Likewise.
4970 * coff64-rs6000.c: Likewise.
4971 * coffcode.h: Likewise.
4972 * coffswap.h: Likewise.
4973 * corefile.c: Likewise.
4974 * elf32-mips.c: Likewise.
4976 2000-11-27 Kazu Hirata <kazu@hxi.com>
4978 * aout-adobe.c: Fix formatting.
4979 * coff64-rs6000.c: Likewise.
4980 * coffgen.c: Likewise.
4981 * cofflink.c: Likewise.
4983 2000-11-27 Philip Blundell <pb@futuretv.com>
4985 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4986 (obj_coff_strings_written): New accessor macro for above.
4987 * libcoff.h: Regenerate.
4988 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4990 * coffcode.h (coff_write_object_contents): No need to write out
4991 the string table if it's already been done.
4993 2000-11-22 Philip Blundell <pb@futuretv.com>
4995 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4996 weak undefined symbols.
4998 2000-11-24 Nick Clifton <nickc@redhat.com>
5000 * archures.c (bfd_mach_arm_5TE): Define.
5001 (bfd_mach_arm+XScale): Define.
5002 * bfd-in2.h: Regenerate.
5004 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
5005 BFD_RELOC_ARM_PCREL_BLX.
5007 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
5008 XScale machine numbers.
5010 * config.bfd (xscale-elf): Add target.
5011 (xscale-coff): Add target.
5013 * cpu-arm.c: Add xscale machine name.
5014 Add v5t, v5te and XScale machine numbers.
5016 2000-11-23 Kazu Hirata <kazu@hxi.com>
5018 * aix386-core.c: Fix formatting.
5020 2000-11-22 Jim Wilson <wilson@redhat.com>
5022 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
5023 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
5024 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
5025 (ins_imms_scaled): Initialize sign_bit at function entry.
5026 (elf64_ia64_operands): Add missing initializers.
5027 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
5028 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
5029 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
5030 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
5031 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
5033 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
5034 and free_extsyms at function entry.
5035 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
5036 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
5037 (get_got): Delete unused local srel.
5038 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
5039 (elfNN_ia64_relocate_section): Delete unused local dynindx.
5041 2000-11-21 Kazu Hirata <kazu@hxi.com>
5043 * coff-a29k.c: Fix formatting.
5044 * coff-h8500.c: Likewise.
5045 * coff-i960.c: Likewise.
5046 * coff-ppc.c: Likewise.
5047 * coff-rs6000.c: Likewise.
5048 * coff-stgo32.c: Likewise.
5049 * coff-tic54x.c: Likewise.
5050 * coff-w65.c: Likewise.
5051 * cpu-h8500.c: Likewise.
5052 * cpu-hppa.c: Likewise.
5053 * cpu-ns32k.c: Likewise.
5054 * ecoff.c: Likewise.
5055 * ecofflink.c: Likewise.
5057 2000-11-21 Nick Clifton <nickc@redhat.com>
5059 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
5060 remove possibility of infinite loop.
5062 2000-11-20 Kazu Hirata <kazu@hxi.com>
5064 * aix386-core.c: Fix formatting.
5065 * aout-adobe.c: Likewise.
5066 * aout-arm.c: Likewise.
5067 * aout-encap.c: Likewise.
5068 * aout-ns32k.c: Likewise.
5069 * aout-target.h: Likewise.
5070 * aout-tic30.c: Likewise.
5071 * aoutf1.h: Likewise.
5072 * aoutx.h: Likewise.
5073 * archive.c: Likewise.
5074 * bfd-in.h: Likewise.
5075 * bfd-in2.h: Likewise.
5079 2000-11-17 H.J. Lu <hjl@gnu.org>
5081 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
5082 pltoff entries for DT_INIT and DT_FINI.
5083 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
5084 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
5087 2000-11-16 Richard Henderson <rth@redhat.com>
5089 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
5090 (allocate_dynrel_entries): Likewise.
5091 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
5092 (set_pltoff_entry): Likewise.
5093 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
5094 (elfNN_ia64_reloc_type_lookup): Likewise.
5095 (elfNN_ia64_install_value): Likewise.
5096 (elfNN_ia64_relocate_section): Likewise.
5097 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
5098 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
5100 2000-11-16 Kazu Hirata <kazu@hxi.com>
5102 * cpu-a29k.c: Fix formatting.
5103 * cpu-alpha.c: Likewise.
5104 * cpu-arm.c: Likewise.
5105 * cpu-avr.c: Likewise.
5106 * cpu-d10v.c: Likewise.
5107 * cpu-h8500.c: Likewise.
5108 * cpu-hppa.c: Likewise.
5109 * cpu-i370.c: Likewise.
5110 * cpu-i386.c: Likewise.
5111 * cpu-i960.c: Likewise.
5112 * cpu-ia64-opc.c: Likewise.
5113 * cpu-ia64.c: Likewise.
5114 * cpu-m32r.c: Likewise.
5115 * cpu-m68hc11.c: Likewise.
5116 * cpu-m68hc12.c: Likewise.
5117 * cpu-m68k.c: Likewise.
5118 * cpu-m88k.c: Likewise.
5119 * cpu-mips.c: Likewise.
5120 * cpu-ns32k.c: Likewise.
5121 * cpu-pj.c: Likewise.
5122 * cpu-powerpc.c: Likewise.
5123 * cpu-sh.c: Likewise.
5124 * cpu-sparc.c: Likewise.
5125 * cpu-tic54x.c: Likewise.
5126 * cpu-v850.c: Likewise.
5127 * cpu-vax.c: Likewise.
5128 * cpu-w65.c: Likewise.
5129 * cpu-we32k.c: Likewise.
5130 * cpu-z8k.c: Likewise.
5131 * dwarf1.c: Likewise.
5132 * dwarf2.c: Likewise.
5134 2000-11-15 Kazu Hirata <kazu@hxi.com>
5136 * coff-arm.c: Fix formatting.
5137 * coff-ppc.c: Likewise.
5138 * coff-rs6000.c: Likewise.
5139 * coff-sh.c: Likewise.
5140 * coff-sparc.c: Likewise.
5141 * coff-tic30.c: Likewise.
5142 * coff-tic54x.c: Likewise.
5143 * coff-tic80.c: Likewise.
5144 * coff-w65.c: Likewise.
5145 * coff-we32k.c: Likewise.
5146 * coff-z8k.c: Likewise.
5148 2000-11-15 Richard Henderson <rth@redhat.com>
5150 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
5151 section with the same ALLOC|LOAD flags as the source section.
5153 2000-11-14 Jakub Jelinek <jakub@redhat.com>
5155 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
5156 by STO_ALPHA constants.
5158 2000-11-14 Kazu Hirata <kazu@hxi.com>
5160 * coff-pmac.c: Fix formatting.
5161 * coff-ppc.c: Likewise.
5163 2000-11-13 H.J. Lu <hjl@gnu.org>
5165 * elflink.h (elf_link_add_object_symbols): Also add indirect
5166 symbols for common symbols with the default version.
5168 2000-11-09 Philip Blundell <pb@futuretv.com>
5170 * section.c (STD_SECTION): Set gc_mark flag.
5172 2000-11-11 Kazu Hirata <kazu@hxi.com>
5174 * coff-i960.c: Likewise.
5175 * coff-m68k.c: Likewise.
5176 * coff-m88k.c: Likewise.
5177 * coff-mcore.c: Likewise.
5178 * coff-mips.c: Likewise.
5180 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
5182 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
5184 2000-11-10 Kazu Hirata <kazu@hxi.com>
5186 * coff-h8300.c: Fix formatting.
5187 * coff-h8500.c: Likewise.
5188 * coff-i386.c: Likewise.
5189 * coff-i860.c: Likewise.
5190 * coff-i960.c: Likewise.
5191 * coff-ia64.c: Likewise.
5193 2000-11-09 Kazu Hirata <kazu@hxi.com>
5195 * archive.c: Fix formatting.
5196 * archures.c: Likewise.
5198 2000-11-07 Richard Henderson <rth@redhat.com>
5200 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
5201 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
5202 * section.c (bfd_set_section_contents): Call memcpy if
5203 section->contents set and location not equal to contents plus offset.
5205 2000-11-08 Kazu Hirata <kazu@hxi.com>
5207 * bfd-in.h: Fix formatting.
5208 * bfd-in2.h: Likewise.
5210 * binary.c: Likewise.
5212 * coff-a29k.c: Likewise.
5213 * coff-alpha.c: Likewise.
5214 * coff-apollo.c: Likewise.
5215 * coff-aux.c: Likewise.
5217 2000-11-07 Kazu Hirata <kazu@hxi.com>
5219 * aix386-core.c: Fix formatting.
5220 * aoutf1.h: Likewise.
5221 * aoutx.h: Likewise.
5222 * archures.c: Likewise.
5223 * armnetbsd.c: Likewise.
5225 2000-11-07 Alan Modra <alan@linuxcare.com.au>
5227 * coff-h8300.c (special): Adjust reloc address.
5229 2000-11-06 Steve Ellcey <sje@cup.hp.com>
5231 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
5232 to differentiate elf32 and elf64 on ia64.
5233 * bfd-in2.h: Regenerate.
5234 * config.bfd: Add target for "ia64*-*-hpux*".
5235 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
5236 * configure: Regenerate.
5237 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
5238 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
5240 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
5241 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
5242 * Makefile.in: Regnerate.
5243 * elf64-ia64.c: Deleted.
5244 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
5246 2000-11-06 Kazu Hirata <kazu@hxi.com>
5248 * aout-adobe.c: Fix formatting.
5249 * aout-arm.c: Likewise.
5250 * aout-cris.c: Likewise.
5251 * aout-encap.c: Likewise.
5252 * aout-ns32k.c: Likewise.
5253 * aout-target.h: Likewise.
5254 * aout-tic30.c: Likewise.
5256 2000-11-05 Philip Blundell <philb@gnu.org>
5258 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
5259 BFDs containing no sections to be merged, regardless of their flags.
5261 2000-11-04 Philip Blundell <philb@gnu.org>
5263 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
5264 if a relocation for an undefined symbol also results in an
5267 2000-11-06 Christopher Faylor <cgf@cygnus.com>
5269 * config.bfd: Add support for Sun Chorus.
5271 2000-11-05 David O'Brien <obrien@FreeBSD.org>
5273 * configure.in: Recognize alpha-*-freebsd*.
5274 * configure: Regenerate.
5276 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
5278 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
5279 (Chunk): New global variable set by a parameter in objcopy.c.
5280 (S3Forced): New global variable set by a parameter in
5282 (srec_set_section_contents): If S3Forced is true, always generate
5284 (srec_write_section): Use 'Chunk' to limit maximum length of S
5287 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5289 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
5290 * Makefile.in: Regenerate.
5291 * bfd-in2.h: Regenerate.
5292 * po/bfd.pot: Regenerate.
5294 2000-10-31 Philip Blundell <philb@gnu.org>
5296 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
5297 EF_SOFT_FLOAT if it is defined.
5299 2000-10-27 Philip Blundell <philb@gnu.org>
5301 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
5302 attempts to mix PIC code with non-PIC, just mark the output as
5303 being position dependent.
5304 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
5305 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
5306 all mismatches, not just the first one.
5308 2000-10-25 Chris Demetriou <cgd@sibyte.com>
5310 * ieee.c (ieee_archive_p): Plug one of many possible
5311 memory leaks in error handling.
5313 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5315 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
5316 elf32_sparc_object_p, elf32_sparc_final_write_processing):
5318 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
5319 sparc64_elf_object_p): Support v9b.
5320 * archures.c: Declare v8plusb and v9b machines.
5322 * cpu-sparc.c: Ditto.
5324 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5326 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
5329 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
5330 (SYMBOL_CALLS_LOCAL): New macro.
5331 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
5332 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
5333 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
5334 (ppc_elf_relocate_section): Use flag variable to determine
5335 whether the relocation refers to a local symbol.
5336 Test whether a PLTREL24 reloc will produce a reloc by looking
5337 to see whether a PLT entry was made.
5339 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5341 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
5342 entries that could serve as a definition for a weak symbol.
5344 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
5346 From Ralf Baechle <ralf@gnu.org>
5348 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
5349 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
5350 against local symbols.
5351 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
5353 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5355 * section.c (struct sec): Add kept_section.
5356 (struct bfd_comdat_info): Remove sec, we can use above.
5357 (STD_SECTION): Add initializer.
5358 (bfd_make_section_anyway): Init here too.
5360 * bfd-in2.h: Regenerate.
5362 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
5364 (elf_link_input_bfd): Set all asection->symbol->value's here, and
5365 fudge values for discarded link-once section symbols.
5367 * elf64-hppa.c: Include alloca-conf.h
5369 2000-10-11 Alan Modra <alan@linuxcare.com.au>
5371 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
5373 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
5375 2000-10-10 Alan Modra <alan@linuxcare.com.au>
5377 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
5379 2000-10-10 Tom Rix <trix@redhat.com>
5381 * section.c (bfd_make_section_anyway): Release newsect ptr when
5382 newsect->symbol fails to alloc. Use bfd_release instead of free.
5384 2000-10-09 Richard Henderson <rth@cygnus.com
5386 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
5387 (elf64_ia64_unwind_entry_compare): New.
5388 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
5390 2000-10-07 Alan Modra <alan@linuxcare.com.au>
5392 * elflink.h (size_dynamic_sections): Don't create various tags if
5393 .dynstr is excluded from the link. Don't set first dynsym entry
5394 if dynsymcount is zero.
5395 (elf_bfd_final_link): Don't try to swap out dynamic syms if
5396 .dynsym excluded from the link. Don't try to write any dynamic
5397 sections excluded from the link.
5399 * elf.c (swap_out_syms): Handle global section symbols.
5401 2000-10-05 DJ Delorie <dj@redhat.com>
5403 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
5404 * coffcode.h (coff_set_alignment_hook): read extended reloc count
5405 (coff_write_relocs): write extended reloc count
5406 (coff_write_object_contents): account for extended relocs
5408 2000-10-05 Jim Wilson <wilson@cygnus.com>
5410 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5412 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5413 elf_backend_section_flags function.
5414 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5416 (elf64_ia64_section_flags): New function containing flag conversion
5418 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5419 * elfxx-target.h (elf_backend_section_flags): Define.
5420 (elfNN_bed): Initialize elf_backend_section_flags field.
5422 2000-10-02 Alan Modra <alan@linuxcare.com.au>
5424 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5425 _bfd_elf32_gc_record_vtable. Correct a comment.
5427 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5429 From Ralf Baechle <ralf@gnu.org>
5431 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5432 produces binaries with got[1] = 0x80000001 to differenciate them
5433 for the dynamic linker from the broken binaries produced by old
5436 2000-09-30 Petr Sorfa <petrs@sco.com>
5438 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5439 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5440 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5441 * configure: Regenerate.
5443 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5445 Define two bfd_targets for absence and presence of leading
5446 underscore on symbols. Make sure to only link same kind.
5447 * elf32-cris.c (cris_elf_object_p,
5448 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5449 cris_elf_merge_private_bfd_data): New.
5450 (elf_backend_object_p, elf_backend_final_write_processing,
5451 bfd_elf32_bfd_print_private_bfd_data,
5452 bfd_elf32_bfd_merge_private_bfd_data): Define.
5453 <Target vector definition>: Include elf32-target.h twice with
5454 different macro settings:
5455 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5456 bfd_elf32_us_cris_vec.
5457 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5458 (elf_symbol_leading_char): First as 0, then '_'.
5459 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5460 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5461 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5462 * configure: Regenerate.
5463 * targets.c: Declare bfd_elf32_us_cris_vec.
5464 * po/bfd.pot: Regenerate.
5466 2000-09-29 Momchil Velikov <velco@fadata.bg>
5468 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5469 R_ARM_THM_PC22 relocations.
5471 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5473 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5475 2000-09-29 Momchil Velikov <velco@fadata.bg>
5477 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5478 is has the SEC_HAS_CONTENTS flag set.
5480 2000-09-28 �Örjan Friberg <orjanf@axis.com>
5481 Hans-Peter Nilsson <hp@axis.com>
5483 * aout-cris.c (N_TXTADDR): Define.
5485 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5487 * som.c: Include alloca-conf.h.
5488 * Makefile.am: "make dep-am"
5489 * Makefile.in: Regenerate.
5491 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5493 * elf32-hppa.c (plt_stub): New.
5494 (PLT_STUB_ENTRY): Define.
5495 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5496 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5497 (elf32_hppa_link_hash_table_create): Init to suit.
5498 (elf32_hppa_check_relocs): Set has_12bit_branch and
5499 has_17bit_branch as appropriate.
5500 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5501 non-local functions.
5502 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5503 Add space for plt_stub as needed.
5504 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5505 functions at plt_stub.
5506 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5507 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5509 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5510 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5511 of fixed size, and if negative, disable handling of input sections
5512 before stub section. Set up default stub group size depending
5513 on detected branch relocs.
5514 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5515 ensure different offsets from sym_value aren't rounded to
5516 different 2k blocks. Use lrsel and rrsel for other stubs too for
5517 consistency rather than necessity.
5518 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
5519 (final_link_relocate): Likewise.
5520 (elf32_hppa_relocate_section): Likewise.
5522 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
5523 (_bfd_elf_hppa_gen_reloc_type): Generate them.
5524 (elf_hppa_final_link_relocate): Handle them.
5525 (elf_hppa_relocate_insn): Likewise.
5526 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
5528 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
5530 * elfcode.h (elf_object_p): Preserve and clear abfd section
5531 information. Restore at error.
5533 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5535 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
5536 is empty, make sure that its rva also 0. NT loader dislikes
5539 2000-09-26 Steve Ellcey <sje@cup.hp.com>
5541 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
5544 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5546 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
5547 currently unused RELATIVE_DYNAMIC_RELOCS code.
5548 (hppa_discard_copies): Likewise.
5549 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
5550 comments. Don't check non-code output sections for stub grouping.
5552 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5554 * section.c (bfd_get_unique_section_name): Return NULL if
5557 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5559 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
5560 instruction sequence to actually work.
5561 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
5564 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5566 * elf32-sh.c (sh_elf_relocate_section): Use
5567 _bfd_final_link_relocate to apply the relocation against a section
5568 symbol, when doing relocatable links.
5570 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5572 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
5574 (stub_hash_newfunc): Here too.
5575 (hppa_add_stub): And here.
5576 (elf32_hppa_link_hash_table): Remove stub_section_created,
5577 reloc_section_created, first_init_sec and first_fini_sec. Add
5579 (elf32_hppa_link_hash_table_create): Init to suit.
5580 (hppa_get_stub_entry): Add support for grouping stub sections.
5581 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
5582 section code. Index stub vars by section->id.
5583 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
5584 exit paths. Zap allocation of above removed vars. Refine
5587 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
5588 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
5589 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
5590 rather than pointer to bfd_link_info.
5591 (hppa_add_stub): Likewise.
5592 (final_link_relocate): Likewise.
5594 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
5596 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
5599 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
5601 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
5602 ld/emulparams/shelf.sh.
5604 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5606 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
5607 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
5608 * bfd-in2.h: Regenerate.
5610 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
5612 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
5613 LITUSE relocations incorrectly if -relax is specified on the ld
5614 command line and the displacement field of the load or store
5615 instruction is non-zero. (Patch by paul.winalski@compaq.com)
5617 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5619 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
5620 first_fini_sec here.
5621 (elf32_hppa_size_stubs): Instead correctly find the first .init
5622 and .fini section here.
5624 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
5626 * elf32-hppa.c (clobber_millicode_symbols): New function.
5627 (elf32_hppa_size_dynamic_sections): Call it.
5629 2000-09-14 Alan Modra <alan@linuxcare.com.au>
5631 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
5632 packed. Add plabel, plt_abs packed booleans.
5633 (hppa_link_hash_newfunc): Init new fields.
5634 (PLABEL_PLT_ENTRY_SIZE): Define.
5635 (hppa_stub_name): Use size_t len vars.
5636 (hppa_add_stub): Likewise.
5637 (elf32_hppa_build_stubs): Likewise.
5638 (hppa_build_one_stub): Kill some compiler warnings.
5639 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
5640 if dynamic linking. Munge the local plt offsets into
5641 local_got_refcounts. Set h->plabel for all global PLABELs. Use
5642 size_t len vars. Add assert for plabel addend.
5643 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
5644 (elf32_hppa_hide_symbol): New function.
5645 (elf_backend_hide_symbol): Define.
5646 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
5647 with h->plabel set. Don't make plt entries to have dynamic syms
5648 when they have been forced local. If plt entry is used by a
5649 plabel, make it PLABEL_PLT_ENTRY_SIZE.
5650 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
5651 Set up .plt offsets for local syms.
5652 (elf32_hppa_relocate_section): Initialise plt entries for local
5653 syms. Leave weak undefined plabels zero. Make global plabel
5654 relocs against function symbol, and leave the addend zero.
5655 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
5656 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
5657 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
5658 relocs instead of SEGREL32 for dynamic got relocs.
5659 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
5660 (elf_backend_got_header_size): Adjust.
5661 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
5663 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
5664 (hppa_type_of_stub): Use it instead of #if 0
5665 (hppa_discard_copies): Use it here too.
5666 (elf32_hppa_size_dynamic_sections): And here.
5668 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
5669 (elf32_hppa_link_hash_table_create): And here.
5670 (hppa_build_one_stub): And here. Instead keep track of stub
5671 offset using _raw_size.
5672 (elf32_hppa_size_stubs): Likewise.
5673 (elf32_hppa_build_stubs): Likewise.
5674 (hppa_size_one_stub): Likewise. Resize reloc section too.
5676 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
5677 first_fini_sec handling. Don't search for reloc section or set
5678 hplink->reloc_section_created here.
5679 (elf32_hppa_size_stubs): Instead search for reloc sections, and
5680 set reloc_section_created here.
5681 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
5682 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
5684 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
5686 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
5687 with `hplink->root.'.
5688 (elf32_hppa_check_relocs): Likewise.
5689 (elf32_hppa_gc_sweep_hook): Likewise.
5690 (elf32_hppa_adjust_dynamic_symbol): Likewise.
5691 (hppa_handle_PIC_calls): Likewise.
5692 (elf32_hppa_size_dynamic_sections): Likewise.
5693 (elf32_hppa_set_gp): Likewise.
5694 (elf32_hppa_relocate_section): Likewise.
5695 (elf32_hppa_finish_dynamic_symbol): Likewise.
5696 (elf32_hppa_finish_dynamic_sections): Likewise.
5698 From David Huggins-Daines <dhd@linuxcare.com>
5699 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
5700 defined weak symbols in shared links.
5701 (final_link_relocate): Calls to defined weak symbols in shared
5702 objects must go via import stubs, as the target might not be known
5705 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5707 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
5708 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
5709 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
5710 the original entries with EMPTY_HOWTOs, and added new ones to fill
5712 (sh_elf_info_to_howto): Make sure the new gap isn't used.
5713 (sh_elf_relocate_section): Likewise.
5715 2000-09-13 Anders Norlander <anorland@acc.umu.se>
5717 * cpu-mips.c (arch_info_struct): Add mips:4K
5718 * bfd-in2.h (bfd_mach_mips4K): New define.
5719 * archures.c: Add bfd_mach_mips4K to comment.
5720 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
5721 E_MIPS_ARCH_2 for bfd_mach_mips4K.
5723 2000-09-13 Marco Franzen <marcof@thyron.com>
5725 * som.c (som_write_symbol_strings): Do not used fixed buffers,
5726 use size_t as a counter.
5727 (som_write_space_strings): Similarly.
5729 2000-09-12 Jason Eckhardt <jle@cygnus.com>
5731 * elf32-i860.c (elf32_i860_relocate_pc26): New function
5733 (elf32_i860_relocate_section): Invoke new function from here.
5735 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5737 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
5740 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5742 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
5743 target section name instead of dumping core when the target symbol is
5746 2000-09-09 Kazu Hirata <kazu@hxi.com>
5748 * riscix.c: Remove DEFUN.
5750 2000-09-08 Nick Clifton <nickc@redhat.com>
5752 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
5753 initialise flags in output bfd if the input bfd is the default
5754 architecture with the default flags.
5756 2000-09-08 Kazu Hirata <kazu@hxi.com>
5758 * archive.c: Fix formatting.
5759 * coff-arm.c: Likewise.
5760 * doc/chew.c: Likewise.
5762 2000-09-08 Alan Modra <alan@linuxcare.com.au>
5764 * section.c (bfd_get_unique_section_name): Put a dot before the
5767 2000-09-07 Kazu Hirata <kazu@hxi.com>
5769 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
5770 * elf.c: Fix formatting.
5772 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
5774 * config.bfd (sh-*-linux*): Added.
5775 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
5776 * targets.c: Declare them.
5777 * elf32-sh-lin.c: New file.
5778 * Makefile.am: Compile it.
5779 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
5780 * configure, Makefile.in: Rebuilt.
5782 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
5784 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
5785 pseduo-section when determining where the TOC ends.
5787 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
5788 output x_tvndx as it is only two bytes wide.
5790 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
5791 reloc is 26 or 32 bits wide.
5793 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
5794 for relocs that don't change anything. Also look at the full
5797 2000-09-06 Philip Blundell <philb@gnu.org>
5799 * config.bfd (arm*-*-uclinux*): New target.
5801 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5803 * configure: Rebuilt with new libtool.m4.
5805 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5807 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
5808 word for variable name.
5809 * bfd-in2.h: Regenerate.
5811 2000-09-05 Nick Clifton <nickc@redhat.com>
5813 * config.in: Regenerate.
5814 * libbfd.h: Regenerate.
5815 * po/bfd.pot: Regenerate.
5816 * doc/bfdint.texi: Remove CVS date string - it foils compares with
5819 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
5821 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
5823 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5825 Shared library and PIC support.
5826 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5827 (GOT_ENTRY_SIZE): New.
5828 (ELF_DYNAMIC_INTERPRETER): New.
5829 (STUB_SUFFIX): Define.
5830 (LONG_BRANCH_PIC_IN_SHLIB): Define.
5831 (RELATIVE_DYNAMIC_RELOCS): Define.
5832 (enum elf32_hppa_stub_type): New.
5833 (struct elf32_hppa_stub_hash_entry): Rename offset to
5834 stub_offset. Add a number of new fields.
5835 (struct elf32_hppa_link_hash_entry): New.
5836 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
5838 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
5839 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
5840 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
5842 (hppa_link_hash_newfunc): New function.
5843 (elf32_hppa_link_hash_table_create): Use above function. Init new
5845 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
5846 instead of addend, and remove sym_name from args. Don't use
5847 symbol name for local syms, instead use sym index.
5848 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
5849 stub type rather than size. Pass in hash and handle import stub
5850 case. Also pass in reloc instead of offset so we can calculate
5851 PCREL22F and PCREL12F branches properly.
5852 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
5853 import and export stubs too.
5854 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5855 import and export stub sizing.
5856 (elf32_hppa_check_relocs): New function.
5857 (elf32_hppa_adjust_dynamic_symbol): New function.
5858 (hppa_discard_copies): New function.
5859 (elf32_hppa_size_dynamic_sections): New function.
5860 (elf_backend_size_dynamic_sections): Define.
5861 (elf32_hppa_finish_dynamic_symbol): New function.
5862 (elf_backend_finish_dynamic_symbol): Define.
5863 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5864 some local vars into the link hash table too. For shared links,
5865 trundle over function syms, generating export stubs. Handle
5866 PCREL22F branches. Break out stub creation code from here..
5867 (hppa_add_stub): .. to here. New function.
5868 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5869 call the bfd linker. Use elf_gp to record global pointer.
5870 Calculate a value from sections if $global$ is missing.
5871 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5872 (elf32_hppa_gc_mark_hook): New function.
5873 (elf_backend_gc_mark_hook): Define.
5874 (elf32_hppa_gc_sweep_hook): New function.
5875 (elf_backend_gc_sweep_hook): Define.
5876 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5877 Add rel to args, and remove howto, input_bfd, offset, addend,
5878 sym_name as we can recalculate these locally. Handle calls to
5879 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5880 handling of undefined weak syms. Check that stubs are in range.
5881 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5882 message on hitting a DPREL21L reloc that needs fixing. Subtract
5883 off PC for PCREL14F. Break out code that does a stub lookup from
5885 (hppa_get_stub_entry): ..to here. New function.
5886 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5887 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5889 (elf32_hppa_finish_dynamic_sections): New function.
5890 (elf_backend_finish_dynamic_sections): Define.
5891 (elf_backend_final_write_processing) Define.
5892 (hppa_handle_PIC_calls): New function.
5893 (elf32_hppa_build_stubs): Call it. Pass link_info to
5894 hppa_build_one_stub.
5895 (elf32_hppa_create_dynamic_sections): New function
5896 to create .plt and .got then set .plt flags correctly.
5897 (elf_backend_create_dynamic_sections): Define.
5898 (elf32_hppa_object_p): New function.
5899 (elf_backend_object_p): Define.
5900 (elf32_hppa_elf_get_symbol_type): New function.
5901 (elf_backend_get_symbol_type): Define.
5902 (elf_backend_can_gc_sections): Define.
5903 (elf_backend_want_got_plt): Define.
5904 (elf_backend_plt_alignment): Set to 2.
5905 (elf_backend_plt_readonly): Define.
5906 (elf_backend_want_plt_sym): Define.
5907 (elf_backend_got_header_size): Reserve one entry.
5909 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5910 (elf32_hppa_size_stubs): Pass in multi_subspace.
5911 (elf32_hppa_set_gp): Declare.
5913 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5914 (bfd_get_unique_section_name): New function.
5915 * bfd-in2.h: Regenerate.
5917 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5918 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5921 From David Huggins-Daines <dhd@linuxcare.com>
5922 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5923 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5924 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5925 been updated in finish_dynamic_symbol before modifying function
5928 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5929 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5930 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5931 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5932 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5933 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5934 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5935 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5937 From David Huggins-Daines <dhd@linuxcare.com>
5938 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5939 style of local labels as well.
5941 2000-09-03 Philip Blundell <philb@gnu.org>
5943 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5944 references to undefined symbols in debugging sections.
5946 2000-09-02 H.J. Lu <hjl@gnu.org>
5948 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5949 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5950 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5953 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5955 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5956 (elf32_i860_is_local_label_name): New function and prototype.
5958 2000-09-02 Nick Clifton <nickc@redhat.com>
5960 * configure.in: Increase version number to 2.10.91.
5961 * configure: Regenerate.
5962 * aclocal.m4: Regenerate.
5963 * config.in: Regenerate.
5964 * po/bfd.pot: Regenerate.
5966 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5968 * elf.c (_bfd_elf_make_section_from_shdr): Add
5969 .gnu.linkobce.wi. to the list of debug section names.
5971 2000-09-02 Nick Clifton <nickc@redhat.com>
5973 * dwarf2.c (find_debug_info): New function: Locate a section
5974 containing dwarf2 debug information.
5975 (bfd_dwarf2_find_nearest_line): Find all sections containing
5976 debug information and include them in the stash.
5978 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5980 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5981 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5982 (sh_reloc_map): Add new relocs.
5983 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5984 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5985 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5986 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5988 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5989 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5990 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5991 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5992 New array constants.
5993 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5995 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5996 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5997 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5998 elf_sh_plt_reloc_offset): Define.
5999 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
6000 elf_sh_link_hash_table): New structs.
6001 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
6002 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
6004 (elf_backend_create_dynamic_sections,
6005 bfd_elf32_bfd_link_hash_table_create,
6006 elf_backend_adjust_dynamic_symbol,
6007 elf_backend_size_dynamic_sections,
6008 elf_backend_finish_dynamic_symbol,
6009 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
6010 elf_backend_plt_readonly, elf_backend_want_plt_sym,
6011 elf_backend_got_header_size, elf_backend_plt_header_size):
6013 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
6014 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
6016 * bfd-in2.h, libbfd.h: Rebuilt.
6018 2000-09-01 Alan Modra <alan@linuxcare.com.au>
6020 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
6023 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
6025 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
6026 not initialized, set them to indicate the SH1 instruction set.
6028 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
6030 * acinclude.m4: Include libtool and gettext macros from the
6032 * aclocal.m4, configure: Rebuilt.
6034 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
6036 * elf.c: Eliminate references to __sparcv9 macro; replace with
6037 autoconf variables HAVE_PSINFO32_T etc.
6038 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
6039 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
6041 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
6042 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
6043 * aclocal.m4: Ditto.
6044 * configure: Regenerate.
6046 2000-08-27 Alan Modra <alan@linuxcare.com.au>
6048 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
6049 for any shared link, not just shared -Bsymbolic.
6050 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
6051 any shared link, and pass link info to it.
6052 (elf_i386_size_dynamic_sections): Update comment.
6053 (elf_i386_discard_copies): Modify to discard relocs for symbols
6054 that have been forced local.
6055 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
6056 that have been forced local.
6058 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
6060 * elflink.h (elf_link_add_object_symbols): Allow common
6061 symbols to have an alignment of 1 if explicitly requested, and
6062 not overridden by other definitions.
6064 2000-08-22 Doug Kwan <dkwan@transmeta.com>
6066 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
6067 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
6069 2000-08-22 H.J. Lu <hjl@gnu.org>
6071 * elf-bfd.h (elf_link_hash_table): Add runpath.
6073 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
6074 * bfd-in2.h: Rebuilt.
6076 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
6077 "runpath" field to NULL.
6078 (bfd_elf_get_runpath_list): New function.
6080 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
6083 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
6085 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
6086 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
6087 explicitly. Improve validation of r_type.
6089 2000-08-21 H.J. Lu <hjl@gnu.org>
6091 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
6092 dynamic allocated content space. Add a comment to remind us that
6093 one day this ought to be fixed.
6094 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6095 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6096 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6098 2000-08-21 Jason Eckhardt <jle@cygnus.com>
6100 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
6101 field with the newly relocated value instead of adding it to the
6102 existing immediate field.
6103 (elf32_i860_relocate_splitn): Likewise.
6104 (elf32_i860_relocate_highadj): Likewise.
6106 2000-08-16 Jason Eckhardt <jle@cygnus.com>
6108 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
6109 was previously just a stub).
6111 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
6113 * elflink.c (_bfd_elf_create_got_section): Don't abort().
6115 (_bfd_elf_create_dynamic_sections): Likewise.
6117 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
6119 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
6120 for undefined symbols to be the beginning of the section.
6122 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
6123 four extra entries at the beginning of the .rela.plt section.
6124 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
6125 section to account for the four reserved entries in the .plt section.
6127 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
6129 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
6130 to the list of NOPs we recognize after a branch-and-link.
6131 Use the ori NOP when one is needed.
6133 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
6136 2000-08-14 Jim Wilson <wilson@cygnus.com>
6138 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
6139 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
6140 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
6143 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
6145 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
6147 2000-08-10 Jason Eckhardt <jle@cygnus.com>
6149 * elf32-i860.c (elf32_i860_relocate_section): New function.
6150 (i860_final_link_relocate): New function.
6151 (elf32_i860_relocate_splitn): New function.
6152 (elf32_i860_relocate_pc16): New function.
6153 (elf32_i860_relocate_highadj): New function.
6154 (elf32_i860_howto): Minor adjustments to some relocations.
6155 (elf_info_to_howto_rel): Define.
6156 (elf_backend_relocate_section): Define.
6158 2000-08-10 Nick Clifton <nickc@cygnus.com>
6160 * elf32-arm.h: Fix formatting.
6162 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
6164 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
6166 2000-08-08 Jason Eckhardt <jle@cygnus.com>
6168 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
6170 2000-08-07 Kazu Hirata <kazu@hxi.com>
6172 * ieee.c (ieee_write_debug_part): Rewrite a comment.
6173 * elf64-ia64.c: Fix a typo.
6175 2000-08-05 Jason Eckhardt <jle@cygnus.com>
6177 * elf32-i860.c (elf32_i860_howto_table): New structure.
6178 (lookup_howto): New function.
6179 (elf32_i860_reloc_type_lookup): New function.
6180 (elf32_i860_info_to_howto_rela): New function.
6181 (elf_code_to_howto_index): New structure.
6182 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
6183 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
6184 elf32_i860_reloc_type_lookup.
6186 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
6188 * som.c (struct fixup_format): Constify `format'.
6189 (som_hppa_howto_table): Use SOM_HOWTO macro.
6190 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
6191 (som_bfd_reloc_type_lookup): Likewise.
6192 (compare_subspaces): Remove unused `count1', `count2'.
6193 (som_begin_writing): Remove unused `total_reloc_size'.
6194 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
6195 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
6196 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
6197 (som_find_nearest_line): Decorate unused parameter(s).
6198 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
6199 (som_bfd_link_split_section): Likewise.
6201 2000-08-03 Nick Clifton <nickc@cygnus.com>
6203 * section.c: Restore backed out code.
6204 * elf.c: Restore backed out code.
6205 (copy_private_bfd_data): Fix bug preventing stipped dynamic
6206 binaries from working.
6207 * bfd-in2.h: Regenerate.
6209 2000-08-03 H.J. Lu <hjl@gnu.org>
6211 * section.c: Back out the change made by Nick Clifton
6212 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
6214 * bfd-in2.h: Likewise.
6217 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
6219 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
6221 2000-07-31 Jason Eckhardt <jle@cygnus.com>
6223 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
6224 * bfd-in2.h, libbfd.h: Regenerate.
6226 2000-07-31 Nick Clifton <nickc@cygnus.com>
6228 * section.c (struct sec): Add new boolean field 'segment_mark'.
6229 (STD_SECTION): Initialise new field to zero.
6231 * bfd-in2.h: Regenerate.
6233 * elf.c (copy_private_bfd_data): Reorganise section to segment
6234 mapping to cope with moved sections requiring new segments,
6235 and overlapping segments.
6236 (SEGMENT_END): New macro: Return the end address of a segment.
6237 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
6238 contains a section by comparing their VMA addresses.
6239 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
6240 contains a section by comparing their LMA addresses.
6241 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
6242 section should be included in a segment.
6243 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
6244 follows another in memory.
6245 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
6248 2000-07-22 Jason Eckhardt <jle@cygnus.com>
6250 * cpu-i860.c: Added comments.
6252 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
6253 bfd_elf32_i860_little_vec.
6254 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
6255 (ELF_MAXPAGESIZE): Changed to 4096.
6257 * targets.c (bfd_elf32_i860_little_vec): Declaration of
6259 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
6261 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
6262 config for little endian elf32 i860.
6263 (targ_defvec): Define for the new config above
6264 as "bfd_elf32_i860_little_vec".
6265 (targ_selvecs): Define for the new config above
6266 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
6268 * configure.in (bfd_elf32_i860_little_vec): Added recognition
6271 * configure: Regenerated.
6273 2000-07-27 H.J. Lu <hjl@gnu.org>
6275 * elflink.h (elf_merge_symbol): Take one more argument,
6276 dt_needed, to indicate if the symbol comes from a DT_NEEDED
6277 entry. Don't overide the existing weak definition if dt_needed
6279 (elf_link_add_object_symbols): Pass dt_needed to
6280 elf_merge_symbol ().
6282 2000-07-27 Nick Clifton <nickc@cygnus.com>
6284 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
6287 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
6289 * configure.host (*-*-aix*): AIX has 'long long' always.
6291 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
6292 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
6293 (xcoff_write_archive_contents_big): Don't update the offset
6294 of the symbol table, xcoff_write_armap will do it.
6296 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
6298 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
6299 of dynobj for SGI_COMPAT checks.
6301 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6303 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
6304 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
6305 * bfd-in2.h: Regenerate.
6307 2000-07-21 Nick Clifton <nickc@cygnus.com>
6309 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
6310 range symbol indices in relocs and issue an error message.
6312 2000-07-20 H.J. Lu <hjl@gnu.org>
6314 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
6315 info->new_dtags when setting DT_FLAGS_1. It will only be set
6316 by the new linker options. It shouldn't break anything.
6318 2000-07-20 H.J. Lu <hjl@gnu.org>
6320 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
6321 only if info->new_dtags is true.
6323 2000-07-20 H.J. Lu <hjl@gnu.org>
6325 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
6326 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
6328 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
6330 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
6331 (ALL_MACHINES_CFILES): Add cpu-cris.c.
6332 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
6333 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
6334 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
6335 * Makefile.in: Rebuild.
6336 * aclocal.m4: Rebuild.
6337 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
6338 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
6339 (bfd_cris_arch): Declare.
6340 (bfd_archures_list): Add bfd_cris_arch.
6341 * bfd-in2.h: Rebuild.
6342 * config.bfd: (cris-*-*): New target.
6343 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
6344 * configure: Rebuild.
6345 * elf.c (prep_headers): Add bfd_arch_cris.
6346 * libbfd.h: Rebuild.
6347 * libaout.h (enum machine_type): Add M_CRIS.
6348 * reloc.c: Add CRIS relocations.
6349 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
6350 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
6351 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
6352 * po/POTFILES.in, po/bfd.pot: Regenerate.
6354 2000-07-19 H.J. Lu <hjl@gnu.org>
6356 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
6357 DF_TEXTREL if DT_TEXTREL is set.
6358 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
6359 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
6360 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6361 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
6362 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
6363 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6364 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
6365 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6366 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
6367 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
6369 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
6370 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
6372 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
6374 2000-07-19 H.J. Lu <hjl@gnu.org>
6376 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
6377 * bfd-in2.h: Rebuild.
6379 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
6380 (elf_dt_soname): New.
6382 * elf.c (bfd_elf_set_dt_needed_soname): New.
6384 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
6385 entry if the shared object loaded by DT_NEEDED is used to
6386 resolve the reference in a regular object.
6388 2000-07-19 H.J. Lu <hjl@gnu.org>
6390 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
6391 DT_DEPAUDIT and DT_AUDIT as strings.
6393 2000-07-19 Nick Clifton <nickc@cygnus.com>
6395 * format.c: Fix formatting.
6397 2000-07-19 H.J. Lu <hjl@gnu.org>
6399 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
6401 2000-07-19 H.J. Lu <hjl@gnu.org>
6403 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
6404 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
6405 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
6406 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
6407 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
6408 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
6409 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
6411 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
6413 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
6414 renamed functions from here...
6415 (assign_section_numbers): Use renamed functions.
6416 (prep_headers): Use renamed functions.
6418 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
6419 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
6420 * bfd-in2.h: Regenerate.
6422 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
6424 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
6425 parenthesis in if statement.
6427 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
6429 Enable the support for Traditional MIPS.
6430 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
6431 return ict_none appropriately for traditional mips targets.
6432 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
6433 (STUB_MOVE): Conditionalize for traditonal mips.
6434 (STUB_LI16): Likewise.
6435 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6436 room for RTPROC header.
6437 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6438 the permission for the PT_DYNAMIC as read, write and execute.
6439 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6440 for traditonal mips.
6441 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6442 _DYNAMIC_LINKING for traditonal mips.
6443 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6444 in case of traditonal mips.
6445 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6446 entry is required. For a function if PLT is not required then set the
6447 corresponding hash table entry to 0.
6448 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6450 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6451 shared object set the value to 0.
6452 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6453 _DYNAMIC_LINKING for traditonal mips.
6454 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6455 for traditonal mips.
6457 2000-07-15 H.J. Lu <hjl@gnu.org>
6459 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6461 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6463 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6464 out a structure that is BFD_IN_MEMORY.
6466 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6468 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6469 bfd pointer. Print section id instead of bfd pointer for local
6470 syms. Prefix addend with `+' for global syms as well as local.
6471 Correct calculation of name component lengths.
6472 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6474 From David Huggins-Daines <dhd@linuxcare.com>
6475 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6476 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6477 (elf64_hppa_modify_segment_map): Likewise.
6479 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6481 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6482 addresses to be "naturally" sign extended. Return -1 if unknown.
6483 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6484 * bfd-in2.h: Regenerate.
6486 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6488 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6489 and ECOF_SIGNED_64 to list ways to extract an offset.
6490 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6491 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6493 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6494 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6496 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6498 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6499 bfd_get_start_address.
6500 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6501 (elf_swap_ehdr_out): Ditto.
6503 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6505 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6506 compatibility with older binutils.
6508 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6510 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6511 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6513 From Ryan Bradetich <rbradetich@uswest.net>
6514 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6515 (parse_line_table): Ditto.
6516 (_bfd_dwarf1_find_nearest_line): Ditto.
6517 * syms.c (cmpindexentry): Remove extra `*' from params.
6519 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
6521 * elf32-mips.c (sort_dynamic_relocs): New Function.
6522 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
6523 via qsort to sort the dynamic relocations in increasing r_symndx
6526 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6528 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
6529 ATTRIBUTE_UNUSED to unused args.
6530 (get_opd): Likewise.
6531 (get_plt): Likewise.
6532 (get_dlt): Likewise.
6533 (get_stub): Likewise.
6534 (elf64_hppa_adjust_dynamic_symbol): Likewise.
6535 (elf64_hppa_link_output_symbol_hook): Likewise.
6536 (elf64_hppa_check_relocs): Delete unused var.
6537 (elf64_hppa_size_dynamic_sections): Likewise.
6538 (elf64_hppa_finalize_opd): Likewise.
6539 (elf64_hppa_finalize_dynreloc): Likewise.
6540 (elf64_hppa_modify_segment_map): Likewise.
6541 (elf64_hppa_finish_dynamic_sections): Likewise.
6543 * elf-hppa.h (elf_hppa_final_write_processing): Add
6544 ATTRIBUTE_UNUSED to unused args.
6545 (elf_hppa_final_link_relocate): Likewise.
6546 (elf_hppa_record_segment_addrs): Add paretheses.
6547 (elf_hppa_relocate_section): Constify dyn_name.
6549 From David Huggins-Daines <dhd@linuxcare.com>
6550 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
6551 rearrange case statement so that it gets preferred to 32-bit ones.
6553 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
6554 asection->id instead of address of asection structure.
6555 (elf32_hppa_size_stubs): Likewise.
6557 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
6558 for .init* and .fini*.
6560 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
6561 and addends used in stub names to 32 bits.
6562 (elf32_hppa_size_stubs): Likewise.
6564 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
6565 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
6566 not bfd_put_64. Fix minor comment typo and formatting.
6568 Changes to create multiple linker stubs, positioned immediately
6569 before the section where they are required.
6570 * elf32-hppa.c: Don't include hppa_stubs.h.
6571 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
6572 (elf32_hppa_stub_hash_table): Delete.
6573 (elf32_hppa_link_hash_entry): Delete.
6574 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
6575 stub_hash_table, and store the struct here rather than a pointer.
6576 Delete output_symbol_count. Add offset array. Change
6577 global_value to a bfd_vma.
6578 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
6579 (elf32_hppa_stub_hash_traverse): Delete.
6580 (elf32_hppa_name_of_stub): Delete.
6581 (elf32_hppa_link_hash_lookup): Delete.
6582 (elf32_hppa_link_hash_traverse): Delete.
6583 (elf32_hppa_stub_hash_table_init): Delete.
6584 (elf32_hppa_size_of_stub): Pass input section and offset rather
6585 than location and calculate location here. Don't pass name as all
6586 stubs are now the same size.
6587 (elf32_hppa_stub_hash_newfunc): Init new fields.
6588 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
6590 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
6591 comparing against ints. Rewrite stub handling code.
6592 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
6593 Case enums to int before comparing against ints. Remove
6594 bfd_reloc_dangerous case.
6595 (elf32_hppa_build_one_stub): Rewrite.
6596 (elf32_hppa_size_one_stub): New function.
6597 (elf32_hppa_build_stubs): Rewrite.
6598 (elf32_hppa_size_stubs): Pass in linker call-back functions.
6599 Rewrite stub-handling specific code.
6601 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
6603 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
6605 * hppa_stubs.h: Delete.
6606 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
6607 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
6608 * Makefile.in: Regenerate.
6610 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
6613 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
6615 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
6616 and section name for bfd_reloc_notsupported error message.
6617 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
6618 bfd_reloc_notsupported.
6619 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
6621 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
6622 undefined weak symbols for all relocs.
6623 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
6624 offsets are relative to one past the delay slot.
6625 (elf32_hppa_size_stubs): Account for reloc addend when calculating
6626 branch destination. Put addend into stub name too.
6627 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
6628 adjust by 8 when deciding whether a linker stub is needed. Put
6629 addend into stub name as for above.
6631 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
6632 various args and vars.
6633 (elf32_hppa_bfd_final_link_relocate): Here too.
6634 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
6635 inner block var to avoid shadowing.
6637 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
6639 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
6640 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
6641 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
6643 * libhppa.h: Change practically all unsigned ints to plain ints.
6644 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
6647 From Ryan Bradetich <rbradetich@uswest.net>
6648 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
6649 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
6651 From David Huggins-Daines <dhd@linuxcare.com>
6652 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
6653 to the new OP_* ones.
6655 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
6656 error exit. Bail out earlier on plabel relocs that we aren't
6657 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
6658 string, and then don't free our copy.
6659 (elf32_hppa_build_one_stub): Make insn unsigned int.
6661 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
6662 available with BL, not BE and BLE.
6664 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
6665 code for elf arg relocs.
6666 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
6667 argument with elf_link_hash_entry h. Handle undefined weak
6668 symbols. Move $global$ lookup from here...
6669 (elf32_hppa_relocate_section): ...to here. Return correct error
6670 message for non-handled relocs.
6671 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
6672 wrong test was -0x3ffff to +0x40000.
6674 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
6675 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
6676 Handle them as such.
6677 (elf_hppa_relocate_insn): Fix a typo.
6679 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
6680 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6681 assemble_17, assemble_21): Delete.
6682 Supply defines for all 64 possible opcodes.
6683 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
6684 formats. Handle COMICLR.
6685 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
6688 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
6689 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
6690 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
6692 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
6693 the local syms - did this code get deleted accidentally? Ignore
6694 undefined and undefweak syms.
6696 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
6697 block. Use it instead of elf64_hppa_hash_table (info).
6698 (elf_hppa_final_link_relocate): Use hppa_info instead of
6699 elf64_hppa_hash_table (info).
6701 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6702 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6703 (hppa_rebuild_insn): Mask immediate bits here instead.
6704 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6706 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6708 * section.c (struct sec): Add id field. Tidy comment formatting.
6709 (bfd_make_section_anyway): Set id.
6710 (STD_SECTION): Init id too.
6711 Change CONST to const throughout.
6712 * archures.c (bfd_arch_info): Tidy comment.
6713 (bfd_arch_list): Change a CONST to const.
6714 * libbfd-in.h: Tidy comments and replace CONST with const.
6715 * elf-bfd.h: Likewise.
6716 * libbfd.h: Regenerate.
6717 * bfd-in2.h: Regenerate.
6718 * libcoff.h: Regenerate.
6720 2000-07-07 DJ Delorie <dj@redhat.com>
6722 * archive.c (_bfd_write_archive_contents): Add an informative
6725 2000-07-06 Kazu Hirata <kazu@hxi.com>
6727 * srec.c: Fix formatting.
6729 2000-06-05 DJ Delorie <dj@redhat.com>
6733 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
6735 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
6736 value of PC-relative offsets.
6738 2000-07-03 Jim Wilson <wilson@cygnus.com>
6740 * elf64-alpha.c (alpha_elf_size_info): New.
6741 (elf_backend_size_info): Define to alpha_elf_size_info.
6742 * elfcode.h (elf_size_info): Change hash bucket size to 4.
6744 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
6746 * elf32-mips.c: Include elf32-target.h again for the traditional
6749 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
6751 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
6752 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
6753 (avr_info_to_howto_rela): Likewise.
6754 (elf32_avr_gc_mark_hook): Likewise.
6755 (elf32_avr_gc_sweep_hook): Likewise.
6756 (elf32_avr_relocate_section): Likewise.
6758 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
6760 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
6761 an external symbol for a non-shared, non-relocatable link.
6763 2000-07-03 Nick Clifton <nickc@redhat.com>
6765 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
6766 is an external symbol.
6767 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
6770 2000-07-03 Kazu Hirata <kazu@hxi.com>
6772 * reloc16.c: Fix formatting.
6774 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6776 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
6777 to add a new target for traditional mips i.e
6778 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
6779 * configure.in: Likewise.
6780 * configure: Rebuild.
6781 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
6783 (bfd_elf32_tradlittlemips_vec): Likewise.
6784 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
6785 to see that elfNN_bed does not get redefined even if the target file
6786 is included twice for a chip. See elf32-mips.c.
6788 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6790 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6791 (CLEANFILES): Add DEPA.
6792 * Makefile.in: Regenerate.
6794 2000-06-30 DJ Delorie <dj@cygnus.com>
6796 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
6797 can't assume the PE header is at 0x80.
6799 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
6801 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
6803 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
6805 * go32stub.h: Update stub.
6807 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6809 * archures.c (bfd_mach_avr5): Define.
6810 * bfd-in2.h (bfd_mach_avr5): Define.
6811 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
6812 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
6813 (compatible): Update comment. Add missing test.
6814 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
6815 for avr2 and avr4. Simplify 8K wrap code.
6816 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
6817 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
6819 2000-06-26 Kazu Hirata <kazu@hxi.com>
6821 * coff-h8300.c: Fix formatting.
6822 * cpu-h8300.c: Likewise.
6824 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
6826 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
6827 for local symbols whose names are unknown.
6829 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6831 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6833 * Makefile.in: Regenerate.
6834 * doc/Makefile.in: Regenerate.
6836 2000-06-20 H.J. Lu <hjl@gnu.org>
6838 * Makefile.am: Rebuild dependency.
6839 * Makefile.in: Rebuild.
6841 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6843 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
6844 (elf_backend_copy_indirect_symbol): Map to the new function.
6846 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6848 * archive.c (normalize): Correct pointer comparison when checking
6850 (bfd_bsd_truncate_arname): Likewise.
6851 (bfd_gnu_truncate_arname): Likewise.
6853 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6855 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6856 sections elf_{text,data}_{section,symbol}.
6857 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6858 (_bfd_mips_elf_hide_symbol): New function.
6859 (elf_backend_hide_symbol): Map to the new function.
6860 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6861 definitions of mips_elf_{text,data}_{section,symbol}.
6862 (mips_elf_local_relocation_p): Try to find the direct symbol
6863 based on new check_forced argument.
6864 (mips_elf_calculate_relocation): Use new version of
6865 mips_elf_local_relocation_p.
6866 (mips_elf_relocate_section): Likewise.
6867 (_bfd_mips_elf_relocate_section): Likewise.
6868 (mips_elf_sort_hash_table): Only assert that have enough GOT
6870 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6871 entry if the relocation based on the new external argument.
6872 (mips_elf_create_dynamic_relocation): Assert that we have a
6873 section contents allocated where we can swap out the dynamic
6875 (mips_elf_calculate_relocation): Find the real hash-table entry
6876 correctly by using h->root.root.type. Only create a dynamic
6877 relocation entry if the symbol is defined in a shared library.
6878 Create an external GOT entry for the GOT16 relocation if the
6879 symbol was forced local.
6880 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6881 dynamic index if the symbol was forced local.
6883 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6885 * elf32-mips.c: Fix typos in comments.
6887 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6889 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6892 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6894 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6895 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6896 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6897 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6898 (bfd_elf32_m68hc11_vec): Likewise.
6899 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6900 Supports 68hc11 & 68hc12 at the same time.
6901 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6903 (bfd_elf32_m68hc11_vec): Likewise.
6904 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6905 * archures.c (bfd_m68hc12_arch): Define and register in global list
6906 (bfd_m68hc11_arch): Likewise.
6907 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6908 BFD_RELOC_M68HC11_3B): Define.
6909 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6910 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6912 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6914 * elf_bfd.h (struct elf_backend_data): Add info argument to
6915 elf_backend_hide_symbol.
6916 (_bfd_elf_link_hash_hide_symbol): Likewise.
6917 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6918 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6919 * elflink.h (elf_link_add_object_symbols): Likewise.
6920 (elf_link_assign_sym_version): Likewise.
6922 2000-06-18 H.J. Lu <hjl@gnu.org>
6924 * coff-i386.c (coff_i386_reloc): Don't return in case of
6925 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6926 Compensate PE relocations when linking with non-PE object
6927 files to generate a non-PE executable.
6929 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6931 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6932 GOT entries if we're doing a static link or -Bsymbolic link.
6934 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6936 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6937 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6939 (elf_link_output_relocs): Likewise.
6940 (elf_reloc_link_order): Likewise.
6942 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6944 * archures.c (enum bfd_architecture): #define constants for
6945 PowerPc and RS6000 machine numbers.
6946 * bfd-in2.h: Regenerate.
6947 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6948 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6949 and RS6000 machine numbers using #defined constants from
6951 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6952 machine numbers using #defined constants from archures.c. Add
6953 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6954 64-bit words in 620 entry.
6955 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6957 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6959 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6961 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6962 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6963 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6965 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6967 * bfd-in.h (bfd_family_coff): Define.
6968 * bfd-in2.h: Regenerate.
6969 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6970 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6971 instead of bfd_target_coff_flavour.
6972 * cofflink.c (_bfd_coff_final_link): Likewise.
6973 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6974 exclude XCOFF files.
6975 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6977 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6978 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6979 * xcofflink.c (XCOFF_XVECP): Delete.
6980 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6981 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6982 bfd_xcoff_record_link_assignment,
6983 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6984 check for bfd_target_xcoff_flavour.
6986 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6988 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6990 (read_hdr): New function.
6991 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6992 of trying to extract individual registers. Set abfd->arch_info
6993 to match the architecture that created the core file.
6994 (rs6000coff_get_section_contents): Delete.
6995 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6997 2000-06-14 H.J. Lu <hjl@gnu.org>
6999 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
7002 2000-06-13 H.J. Lu <hjl@gnu.org>
7004 * configure: Regenerate.
7006 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
7008 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
7011 2000-06-08 David O'Brien <obrien@FreeBSD.org>
7013 * configure.in (VERSION): Update to show this is the CVS mainline.
7015 2000-06-07 Alan Modra <alan@linuxcare.com.au>
7017 * elf32-d10v.c: Include elf/d10v.h
7018 (enum reloc_type): Delete.
7019 * elf32-d30v.c: Include elf/d30v.h
7020 (enum reloc_type): Delete.
7022 * Makefile.am: Run "make dep-am" to regenerate dependencies.
7023 * Makefile.in: Regenerate.
7025 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
7026 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
7027 move HOWTOs into elf_howto_table.
7028 (R_386_standard, R_386_ext_offset): Define.
7029 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
7030 (elf_i386_reloc_type_lookup): Modify calculation of index into
7031 elf_howto_table since we've removed the padding.
7032 (elf_i386_info_to_howto_rel): Likewise.
7033 (elf_i386_relocate_section): Likewise.
7035 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
7037 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
7039 2000-06-05 H.J. Lu <hjl@gnu.org>
7041 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
7042 an error when seeing an undefined symbol with hidden/internal
7043 attribute. It is handled in *_relocate_section ().
7045 2000-06-05 H.J. Lu <hjl@gnu.org>
7047 * elflink.h (elf_fix_symbol_flags): Follow the link for the
7048 indirect symbol for the ELF_LINK_NON_ELF bit.
7049 (elf_link_output_extsym): Don't output the indirect symbol even
7050 if the ELF_LINK_NON_ELF bit is set.
7052 2000-06-01 J.T. Conklin <jtc@redback.com>
7054 * config.bfd (i[3456]86-*-netbsdelf*): New target.
7055 (i[3456]86-*-netbsdaout*): New target.
7056 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
7057 (i[3456]86-*-openbsd*): Likewise.
7059 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
7061 * trad-core.c: From hpux-core.c, include <dirent.h> or
7062 <sys/ndir.h> when possible.
7064 2000-05-31 Ulrich Drepper <drepper@redhat.com>
7066 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
7067 definitions. We must not assume they are sorted in the file
7068 according to their index numbers.
7070 2000-05-31 Alan Modra <alan@linuxcare.com.au>
7072 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
7073 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
7074 R_PARISC_DIR17F are for absolute branches; Handle them as such.
7076 2000-05-30 Nick Clifton <nickc@cygnus.com>
7078 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
7079 80960CA, 80960MC as valid machine names.
7081 2000-05-30 H.J. Lu <hjl@gnu.org>
7083 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
7084 visibility bits if the symbol is undefined. Correctly handle
7085 weak undefined symbols with hidden and internal attributes.
7087 * elflink.h (elf_link_add_object_symbols): Always turn the
7088 symbol into local if it has the hidden or internal attribute.
7090 2000-05-29 Philip Blundell <philb@gnu.org>
7092 * ppcboot.c: Add packed attribute if compiling with GCC.
7094 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
7096 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
7098 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
7100 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
7101 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
7102 corefile on a 64-bit (Sparc Solaris) host. Also clean up
7105 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7107 * Makefile.am: Update dependencies with "make dep-am"
7108 * Makefile.in: Regenerate.
7110 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
7111 bindtextdomain): Replace defines with those from intl/libgettext.h
7112 to quieten gcc warnings.
7114 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
7116 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
7118 * archive.c (normalize, bfd_bsd_truncate_arname,
7119 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
7120 file names with backslashes.
7122 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
7125 * sysdep.h: Include filenames.h.
7127 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7129 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
7131 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7133 * elf64-sparc.c (sparc64_elf_relax_section): New.
7134 (sparc64_elf_relocate_section): Optimize tail call into branch always
7136 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7137 (elf32_sparc_relax_section): New.
7139 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7141 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
7142 Remove unusued variables.
7143 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
7144 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
7145 previous fix, so that shared libs really don't influence targets
7146 extension mask and memory model.
7148 2000-05-23 H.J. Lu <hjl@gnu.org>
7150 * elf64-alpha.c (elf64_alpha_relocate_section): Check
7151 h->root.other not h->other.
7152 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7154 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
7156 2000-05-23 H.J. Lu <hjl@gnu.org>
7158 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
7159 undefined symbol with the non-default visibility attributes.
7160 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
7161 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7162 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7163 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7164 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7165 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7166 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7167 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7168 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7169 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
7170 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7172 2000-05-22 Richard Henderson <rth@cygnus.com>
7174 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
7175 PCREL22, PCREL64I. Zero size of special relocs.
7176 (elf64_ia64_reloc_type_lookup): Likewise.
7177 (USE_BRL, oor_brl, oor_ip): New.
7178 (elf64_ia64_relax_section): New.
7179 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
7180 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
7181 (elf64_ia64_relocate_section): Likewise.
7182 (bfd_elf64_bfd_relax_section): New.
7183 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
7184 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
7185 * bfd-in2.h, libbfd.h: Regenerate.
7187 2000-05-22 Nick Clifton <nickc@cygnus.com>
7189 * configure.in : Add peigen.lo to MIPS PE targets.
7190 * configure: Regenerate.
7192 2000-05-22 Momchil Velikov <velco@fadata.bg>
7194 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
7195 only if it is known for both input and output bfds. Separate
7196 error message strings as in some languages, it may be necessary
7197 to change more than one place in the string to change between
7200 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
7201 endianess checks, call _bfd_generic_verify_endian_match() instead.
7203 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
7205 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
7207 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
7208 endianess before checking bfd flavours.
7210 2000-05-22 H.J. Lu <hjl@gnu.org>
7212 * elflink.h (elf_link_output_extsym): Clear the visibility
7213 field for symbols not defined locally.
7215 2000-05-18 Alan Modra <alan@linuxcare.com.au>
7217 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
7218 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
7219 (hppa_rebuild_insn): Mask immediate bits here instead.
7220 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
7222 2000-05-18 Momchil Velikov <velco@fadata.bg>
7224 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
7225 relocs for an executable, ensure that they are virtual addresses.
7227 2000-05-18 Jeffrey A Law (law@cygnus.com)
7229 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
7231 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
7232 Rick Gorton <gorton@scrugs.lkg.dec.com>
7234 * elflink.h: Add emitrelocations support: when enabled, relocation
7235 information and relocation sections are put into final output
7236 executables. If the emitrelocations flag is set, do the following:
7237 (elf_bfd_final_link): Emit relocation sections.
7238 (elf_link_input_bfd): Compute relocation section contents.
7239 (elf_gc_sections): Don't clean relocation sections.
7241 2000-05-16 Catherine Moore <clm@cygnus.com>
7243 * som.c (som_decode_symclass): Recognize weak symbols.
7245 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
7247 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
7248 read idata section only from dataoff.
7249 (pe_print_edata): Correctly check for valid eat_member.
7251 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7253 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
7255 2000-05-14 Philip Blundell <philb@gnu.org>
7257 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
7259 2000-05-12 Alan Modra <alan@linuxcare.com.au>
7261 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
7263 * peigen.c (pe_print_idata): Look for .idata section and print
7264 info even if data directory has zero entries. Read idata section
7265 starting from dataoff, and adjust all data offsets to suit. Cast
7266 all bfd_vma vars to unsigned long before passing to fprintf.
7267 * peigen.c (pe_print_edata): Similarly, look for .edata section
7268 and print info even if data directory has zero entries. Cast
7269 all bfd_vma vars to unsigned long before passing to fprintf.
7271 From Szabolcs Szakacsits <szaka@F-Secure.com>
7272 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
7273 directory size which may be bogus.
7274 * peigen.c (pe_print_edata): Similarly.
7276 2000-05-09 Alan Modra <alan@linuxcare.com.au>
7278 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
7280 (copy_private_bfd_data): Allow for space possibly taken up by elf
7281 headers when calculating segment physical address from lma.
7283 2000-05-08 Alan Modra <alan@linuxcare.com.au>
7285 * versados.c (versados_scan): Init stringlen and pass_2_done.
7287 * trad-core.c (trad_unix_core_file_p): Return
7288 bfd_error_wrong_format rather than bfd_error_file_truncated.
7290 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
7291 add_data_entry. DataDirectory virtual address is relative.
7292 (pe_print_idata): Account for relative DataDirectory virtual
7293 addresses. Don't trash datasize inside POWERPC_LE_PE code.
7294 (pe_print_edata): Similarly.
7296 From Szabolcs Szakacsits <szaka@F-Secure.com>
7297 * peigen.c (dir_names): Add Delay Import Directory.
7298 (pe_print_idata): Always search for bfd section containing
7299 idata address rather than looking up section name. Print this
7300 section name rather than .idata.
7301 (pe_print_edata): Similarly. Also print some fields as %08lx.
7302 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
7305 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7307 * xcoff.h: Rename to xcoff-target.h
7308 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
7309 * coff-rs6000.c: Ditto.
7310 * coff64-rs6000.c: Ditto.
7311 * coff-pmac.c: Ditto.
7312 * Makefile.in: Regenerate.
7314 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7316 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
7317 Change U802TOC64MAGIC to U803XTOCMAGIC.
7319 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
7321 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
7322 * bfd-in.h: Prototype bfd_elf_get_arch_size.
7323 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
7325 2000-05-04 Alan Modra <alan@linuxcare.com.au>
7327 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
7329 2000-05-03 Martin v. L�öwis <loewis@informatik.hu-berlin.de>
7331 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
7332 hidden and internal symbols.
7333 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
7335 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
7336 assign a PLT or GOT entry to symbols with hidden and
7337 internal visibility.
7339 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
7341 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
7343 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
7345 2000-05-02 H.J. Lu <hjl@gnu.org>
7347 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
7350 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7352 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
7353 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
7355 * Makefile.in: Regenerate.
7357 2000-05-01 Jim Wilson <wilson@cygnus.com>
7359 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
7360 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
7361 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
7362 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
7363 * Makefile.in: Rebuild.
7365 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7367 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
7368 doesn't work very well.
7370 * elf-hppa.h (elf_hppa_internal_shdr): Define.
7371 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
7372 Set hdr->s_type to 1 if ARCH_SIZE == 32.
7373 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
7374 (elf_hppa_info_to_howto): Likewise.
7375 (elf_hppa_info_to_howto_rel): Likewise.
7376 (elf_hppa_reloc_type_lookup): Likewise.
7377 (elf_hppa_is_local_label_name): Likewise.
7378 (elf_hppa_fake_sections): Likewise.
7379 (elf_hppa_final_write_processing): Likewise.
7380 (elf_hppa_howto_table): Fully initialise all entries.
7381 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
7382 (elf_hppa_info_to_howto): Likewise.
7383 (elf_hppa_info_to_howto_rel): Likewise.
7384 (elf_hppa_reloc_type_lookup): Likewise.
7385 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
7386 elf_hppa_unmark_useless_dynamic_symbols,
7387 elf_hppa_remark_useless_dynamic_symbols,
7388 elf_hppa_record_segment_addrs, elf_hppa_final_link,
7389 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
7390 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
7391 elf32-hppa.c mess is cleaned up.
7392 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
7393 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
7394 r_field then call hppa_field_adjust inline func with variable
7395 r_field arg, instead call hppa_field_adjust with fixed arg.
7396 In case R_PARISC_PCREL22F, don't set r_field.
7397 (elf_hppa_relocate_insn): Change args and return type to unsigned
7398 int. Call re_assemble_* funcs to do the work.
7400 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
7403 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
7405 (sign_extend): Mask first before sign extending.
7406 (low_sign_extend): Rewrite without condition expression.
7407 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
7408 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
7409 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7410 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
7411 result as function return value rather than through pointer arg.
7412 Accept unsigned int args, and return unsigned int.
7413 (re_assemble_3): New. Combines function of dis_assemble_3 with
7414 re-assembly of opcode and immediate.
7415 (re_assemble_12): Likewise.
7416 (re_assemble_16): Likewise.
7417 (re_assemble_17): Likewise.
7418 (re_assemble_21): Likewise.
7419 (re_assemble_22): Likewise.
7420 (hppa_field_adjust): Rewrite and document, paying attention to
7421 size of types and signed/unsigned issues.
7422 (get_opcode): Shift before masking.
7423 (FDLW): Rename to FLDW.
7424 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
7425 (hppa_rebuild_insn): Change args and return value to unsigned
7426 int. Make use of re_assemble_*. Correct case 11.
7428 * dep-in.sed: Handle ../opcodes/.
7429 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
7430 elf64-hppa.h, hppa_stubs.h, xcoff.h.
7431 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
7432 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
7433 elfarm-nabi.lo dependencies outside of auto-dependency area.
7434 Regenerate dependencies.
7435 * Makefile.in: Regenerate.
7437 * configure.in (TRAD_HEADER): Test non-null before
7439 * configure: Regenerate.
7441 * reloc.c: Fix mis-spelling in comment.
7443 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7445 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7446 * vms.c (vms_openr_next_archived_file): Return NULL.
7448 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7450 * coffcode.h Copy changes mistakenly done to libcoff.h in
7453 2000-04-29 Andreas Jaeger <aj@suse.de>
7455 * libbfd-in.h: Correctly check GCC version.
7456 * bfd-in.h: Likewise.
7457 * libhppa.h: Likewise.
7458 * libbfd.h: Regenerate.
7459 * bfd-in2.h: Regenerate.
7461 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7463 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7464 coffdu-rs6000.{lo,c}.
7465 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7467 * Makefile.in: Regenerate.
7468 * xcoff.h: New file.
7469 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7470 * coff-rs6000.c: Move all declarations and defines that are
7471 common to the xcoff backends into xcoff.h
7472 * coff64-rs6000.c: Ditto,
7474 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7476 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7477 _bfd_coff_force_symnames in strings and
7478 _bfd_coff_debug_string_prefix_length to their default values.
7479 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7481 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7483 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7484 _bfd_coff_force_symnames in strings and
7485 _bfd_coff_debug_string_prefix_length to their default values.
7487 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7489 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7490 Check local_got_refcounts before dereferencing.
7492 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7493 before deciding we don't need R_PPC_PLT32 relocation.
7494 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7497 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7499 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7501 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7502 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7503 (elf_i386_relocate_section): Allow for .plt to go missing.
7504 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7505 can use a relative reloc for got as elf_i386_relocate_section.
7506 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7508 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7510 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7512 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7514 * Makefile.am (coff64-rs6000.lo): New rule.
7515 * Makefile.in: Regenerate.
7516 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
7517 xcoff_is_local_label_name, xcoff_rtype2howto,
7518 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
7519 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
7520 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
7521 (NO_COFF_SYMBOLS): Define.
7522 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
7523 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
7525 (MINUS_ONE): New macro.
7526 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7528 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7529 coff_SWAP_aux_out): Map to the new functions.
7530 * coff64-rs6000.c: New file.
7531 * libcoff.h (bfd_coff_backend_data): Add new fields
7532 _bfd_coff_force_symnames_in_strings and
7533 _bfd_coff_debug_string_prefix_length.
7534 (bfd_coff_force_symnames_in_strings,
7535 bfd_coff_debug_string_prefix_length): New macros for above fields.
7536 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
7537 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7538 of using coff_swap_sym_in directly.
7539 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
7540 (coff_set_flags) Set magic for XCOFF64.
7541 (coff_compute_section_file_positions): Add symbol name length to
7542 string section length if bfd_coff_debug_string_prefix_length is
7544 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
7545 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
7546 using coff_swap_lineno_in directly.
7547 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
7548 and _bfd_coff_debug_string_prefix_length fields.
7549 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
7550 symbol names into strings table when
7551 bfd_coff_force_symnames_in_strings is true.
7552 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
7553 SET_RELOC_VADDR): New macros.
7554 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7555 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
7557 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
7558 changes within RS6000COFF_C specific code.
7559 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7560 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
7561 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7562 Extend existing hack on target name.
7563 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
7565 * coff-tic54x.c (ticof): Keep up to date with new fields
7566 in bfd_coff_backend_data.
7567 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
7568 targ_selvecs to include rs6000coff64_vec for rs6000.
7569 * configure.in: Add rs6000coff64_vec case.
7570 * cpu-powerpc.c: New bfd_arch_info_type.
7572 2000-04-24 Jeffrey A Law (law@cygnus.com)
7574 * config.bfd: Only disable elf32-hppa vectors, not all of the
7575 BSD and OSF configuration support. Provide (disabled) clauses
7577 * configure.in: Add clause for PA64 support.
7578 * configure: Rebuilt.
7580 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
7581 (bfd_elf64_hppa_vec): Declare.
7583 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
7584 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
7585 (elf64-hppa.lo): Add dependencies.
7586 * Makefile.in: Rebuilt.
7588 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
7590 2000-04-24 Jason Eckhardt <jle@cygnus.com>
7592 * libhppa.h (dis_assemble_16): New function.
7593 (pa_arch): Added pa20w element.
7595 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
7597 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
7598 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
7599 bfd_elf64_slurp_reloc_table.
7601 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
7602 definitions to get external names.
7603 (elf_write_relocs): Renamed from write_relocs and make global.
7604 (elf_slurp_reloc_table): Make global.
7605 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
7607 * archive.c (hpux_uid_gid_encode): New function.
7608 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
7609 defined and the ID is greater than 99999.
7610 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
7611 special uid/gid fields into 32 bit values.
7613 2000-04-21 Matthew Green <mrg@cygnus.com>
7615 * config.bfd: Add NetBSD/sparc64 support.
7617 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
7618 David Mosberger <davidm@hpl.hp.com>
7619 Timothy Wall <twall@cygnus.com>
7620 Jim Wilson <wilson@cygnus.com>
7622 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
7623 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
7624 (BFD64_BACKENDS): Add elf64-ia64.lo.
7625 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
7626 (cpu-ia64.lo, elf64-ia64.lo): New rules.
7627 * Makefile.in: Rebuild.
7628 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
7629 (bfd_ia64_arch): Declare.
7630 (bfd_archures_list): Add bfd_ia64_arch.
7631 * bfd-in2.h: Rebuild.
7632 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
7633 * configure: Rebuild.
7634 * configure.host: (ia64-*-linux*): New host.
7635 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
7636 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
7637 * elf.c (prep_headers): Add bfd_arch_ia64.
7638 * libbfd.h: Rebuild.
7639 * reloc.c: Add IA-64 relocations.
7640 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
7642 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
7643 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
7645 2000-04-21 Richard Henderson <rth@cygnus.com>
7647 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
7648 contents when performing a partial link.
7649 (bfd_elf_d30v_reloc_21): Likewise.
7651 2000-04-20 H.J. Lu <hjl@gnu.org>
7653 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
7654 patch to symbols defined by a shared object.
7655 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
7657 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7660 * dwarf2.c (concat_filename): Avoid string literal concatenation.
7661 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
7663 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
7665 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
7666 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
7667 (coff-ia64.lo): Add dependency.
7668 * Makefile.in: Regenerate.
7669 * coff-ia64.c: New file.
7670 * efi-app-ia32.c: Ditto.
7671 * efi-app-ia64.c: Ditto.
7672 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
7673 (coff_set_flags): Ditto.
7674 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
7675 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
7676 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
7677 * configure: Regenerate.
7678 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
7679 (PUT_OPTHDR_IMAGE_BASE): Ditto.
7680 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7681 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7682 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7683 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7684 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7685 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7686 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7687 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7688 (GET_PDATA_ENTRY): Ditto.
7689 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
7690 data_start. Use above macros to read fields that are 64 bit wide for
7691 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
7692 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
7693 FileAlignment and SectionAlignment to minimum alignment if they
7695 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
7696 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
7697 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
7698 Use above macros to write fields that are 64 bit wide for
7700 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
7701 5*4 otherwise. This should be right for IA-32 and IA-64, but may
7702 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
7703 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
7704 begin address, end address, and unwind info address only. Use
7705 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
7707 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
7708 HIGH3ADJ relocation names.
7709 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
7710 * targets.c: Declare bfd_efi_app_ia32_vec and
7711 bfd_efi_app_ia64_vec.
7712 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
7713 bfd_efi_app_ia64_vec.
7715 2000-04-17 Timothy Wall <twall@cygnus.com>
7717 * bfd-in2.h: Add prototypes for tic54x load page access.
7718 * bfd-in.h: Regenerate.
7719 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
7720 in customized _set_arch_mach function.
7721 * coffcode.h (coff_set_alignment_hook): Set section load page if
7722 the appropriate macro is defined.
7723 (write_object_contents): Read section load page.
7725 2000-04-13 Alan Modra <alan@linuxcare.com.au>
7727 * elf32-hppa.h: Update copyright date.
7729 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
7730 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
7732 * elf32-d30v.c (MAX32): Don't use LL suffix.
7733 (MIN32): Define in terms of MAX32.
7734 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
7736 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
7739 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
7741 2000-04-12 Alan Modra <alan@linuxcare.com.au>
7743 * dep-in.sed: Match space before file name, not after.
7744 * Makefile.am: Regenerate dependencies.
7745 * Makefile.in: Regenerate.
7747 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
7748 case, allow address wrap-around stupidly removed 2000-03-17. Sign
7749 extend without an if statement.
7751 2000-04-11 Alan Modra <alan@linuxcare.com.au>
7753 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
7755 * elf32-mips.c (gprel16_with_gp): Likewise.
7756 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
7757 here using -0x40000, not (int)0xfffc0000.
7758 (elf32_hppa_size_of_stub): Likewise.
7760 2000-04-11 Timothy Wall <twall@cygnus.com>
7762 * coff-tic54x.c: Now builds with all targets.
7763 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
7764 * Makefile.in: Regenerate.
7765 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
7766 unitialized variable.
7768 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
7770 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
7771 --enable-build-warnings option.
7772 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
7773 * Makefile.in, configure: Re-generate.
7775 2000-04-07 Nick Clifton <nickc@cygnus.com>
7777 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
7778 BFD_RELOC_THUMB_PCREL_BLX.
7780 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7781 R_ARM_XPC25 and R_ARM_THM_PC22.
7783 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
7784 R_ARM_XPC25 and R_ARM_THM_XPC22.
7785 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
7786 R_ARM_[XPC25|THM_XPC22].
7788 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
7789 elf/arm-oabi.h to elf/arm.h
7791 * Makefile.am: Fix dependency for elfarm-oabi.c
7792 * Makefile.in: Regenerate.
7794 * bfd-in2.h: Regenerate.
7795 * libbfd.h: Regenerate.
7797 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7799 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
7800 and restore it on failure. Release newly allocated tdata on
7803 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
7805 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
7806 (decode_line_info): Set it. Report error if unit->line_offset is
7807 equal to or larger than it.
7809 2000-04-07 Timothy Wall <twall@cygnus.com>
7811 * targets.c: Added vecs for tic54x.
7812 * reloc.c: Added relocs for tic54x.
7813 * libbfd.h: Regenerated.
7814 * configure: Add TI COFF vecs for tic54x.
7815 * configure.in: Ditto.
7816 * config.bfd (targ_cpu): Recognize new tic54x target.
7817 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
7818 * bfd-in2.h: Add tic54x target and relocations.
7819 * Makefile.am, Makefile.in: Add tic54x target.
7820 * archures.c (bfd_archures_list): Add tic54x target.
7821 * coff-tic54x.c: New.
7822 * cpu-tic54x.c: New.
7824 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7826 * elfcore.h (elf_core_file_p): call backend_object_p which
7827 thereby gets an opportunity to update the arch/machine type.
7829 2000-04-06 Timothy Wall <twall@cygnus.com>
7831 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
7832 class. Handle SEC_CLINK and SEC_BLOCK flags.
7833 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
7834 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
7836 2000-04-06 Nick Clifton <nickc@cygnus.com>
7838 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
7839 EF_INTERWORK if this is an unknown EABI.
7840 (elf32_arm_merge_private_bfd_data): Check EABI version
7841 numbers. Only check EF_xxx flags if the EABI version number
7843 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
7844 if the EABI version number is unknown.
7845 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
7846 if the EABI version number is unknown.
7848 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7850 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
7851 BFD_RELOC_SH_LOOP_END.
7852 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
7853 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7854 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7855 (sh_elf_reloc_loop): New function.
7856 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7858 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7859 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7860 * bfd-in2.h, libbfd.h: Regenerate.
7862 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7864 * po/bfd.pot: Regenerate.
7866 * Makefile.am: Remove extraneous mkdep comment.
7867 (MKDEP): Use gcc -MM rather than mkdep.
7868 (DEP): Quote when passing vars to sub-make. Add warning
7870 (DEP1): Rewrite for "gcc -MM".
7871 (CLEANFILES): Add DEP2.
7872 Update dependencies.
7873 * Makefile.in: Regenerate.
7875 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7877 * configure.in: Added corefile support for AIX 4.3. In particular,
7878 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7879 compiling rs6000-core.c.
7880 * configure: Regenerated.
7882 2000-04-03 H.J. Lu <hjl@gnu.org>
7884 * cache.c (bfd_open_file): Unlink the output file only if
7885 it has non-zero size.
7887 2000-04-01 Ken Block USG <block@zk3.dec.com>
7889 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7890 relative relocations for non-loaded sections in shared objects.
7891 (elf64_alpha_check_relocs): Similarly.
7893 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7895 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7896 BFD_RELOC_16 to switch for extended relocs.
7897 (MY_swap_ext_reloc_in): New.
7898 (MY_swap_ext_reloc_out): New.
7899 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7900 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7901 (NAME(aout,squirt_out_relocs)): Similarly use
7902 MY_swap_ext_reloc_out.
7903 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7905 2000-04-03 Kazu Hirata <kazu@hxi.com>
7907 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7908 the R_PCRWORD_B case.
7910 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7912 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7916 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7918 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7919 HOWTO references to bfd_elf_generic_reloc, that have
7920 partial_inplace == true, now use the new function. The function
7921 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7922 extends its fixes to the R_M32R_{16,24,32} relocs.
7923 The new logic in m32r_elf_lo16_reloc() has been removed, and
7924 it instead calls the new routine to obtain that functionality.
7926 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7928 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7929 elf32_avr_check_relocs, avr_final_link_relocate,
7930 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7931 elf32_avr_object_p): Add prototypes.
7932 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7933 (bfd_elf_avr_final_write_processing): Make static.
7935 2000-03-27 Denis Chertykov <denisc@overta.ru>
7937 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7938 * archures.c (bfd_architecture): Add AVR architecture.
7939 (bfd_archures_list): Add reference to AVR architecture info.
7940 * elf.c (prep_headers): Handle bfd_arch_avr.
7941 * reloc.c: Add various AVR relocation enums.
7942 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7944 * Makefile.am: Add support for AVR elf.
7945 * configure.in: Likewise.
7946 * config.bfd: Likewise.
7947 * Makefile.in: Regenerate.
7948 * configure: This too.
7949 * bfd-in2.h: And this.
7950 * libbfd.h: And this.
7952 2000-03-24 H.J. Lu <hjl@gnu.org>
7954 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7955 (elf64_alpha_find_reloc_at_ofs): Likewise.
7957 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7959 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7960 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7961 allowable range used to be -2**(n-1) to 2**n-1.
7962 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7963 "boolean overflow" with "bfd_reloc_status_type flag".
7965 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7967 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7969 2000-03-14 Kazu Hirata <kazu@hxi.com>
7971 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7972 of shrinks properly, including the last reloc.
7974 2000-03-13 Kazu Hirata <kazu@hxi.com>
7976 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7979 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7981 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7982 a format mismatch rather than an "error" from bfd_read such as
7983 bfd_error_file_truncated.
7985 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7987 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7988 sign-extension and big-endian compensation for
7989 R_MIPS_64 even in ld -r.
7991 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7993 * elf32-mips.c (mips_elf_next_relocation): Rename from
7994 mips_elf_next_lo16_relocation, and generalize to look
7995 for any relocation type.
7996 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7997 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7998 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7999 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
8000 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
8001 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
8002 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
8003 (mips_rtype_to_howto): Likewise.
8004 (mips_elf_calculate_relocation): Handle new relocs.
8005 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
8006 are paired. The addend for R_MIPS_GNU_REL16_S2
8007 is shifted right two bits.
8009 2000-03-10 Alan Modra <alan@linuxcare.com.au>
8011 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
8012 comment, and ensure it doesn't happen again.
8013 (bfd_install_relocation): Same here.
8014 (_bfd_relocate_contents): Don't bother assigning unused signmask
8015 shift result. Fix typos in comments.
8016 Remove trailing whitespace throughout file.
8018 2000-03-07 Doug Evans <dje@casey.transmeta.com>
8020 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
8021 * bfd-in2.h: Rebuild.
8023 2000-03-06 Nick Clifton <nickc@cygnus.com>
8025 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
8027 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
8028 (SIZEOF_ILF_STRINGS): Redefine.
8029 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
8030 relative reloc, as opposed to a section relative reloc.
8031 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
8033 Add length of symbol's prefix to string pointer.
8034 Store a pointer to the symbol in the symbol pointer table.
8035 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
8036 Initialise the symbol pointer table.
8037 Store the hint in the Hint/Name table.
8038 Make the jump reloc be symbol realtive, not section relative.
8039 Create an import symbol for imported code.
8041 2000-03-06 Catherine Moore <clm@cygnus.com>
8043 * elf.c (swap_out_syms): Check for null type_ptr.
8045 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
8047 * aout-target.h (MY(write_object_contents)): Remove unused
8048 and unusable "#if CHOOSE_RELOC_SIZE".
8049 * pc532-mach.c (MY(write_object_contents)): Ditto.
8050 * netbsd.h (MY(write_object_contents)): Ditto.
8051 * hp300hpux.c (MY(write_object_contents)): Ditto.
8052 * freebsd.h (MY(write_object_contents)): Ditto.
8053 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
8055 2000-02-29 H.J. Lu <hjl@gnu.org>
8057 * peicode.h (jtab): Make it static.
8059 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
8060 defined and COFF_IMAGE_WITH_PE is not defined.
8061 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
8062 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
8064 2000-03-01 Nick Clifton <nickc@cygnus.com>
8066 * coff-arm.c (bfd_arm_process_before_allocation): Make
8067 'symndx' signed to prevent compile time warning.
8069 * coff-mcore.c: Remove unused prototype for pe_object_p.
8071 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
8072 functions that are not used when COFF_IMAGE_WITH_PE is
8074 (struct sh_opcode): Change type of 'flags' field to unsigned
8075 long so that it can hold the USESAS flag.
8077 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
8079 * elf-m10300.c (mn10300_elf_relax_section): Initialise
8082 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
8084 Remove unusued variables and code.
8085 (elf_backend_add_symbol_hook): Fix prototype.
8087 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
8090 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
8093 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
8095 Remove unusued variables and code.
8096 (elf_backend_add_symbol_hook): Fix prototype.
8098 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
8100 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
8101 to unused function parameter.
8103 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
8105 Use EMPTY_HOWTO to initialise empty howto slots.
8106 Remove unused variables.
8108 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
8110 2000-03-01 H.J. Lu <hjl@gnu.org>
8112 * aoutx.h (aout_link_input_section_std): Pass "true" to
8113 the undefined_symbol callback.
8114 (aout_link_input_section_ext): Likewise.
8115 * bout.c (get_value): Likewise.
8116 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
8117 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
8119 (alpha_relocate_section): Likewise.
8120 * coff-arm.c (coff_arm_relocate_section): Likewise.
8121 * coff-i960.c (coff_i960_relocate_section): Likewise.
8122 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
8123 * coff-mips.c (mips_relocate_section): Likewise.
8124 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
8125 * coff-sh.c (sh_relocate_section): Likewise.
8126 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
8127 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
8128 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
8129 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
8130 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
8131 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
8132 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
8133 * elf32-i370.c (i370_elf_relocate_section): Likewise.
8134 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
8135 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
8136 * elf32-sh.c (sh_elf_relocate_section): Likewise.
8137 * elf32-v850.c (v850_elf_relocate_section): Likewise.
8138 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
8139 * elflink.h (elf_link_output_extsym): Likewise.
8140 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
8141 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
8142 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
8144 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
8145 undefined_symbol callback when building shared library with
8146 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
8148 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
8149 * elf32-i386.c (elf_i386_relocate_section): Likewise.
8150 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
8151 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
8152 (elf32_mips_get_relocated_section_content): Likewise.
8153 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
8154 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
8155 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
8156 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
8158 2000-02-28 Nick Clifton <nickc@cygnus.com>
8160 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
8161 * Makefile.in: Regenerate.
8163 * configure.in: Add support for mips and sh pe vectors.
8164 * configure: regenerate.
8166 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
8169 * targets.c: Add mips and sh pe vectors.
8171 * libpei.h (coff_final_link_postscript): Only define if not
8174 * coffcode.h: Add support for WinCE magic numbers.
8176 * peigen.c (pe_print_reloc): Update comment and rearrange
8177 appending of newline character.
8179 * peicode.h: Add support for Image Library Format.
8180 (pe_ILF_vars): Structure containing data used by ILF code.
8181 (pe_ILF_make_a_section): New function. Create a section based
8183 (pe_ILF_make_a_reloc): New function. Create a reloc based on
8185 (pe_ILF_make_a_symbol): New function. Create a symbol based
8187 (pe_ILF_save_relocs): New function. Store the relocs created
8188 by pe_ILF_make_a_reloc in a section.
8189 (pe_ILF_build_a_bfd): New function. Create a BFD describing
8191 (pe_ILF_object_p): New function. Return a bfd_target pointer
8193 (pe_bfd_object_p): If an ILF object is detected call
8194 pe_ILF_object_p on it.
8196 * coff-arm.c: Add support for WinCE relocs which are different
8197 from normal ARM COFF relocs.
8198 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
8200 * coff-sh.c: Add support for sh-pe target.
8201 * pe-sh.c: New file. Support code for sh-pe target.
8202 * pei-sh.c: New file. Support code for sh-pe target.
8204 * pe-mips.c: New file. Support code for mips-pe target.
8205 * pei-mips.c: New file. Support code for mips-pe target.
8207 2000-02-27 Jakub Jelinek <jakub@redhat.com>
8209 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
8210 architecture if the object causing the bump is dynamic.
8211 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
8212 and also don't it for memory ordering.
8213 (sparc64_elf_write_relocs): Take src_rela out of the loop.
8215 2000-02-27 Ian Lance Taylor <ian@zembu.com>
8217 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
8218 calling bfd_get_section_size_before_reloc.
8219 (decode_line_info): Likewise.
8220 (_bfd_dwarf2_find_nearest_line): Likewise.
8222 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
8224 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
8225 name of the libtool directory.
8226 * Makefile.in: Rebuild.
8228 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
8230 * som.c (SOM_HOWTO): Define.
8231 (som_hppa_howto_table): Use it.
8233 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8235 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
8237 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
8239 2000-02-24 Catherine Moore <clm@cygnus.com>
8241 * som.c (som_misc_symbol_info): Add field
8243 (som_bfd_derive_misc_symbol_info): Initialize
8245 (som_build_and_write_symbol_table): Keep track
8246 of secondary_def field.
8247 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
8248 if secondary_def field is set.
8249 (som_bfd_ar_write_symbol_stuff): Initialize
8252 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
8254 * dwarf2.c (read_address): Read 16-bits addresses.
8255 (parse_comp_unit): Accept addr_size == 2.
8257 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
8259 * bfd-in.h: Update copyright date.
8261 2000-02-23 Linas Vepstas <linas@linas.org>
8263 * cpu-i370.c: New file.
8264 * elf32-i370.c: New file.
8265 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
8266 (bfd_i370_arch): New.
8267 (bfd_archures_list): Add bfd_i370_arch.
8268 * elf.c (prep_headers): Add bfd_arch_i370.
8269 * Makefile.am: Add support for IBM 370 elf.
8270 * config.bfd: Likewise.
8271 * configure.in: Likewise.
8272 * libbfd.h (bfd_reloc_code_real_names): Likewise.
8273 * reloc.c (bfd_reloc_code_type): Likewise.
8274 * targets.c: Likewise.
8276 * Makefile.in: Regenerate.
8277 * configure: Regenerate.
8278 * bfd-in2.h: Regenerate.
8280 2000-02-22 Ian Lance Taylor <ian@zembu.com>
8282 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
8283 invalid relocation types, and change them to R_386_NONE.
8285 2000-02-22 H.J. Lu <hjl@gnu.org>
8287 * elflink.h (elf_link_add_object_symbols): If a version symbol is
8288 not defined, don't add a second ELF_VER_CHR.
8290 * elflink.h (elf_bfd_final_link): Call output_extsym for global
8291 symbols converted to local symbols even when stripping all
8293 (elf_link_output_extsym): Process global symbols converted to
8294 local symbols even if they are being stripped.
8296 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
8298 * archures.c (bfd_octets_per_byte): Return unsigned int.
8299 (bfd_arch_mach_octets_per_byte): Ditto.
8300 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
8302 * section.c (bfd_get_section_size_before_reloc): Quell signed
8303 vs. unsigned comparison warning.
8304 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
8305 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
8306 change. What was I thinking?
8307 * bfd-in2.h: Regenerate.
8309 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
8310 (elf_gc_sections): Same here.
8311 (elf_gc_common_finalize_got_offsets): And here.
8313 2000-02-21 Ian Lance Taylor <ian@zembu.com>
8315 ELF HPPA doesn't work at present; remove it until it does.
8316 * config.bfd: Comment out setting targ_defvec to
8318 * Makefile.am: Rebuild dependencies.
8319 (BFD32_BACKENDS): Remove elf32-hppa.lo.
8320 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
8321 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
8322 * Makefile.in: Rebuild.
8323 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
8325 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8327 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
8328 is no bfd_free(). Revert bfd_free part of previous change.
8330 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8332 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
8334 (coff_compute_section_file_positions): Use bfd_free to pair
8336 (coff_write_object_contents): Likewise.
8338 * coff-rs6000.c (xcoff_howto_table_16): New variable.
8339 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
8341 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
8343 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
8344 (xcoff_ar_file_hdr_big): New structure.
8345 (SIZEOF_AR_FILE_HDR_BIG): New macro.
8346 (xcoff_ar_hdr_big): New structure.
8347 (SIZEOF_AR_HDR_BIG): New macro.
8348 (xcoff_big_format_p): New macro.
8349 (xcoff_ardata_big): New macro.
8350 (arch_xhdr_big): New macro.
8351 (xcoff_slurp_armap): Handle large archives.
8352 (xcoff_archive_p): Detect large archives.
8353 (xcoff_read_ar_hdr): Handle large archives.
8354 (xcoff_openr_next_archived_file): Handle large archives.
8355 (xcoff_generic_stat_arch_elt): Handle large archives.
8356 (xcoff_write_armap_old): Rename from xcoff_write_armap.
8357 (xcoff_write_armap_big): New function.
8358 (xcoff_write_armap): New function, dispatch to _old or _big.
8359 (xcoff_write_archive_contents_old): Rename from
8360 xcoff_write_archive_contents.
8361 (xcoff_write_archive_contents_big): New function.
8362 (xcoff_write_archive_contents): New function, dispatch to _old or
8365 2000-02-18 Richard Henderson <rth@cygnus.com>
8367 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
8368 and hide_symbol members.
8369 (elf_link_hash_copy_indirect): Remove.
8370 (elf_link_hash_hide_symbol): Remove.
8371 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
8372 and elf_backend_hide_symbol.
8373 (_bfd_elf_link_hash_copy_indirect): Declare.
8374 (_bfd_elf_link_hash_hide_symbol): Declare.
8375 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
8376 (_bfd_elf_link_hash_hide_symbol): Likewise.
8377 (_bfd_elf_link_hash_table_init): Don't init killed members.
8378 * elflink.h (elf_link_add_object_symbols): Use the bed function
8379 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
8380 (elf_link_assign_sym_version): Likewise.
8381 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
8382 (elf_backend_hide_symbol): Likewise.
8383 (elfNN_bed): Update for new members.
8385 2000-02-17 Kevin Buettner <kevinb@redhat.com>
8387 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
8388 STACK_END_ADDR): Define for new core file format.
8389 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
8390 for handling the vagaries of the various core file structures used
8391 by AIX over the years.
8392 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
8393 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
8394 core_dumpx structure.
8396 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8398 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
8399 (bfd_mach_sh3_dsp): Likewise.
8400 (bfd_mach_sh4): Reinstate.
8401 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
8402 * bfd-in2.h: Regenerate.
8403 * coff-sh.c (struct sh_opcode): flags is no longer short.
8404 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
8405 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
8406 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
8407 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
8408 (sh_opcodes): No longer const.
8409 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
8410 (sh_insn_uses_reg): Check for USESAS and USESR8.
8411 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
8412 (_bfd_sh_align_load_span): Return early for SH4.
8413 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
8414 Take into account that field b of a parallel processing insn
8415 could be mistaken for a separate insn.
8416 * cpu-sh.c (arch_info_struct): New array elements for
8417 sh2, sh-dsp and sh3-dsp.
8418 Reinstate element for sh4.
8419 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
8420 (SH4_NEXT): Reinstate.
8421 (SH3_NEXT, SH3E_NEXT): Adjust.
8422 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
8423 * elf32-sh.c (sh_elf_set_private_flags): New function.
8424 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
8425 (sh_elf_merge_private_data): New function.
8426 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
8427 (bfd_elf32_bfd_copy_private_bfd_data): Define.
8428 (bfd_elf32_bfd_merge_private_bfd_data): Change to
8429 sh_elf_merge_private_data.
8431 2000-02-13 Richard Henderson <rth@cygnus.com>
8433 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8434 hide_symbol members.
8435 (elf_link_hash_copy_indirect): New.
8436 (elf_link_hash_hide_symbol): New.
8437 * elflink.h (elf_link_add_object_symbols): Break out copy from
8438 indirect new new symbol to elf.c.
8439 (elf_link_assign_sym_version): Break out privatization of
8440 non-exported symbol to elf.c.
8441 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8442 (_bfd_elf_link_hash_hide_symbol): New.
8443 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8445 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8447 * section.c (_bfd_strip_section_from_output): Add info parameter.
8448 If it passed as non-NULL, use it to check whether any input BFD
8449 has an input section which uses this output section. Change all
8451 * bfd-in2.h: Rebuild.
8453 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8454 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8456 * bfd-in2.h: Rebuild.
8458 2000-02-10 Timothy Wall <twall@cygnus.com>
8460 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8461 allow final modifications of swapped-in symbol.
8462 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8463 * coffcode.h (coff_write_relocs): Use macro
8464 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8465 symbol index should be set to -1.
8467 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
8469 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8470 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8471 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8472 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8473 sh_insns_uses_or_sets_freg): New functions.
8474 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8475 * (sh_insns_conflict): Use new functions and new macros to
8476 detect conflicts when two instructions both set same integer registers,
8477 both set same fp register, and both set special register.
8479 2000-02-09 Timothy Wall <twall@cygnus.com>
8481 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8482 swapping in sections, so that the swapping routines have access to
8485 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8487 * coff-go32.c: Update comment. Update copyright.
8489 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8491 * syms.c (bfd_decode_symclass)
8492 Two new class characters were added - 'V' and 'v'. The
8493 meaning of 'W' is now restricted to just weak non-object
8494 symbols. This allows differentiation between, for example,
8495 weak functions vs weak objects. nm for example now dumps:
8497 'w' = weak unresolved
8498 'V' = weak global object
8499 'v' = weak unresolved object
8501 (bfd_is_undefined_symclass): New function. Return true if the
8502 given symbol class represents and undefined/unresolved symbol.
8504 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8507 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8509 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8510 STT_ARM_16BIT flag set, but it is not attached to a data object
8511 return STT_ARM_16BIT so that it will be treated as code by the
8514 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
8516 * coff-i386.c (i3coff_object_p): Remove prototype.
8519 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
8520 to name. Update copyright.
8522 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
8523 assignment to avoid warning. Update copyright.
8525 2000-01-24 Robert Lipe (robertl@sco.com)
8527 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
8528 instead of using GNU C extension.
8530 2000-01-21 Nick Clifton <nickc@cygnus.com>
8532 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
8533 amount from a bfd_in_memory structure.
8534 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
8537 2000-01-14 Nick Clifton <nickc@cygnus.com>
8539 * linker.c (default_indirect_link_order): oops - fix incorrectly
8540 applied patch from Tim Wall.
8542 2000-01-13 Timothy Wall (twall@tiac.net>
8544 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
8545 = scnhsz, filhsz, relsz, aoutsz, etc)
8547 * coffswap.h: Ditto.
8549 2000-01-13 Nick Clifton <nickc@cygnus.com>
8551 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
8552 interwork thumb to arm stub.
8554 2000-01-13 Timothy Wall (twall@tiac.net>
8556 * archures.c (bfd_octets_per_byte): New function: Return
8558 (bfd_arch_mach_octets_per_byte): New function: Return target
8561 * section.c: Distinguish between octets and bytes for usage of
8562 _cooked_size, _raw_size, and output_offset. Clarify
8563 description of bfd_set_section_contents.
8565 * bfd-in2.h: Regenerate.
8567 * coffgen.c: Indicate that the offset parameter is in bytes, not
8570 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
8571 where appropriate to get the octet offset when calling
8572 bfd_set_section_contents.
8573 (bfd_coff_reloc_link_order): Ditto.
8575 * linker.c (bfd_generic_reloc_link_order): Ditto.
8576 (_bfd_default_link_order): Ditto.
8578 * reloc.c (bfd_perform_relocation): Distinguish between octets
8579 and bytes. Use octets when indexing into octet data; use bytes
8580 when calculating target addresses.
8581 (bfd_install_relocation): Ditto.
8583 * srec.c (srec_write_section): Ditto.
8585 2000-01-13 Nick Clifton <nickc@cygnus.com>
8587 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
8588 3 to 2. This allows 4 byte sized sections, which is necessary for
8589 dlltool to build functioning DLLs.
8591 2000-01-10 Philip Blundell <pb@futuretv.com>
8593 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
8594 (arm*-*-conix*): New target.
8596 2000-01-10 Egor Duda <deo@logos-m.ru>
8598 * config.bfd: Include elf32_i386 vector to target list for cygwin
8601 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
8602 * configure.in: Test for structure win32_pstatus_t in
8604 * configure: Regenerate.
8606 * elf.c (elfcore_grok_win32pstatus): New function: process
8607 win32_pstatus_t notes in elf core file.
8608 (elfcore_grok_note): Detect win32_pstatus notes.
8610 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
8612 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
8614 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
8615 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
8617 For older changes see ChangeLog-9899
8623 version-control: never