1 2001-11-11 Hans-Peter Nilsson <hp@bitrange.com>
3 * elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
4 size_t. Rename second i to j.
6 Sat Nov 10 08:56:02 2001 Jeffrey A Law (law@cygnus.com)
8 * binary.c: Include safe-ctype.h after bfd.h and sysdep.h.
10 2001-11-10 Alan Modra <amodra@bigpond.net.au>
12 * elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF
13 relocs into shared libs.
14 * elf32-cris.c (cris_elf_relocate_section): Likewise.
15 * elf32-i370.c (i370_elf_relocate_section): Likewise.
16 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
17 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
18 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
19 * elf32-sh.c (sh_elf_relocate_section): Likewise.
20 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
21 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
22 * elf64-s390.c (elf_s390_relocate_section): Likewise.
23 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
24 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
25 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
27 * elf.c (bfd_section_from_r_symndx): New function.
28 * elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define.
29 (struct sym_sec_cache): New.
30 (bfd_section_from_r_symndx): Declare.
31 (struct bfd_elf_section_data): Change local_dynrel type to PTR.
32 * elflink.h (elf_link_input_bfd): Don't test for removed linkonce
33 relocs when relocatable. Don't zero entire reloc, just zero the
35 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add sym_sec.
36 (elf32_hppa_link_hash_table_create): Init it.
37 (elf32_hppa_check_relocs): Track dynamic relocs needed for local
38 syms on a per-section basis as we do for globals.
39 (elf32_hppa_gc_sweep_hook): Update for local_dynrel change.
40 (allocate_dynrelocs): Warning fix.
41 (elf32_hppa_size_dynamic_sections): Don't allocate relocs when
42 section has been discarded.
43 (elf32_hppa_relocate_section): Don't copy STN_UNDEF relocs
45 * elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec.
46 (elf_i386_link_hash_table_create): Init it.
47 (elf_i386_check_relocs): Track dynamic relocs needed for local
48 syms on a per-section basis as we do for globals.
49 (elf_i386_gc_sweep_hook): Update for local_dynrel change.
51 (allocate_dynrelocs): Warning fix.
52 (elf_i386_size_dynamic_sections): Don't allocate relocs when
53 section has been discarded.
54 (elf_i386_relocate_section): Don't copy STN_UNDEF relocs
56 * elf32-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
57 (elf_s390_link_hash_table_create): Init it.
58 (elf_s390_check_relocs): Track dynamic relocs needed for local
59 syms on a per-section basis as we do for globals.
60 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
62 (allocate_dynrelocs): Warning fix.
63 (elf_s390_size_dynamic_sections): Don't allocate relocs when
64 section has been discarded.
65 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
67 * elf64-ppc.c (struct ppc_link_hash_table): Add sym_sec.
68 (ppc64_link_hash_table_create): Init it.
69 (ppc64_elf_check_relocs): Track dynamic relocs needed for local
70 syms on a per-section basis as we do for globals.
71 (ppc64_elf_gc_sweep_hook): Update for local_dynrel change.
72 (allocate_dynrelocs): Call the correct record_dynamic_dymbol
73 function. Warning fix.
74 (ppc64_elf_size_dynamic_sections): Don't allocate relocs when
75 section has been discarded.
76 (ppc64_elf_relocate_section): Don't copy STN_UNDEF relocs
78 * elf64-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
79 (elf_s390_link_hash_table_create): Init it.
80 (elf_s390_check_relocs): Track dynamic relocs needed for local
81 syms on a per-section basis as we do for globals.
82 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
84 (allocate_dynrelocs): Warning fix.
85 (elf_s390_size_dynamic_sections): Don't allocate relocs when
86 section has been discarded.
87 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
90 2001-11-08 Martin Schwidefsky <schwidefsky@de.ibm.com>
92 * elf32-s390: Major rework that introduces all recent changes to
93 the s390 backends. Get a closer match to elf32-i386.
94 (elf_s390_relocate_section): Make use of dynamic section short-cuts.
95 Localise vars, and delay setting. Better error reporting, replace
96 BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a
97 symbol is not defined in the regular object file and tread the weak
98 definition as the normal one. Don't discard relocs for undefweak or
99 undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in
100 test for avoided copy relocs. Reinstate fudge for unresolved relocs
101 in debugging sections.
102 (elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy
103 reloc processing for weakdefs. Remove redundant casts and aborts.
104 Delay setting of vars until needed. Move creation of dynamic symbols
105 and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace
106 BFD_ASSERT with abort. Discard .plt entries for everything with
108 (elf_s390_check_relocs): Don't allocate space for dynamic relocs,
109 .got or .relgot here but do it in allocate_dynrelocs. Reference count
110 possible .plt and .got entries. Don't test input section SEC_READONLY
111 here to try to avoid copy relocs, and keep dyn_relocs regardless of
112 ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of
113 variables until needed. Remove separate switch stmt for creating .got
114 section. Initialise local_got_refcounts to 0. Cache pointer to
115 "sreloc" section in elf_section_data. Tweak condition under which .got
116 created. Report files with bad relocation section names.
117 (elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that
118 have been forced local. Use same test to decide if we can use a
119 relative reloc for got as elf_s390_relocate_section. Expand SHN_UNDEF
120 comment. Move expressions out of function calls. Replace BFD_ASSERT
122 (elf_s390_finish_dynamic_sections): Migrate common code out of switch
123 statement. Replace BFD_ASSERT with abort.
124 (elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i"
125 to "ibfd". Allocate space for local dyn relocs. Use DF_TEXTREL flag
126 instead of looking up section names for DT_TEXTREL. Replace
127 BFD_ASSERT with abort. Zero out the dynamic allocated content space.
128 Add a comment to remind us that one day this ought to be fixed.
129 (struct elf_s390_link_hash_entry): Rename "root" to "elf".
130 (struct elf_s390_link_hash_table): Likewise.
131 (elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get
132 rid of unnecessary casts.
133 (struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields.
134 Remove "section" field.
135 (elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
136 Reference count possible .plt entries. Don't deallocate .got and
138 (struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs.
140 (struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to
142 (elf_s390_discard_copies): Delete.
143 (elf_s390_link_hash_traverse): Delete.
144 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
145 rather than gc variety).
146 (struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt,
147 srelplt, sdynbss, srelbss fields.
148 (elf_s390_link_hash_table_create): Init them.
149 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
150 (allocate_dynrelocs): New function.
151 (create_got_section): New function.
152 (elf_backend_can_refcount): Define.
153 (elf_backend_copy_indirect_symbol): Define.
154 (elf_s390_copy_indirect_symbol): New function.
155 (elf_s390_create_dynamic_sections): New function.
156 (readonly_dynrelocs): New function.
157 * elf64-s390.c: Likewise.
159 2001-11-07 Jakub Jelinek <jakub@redhat.com>
161 * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo.
162 (BFD32_BACKENDS_CFILES): Add elf-strtab.c.
163 (elf-strtab.lo): Add rule.
164 * Makefile.in: Rebuilt.
165 * configure.in (elf): Add elf-strtab.lo.
166 * configure: Rebuilt.
167 * elf-bfd.h (elf_strtab_hash): Forward declare.
168 (struct elf_link_hash_table): Change dynstr type to
169 struct elf_strtab_hash *.
170 (struct elf_obj_tdata): Change strtab_ptr type to
171 struct elf_strtab_hash *.
172 (_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add,
173 _bfd_elf_strtab_addref, _bfd_elf_strtab_delref,
174 _bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size,
175 _bfd_elf_strtab_offset, _bfd_elf_strtab_emit,
176 _bfd_elf_strtab_finalize): New prototypes.
177 * elf-strtab.c: New file.
178 * elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add
179 and _bfd_elf_strtab_size instead of _bfd_stringtab calls.
180 Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or
181 when forcing dynamic symbol to local.
182 (elf_link_create_dynamic_sections): Call
183 _bfd_elf_strtab_init instead of elf_stringtab_init.
184 (elf_link_record_local_dynamic_symbol): Likewise, change
185 dynstr type. Use _bfd_elf_strtab functions instead of
186 _bfd_stringtab calls.
187 (size_dynamic_sections): Use _bfd_elf_strtab functions instead of
188 _bfd_stringtab calls. For DT_RUNPATH and Verdaux vda_name fields,
189 call _bfd_elf_strtab_addref. Call elf_finalize_dynstr.
190 (elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions.
191 (elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing
192 dynamic symbol to local.
193 (elf_link_assign_sym_version): Likewise.
194 (elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of
196 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr
197 type. Call _bfd_elf_strtab functions instead of
198 _bfd_stringtab functions.
199 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
200 * elf.c (_bfd_elf_init_reloc_shdr): Likewise.
201 (elf_fake_sections): Likewise.
202 (assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs
203 on shstrtab hash table, call _bfd_elf_strtab_addref on each section
204 name in the output. Call _bfd_elf_strtab_finalize and
205 use _bfd_elf_strtab_offset to finalize sh_name section header fields.
206 (_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size
207 instead of _bfd_stringtab_size.
208 (prep_headers): Change shstrtab type.
209 Use _bfd_elf_strtab calls instead of _bfd_stringtab calls.
211 2001-11-07 Alan Modra <amodra@bigpond.net.au>
213 * elflink.h (elf_link_input_bfd <removed linkonce relocs>): Fix
214 bad symtab segfault. Formatting and warning fixes. Improve
215 error message for internationalisation.
217 2001-11-06 H.J. Lu (hjl@gnu.org)
219 * elflink.h (elf_link_input_bfd): Complain about relocs against
222 2001-11-03 Alan Modra <amodra@bigpond.net.au>
224 * elfxx-target.h (elfNN_bed): Correct want_got_sym, want_dynbss order.
226 2001-11-02 H.J. Lu <hjl@gnu.org>
228 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
229 dynamic relocation for symbols defined in regular objects when
230 creating executables.
232 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
234 * configure.in (ALL_LINGUAS): Add "fr".
235 * configure: Regenerate.
236 * po/fr.po: New file.
238 * coffgen.c (coff_object_p): Add comment to H.J.'s recent patch.
240 2001-11-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
242 * som.c (setup_sections): Initialize subspace_sections.
244 2001-11-02 H.J. Lu (hjl@gnu.org)
246 * coffgen.c (coff_object_p): Return 0 if the header is too big.
248 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
250 * elfcore.h (elf_core_file_p): Preserve and clear abfd section
251 information. Save bfd arch and mach values. Restore on error.
253 2001-11-02 Alan Modra <amodra@bigpond.net.au>
255 * elf32-hppa.c (hppa_handle_PIC_calls): Rename to mark_PIC_calls.
256 (allocate_PIC_calls): New function.
257 (allocate_dynrelocs): Don't allocate pic_call plt entries here.
258 (elf32_hppa_size_dynamic_sections): Call allocate_PIC_calls.
259 (elf32_hppa_finish_dynamic_symbol): Remove dead code.
261 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
263 * elf32-cris.c (cris_elf_grok_prstatus): New function.
264 (cris_elf_grok_psinfo): New function.
265 (elf_backend_grok_prstatus): Define.
266 (elf_backend_grok_psinfo): Define.
268 2001-11-01 Alan Modra <amodra@bigpond.net.au>
270 * elf64-ppc.c (ppc64_elf_relocate_section): Correct branch
273 2001-10-31 Chris Demetriou <cgd@demetriou.com>
275 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Handle PC-relative
276 relocations properly.
278 2001-10-31 H.J. Lu <hjl@gnu.org>
280 * elflink.h (elf_link_output_extsym): Don't clear the visibility
281 field for relocateable.
283 2001-11-01 Alan Modra <amodra@bigpond.net.au>
285 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count
286 .plt relocs in DT_RELASZ.
288 2001-10-29 NIIBE Yutaka <gniibe@m17n.org>
290 * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
293 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
295 * targets.c: Fix typo: bfd_mmo_mmix_vec => bfd_mmo_vec.
297 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
299 * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo.
300 (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo.
301 (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c.
302 Regenerate dependencies.
303 * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors.
304 * config.bfd: [BFD64] (mmix-*-*): New case.
305 * cpu-mmix.c, mmo.c, elf64-mmix.c: New files.
306 * archures.c (enum bfd_architecture): Add bfd_arch_mmix.
307 (bfd_mmix_arch): Declare.
308 (bfd_archures_list): Add bfd_mmix_arch.
309 * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour.
310 (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare.
311 (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and
313 * reloc.c: Add MMIX relocations.
314 * bfd.c (struct _bfd, tdata): Add mmo_data.
315 * Makefile.in: Regenerate.
316 * configure: Regenerate.
317 * libbfd.h: Regenerate.
318 * bfd-in2.h: Regenerate.
319 * configure: Rebuild.
321 2001-10-30 Richard Earnshaw (rearnsha@arm.com)
323 * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
324 p_paddr of the segment that contains it.
325 (copy_private_bfd_data): If the LMA for a segment is known, use it
326 for matching sections to segments.
327 (assign_file_positions_for_segments): Use the LMA when adjusting
328 for inter-section alignment padding.
330 2001-10-29 Kazu Hirata <kazu@hxi.com>
332 * README: Fix a typo.
334 2001-10-24 Richard Henderson <rth@redhat.com>
336 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
337 timestamp to time_t for ctime.
339 2001-10-24 Hans-Peter Nilsson <hp@axis.com>
341 * elf32-cris.c (cris_reloc_type_lookup): Change loop to use
342 unsigned, increasing index.
344 2001-10-23 H.J. Lu <hjl@gnu.org>
346 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
347 m != NULL before accessing it.
349 2001-10-23 Alan Modra <amodra@bigpond.net.au>
351 * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing
352 bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup
353 doesn't accept BFD_RELOC_* on some targets, eg. hppa.
355 * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs.
356 (hppa_link_hash_newfunc): Likewise.
357 (elf32_hppa_finish_dynamic_symbol): Likewise.
358 (allocate_dynrelocs): Always allocate .got relocs if shared.
359 (elf32_hppa_relocate_section): Output them too. Similarly
360 consolidate .plt reloc code, and no longer initialise .plt
361 when a reloc is output.
362 (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries
363 when no reloc is output.
365 From Herbert Xu <herbert@gondor.apana.org.au>
366 * elf32-hppa.c (final_link_relocate): Call bfd_set_error for
367 unreachable branches.
369 2001-10-22 H.J. Lu <hjl@gnu.org>
371 * configure.in (WIN32LIBADD): Use -L../libiberty for
373 * configure: Rebuild.
375 2001-10-21 H.J. Lu <hjl@gnu.org>
377 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
378 if shared library is enabled only for Linux hosts.
379 * configure: Rebuild.
381 2001-10-21 H.J. Lu <hjl@gnu.org>
383 * configure.in (WIN32LIBADD): Check if PICFLAG is defined in
384 ../libiberty/Makefile instead of $enable_shared.
385 * configure: Rebuild.
387 2001-10-21 H.J. Lu <hjl@gnu.org>
389 * elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover
392 2001-10-20 H.J. Lu <hjl@gnu.org>
394 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
395 if shared library is enabled.
396 * configure: Rebuild.
398 2001-10-20 H.J. Lu <hjl@gnu.org>
400 * elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
402 2001-10-19 H.J. Lu <hjl@gnu.org>
404 * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
407 2001-10-18 H.J. Lu <hjl@gnu.org>
409 * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
410 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
412 2001-10-18 Jakub Jelinek <jakub@redhat.com>
414 * section.c (_bfd_strip_section_from_output): Don't count
415 SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
417 2001-10-17 Alan Modra <amodra@bigpond.net.au>
419 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
420 Elf_Internal_Shdr.contents now that it's no longer a PTR.
421 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
422 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
423 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
424 * elf32-sh.c (sh_elf_relax_section): Likewise.
425 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
426 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
427 * elf.c (setup_group): Warning fixes.
428 * elflink.h (elf_link_sort_relocs): Likewise.
429 * pdp11.c (slurp_reloc_table): Likewise.
431 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
433 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
436 2001-10-15 H.J. Lu <hjl@gnu.org>
438 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
439 for relocations against discarded link-once section.
441 2001-10-15 Alan Modra <amodra@bigpond.net.au>
443 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
444 bfd_reloc_outofrange and similar errors.
446 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
447 rather than ind->weakdef.
448 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
449 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
450 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
451 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
452 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
454 2001-10-15 Alan Modra <amodra@bigpond.net.au>
455 H.J. Lu <hjl@gnu.org>
457 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
458 counts for aliases instead of aborting.
459 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
460 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
462 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
463 to -1 for non-function symbols.
464 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
465 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
466 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
467 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
468 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
469 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
470 plt.offset instead of plt.refcount when setting to -1.
472 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
474 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
475 like R_ARM_PC24. Include reloc number in error message about
478 2001-10-10 Jakub Jelinek <jakub@redhat.com>
480 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
481 relocations against the same symbol in .rel{,a}.dyn section.
483 2001-10-10 Kazu Hirata <kazu@hxi.com>
485 * aout-encap.c: Fix comment typos.
487 * archive.c: Likewise.
489 * coff64-rs6000.c: Likewise.
490 * coffcode.h: Likewise.
491 * coffgen.c: Likewise.
492 * cofflink.c: Likewise.
493 * coff-mips.c: Likewise.
495 * elf32-m32r.c: Likewise.
496 * libcoff-in.h: Likewise.
497 * libecoff.h: Likewise.
498 * libxcoff.h: Likewise.
499 * nlm32-i386.c: Likewise.
501 * section.c: Likewise.
504 * bfd-in2.h: Regenerate.
505 * libcoff.h: Likewise.
507 2001-10-10 Alan Modra <amodra@bigpond.net.au>
509 * elf.c (elf_map_symbols): Don't create new section symbols; Use
510 existing section syms. Update comments.
511 (copy_private_bfd_data): Formatting fixes.
512 (elfcore_grok_win32pstatus): Likewise.
513 (swap_out_syms): Likewise. Remove unnecessary level of braces.
515 2001-10-09 Alan Modra <amodra@bigpond.net.au>
517 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
519 (elf_group_name): Define.
520 (elf_next_in_group): Define.
521 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
522 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
523 first member section; Instead use elf_next_in_group.
524 (bfd_section_from_shdr): Likewise.
525 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
527 2001-10-09 Alan Modra <amodra@bigpond.net.au>
529 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
530 "next_in_group". Fix gp and gp_size comments.
531 * elf.c (union elf_internal_group): New.
532 (setup_group): New function.
533 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
534 Call setup_group for SHF_GROUP sections.
535 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
536 (elf_fake_sections): Set header type for SEC_GROUP, and header
537 flags for sections in a group.
538 (set_group_contents): New function.
539 (_bfd_elf_compute_section_file_positions): Call it.
540 (assign_section_numbers): Set sh_link for SHT_GROUP.
542 * elflink.h (gc_mark_hook): Handle section groups.
543 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
544 * section.c (SEC_GROUP): Define.
545 (struct sec): Comment fixes.
546 * bfd-in2.h: Regenerate.
548 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
549 out of function args.
550 (_bfd_elf_canonicalize_reloc): Similarly.
551 (_bfd_elf_get_symtab): Here too.
552 (_bfd_elf_canonicalize_dynamic_symtab): And here.
553 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
554 bfd_bread, and remove unnecessary cast.
556 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
558 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
560 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
562 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
565 2001-10-06 Alan Modra <amodra@bigpond.net.au>
567 * bfd.c (bfd_assert): Report bfd version.
568 (_bfd_abort): Likewise.
570 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
571 section sym values. Instead replace any relocs against them with
572 relocs against STN_UNDEF, which has a zero value.
574 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
577 2001-10-05 Jeff Law <law@redhat.com>
579 * som.h (som_exec_data): New field "version_id".
580 * som.c (som_object_setup): Record the version_id if it
582 (som_prep_headers): Do not initialize version_id here.
583 (som_finish_writing): Initialize version_id here.
585 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
587 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
588 according to the MIPS/SGI ELF64 ABI Draft.
589 (mips_elf_sort_hash_table): Typo.
591 2001-10-04 Alan Modra <amodra@bigpond.net.au>
593 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
595 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
596 copying flags if this is a weakdef.
598 2001-10-04 Alan Modra <amodra@bigpond.net.au>
600 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
603 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
604 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
605 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
607 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
608 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
609 backends we configure. Run "make dep-am".
610 (install-data-local): Install symcat.h.
611 * dep-in.sed: Remove symcat.h from dependencies.
612 * Makefile.in: Regenerate.
614 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
616 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
618 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
620 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
621 (elf_backend_default_use_rela_p): New define.
623 2001-10-03 Alan Modra <amodra@bigpond.net.au>
625 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
628 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
629 * configure: Regenerate.
630 * Makefile.am (BFD_H_FILES): Add version.h.
631 * Makefile.in: Regenerate.
632 * po/SRC-POTFILES.in: Regenerate.
634 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
635 elf_backend_copy_indirect_symbol so that backend has a chance to
636 copy other necessary fields.
637 * elf-bfd.h (struct elf_backend_data): Update description of
638 elf_backend_copy_indirect_symbol.
639 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
640 copying flags if this is a weakdef.
641 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
642 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
643 than bfd_link_hash_lookup.
644 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
645 reloc processing for weakdefs.
646 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
647 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
649 2001-10-02 Alan Modra <amodra@bigpond.net.au>
651 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
652 result of ELF64_R_TYPE to enum before using in a switch.
653 (ppc64_elf_gc_mark_hook): Likewise.
654 (ppc64_elf_gc_sweep_hook): Likewise.
655 (ppc64_elf_reloc_type_class): Likewise.
657 2001-10-02 Alan Modra <amodra@bigpond.net.au>
659 * version.h: New file.
660 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
661 (BFD_VERSION_DATE): Define.
662 (BFD_VERSION_STRING): Define.
663 * configure.in: AC_SUBST bfd_version, bfd_version_date and
665 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
666 * bfd-in2.h: Regenerate.
667 * configure: Regenerate.
668 * Makefile.am: Run "make dep-am".
669 * Makefile.in: Regenerate.
671 * bfd-in.h: Include "symcat.h".
672 (CONCAT4): Redefine as for old CAT4.
673 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
674 Add warning regarding whitespace.
675 * aout-cris.c: Likewise.
676 * aout-ns32k.c: Likewise.
677 * aout-sparcle.c: Likewise.
678 * aout-tic30.c: Likewise.
680 * armnetbsd.c: Likewise.
681 * demo64.c: Likewise.
682 * elf-bfd.h: Likewise.
683 * gen-aout.c: Likewise.
684 * host-aout.c: Likewise.
685 * hp300bsd.c: Likewise.
686 * hp300hpux.c: Likewise.
687 * i386aout.c: Likewise.
688 * i386bsd.c: Likewise.
689 * i386dynix.c: Likewise.
690 * i386freebsd.c: Likewise.
691 * i386linux.c: Likewise.
692 * i386lynx.c: Likewise.
693 * i386mach3.c: Likewise.
694 * i386netbsd.c: Likewise.
695 * libaout.h: Likewise.
696 * m68k4knetbsd.c: Likewise.
697 * m68klinux.c: Likewise.
698 * m68klynx.c: Likewise.
699 * m68knetbsd.c: Likewise.
700 * m88kmach3.c: Likewise.
701 * mipsbsd.c: Likewise.
702 * newsos3.c: Likewise.
703 * ns32knetbsd.c: Likewise.
704 * pc532-mach.c: Likewise.
706 * riscix.c: Likewise.
707 * sparclinux.c: Likewise.
708 * sparclynx.c: Likewise.
709 * sparcnetbsd.c: Likewise.
711 * targets.c: Likewise.
712 * vaxnetbsd.c: Likewise.
713 * vms-hdr.c: Likewise.
715 2001-10-01 Alan Modra <amodra@bigpond.net.au>
717 * bfd-in.h: Remove comments regarding generated files.
718 * libbfd-in.h: Likewise.
719 * libcoff-in.h: Likewise.
720 * bfd-in2.h: Regenerate.
721 * libbfd.h: Likewise.
722 * libcoff.h: Likewise.
724 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
725 Hans-Peter Nilsson <hp@bitrange.com>
727 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
728 partial_inplace, matching assembler output. Set src_mask to
730 (sh_elf_relocate_section): Delete misplaced comment.
731 For relocatable linking against section symbol, call
732 _bfd_relocate_contents for partial_inplace relocs and adjust
733 rel->r_addend for others.
734 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
735 bfd_get_32, not at rel->r_addend.
737 2001-09-30 Alan Modra <amodra@bigpond.net.au>
739 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
740 the old dir refcount, so we indirectly set them to init_refcount.
741 Short-circuit asserts when we've just verified they are true.
743 2001-09-29 Alan Modra <amodra@bigpond.net.au>
745 * section.c (struct sec): Remove kept_section.
746 (STD_SECTION): Remove kept_section initialisation.
747 (bfd_make_section_anyway): Here too.
748 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
749 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
750 * elflink.h (elf_link_input_bfd): Set discarded link-once section
751 symbols to zero, and remove all code involved with kept_section
752 and tracking section symbol values.
753 * bfd-in2.h: Regenerate.
754 * configure.in: Bump version number.
755 * configure: Regenerate.
757 2001-09-29 Alan Modra <amodra@bigpond.net.au>
759 * elf64-ppc.c (struct ppc_dyn_relocs): New.
760 (IS_ABSOLUTE_RELOC): Define.
761 (struct ppc_link_hash_entry): New.
762 (struct ppc_link_hash_table): New.
763 (ppc_hash_table): Define.
764 (link_hash_newfunc): New function.
765 (ppc64_elf_link_hash_table_create): New function.
766 (create_got_section): New function.
767 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
768 pointers to our dynamic sections in hash table.
769 (ppc64_elf_copy_indirect_symbol): New function.
770 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
771 dynamic sections. Localise vars. Modify code for refcounts
772 starting from zero. Don't allocate here, or force symbols dynamic.
773 Don't copy all relocs if shared, select ones we need. Add code
774 to track possible copy relocs for non-shared link.
775 (ppc64_elf_gc_mark_hook): Update comment.
776 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
777 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
778 code for reference counting garbage collection. Don't create .plt
779 entries for functions that don't comply with ABI naming convention,
780 and don't allocate .plt space here. Use short-cuts to dynamic
781 sections. If possible, keep dynamic relocations instead of using
782 copy relocs. Remove confused comments.
783 (ppc_adjust_dynindx): Delete.
784 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
785 (allocate_dynrelocs): New function.
786 (readonly_dynrelocs): New function.
787 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
788 space here, and call allocate_dynrelocs to allocate space for
789 global .plt, .got and reloc sections. Use short-cuts to dynamic
790 sections. Call readonly_dynrelocs to determine whether we need
791 DT_TEXTREL. Don't generate section symbols here, the generic
792 ELF linker code does it for us.
793 (ppc64_elf_final_link): Call regular ELF backend linker rather than
794 gc variety, since we do our own .got handling.
795 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
796 dynamic section short-cuts. Localise vars, and delay setting.
797 Handle unknown relocs in main switch statement. Replace ugly
798 complicated tests for unresolvable relocs with a simple direct
799 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
800 before allowing an undefined sym in a shared lib. Do R_*_DS tests
801 after main switch, when we've set addend. Do non-addend insn
802 tweaks before main swithc. Ignore input_section->vma when
803 calculating reloc offsets as it's always zero. Rewrite dynamic
804 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
805 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
806 of dynamic section short-cuts. Reorganise .plt handling code.
807 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
808 Move expressions out of swap_reloca_out function calls.
809 (ppc64_elf_reloc_type_class): New function.
810 (ppc64_elf_info_to_howto): Move common expression to local var.
811 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
812 of dynamic section short-cuts. Don't fiddle with section syms
813 here as the ELF linker does it for us.
814 (elf_backend_can_refcount): Define.
815 (bfd_elf64_bfd_link_hash_table_create): Define.
816 (elf_backend_copy_indirect_symbol): Define.
817 (elf_backend_reloc_type_class): Define.
818 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
820 2001-09-29 Alan Modra <amodra@bigpond.net.au>
822 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
823 (struct elf_backend_data): Add can_refcount.
824 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
825 got.refcount and plt.refcount from init_refcount.
826 (_bfd_elf_link_hash_table_init): Set up init_refcount.
827 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
828 rather than got/plt.offset, and test for <= 0 rather than -1.
829 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
830 * elfxx-target.h (elf_backend_can_refcount): Define.
831 (elfNN_bed): Init can_refcount.
832 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
833 (_bfd_generic_link_hash_newfunc): Likewise.
834 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
836 (elf_backend_can_refcount): Define.
837 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
839 (elf32_hppa_copy_indirect_symbol): Make static to agree with
841 (elf_backend_can_refcount): Define.
842 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
844 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
845 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
846 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
847 (elf_backend_can_refcount): Define.
848 (elf_i386_copy_indirect_symbol): Make static to agree with
849 prototype. Formatting fix.
850 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
852 (elf_backend_can_refcount): Define.
853 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
855 (elf_backend_can_refcount): Define.
856 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
858 (elf_backend_can_refcount): Define.
859 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
861 (elf_backend_can_refcount): Define.
862 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
864 (elf_backend_can_refcount): Define.
866 * som.c (som_write_symbol_strings): Cast current_offset in
867 bfd_seek call to match param type.
869 2001-09-28 J. Brobecker <brobecker@gnat.com>
871 * som.c (som_write_symbol_strings): Fix incorrect type of
872 current_offset to match the function definition. Fixes a build
873 failure on HPUX-11.00.
875 2001-09-28 Richard Henderson <rth@redhat.com>
877 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
878 SEC_MERGE, SEC_STRINGS.
880 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
881 * bfd-in2.h: Rebuild.
883 2001-09-28 Alan Modra <amodra@bigpond.net.au>
885 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
886 reloc code using x86_64_reloc_map.
888 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
889 no longer allocate here. Localise some vars to blocks where they
891 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
892 setting of vars until needed.
893 (allocate_dynrelocs): Don't create a .plt entry without a reloc
894 when symbol visibilty makes a function local.
895 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
896 swap_reloca_out function calls.
897 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
898 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
901 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
902 no longer allocate here. Localise some vars to blocks where they
903 are used. Remove separate switch stmt for creating .got sec.
904 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
905 redundant casts and aborts. Delay setting of vars until needed.
906 (allocate_dynrelocs): Remove redundant casts and aborts.
907 (elf_i386_size_dynamic_sections): Move comment.
908 (elf_i386_finish_dynamic_symbol): Move expressions out of function
910 (elf_i386_relocate_section): Likewise. Comment typo fix.
911 (elf_i386_finish_dynamic_sections): Migrate common code out of
913 (elf_backend_* defines): Sort.
915 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
916 without a reloc when symbol visibilty makes a function local.
918 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
920 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
921 conflicting float flags.
923 2001-09-26 Alan Modra <amodra@bigpond.net.au>
925 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
926 (elf_backend_copy_indirect_symbol): Define.
927 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
928 (struct elf_i386_link_hash_table): Likewise.
929 (link_hash_newfunc): Get rid of unnecessary casts.
930 (elf_i386_link_hash_table_create): Likewise.
931 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
932 Don't test input section SEC_READONLY here to try to avoid copy
933 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
934 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
935 here to properly test whether we need copy relocs. Do so for weak
938 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
939 (elf_backend_copy_indirect_symbol): Define.
940 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
941 (stub_hash_newfunc): Get rid of unnecessary casts.
942 (hppa_link_hash_newfunc): Likewise.
943 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
944 Don't test input section SEC_READONLY here to try to avoid copy
945 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
946 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
947 here to properly test whether we need copy relocs. Do so for weak
950 2001-09-26 Alan Modra <amodra@bigpond.net.au>
952 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
953 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
954 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
956 2001-09-25 Jakub Jelinek <jakub@redhat.com>
958 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
961 2001-09-25 H.J. Lu <hjl@gnu.org>
963 * bfd-in2.h: Regenerated.
965 2001-09-25 Alan Modra <amodra@bigpond.net.au>
967 * elf32-i386.c: Add comment re linker function names and ordering.
968 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
969 (elf_i386_grok_prstatus): Move before linker functions.
970 (elf_i386_grok_psinfo): Likewise.
971 (elf_i386_fake_sections): Move so that functions are ordered.
972 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
974 2001-09-25 Alan Modra <amodra@bigpond.net.au>
976 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
979 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
980 code handling this option.
981 (LONG_BRANCH_VIA_PLT): Likewise.
982 (RELATIVE_DYNRELOCS): Define as zero.
983 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
984 "pc_count" fields. Remove "section" field.
985 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
986 (elf32_hppa_check_relocs): Don't allocate space for dynamic
987 relocs here. Instead, record all needed dynamic relocs via
988 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
990 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
991 (allocate_plt_and_got_and_discard_relocs): Rename to
992 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
993 (readonly_dynrelocs): New function.
994 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
995 Call readonly_dynrelocs to determine need for DT_TEXTREL.
996 Rename "i" to "ibfd". Allocate space for local dyn relocs.
997 (elf32_hppa_relocate_section): Make use of cached sreloc.
998 (elf32_hppa_reloc_type_class): New function.
999 (elf_backend_reloc_type_class): Define.
1001 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1003 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
1004 and "sreloc" fields.
1005 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
1006 "pc_count" fields. Remove "section" field.
1007 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
1008 allocate space for dynamic relocs here. Instead, record all
1009 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
1010 pointer to "sreloc" section in elf_section_data.
1011 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1012 (allocate_plt_and_got_and_discard_relocs): Rename to
1013 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
1014 (readonly_dynrelocs): New function.
1015 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
1016 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1017 (elf_i386_relocate_section): Make use of cached sreloc.
1019 2001-09-24 Alan Modra <amodra@bigpond.net.au>
1021 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
1022 reloc rather than just the type.
1023 (_bfd_elf_reloc_type_class): Likewise.
1024 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1025 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
1026 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
1027 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
1028 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
1029 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
1030 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
1031 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
1032 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
1033 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
1034 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
1035 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
1036 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
1037 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
1038 * elflink.h: Formatting fixes.
1039 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
1040 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
1041 o->contents to PTR. Update call to elf_backend_reloc_type_class.
1043 2001-09-22 John Reiser <jreiser@BitWagon.com>
1045 * elfcode.h (elf_object_p): Allow for no section header at all in
1046 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
1048 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
1050 * elfxx-ia64.c: Fix compile time warning messages.
1051 * coff-mcore.c: Fix compile time warning messages.
1052 * coff-ppc.c: Fix compile time warning messages.
1053 * coffcode.h: Fix compile time warning messages.
1054 * elf32-mips.c: Fix compile time warning messages.
1055 * elf64-alpha.c: Fix compile time warning messages.
1056 * libbfd.c: Fix compile time warning messages.
1057 * bfd-in2.h: Regenerate.
1059 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1061 * Makefile.am: Run "make dep-am".
1062 * Makefile.in: Regenerate.
1064 * aoutx.h: Formatting fixes.
1065 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
1067 * linker.c: Replace bfd_get_filename with bfd_archive_filename
1070 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1072 * bfd.c (bfd_archive_filename): New function.
1073 * bfd-in2.h: Regenerate.
1074 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
1075 in error messages where the bfd is an input bfd.
1076 * aout-cris.c: Likewise.
1077 * coff-arm.c: Likewise.
1078 * coff-mcore.c: Likewise.
1079 * coff-ppc.c: Likewise.
1080 * coff-rs6000.c: Likewise.
1081 * coff-sh.c: Likewise.
1082 * coff-tic54x.c: Likewise.
1083 * coff-tic80.c: Likewise.
1084 * coff64-rs6000.c: Likewise.
1085 * coffcode.h: Likewise.
1086 * coffgen.c: Likewise.
1087 * cofflink.c: Likewise.
1088 * ecofflink.c: Likewise.
1089 * elf-hppa.h: Likewise.
1091 * elf32-arm.h: Likewise.
1092 * elf32-cris.c: Likewise.
1093 * elf32-gen.c: Likewise.
1094 * elf32-hppa.c: Likewise.
1095 * elf32-i370.c: Likewise.
1096 * elf32-i386.c: Likewise.
1097 * elf32-m32r.c: Likewise.
1098 * elf32-mcore.c: Likewise.
1099 * elf32-mips.c: Likewise.
1100 * elf32-ppc.c: Likewise.
1101 * elf32-s390.c: Likewise.
1102 * elf32-sh.c: Likewise.
1103 * elf32-sparc.c: Likewise.
1104 * elf32-v850.c: Likewise.
1105 * elf64-alpha.c: Likewise.
1106 * elf64-gen.c: Likewise.
1107 * elf64-ppc.c: Likewise.
1108 * elf64-s390.c: Likewise.
1109 * elf64-sparc.c: Likewise.
1110 * elf64-x86-64.c: Likewise.
1111 * elflink.h: Likewise.
1112 * elfxx-ia64.c: Likewise.
1115 * libbfd.c: Likewise.
1116 * pdp11.c: Likewise.
1117 * pe-mips.c: Likewise.
1118 * peicode.h: Likewise.
1120 * xcofflink.c: Likewise.
1122 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
1124 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
1127 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
1130 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
1131 Consolidate error messages, and split long messages to two lines.
1133 2001-09-20 John Reiser <jreiser@BitWagon.com>
1135 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
1136 and info->allow_shlib_undefined.
1137 * elf32-cris.c: Likewise.
1138 * elf32-hppa.c: Likewise.
1139 * elf32-m68k.c: Likewise.
1140 * elf32-mips.c: Likewise.
1141 * elf32-ppc.c: Likewise.
1142 * elf32-s390.c: Likewise.
1143 * elf32-sh.c: Likewise.
1144 * elf32-sparc.c: Likewise.
1145 * elf64-alpha.c: Likewise.
1146 * elf64-hppa.c: Likewise.
1147 * elf64-ppc.c: Likewise.
1148 * elf64-s390.c: Likewise.
1149 * elf64-sparc.c: Likewise.
1150 * elf64-x86-64.c: Likewise.
1151 * elfxx-ia64.c: Likewise.
1153 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1155 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
1156 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1157 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
1158 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
1159 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
1160 (bfd_default_scan): Use ISDIGIT instead of isdigit.
1161 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
1162 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
1163 isxdigit/isdigit/islower.
1164 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
1165 (mangle_name): Use ISALNUM instead of isalnum.
1166 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
1167 (scan): Use ISDIGIT instead of isdigit.
1168 * hosts/alphavms.h: Don't include <ctype.h>.
1169 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
1170 (ieee_object_p): Use TOUPPER instead of toupper.
1171 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
1172 (ihex_bad_byte): Use ISPRINT instead of isprint.
1173 * merge.c: Don't include <ctype.h>.
1174 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
1175 (oasys_write_sections): Use ISDIGIT instead of isdigit.
1176 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
1177 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1178 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
1179 (mangle_name): Use ISALNUM instead of isalnum.
1180 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
1181 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
1182 isupper/islower/isdigit.
1183 (som_decode_symclass): Use TOUPPER instead of toupper.
1184 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
1185 (srec_bad_byte): Use ISPRINT instead of isprint.
1186 (srec_scan): Use ISSPACE instead of isspace.
1187 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
1188 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
1189 * syms.c: Include "safe-ctype.h"
1190 (islower, toupper): Remove macro definitions.
1191 (bfd_decode_symclass): Use TOUPPER instead of toupper.
1192 * vms-gsd.c: Don't include <ctype.h>.
1193 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
1194 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
1196 * vms-tir.c: Don't include <ctype.h>.
1198 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1200 * libbfd.c (bfd_bread): New function replacing bfd_read without
1201 redundant params. Allow reads up to (size_t) -2 in length.
1202 (bfd_bwrite): Similarly for bfd_write.
1203 (real_read): Return a size_t.
1204 (bfd_read): Call bfd_bread.
1205 (bfd_write): Call bfd_bwrite.
1206 (warn_deprecated): New function to annoy everybody.
1207 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
1208 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
1209 (bfd_read, bfd_write): Define as macro.
1210 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
1211 likewise for bfd_write. Ensure function args are correct size by
1212 using casts or local vars. In some cases, remove unnecessary
1213 casts. Formatting fixes, in some cases removing a large expression
1214 from function args by using a local var. Replace CONST with const.
1215 Modify variable types to avoid warings. Use casts to avoid
1216 warnings when using negative numbers in unsigned expressions.
1217 * aout-adobe.c: Likewise.
1218 * aout-arm.c: Likewise.
1219 * aout-cris.c: Likewise.
1220 * aout-encap.c: Likewise.
1221 * aout-ns32k.c: Likewise.
1222 * aout-target.h: Likewise.
1223 * aout-tic30.c: Likewise.
1224 * aoutf1.h: Likewise.
1225 * aoutx.h: Likewise.
1226 * archive.c: Likewise.
1227 * archures.c: Likewise.
1228 * bfd-in.h: Likewise.
1230 * binary.c: Likewise.
1232 * cache.c: Likewise.
1233 * cisco-core.c: Likewise.
1234 * coff-a29k.c: Likewise.
1235 * coff-alpha.c: Likewise.
1236 * coff-arm.c: Likewise.
1237 * coff-h8300.c: Likewise.
1238 * coff-h8500.c: Likewise.
1239 * coff-i386.c: Likewise.
1240 * coff-i860.c: Likewise.
1241 * coff-i960.c: Likewise.
1242 * coff-ia64.c: Likewise.
1243 * coff-m68k.c: Likewise.
1244 * coff-m88k.c: Likewise.
1245 * coff-mcore.c: Likewise.
1246 * coff-mips.c: Likewise.
1247 * coff-ppc.c: Likewise.
1248 * coff-rs6000.c: Likewise.
1249 * coff-sh.c: Likewise.
1250 * coff-sparc.c: Likewise.
1251 * coff-stgo32.c: Likewise.
1252 * coff-tic30.c: Likewise.
1253 * coff-tic54x.c: Likewise.
1254 * coff-tic80.c: Likewise.
1255 * coff-w65.c: Likewise.
1256 * coff-z8k.c: Likewise.
1257 * coff64-rs6000.c: Likewise.
1258 * coffcode.h: Likewise.
1259 * coffgen.c: Likewise.
1260 * cofflink.c: Likewise.
1261 * coffswap.h: Likewise.
1262 * corefile.c: Likewise.
1263 * cpu-arc.c: Likewise.
1264 * cpu-h8300.c: Likewise.
1265 * cpu-h8500.c: Likewise.
1266 * cpu-i960.c: Likewise.
1267 * cpu-ia64-opc.c: Likewise.
1268 * cpu-ns32k.c: Likewise.
1269 * cpu-pdp11.c: Likewise.
1270 * cpu-pj.c: Likewise.
1271 * cpu-sh.c: Likewise.
1272 * cpu-w65.c: Likewise.
1273 * cpu-z8k.c: Likewise.
1274 * dwarf1.c: Likewise.
1275 * dwarf2.c: Likewise.
1276 * ecoff.c: Likewise.
1277 * ecofflink.c: Likewise.
1278 * ecoffswap.h: Likewise.
1279 * elf-bfd.h: Likewise.
1280 * elf-hppa.h: Likewise.
1281 * elf-m10200.c: Likewise.
1282 * elf-m10300.c: Likewise.
1284 * elf32-arc.c: Likewise.
1285 * elf32-arm.h: Likewise.
1286 * elf32-avr.c: Likewise.
1287 * elf32-cris.c: Likewise.
1288 * elf32-fr30.c: Likewise.
1289 * elf32-gen.c: Likewise.
1290 * elf32-h8300.c: Likewise.
1291 * elf32-hppa.c: Likewise.
1292 * elf32-i370.c: Likewise.
1293 * elf32-i386.c: Likewise.
1294 * elf32-i860.c: Likewise.
1295 * elf32-m32r.c: Likewise.
1296 * elf32-m68k.c: Likewise.
1297 * elf32-mcore.c: Likewise.
1298 * elf32-mips.c: Likewise.
1299 * elf32-openrisc.c: Likewise.
1300 * elf32-pj.c: Likewise.
1301 * elf32-ppc.c: Likewise.
1302 * elf32-s390.c: Likewise.
1303 * elf32-sh-lin.c: Likewise.
1304 * elf32-sh.c: Likewise.
1305 * elf32-sparc.c: Likewise.
1306 * elf32-v850.c: Likewise.
1307 * elf64-alpha.c: Likewise.
1308 * elf64-hppa.c: Likewise.
1309 * elf64-mips.c: Likewise.
1310 * elf64-ppc.c: Likewise.
1311 * elf64-s390.c: Likewise.
1312 * elf64-sparc.c: Likewise.
1313 * elf64-x86-64.c: Likewise.
1314 * elfarm-nabi.c: Likewise.
1315 * elfcode.h: Likewise.
1316 * elfcore.h: Likewise.
1317 * elflink.c: Likewise.
1318 * elflink.h: Likewise.
1319 * elfxx-ia64.c: Likewise.
1320 * elfxx-target.h: Likewise.
1321 * format.c: Likewise.
1323 * hp300hpux.c: Likewise.
1324 * hppabsd-core.c: Likewise.
1325 * hpux-core.c: Likewise.
1326 * i386aout.c: Likewise.
1327 * i386dynix.c: Likewise.
1328 * i386linux.c: Likewise.
1329 * i386lynx.c: Likewise.
1330 * i386mach3.c: Likewise.
1331 * i386msdos.c: Likewise.
1332 * i386os9k.c: Likewise.
1335 * irix-core.c: Likewise.
1336 * libaout.h: Likewise.
1337 * libbfd-in.h: Likewise.
1338 * libbfd.c: Likewise.
1339 * libcoff-in.h: Likewise.
1340 * libecoff.h: Likewise.
1341 * libieee.h: Likewise.
1342 * libnlm.h: Likewise.
1343 * libpei.h: Likewise.
1344 * libxcoff.h: Likewise.
1345 * linker.c: Likewise.
1346 * lynx-core.c: Likewise.
1347 * m68klinux.c: Likewise.
1348 * merge.c: Likewise.
1349 * mipsbsd.c: Likewise.
1350 * netbsd-core.c: Likewise.
1352 * nlm32-alpha.c: Likewise.
1353 * nlm32-i386.c: Likewise.
1354 * nlm32-ppc.c: Likewise.
1355 * nlm32-sparc.c: Likewise.
1356 * nlmcode.h: Likewise.
1357 * nlmswap.h: Likewise.
1358 * ns32k.h: Likewise.
1359 * oasys.c: Likewise.
1360 * opncls.c: Likewise.
1361 * osf-core.c: Likewise.
1362 * pc532-mach.c: Likewise.
1363 * pdp11.c: Likewise.
1364 * pe-mips.c: Likewise.
1365 * peXXigen.c: Likewise.
1366 * peicode.h: Likewise.
1367 * ppcboot.c: Likewise.
1368 * ptrace-core.c: Likewise.
1369 * reloc.c: Likewise.
1370 * reloc16.c: Likewise.
1371 * riscix.c: Likewise.
1372 * rs6000-core.c: Likewise.
1373 * sco5-core.c: Likewise.
1374 * section.c: Likewise.
1376 * sparclinux.c: Likewise.
1377 * sparclynx.c: Likewise.
1379 * stabs.c: Likewise.
1380 * sunos.c: Likewise.
1382 * targets.c: Likewise.
1383 * tekhex.c: Likewise.
1384 * trad-core.c: Likewise.
1385 * versados.c: Likewise.
1386 * vms-gsd.c: Likewise.
1387 * vms-hdr.c: Likewise.
1388 * vms-misc.c: Likewise.
1389 * vms-tir.c: Likewise.
1392 * xcofflink.c: Likewise.
1393 * bfd-in2.h: Regenerate.
1394 * libbfd.h: Regenerate.
1395 * libcoff.h: Regenerate.
1397 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
1398 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
1399 (ufile_ptr): Define.
1400 (bfd_tell): Return a ufile_ptr.
1401 * libbfd.c (bfd_tell): Likewise.
1402 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
1404 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
1405 * aoutf1.h: Likewise.
1407 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
1408 larger than unsigned long can represent.
1410 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
1411 size overflows size_t.
1412 (bfd_realloc): Likewise.
1413 (bfd_zmalloc): Likewise.
1414 * opncls.c (bfd_alloc): Likewise.
1415 (bfd_zalloc): Likewise.
1416 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1417 (bfd_alloc, bfd_zalloc): Update.
1419 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1421 (bfd_get_signed_8): Likewise.
1422 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1423 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1424 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1425 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1426 * libaout.h: Likewise define and use here.
1427 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1428 * aout-arm.c: Likewise.
1429 * aout-encap.c: Likewise.
1430 * aout-ns32k.c: Likewise.
1431 * aout-tic30.c: Likewise.
1432 * aoutf1.h: Likewise.
1433 * aoutx.h: Likewise.
1435 * coff-alpha.c: Likewise.
1436 * coff-h8300.c: Likewise.
1437 * coff-h8500.c: Likewise.
1438 * coff-i960.c: Likewise.
1439 * coff-ia64.c: Likewise.
1440 * coff-m88k.c: Likewise.
1441 * coff-mips.c: Likewise.
1442 * coff-ppc.c: Likewise.
1443 * coff-rs6000.c: Likewise.
1444 * coff-sh.c: Likewise.
1445 * coff-sparc.c: Likewise.
1446 * coff-stgo32.c: Likewise.
1447 * coff-tic30.c: Likewise.
1448 * coff-tic80.c: Likewise.
1449 * coff-w65.c: Likewise.
1450 * coff-z8k.c: Likewise.
1451 * coff64-rs6000.c: Likewise.
1452 * coffgen.c: Likewise.
1453 * cofflink.c: Likewise.
1454 * coffswap.h: Likewise.
1455 * ecoff.c: Likewise.
1456 * ecoffswap.h: Likewise.
1458 * elf32-mips.c: Likewise.
1459 * elf64-mips.c: Likewise.
1460 * hp300hpux.c: Likewise.
1461 * i386dynix.c: Likewise.
1462 * i386lynx.c: Likewise.
1463 * i386msdos.c: Likewise.
1464 * i386os9k.c: Likewise.
1465 * libpei.h: Likewise.
1466 * nlm32-alpha.c: Likewise.
1467 * nlm32-i386.c: Likewise.
1468 * nlm32-ppc.c: Likewise.
1469 * nlmcode.h: Likewise.
1470 * nlmswap.h: Likewise.
1471 * oasys.c: Likewise.
1472 * pdp11.c: Likewise.
1473 * pe-mips.c: Likewise.
1474 * peXXigen.c: Likewise.
1475 * peicode.h: Likewise.
1476 * riscix.c: Likewise.
1477 * sunos.c: Likewise.
1478 * xcofflink.c: Likewise.
1479 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1480 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1481 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1482 equivalent H_PUT_* macro instead.
1483 (GETWORD, GETHALF, GETBYTE): Similarly.
1484 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1485 (GETWORD, GETHALF, GETBYTE): Likewise.
1486 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1488 * bfd-in.h (struct orl): Change "pos" to a union.
1489 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1490 (bsd_write_armap): Here too.
1491 (coff_write_armap): And here.
1492 * coff-rs6000.c (xcoff_write_armap_old): And here.
1493 (xcoff_write_one_armap_big): And here.
1494 (xcoff_write_armap_big): And here.
1495 * ecoff.c (_bfd_ecoff_write_armap): And here.
1496 * elf64-mips.c (mips_elf64_write_armap): And here.
1498 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1499 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1500 * elf32-h8300.c (elf32_h8_mach): Likewise.
1501 * elf32-mips.c (elf_mips_mach): Likewise.
1502 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1504 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1506 (aix386_core_vec): Typo fix.
1508 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1509 etc. to avoid redefined macro warning.
1510 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1511 (MY(fix_pcrel_26)): Likewise.
1512 * aout-ns32k.c (MY(put_reloc)): Likewise.
1513 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1514 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1515 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1517 * aout-encap.c: Include "file", not <file> for binutils headers.
1518 (encap_object_p): Half baked attempt to fix compile errors in
1519 code dealing with "magic".
1521 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1522 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1523 bfd_vma's rather than longs.
1524 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1525 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1526 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1528 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1529 Use unsigned comparisons.
1530 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1531 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1532 (_bfd_do_ns32k_reloc_contents): Likewise.
1533 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1534 (_bfd_ns32k_get_immediate): Likewise.
1535 (_bfd_ns32k_put_displacement): Likewise.
1536 (_bfd_ns32k_put_immediate): Likewise.
1537 (bfd_reloc_status_type): Likewise.
1539 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1541 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1542 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1543 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1545 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1546 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1547 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1549 (_bfd_elfcore_strndup): Likewise for "dup".
1550 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1551 "name" to avoid shadowing.
1552 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1553 definition of "off".
1554 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1555 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1557 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1559 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1561 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1563 (elf_link_input_bfd): Likewise.
1564 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1565 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1566 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1568 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1569 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1570 (sunos_write_dynamic_symbol): Remove unused vars.
1571 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1572 innermost "directory_name" and "file_name" vars.
1573 * tekhex.c (first_phase): Rename local var "type" to "stype".
1574 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1575 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1576 doing comparison at caller.
1577 (vms_esecflag_by_name): Likewise.
1578 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1579 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1580 (xcoff_write_global_symbol): Rename "p" param to "inf".
1582 * cisco-core.c: Add missing prototypes.
1583 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1584 (cisco_core_file_failing_signal): Likewise.
1585 (cisco_core_file_matches_executable_p): Likewise.
1586 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1587 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1588 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1589 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1591 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1592 thumb_glue_size and arm_glue_size.
1593 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1595 * coff64-rs6000.c: Group prototypes together.
1597 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1598 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1600 * cpu-arc.c: Add missing prototypes.
1601 * cpu-h8500.c: Likewise.
1602 * cpu-i960.c: Likewise.
1603 * cpu-pj.c: Likewise.
1604 * cpu-sh.c: Likewise.
1605 * cpu-w65.c: Likewise.
1606 * cpu-z8k.c: Likewise.
1607 * elf32-fr30.c: Likewise.
1608 * elf32-h8300.c: Likewise.
1609 * elf32-i370.c: Likewise.
1610 * hpux-core.c: Likewise.
1611 * versados.c: Likewise.
1613 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
1614 * cpu-h8500.c: Likewise.
1615 * cpu-i960.c: Likewise.
1616 * cpu-z8k.c: Likewise.
1618 * cpu-ia64-opc.c: Correct comment.
1620 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
1622 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
1624 (bfd_elf32_write_out_phdrs): Likewise.
1625 (bfd_elf64_write_out_phdrs): Likewise.
1626 (elf_linker_section_pointers): Change addend to bfd_vma.
1627 (_bfd_elf_find_pointer_linker_section): Likewise.
1628 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
1629 filepos to unsigned file_ptr.
1630 (_bfd_elfcore_strndup): Change max param to size_t.
1631 * elf.c (_bfd_elfcore_make_pseudosection): As above.
1632 (_bfd_elfcore_strndup): Likewise.
1633 (_bfd_elf_find_pointer_linker_section): Likewise.
1635 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
1636 insn and sym_value to ints.
1638 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
1640 (elfcore_read_notes): Likewise.
1642 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
1643 param from unsigned char to int.
1644 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
1645 for info_to_howto call.
1646 (add_dynamic_entry): Define macro.
1647 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
1649 * elf32-cris.c (add_dynamic_entry): Define macro.
1650 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
1652 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
1653 (elf32_h8_object_p): Likewise.
1654 (elf32_h8_merge_private_bfd_data): Likewise.
1655 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
1657 * elf32-hppa.c (add_dynamic_entry): Define macro.
1658 (elf32_hppa_size_dynamic_sections): Use it.
1659 * elf32-i370.c (add_dynamic_entry): Define macro.
1660 (i370_elf_size_dynamic_sections): Use it.
1661 (i370_noop): Make static.
1662 * elf32-i386.c (add_dynamic_entry): Define macro.
1663 (elf_i386_size_dynamic_sections): Use it.
1664 * elf32-m68k.c (add_dynamic_entry): Define macro.
1665 (elf_m68k_size_dynamic_sections): Use it.
1666 * elf32-ppc.c (add_dynamic_entry): Define macro.
1667 (ppc_elf_size_dynamic_sections): Use it.
1668 * elf32-s390.c (add_dynamic_entry): Define macro.
1669 (elf_s390_size_dynamic_sections): Use it.
1670 * elf64-alpha.c (add_dynamic_entry): Define macro.
1671 (elf64_alpha_size_dynamic_sections): Use it.
1672 * elf64-hppa.c (add_dynamic_entry): Define macro.
1673 (elf64_hppa_size_dynamic_sections): Use it.
1674 * elf64-ppc.c (add_dynamic_entry): Define macro.
1675 (ppc64_elf_size_dynamic_sections): Use it.
1676 * elf64-s390.c (add_dynamic_entry): Define macro.
1677 (elf_s390_size_dynamic_sections): Use it.
1678 * elf64-sparc.c (add_dynamic_entry): Define macro.
1679 (sparc64_elf_size_dynamic_sections): Use it.
1680 * elf64-x86-64.c (add_dynamic_entry): Define macro.
1681 (elf64_x86_64_size_dynamic_sections): Use it.
1682 * elfxx-ia64.c (add_dynamic_entry): Define macro.
1683 (elfNN_ia64_size_dynamic_sections): Use it.
1685 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
1686 (v850_elf_perform_relocation): Make "r_type" param unsigned.
1688 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
1689 false if the first malloc fails rather than going via error_return.
1691 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
1693 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
1695 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
1697 * elfxx-ia64.c (global_sym_index): Return a long.
1699 * ieee.c (get_symbol): Use int rather than char param.
1700 (ieee_slurp_sections): Move "section" var to inner blocks.
1701 (copy_expression): Don't init "value" to zero or worry about
1702 clearing to zero after using.
1703 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
1706 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
1709 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
1710 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
1712 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
1714 * pc532-mach.c (MYNSX): Delete.
1715 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
1716 (write_object_contents): Correct prototype.
1718 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
1719 than unsigned short.
1721 * section.c (bfd_set_section_contents): Remove redundant
1722 "offset < 0" test. Check that "count" doesn't overflow size_t.
1723 (bfd_get_section_contents): Likewise.
1725 * som.c (som_fixup_formats): Add missing braces.
1726 (som_reloc_addend): Pass a bfd_vma for "addend".
1728 * srec.c (srec_write_record): Pass "type" as an unsigned int.
1729 (srec_write_symbols): Remove an unnecessary var.
1731 * targets.c (_bfd_target_vector): Sort entries. Sort externs
1733 * configure.in: Sort to match. Bump version number.
1734 * configure: Regenerate.
1736 * tekhex.c (move_section_contents): Assert offset == 0.
1738 * versados.c (new_symbol_string): Constify arg.
1739 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
1740 (versados_get_symbol_info): Make static.
1741 (versados_print_symbol): Likewise.
1742 (versados_get_reloc_upper_bound): Likewise.
1743 (versados_canonicalize_reloc): Likewise.
1745 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
1747 * elflink.h (elf_link_input_bfd): Fix typo in error message.
1749 2001-09-17 H.J. Lu <hjl@gnu.org>
1751 * dwarf1.c (parse_die): Take a new arg for the end of the
1752 section. Return false if die is beyond the section.
1753 (parse_functions_in_unit): Pass the end of the section to
1755 (_bfd_dwarf1_find_nearest_line): Likewise.
1757 2001-09-14 Michael Rauch <mrauch@netbsd.org>
1759 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1760 just like R_SPARC_32.
1762 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1764 * configure.bfd: Add arm-openbsd target.
1766 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1768 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1769 Add support for mips64.
1771 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
1773 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1775 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
1777 * elf.c (prep_headers): Get the machine code from the elf
1779 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
1780 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
1781 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
1782 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
1783 * elf-arc.c (arc_elf_final_write_processing): Don't override
1784 e_machine, it's now properly set in prep_headers.
1785 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
1787 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
1788 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
1789 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
1790 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
1791 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
1792 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
1793 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
1794 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
1795 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
1796 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
1797 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
1798 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
1800 2001-09-11 Richard Henderson <rth@redhat.com>
1802 * elf64-alpha.c (elf64_alpha_section_flags): New.
1803 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
1805 2001-09-11 Richard Henderson <rth@redhat.com>
1807 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
1808 apply HINT relocations against dynamic symbols.
1810 2001-09-11 H.J. Lu <hjl@gnu.org>
1812 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
1814 2001-09-09 Richard Henderson <rth@redhat.com>
1816 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
1818 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1819 following a call to a near function.
1821 2001-09-08 Richard Henderson <rth@redhat.com>
1823 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1824 relocation errors. Fail gp-relative relocations against
1827 2001-09-08 Alan Modra <amodra@bigpond.net.au>
1829 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1830 as well as DEF_DYNAMIC in test for avoided copy relocs.
1831 (allocate_plt_and_got_and_discard_relocs): Likewise.
1832 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1833 (allocate_plt_and_got_and_discard_relocs): Likewise.
1835 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1837 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1840 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1842 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1844 (mips_elf64_howto_table_rel): Likewise.
1846 2001-09-05 Tom Rix <trix@redhat.com>
1848 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1849 and syscall symbols.
1850 (write_global_symbol) : Same.
1851 (bfd_xcoff_export_symbol): Remove unused syscall param.
1852 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1853 bfd_xcoff_import_symbol.
1855 * bfd-in2.h : Regenerate.
1857 2001-09-04 Richard Henderson <rth@redhat.com>
1859 * elf64-alpha.c (SKIP_HOWTO): New.
1860 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1861 Fix sizes of 16-bit mem format relocs.
1862 (elf64_alpha_reloc_map): Update to match.
1863 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1864 (elf64_alpha_relax_without_lituse): Likewise.
1865 (elf64_alpha_check_relocs): Handle GPREL16.
1866 (elf64_alpha_relocate_section): Likewise.
1867 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1868 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1869 * bfd-in2.h, libbfd.h: Rebuild.
1871 2001-09-04 Jeff Law <law@redhat.com>
1873 * elf32-h8300.c (elf32_h8_relax_section): New function.
1874 (elf32_h8_relax_delete_bytes): Likewise.
1875 (elf32_h8_symbol_address_p): Likewise.
1876 (elf32_h8_get_relocated_section_contents): Likewise.
1877 (bfd_elf32_bfd_relax_section): Define.
1878 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1880 * elf32-h8300.c (special): New function.
1881 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1883 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1884 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1885 Fix minor problems with 8bit and 16bit PC relative relocations.
1887 2001-09-01 Andreas Jaeger <aj@suse.de>
1889 * vms-tir.c: Add missing prototypes.
1890 * vms-hdr.c: Likewise.
1891 * vms-gsd.c: Likewise.
1892 * vms-misc.c: Likewise.
1894 2001-08-31 H.J. Lu <hjl@gnu.org>
1896 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1897 with bad relocation.
1899 2001-08-31 Eric Christopher <echristo@redhat.com>
1900 Jason Eckhardt <jle@redhat.com>
1902 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1903 mips32_4k and mips64.
1904 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1905 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1906 * bfd/cpu-mips.c: Ditto.
1907 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1908 * bfd/bfd-in2.h: Regenerate.
1910 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1912 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1913 value into R_ALPHA_RELATIVE's addend.
1914 (elf64_alpha_finish_dynamic_symbol): Likewise.
1916 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1918 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1919 recomputed addend during relocatable link if not USE_REL.
1921 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1924 2001-08-30 H.J. Lu <hjl@gnu.org>
1926 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1928 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1929 relocations for weak definitions.
1931 2001-08-30 H.J. Lu <hjl@gnu.org>
1933 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1934 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1935 * Makefile.in: Rebuild.
1937 2001-08-30 H.J. Lu <hjl@gnu.org>
1939 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1940 dynamic relocation for undefined weak symbols when creating
1941 executables. Check h->root.root.type, instead of h->root.type.
1943 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1945 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1946 default from coff to elf.
1948 2001-08-29 Jeff Law <law@redhat.com>
1950 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1952 (h8_reloc_map): Similarly.
1953 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1954 Add support for PC relative relocations.
1956 * elf32-h8300.c: Put all prototypes together.
1957 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1958 (elf32_h8_final_link_relocate): New function for linker.
1959 (elf32_h8_relocate_section): Similarly.
1960 (elf_backend_relocate_section): Define.
1962 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1963 (h8300_scan): Handle architecture:machine encodings typically
1964 found in linker scripts.
1965 * elf.c (prep_headers): Do not try to do H8 machine recognition
1967 * elf32-h8300.c: Add some missing prototypes.
1968 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1969 (elf32_h8_object_p): Similarly.
1971 2001-08-29 Tom Rix <trix@redhat.com>
1973 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1974 does not follow a XTY_SD.
1976 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1978 * targmatch.sed: Delete case statements.
1979 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1982 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1984 * Makefile.am (elf32-h8300.lo): New target.
1985 * config.bfd (h8300*-*-elf): New case.
1986 * configure.in (bfd_elf32_h8300_vec): New case.
1987 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1988 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1989 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1990 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1991 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1992 * elf32-h8300.c: New file.
1993 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1995 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1997 * sparclynx.c: Add missing prototypes.
1998 * coff-mcore.c: Add missing prototypes.
1999 * elf32-pj.c: Add missing prototypes.
2000 * nlm32-sparc.c: Add missing prototypes.
2001 * oasys.c: Add missing prototypes.
2002 * pdp11.c: Add missing prototypes.
2003 * pe-mips.c: Add missing prototypes.
2004 * riscix.c: Add missing prototypes.
2006 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2008 * elf32-i386.c: Add missing prototypes.
2009 * elf32-ppc.c: Likewise.
2010 * elf32-sh-lin.c: Likewise.
2011 * elfarm-nabi.c: Likewise.
2013 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2015 * elf32-i386.c (elf_i386_grok_prstatus): New function.
2016 (elf_i386_grok_psinfo): New function.
2017 (elf_backend_grok_prstatus): Define.
2018 (elf_backend_grok_psinfo): Likewise.
2019 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
2020 (ppc_elf_grok_psinfo): New function.
2021 (elf_backend_grok_prstatus): Define.
2022 (elf_backend_grok_psinfo): Likewise.
2023 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
2024 (elf32_shlin_grok_psinfo): New function.
2025 (elf_backend_grok_prstatus): Define.
2026 (elf_backend_grok_psinfo): Likewise.
2027 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
2028 (elf32_arm_nabi_grok_psinfo): New function.
2029 (elf_backend_grok_prstatus): Define.
2030 (elf_backend_grok_psinfo): Likewise.
2032 2001-08-27 H.J. Lu <hjl@gnu.org>
2034 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
2036 (mips_elf_calculate_relocation): Create dynamic relocation for
2037 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
2040 2001-08-27 H.J. Lu <hjl@gnu.org>
2042 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
2043 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
2044 (_bfd_elf32_mips_grok_prstatus): Likewise.
2045 (_bfd_elf32_mips_grok_psinfo): Likewise.
2046 (_bfd_mips_elf_hide_symbol): Make it static and cast to
2047 `struct mips_elf_link_hash_entry *'.
2048 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
2050 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2052 * mipsbsd.c: Add missing prototypes.
2053 * hp300hpux.c: Add missing prototypes.
2054 * i386aout.c: Add missing prototypes.
2055 * i386lynx.c: Add missing prototypes.
2056 * i386mach3.c: Add missing prototypes.
2057 * i386msdos.c: Add missing prototypes.
2058 * i386os9k.c: Add missing prototypes.
2060 2001-08-27 Linus Nordberg <linus@swox.se>
2061 Torbjorn Granlund <tege@swox.com>
2062 Staffan Ulfberg <staffanu@swox.se>
2063 Alan Modra <amodra@bigpond.net.au>
2065 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
2066 targ64_selvecs for 32 bit powerpc targets.
2067 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
2068 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
2070 * Makefile.in: Regenerate.
2071 * configure.in: Add elf64_powerpc vecs.
2072 * configure: Regenerate.
2073 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
2074 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
2075 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
2076 * elf64-ppc.c: New file.
2077 * reloc.c: Add powerpc64 relocs.
2078 * libbfd.h: Regenerate.
2079 * bfd-in2.h: Regenerate.
2081 2001-08-27 Andreas Schwab <schwab@suse.de>
2083 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
2084 reloc is against read-only section.
2085 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
2086 looking up section names for DT_TEXTREL.
2087 (elf32_m68k_reloc_type_class): New function.
2088 (elf_backend_reloc_type_class): Define.
2090 2001-08-27 Andreas Jaeger <aj@suse.de>
2092 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2093 reloc is against read-only section.
2094 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2095 looking up section names for DT_TEXTREL.
2096 (elf_s390_reloc_type_class): New.
2097 (elf_backend_reloc_type_class): Define.
2099 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2100 reloc is against read-only section.
2101 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2102 looking up section names for DT_TEXTREL.
2103 (elf_s390_reloc_type_class): New.
2104 (elf_backend_reloc_type_class): Define.
2106 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
2107 is against read-only section.
2108 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2109 looking up section names for DT_TEXTREL.
2110 (ppc_elf_reloc_type_class): New.
2111 (elf_backend_reloc_type_class): Define.
2113 2001-08-26 Andreas Jaeger <aj@suse.de>
2115 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
2116 reloc is against read-only section.
2117 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
2118 looking up section names for DT_TEXTREL.
2119 (elf_cris_reloc_type_class): New.
2120 (elf_backend_reloc_type_class): Define.
2122 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
2123 against read-only section.
2124 (elf_backend_reloc_type_class): Define.
2125 (sh_elf_reloc_type_class): New.
2126 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2127 looking up section names for DT_TEXTREL.
2129 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
2130 reloc is against read-only section.
2131 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
2132 looking up section names for DT_TEXTREL.
2133 (elf32_arm_reloc_type_class): New.
2134 (elf_backend_reloc_type_class): Define.
2136 2001-08-25 Andreas Jaeger <aj@suse.de>
2138 * oasys.c: Add missing prototypes.
2140 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
2141 attribute for parameter.
2142 * elf.c (_bfd_elf_reloc_type_class): Likewise.
2144 * versados.c (get_4): Make static.
2145 (get_10): Make static.
2146 Add missing prototypes.
2147 (process_esd): Fix call to versados_new_symbol.
2149 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
2151 * coff-a29k.c: Add missing prototypes.
2152 * coff-apollo.c: Add missing prototypes.
2153 * coff-arm.c: Add missing prototypes.
2154 * coff-i860.c: Add missing prototypes.
2155 * coff-rs6000.c: Add missing prototypes.
2156 * coff-tic80.c: Add missing prototypes.
2157 * elf-m10200.c: Add missing prototypes.
2158 * elf-m10300.c: Add missing prototypes.
2159 * elf32-arm.h: Add missing prototypes.
2160 * elf32-d10v.c: Add missing prototypes.
2161 * elf32-m32r.c: Add missing prototypes.
2162 * elf32-mcore.c: Add missing prototypes.
2163 * elf32-openrisc.c: Add missing prototypes.
2164 * elf32-sh.c: Add missing prototypes.
2165 * elf32-sparc.c: Add missing prototypes.
2166 * elf32-v850.c: Add missing prototypes.
2167 * elfarm-nabi.c: Add missing prototypes.
2168 * elfarm-oabi.c: Add missing prototypes.
2170 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2172 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
2173 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
2175 2001-08-24 H.J. Lu <hjl@gnu.org>
2177 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
2180 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
2182 * elf-bfd.h (elf_hash_table): Revert definition.
2183 (is_elf_hash_table): New macro.
2184 * elflink.h (elf_link_add_object_symbols): Test
2185 is_elf_hash_table before accessing ELF only fields in hash
2187 (elf_link_create_dynamic_sections): Fail if not using an ELF
2189 (elf_add_dynamic_entry): Fail if not using an ELF hash
2191 (elf_link_record_local_dynamic_symbol): Fail if not using an
2193 (size_dynamic_sections): Fail if not using an ELF hash
2195 (elf_adjust_dynamic_symbol): Fail if not using an ELF
2197 (elf_bfd_final_link): Fail if not using an ELF hash
2200 2001-08-24 H.J. Lu <hjl@gnu.org>
2202 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
2203 table is not an ELF linker hash table.
2205 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
2206 table type to bfd_link_elf_hash_table.
2208 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
2211 * linker.c (_bfd_link_hash_table_init): Set the linker hash
2212 table type to bfd_link_generic_hash_table.
2214 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2216 * bfd.c (bfd_alt_mach_code): New function.
2217 * bfd-in2.h: Rebuilt.
2219 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2221 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
2222 `type' field in the hash entry when deciding whether to follow a
2225 2001-08-24 Jakub Jelinek <jakub@redhat.com>
2227 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
2229 (elf_link_sort_relocs): Adjust accordingly.
2231 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
2232 (elf64_alpha_check_relocs): Set it if section this reloc is against
2233 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
2235 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
2236 is is against read-only section.
2237 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
2238 check section names.
2239 (elf64_alpha_reloc_type_class): New.
2240 (elf_backend_reloc_type_class): Define.
2242 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2244 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
2247 2001-08-23 Andreas Jaeger <aj@suse.de>
2249 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
2250 the reloc is against read-only section.
2251 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
2252 of looking up section names for DT_TEXTREL.
2253 (elf64_x86_64_reloc_type_class): New.
2254 (elf_backend_reloc_type_class): Define.
2256 2001-08-23 H.J. Lu <hjl@gnu.org>
2258 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
2259 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
2261 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
2262 bfd_print_symbol_vandf.
2263 * coffgen.c (coff_print_symbol): Likewise.
2264 * elf.c (bfd_elf_print_symbol): Likewise.
2265 * ieee.c (ieee_print_symbol): Likewise.
2266 * nlmcode.h (nlm_print_symbol): Likewise.
2267 * oasys.c (oasys_print_symbol): Likewise.
2268 * pdp11.c (NAME(aout,print_symbol)): Likewise.
2269 * som.c (som_print_symbol): Likewise.
2270 * srec.c (srec_print_symbol): Likewise.
2271 * tekhex.c (tekhex_print_symbol): Likewise.
2272 * versados.c (versados_print_symbol): Likewise.
2273 * vms.c (vms_print_symbol): Likewise.
2275 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
2276 with bfd_fprintf_vma.
2277 (bfd_elf_print_symbol): Likewise.
2278 * syms.c (bfd_print_symbol_vandf): Likewise.
2280 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2282 * aoutf1.h (sunos_write_object_contents): Silence compile time
2284 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
2286 * bout.c: Add missing function prototypes. Fix formatting.
2287 * coff-z8k.c: Add missing function prototypes. Fix formatting.
2288 * coff-w65.c: Add missing function prototypes. Fix formatting.
2289 * coff-h8500.c: Add missing function prototypes. Fix formatting.
2290 * coff-h8300.c: Add missing function prototypes. Fix formatting.
2291 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
2292 * coff-tic30.c: Add missing function prototypes. Fix formatting.
2293 * coff-m68k.c: Add missing function prototypes. Fix formatting.
2294 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
2295 * coff-sh.c: Add missing function prototypes. Fix formatting.
2297 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2299 * elf-bfd.h (enum elf_reloc_type_class): New.
2300 (struct elf_backend_data): Add elf_backend_reloc_type_class.
2301 (_bfd_elf_reloc_type_class): New.
2302 * elfxx-target.h (elf_backend_reloc_type_class): Define.
2303 (elfNN_bed): Add elf_backend_reloc_type_class.
2304 * elf.c (_bfd_elf_reloc_type_class): New.
2305 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
2306 is against read-only section.
2307 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
2308 looking up section names for DT_TEXTREL.
2309 (elf_i386_reloc_type_class): New.
2310 (elf_backend_reloc_type_class): Define.
2311 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
2312 reloc is against read-only section.
2313 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
2314 looking up section names for DT_TEXTREL.
2315 (elf32_sparc_reloc_type_class): New.
2316 (elf_backend_reloc_type_class): Define.
2317 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
2318 reloc is against read-only section.
2319 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2320 looking up section names for DT_TEXTREL.
2321 (sparc64_elf_reloc_type_class): New.
2322 (elf_backend_reloc_type_class): Define.
2323 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
2324 (elfNN_ia64_hash_table_create): Clear ia64_info.
2325 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
2327 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
2328 instead of looking up section names for DT_TEXTREL.
2329 (elfNN_ia64_reloc_type_class): New.
2330 (elf_backend_reloc_type_class): Define.
2331 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
2332 (struct elf_link_sort_rela): New.
2333 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
2334 (elf_bfd_final_link): Call elf_link_sort_relocs.
2335 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
2338 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2340 * configure.in (x86-bsdi): No corefile support.
2341 * configure: Regenerate.
2343 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
2345 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
2348 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
2350 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
2351 the alignment of dwarf2 linkonce sections to 0.
2352 * coff-sto32.c: Likewise.
2354 2001-08-20 Andreas Jaeger <aj@suse.de>
2356 * coff-sparc.c: Add missing prototypes.
2357 * elf32-s390.c: Likewise.
2358 * elf32-i960.c: Likewise.
2359 * aout-target.h: Likewise.
2361 2001-08-20 H.J. Lu <hjl@gnu.org>
2363 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
2364 (elf_num_section_syms): New for num_section_syms.
2366 * elf.c (elf_map_symbols): Set num_section_syms.
2367 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
2368 the section symbol index.
2370 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
2372 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
2373 select the generic has table creator. All elf backends need elf
2374 specific fields in the hash table.
2376 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2378 * archive.c (offsetof): Remove define.
2381 * sysdep.h (offsetof): Define.
2383 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2385 * bfd.c (bfd_get_gp_size): Return an unsigned int.
2386 (bfd_set_gp_size): Make param unsigned.
2387 * bfd-in2.h: Regenerate.
2388 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
2389 than calling bfd_get_gp_size.
2390 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
2391 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2393 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2395 * linker.c (default_fill_link_order): Handle four byte fill value.
2397 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2399 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
2401 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
2403 * elf64-mips.c (UNUSED_RELOC): Define.
2404 (mips_elf64_howto_table_rel): Use it.
2405 (mips_elf64_howto_table_rela): Here too.
2406 (mips_elf64_write_relocs): Fix signed/unsigned warning.
2408 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
2410 * coffgen.c (coff_print_symbol): Fix warnings.
2411 (coff_find_nearest_line): Likewise.
2412 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2413 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
2414 * format.c (bfd_check_format_matches): Likewise.
2415 (bfd_set_format): Likewise.
2416 * coff-ia64.c: Add missing prototypes.
2417 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2418 signed to silence warnings.
2419 (elf64_alpha_relocate_section): Likewise.
2420 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2421 (elf64_alpha_add_symbol_hook): Likewise.
2422 (elf64_alpha_final_link): Likewise.
2423 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2424 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2425 (elf64_alpha_size_got_sections): Likewise.
2426 * elfxx-ia64.c: Add missing prototypes.
2427 (elfNN_ia64_relocate_section): Fix warning.
2428 (elfNN_ia64_unwind_entry_compare): Make params const.
2430 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2432 * config.bfd (targ64_selvecs): New.
2433 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2435 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2436 (BFD_DEFAULT_TARGET_SIZE): New.
2437 (BFD_ARCH_SIZE): Comment.
2438 * configure.in (target_size): New. Set instead of target64 in
2439 selvecs case statement. Set target64 from it.
2440 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2441 * bfd-in2.h: Regenerate.
2442 * configure: Regenerate.
2444 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2446 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2447 (bfd_errmsgs): Add corresponding message.
2448 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2449 finding an archive that contains different format object files.
2450 Return bfd_error_wrong_object_format for this case.
2451 * format.c: Formatting fixes. s/CONST/const/.
2452 (bfd_check_format_matches): Accept archives that give
2453 bfd_error_wrong_object_format if no full match is found. Tidy
2454 code handling matching_vector. Don't return a pointer to freed
2455 memory in `matching'. Handle ambiguous matches as for partial
2457 * bfd-in2.h: Regenerate.
2459 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2461 * libieee.h (common_header_type): Add last_byte field.
2463 * ieee.c: Add missing prototypes. Some format fixes.
2464 (struct output_buffer_struct): Move for availability to prototypes.
2465 (ieee_part_after): New function.
2466 (ieee_slurp_debug): Use it here.
2467 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2468 ieee_part_after to set last_byte to one past end of current part.
2470 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2472 (parse_expression): Don't go beyond the end of the current part.
2473 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2474 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2475 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2476 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2477 ieee_set_section_contents, ieee_write_object_contents,
2478 ieee_make_empty_symbol): Make static.
2479 (ieee_archive_p): Correct comments regarding bfd_read.
2480 (ieee_object_p): Similarly.
2481 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2482 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2483 input_bfd, output_bfd, output_buffer.
2484 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2485 do_with_relocs, ie. as a symbol for relocatable files.
2486 (ieee_vec): Add comments showing functions referenced by macros.
2488 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2490 * aout-tic30.c: Add missing prototypes. Fix formatting.
2491 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2492 * peXXigen.c: Add missining prototypes. Fix formatting.
2493 * aout-adobe.c: Add missining prototypes. Fix formatting.
2495 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2497 * elf32-v850.c: Add missing function prototypes.
2498 Fix some formatting.
2500 * cpu-v850.c: Add missing function prototype.
2501 Fix some formatting.
2503 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2505 * elf-bfd.h (struct elf_backend_data): Add new fields
2506 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2507 (bfd_elf_sprintf_vma): Rename function prototype to
2508 '_bfd_elf_sprintf_vma'.
2509 (bfd_elf_fprintf_vma): Rename function prototype to
2510 '_bfd_elf_fprintf_vma'.
2511 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2512 directly, instead indirect via the elf_backend_data structure.
2513 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2514 instead indirect via the elf_backend_data structure.
2515 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2516 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2517 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2519 (elf_backend_fprintf_vma): Initialise if not already defined.
2520 (struct elf_backend_data): Initialise the
2521 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2523 2001-08-10 Andreas Jaeger <aj@suse.de>
2525 * elf64-sparc.c: Add missing prototypes.
2526 * elf32-cris.c: Likewise.
2527 * elf32-i370.c: Likewise.
2528 * elf64-hppa.c: Likewise.
2529 * elf64-s390.c: Likewise.
2531 2001-08-10 Andreas Jaeger <aj@suse.de>
2533 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2534 Add prototypes where needed.
2536 2001-08-10 H.J. Lu <hjl@gnu.org>
2538 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2539 (bfd_fprintf_vma): Likewise.
2541 2001-08-10 H.J. Lu <hjl@gnu.org>
2543 * bfd.c (bfd_sprintf_vma): Don't return void.
2544 (bfd_fprintf_vma): Likewise.
2546 2001-08-10 Andreas Jaeger <aj@suse.de>
2548 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2550 * configure: Regenerate.
2552 2001-08-10 Alan Modra <amodra@bigpond.net.au>
2554 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2555 warning if not BFD64. Add braces so emacs auto format works.
2556 (bfd_elf_fprintf_vma): Likewise.
2558 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2560 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2561 param to agree with libxcoff.h.
2562 (xcoff_swap_ldhdr_out): Likewise.
2563 (xcoff_swap_ldsym_in): Likewise.
2564 (xcoff_swap_ldsym_out): Likewise.
2565 (xcoff_swap_ldrel_in): Likewise.
2566 (xcoff_swap_ldrel_out): Likewise.
2567 (xcoff_create_csect_from_smclas): Likewise.
2568 * coff64-rs6000.c: Add missing prototypes.
2569 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2571 (xcoff64_swap_ldhdr_out): Likewise.
2572 (xcoff64_swap_ldsym_in): Likewise.
2573 (xcoff64_swap_ldsym_out): Likewise.
2574 (xcoff64_swap_ldrel_in): Likewise.
2575 (xcoff64_swap_ldrel_out): Likewise.
2576 (xcoff64_ppc_relocate_section): Make static.
2577 (xcoff64_slurp_armap): Likewise.
2578 (xcoff64_archive_p): Likewise.
2579 (xcoff64_openr_next_archived_file): Likewise.
2580 (xcoff64_sizeof_headers): Likewise.
2581 (xcoff64_is_lineno_count_overflow): Likewise.
2582 (xcoff64_is_reloc_count_overflow): Likewise.
2583 (xcoff64_loader_symbol_offset): Likewise.
2584 (xcoff64_loader_reloc_offset): Likewise.
2585 * elf64-gen.c: Add missing prototypes.
2587 2001-08-09 H.J. Lu <hjl@gnu.org>
2589 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2590 (bfd_elf_fprintf_vma): Likewise.
2592 2001-08-09 H.J. Lu <hjl@gnu.org>
2594 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2597 * bfd-in2.h: Regenerated.
2599 2001-08-09 H.J. Lu <hjl@gnu.org>
2601 * bfd-in.h (bfd_sprintf_vma): New prototype.
2602 (bfd_fprintf_vma): Likewise.
2603 (bfd_elf_sprintf_vma): Likewise.
2604 (bfd_elf_fprintf_vma): Likewise.
2605 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2606 * bfd-in2.h: Regenerated.
2608 * bfd.c (bfd_sprintf_vma): New. Defined.
2609 (bfd_fprintf_vma): Likewise.
2611 * elf.c (bfd_elf_sprintf_vma): New. Defined.
2612 (bfd_elf_fprintf_vma): Likewise.
2614 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2616 * coff-rs6000.c: Add missing prototypes.
2617 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
2618 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
2619 xcoff_loader_reloc_offset): Make static.
2620 * dwarf1.c: Add missing prototypes.
2621 * dwarf2.c: Add missing prototypes.
2622 (struct abbrev_info): Move definition.
2623 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
2624 * elf.c: Add missing prototypes.
2625 * elf32-gen.c: Likewise.
2626 * elf32-i386.c: Likewise.
2627 * elf32-ppc.c: Likewise.
2628 (ppc_elf_sort_rela): Use PTR instead of "void *".
2629 * elflink.h: Add missing prototypes. Formatting fixes.
2630 * merge.c: Add missing prototypes.
2631 (last4_eq): Use PTR instead of "void *".
2632 (last_eq): Likewise.
2633 * syms.c: Add missing prototypes.
2635 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2637 * bfd.c: Fix formatting.
2638 * bfd-in2.h: Regenerate.
2640 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2642 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
2643 true (this target uses REL relocations) and 'pcrel_offset' to
2644 false (the PC is implied, not stored in the offset).
2646 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2648 1999-10-19 Linus Nordberg <linus@swox.se>
2649 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
2650 * elfxx-target.h (elf_backend_want_got_sym): Define.
2651 (elfNN_bed): Add elf_backend_want_got_sym.
2652 * elflink.c (_bfd_elf_create_got_section): Define
2653 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2655 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
2657 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
2658 (find_rela_addend): New function.
2659 (parse_comp_unit): Call it to find the abbrev offset addend.
2660 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
2661 members of dwarf2_debug as debugging information is read.
2663 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
2665 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
2666 targets as well as sh-pe.
2668 2001-08-03 Ben Harris <bjh21@netbsd.org>
2670 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
2671 reloc from start of section when computing value for R_ARM_REL32
2674 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2676 From H.J. Lu <hjl@gnu.org>
2677 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
2678 keep relocs for undefined syms if there are no dynamic sections in
2680 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
2682 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2684 * cofflink.c (coff_link_check_ar_symbols): also search for
2685 __imp__symbol as well as _symbol.
2686 * linker.c (_bfd_generic_link_add_archive_symbols): also
2687 search for __imp__symbol as well as _symbol.
2689 2001-08-01 Adam Nemet <anemet@lnxw.com>
2691 * elf.c (elf_sort_sections): Return zero only as the last step.
2693 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
2695 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
2697 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
2698 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
2701 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2703 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
2704 to match corresponding bfd_coff_backend data member.
2706 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2708 * Makefile.am: Update dependencies with "make dep-am".
2709 * Makefile.in: Regenerate
2711 2001-07-15 H.J. Lu <hjl@gnu.org>
2713 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
2714 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
2715 * Makefile.in: Regenerate.
2717 2001-07-11 H.J. Lu <hjl@gnu.org>
2719 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
2720 flags when creating the reloc section if the ALLOC flag in the
2721 source section is set.
2723 2001-07-11 Steve Ellcey <sje@cup.hp.com>
2725 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
2726 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
2727 * bfd-in2.h: Regenerate.
2728 * libbfd.h: Regenerate.
2729 * elfxx-ia64.c (ia64_howto_table): Define how to handle
2731 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
2732 (elfNN_ia64_check_relocs): Likewise.
2733 (elfNN_ia64_install_value): Likewise.
2734 (elfNN_ia64_relocate_section): Likewise.
2736 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2738 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
2740 (elf32_sparc_check_relocs): Likewise.
2741 Only create .rela section for alloced sections in shared libraries.
2742 (elf32_sparc_relocate_section): Likewise.
2743 Remove redundant check.
2744 Optimize unaligned reloc usage.
2745 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
2748 2001-07-11 H.J. Lu <hjl@gnu.org>
2750 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
2751 ALLOC|LOAD flags as the source section for debugging sections
2752 when creating the reloc section.
2754 2001-07-05 Jim Wilson <wilson@redhat.com>
2756 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2757 the section of the bigger symbol.
2759 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2761 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2763 * peicode.h (coff_swap_scnhdr_in): For sections containing
2764 uninitialised data, only set their size to s_paddr if this does
2765 not reset their size to zero. MS's latest compilers will set
2768 2001-07-04 H.J. Lu <hjl@gnu.org>
2770 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2771 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2774 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
2776 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
2778 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
2779 sections being discarded.
2781 2001-06-30 Alan Modra <amodra@bigpond.net.au>
2783 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
2784 instead of _bfd_elfcore_section_from_phdr.
2785 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
2786 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
2787 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
2788 (elfcore_grok_prstatus): Likewise.
2789 (elfcore_grok_lwpstatus): Likewise.
2790 (bfd_get_elf_phdr_upper_bound): Likewise.
2791 (elfcore_make_note_pseudosection): Formatting.
2792 (_bfd_elfcore_strndup): Formatting.
2793 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
2794 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
2796 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
2798 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
2799 and _bfd_elfcore_strndup.
2800 (struct elf_backend_data): Add elf_backend_grok_prstatus
2801 and elf_backend_grok_psinfo.
2802 * elf.c (_bfd_elfcore_make_pseudosection): New function.
2803 (elfcore_grok_prstatus): Use it.
2804 (elfcore_make_note_pseudosection): Likewise.
2805 (elfcore_strndup): Rename to...
2806 (_bfd_elfcore_strndup): Here, and make global.
2807 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
2808 (elfcore_grok_note): Call elf_backend_grok_prstatus
2809 and elf_backend_grok_psinfo if available.
2810 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
2811 (_bfd_elf32_mips_grok_psinfo): New function.
2812 (elf_backend_grok_prstatus): Define.
2813 (elf_backend_grok_psinfo): Define.
2814 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
2815 (elf_backend_grok_psinfo): Likewise.
2816 (elfNN_bed): Include elf_backend_grok_prstatus and
2817 elf_backend_grok_psinfo.
2819 2001-06-29 H.J. Lu <hjl@gnu.org>
2821 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2822 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2823 is NULL before filling PLT.
2825 2001-06-29 Alan Modra <amodra@bigpond.net.au>
2827 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2829 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2831 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2833 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2834 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2837 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2838 (IS_ABSOLUTE_RELOC): Define.
2839 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2840 (hppa_link_hash_newfunc): Always init it.
2841 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2842 create COPY relocs only when the reloc is in a read-only section.
2843 Instead, allocate space for a dynamic reloc to reference the
2844 library symbol directly. Keep track of space we allocate using
2846 (hppa_discard_copies): Delete, and move code to..
2847 (allocate_plt_and_got): ..here. Rename to
2848 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2849 relocs for non-shared link.
2850 (elf32_hppa_size_dynamic_sections): Update calls to above.
2851 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2852 in lieu of COPY relocs.
2854 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2856 (elf_i386_adjust_dynamic_symbol): ..nor here..
2857 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2859 (elf_i386_size_dynamic_sections): Fix a comment.
2860 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2861 involved in writing reloc out.
2863 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2865 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2866 Ensure syms are dynamic if we might be emitting a reloc.
2867 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2868 for undefweak or undefined syms..
2869 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2871 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2872 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2873 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2874 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2876 2001-06-24 H.J. Lu <hjl@gnu.org>
2878 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2879 strncasecmp/strcasecmp instead of strncmp/strcmp.
2881 2001-06-23 H.J. Lu <hjl@gnu.org>
2883 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2884 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2885 in the regular object file and treat the weak definition as
2888 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2890 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2891 unresolved_reloc test to exclude cases where we use "relocation"
2892 before setting it to point into the .got. Reinstate fudge for
2893 unresolved relocs in debugging sections.
2895 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2896 complicated tests for unresolvable relocs with a simple direct
2897 scheme using "unresolved_reloc" var.
2899 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2900 elf_i386_dyn_relocs. Update comment.
2901 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2903 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2905 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2907 (elf_i386_size_dynamic_sections): Likewise.
2908 (elf_i386_finish_dynamic_symbol): Likewise.
2909 (elf_i386_finish_dynamic_sections): Likewise.
2910 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2913 Avoid creating COPY relocs if possible.
2914 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2915 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2916 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2917 reloc is in a read-only section. Instead, allocate space for a
2918 dynamic reloc to reference the library symbol directly. Keep
2919 track of space we allocate using pcrel_relocs_copied.
2920 (discard_copies): Delete, and move code to ..
2921 (allocate_plt_and_got): ..here. Rename to
2922 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2923 relocs for non-shared link.
2924 (elf_i386_size_dynamic_sections): Update calls to above functions.
2925 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2926 more ugly logic to avoid "unresolvable relocation" error. Use
2927 htab shortcut in place of elf_hash_table macro.
2928 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2929 not always be created now.
2931 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2933 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2936 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2938 * configure.host (mips64-*-linux): Reformat.
2940 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2942 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2943 allocate local .got space. Use shortcuts from hash table for .got
2944 and .plt rather than comparing section names.
2945 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2946 adjusting index into local_got_refcounts to document what we are
2948 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2949 Tidy .got and .plt error checking.
2951 2001-06-20 Catherine Moore <clm@redhat.com>
2953 * elf-bfd.h (struct elf_backend_data):
2954 elf_backend_emit_relocs: New field: Function for emitting
2956 elf_backend_count_relocs: New field: Function for determining
2957 the number of relocs to be emitted.
2958 * elfxx-target.h: Provide default (NULL) values for
2959 elf_backend_emit_relocs and elf_backend_count_relocs.
2960 * elflink.h (elf_link_size_reloc_section): Make the hash table
2961 big enough to hold the relocs counted by either reloc_count or
2963 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2964 should be emitted, either because of a command line option
2965 stored in the info structure or because the target provides a
2966 special reloc emitting function.
2967 If the target provides a reloc counting function use it,
2968 unless performing a relocatable link or emitting all relocs.
2969 Also set the SEC_RELOC flag on any output section which will
2971 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2972 should be emitted, either because of a command line option
2973 stored in the info structure or because the target provides a
2974 special reloc emitting function.
2975 If the target provides a reloc emitting function, use it,
2976 unless performing a relocatable link or emitting all relocs.
2978 2001-06-20 H.J. Lu <hjl@gnu.org>
2980 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2981 allocate local .got space.
2983 2001-06-19 Andreas Jaeger <aj@suse.de>
2985 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2988 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2990 * elflink.h (struct elf_assign_sym_version_info): Remove member
2991 export_dynamic. All users changed to use info member.
2992 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2993 export_dynamic, instead use member in parameter info.
2994 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2995 bfd_elf64_size_dynamic_sections): Update prototype.
2996 * bfd-in2.h: Regenerate.
2998 2001-06-18 H.J. Lu <hjl@gnu.org>
3000 * elflink.h (elf_info_failed): Add a new field, verdefs.
3001 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
3003 (elf_export_symbol): Check eif->verdefs to decide if a symbol
3006 2001-06-17 H.J. Lu <hjl@gnu.org>
3008 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
3009 readonly_reloc, to record if a relocation in the .rel.dyn
3010 section is against a read-only section.
3011 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
3013 (_bfd_mips_elf_check_relocs): Record if there is a relocation
3014 in the .rel.dyn section against a read-only section by setting
3015 DF_TEXTREL or readonly_reloc.
3016 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
3018 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
3019 there is a relocation in the .rel.dyn section against a
3021 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
3024 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3026 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
3027 function. Move flagword result into parameter list. Remove
3028 comment about setting bfd_error_handler to intercept failure
3030 * coffgen.c (make_a_section_from_file): Examine result of
3031 calling bfd_coff_styp_to_sec_flags and pass a failure back to
3033 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
3034 function. Move flagword result into parameter list.
3035 * libcoff.h: Regenerate.
3036 * libecoff.h: Regenerate.
3038 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
3040 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
3041 section is going to follow it.
3043 2001-06-12 Catherine Moore <clm@redhat.com>
3045 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
3046 with the file_align entry from elf_backend_data.
3047 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3048 (elf_gc_record_vtentry): Likewise.
3050 2001-06-10 Alan Modra <amodra@bigpond.net.au>
3052 * elflink.h: Whitespace changes.
3053 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
3054 rather than "unsigned char".
3055 (elf_link_output_relocs): Likewise.
3056 (elf_link_input_bfd): Likewise.
3057 (elf_reloc_link_order): LIkewise.
3058 * elf.c: s/CONST/const/. Whitespace changes.
3059 * elf32-mips.c: Formatting fix.
3061 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
3062 * Makefile.in: Regenerate.
3063 * po/Make-in: Remove trailing tab.
3065 2001-06-09 Philip Blundell <philb@gnu.org>
3067 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
3069 (elf32_arm_plt_entry): Likewise.
3071 2001-06-08 H.J. Lu <hjl@gnu.org>
3073 * elf.c (swap_out_syms): Keep names for global section symbols.
3075 2001-06-07 H.J. Lu <hjl@gnu.org>
3077 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
3078 MIPS-based machines need it.
3080 2001-06-07 H.J. Lu <hjl@gnu.org>
3082 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
3085 * config.bfd: Remove ecoff from Linux/mips.
3087 2001-06-07 Andreas Jaeger <aj@suse.de>
3089 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
3091 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
3092 alignment of 8 for .rela sections; handle further relocations.
3094 2001-06-06 Christian Groessler <cpg@aladdin.de>
3096 * coff-z8k.c: Fix formatting.
3097 Fix howtos: howto->size was always 1.
3099 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3101 * configure.host (mips64*-*-linux*): Define.
3103 2001-06-05 Alan Modra <amodra@bigpond.net.au>
3105 * elf32-i386.c (elf_i386_discard_copies): Rename to
3106 discard_copies, and use elf_link_hash_entry arg rather than
3107 elf_i386_link_hash_entry.
3108 (elf_i386_link_hash_traverse): Delete.
3109 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
3110 Tidy sizing of dynamic sections.
3111 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
3112 possible .plt entries.
3113 (elf_i386_gc_sweep_hook): Likewise.
3114 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
3115 everything with plt.refcount <= 0.
3117 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
3119 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
3120 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
3122 (allocate_plt_and_got): ..instead do it all here. New function.
3123 (elf_i386_size_dynamic_sections): Allocate local .got space and
3124 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
3125 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
3126 rather than gc variety).
3127 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3128 (elf_i386_relocate_section): Use it here and correct handling of
3129 R_386_GOT32. Provide section and offset for "unresolvable
3130 relocation" error message.
3131 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
3133 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
3134 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
3135 (elf_i386_link_hash_table_create): Init them.
3136 (create_got_section): New function.
3137 (elf_i386_create_dynamic_sections): New function.
3138 (elf_backend_create_dynamic_sections): Set to above.
3139 (elf_i386_check_relocs): Use shortcuts from hash table rather than
3140 calling bfd_get_section_by_name.
3141 (elf_i386_gc_sweep_hook): Likewise.
3142 (elf_i386_adjust_dynamic_symbol): Likewise.
3143 (elf_i386_size_dynamic_sections): Likewise.
3144 (elf_i386_relocate_section): Likewise.
3145 (elf_i386_finish_dynamic_sections): Likewise.
3147 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
3149 2001-06-02 H.J. Lu <hjl@gnu.org>
3151 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
3153 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
3155 2001-06-02 H.J. Lu <hjl@gnu.org>
3157 * aout-cris.c (MACHTYPE_OK): New. Defined.
3159 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
3161 * section.c (_bfd_strip_section_from_output): Handle NULL
3164 2001-06-02 H.J. Lu <hjl@gnu.org>
3166 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
3167 rs6000coff64_vec only if BFD64 is defined.
3168 (powerpc64-*-aix*): Enable only if BFD64 is defined.
3170 2001-06-02 H.J. Lu <hjl@gnu.org>
3172 * coff-ia64.c (ia64coff_object_p): Rewrite with
3173 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
3175 2001-06-01 Andreas Jaeger <aj@suse.de>
3177 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
3178 relocation, small reformatting.
3180 2001-05-29 Andreas Jaeger <aj@suse.de>
3182 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
3183 (elf64_x86_64_relocate_section): Likewise.
3185 2001-05-30 Alan Modra <amodra@one.net.au>
3187 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
3188 millicode. Don't allocate .got and .rela.got space here..
3189 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
3190 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
3192 (hppa_handle_PIC_calls): ..nor here..
3193 (allocate_plt_and_got): ..instead do it all here. New function.
3194 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
3195 call allocate_plt_and_got. No need to zap .got if not dynamic.
3196 (elf32_hppa_final_link): Call regular bfd_final_link instead of
3197 gc_common_final_link.
3198 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3199 (elf32_hppa_relocate_section): Use it here.
3200 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
3201 dynamic_sections_created.
3202 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
3204 2001-05-28 Andreas Jaeger <aj@suse.de>
3206 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
3207 generic version since we want a hashsize of 4.
3208 (elf_backend_size_info): Likewise.
3210 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3212 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
3214 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
3215 (elf_link_input_bfd): Likewise.
3216 (elf_reloc_link_order): Likewise.
3217 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
3218 relocations correctly.
3220 2001-05-28 Nicolas Pitre <nico@cam.org>
3222 * elf32-arm.h: fix PLT generation for big endian ARM
3224 2001-05-28 Alan Modra <amodra@one.net.au>
3226 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
3227 for symbols forced local that need plabels.
3228 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
3229 .plt.rela for local syms if non-shared.
3230 (hppa_build_one_stub): Mask lsb of plt.offset.
3231 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
3232 (clobber_millicode_symbols): Correct comment.
3233 (elf32_hppa_relocate_section): Likewise.
3234 (elf32_hppa_finish_dynamic_symbol): Likewise.
3236 2001-05-28 Jeff Sturm <jsturm@one-point.com>
3238 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
3239 * bfd-in2.h: Regenerate.
3240 * libbfd.h: Regenerate.
3241 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
3242 and BFD_RELOC_SPARC_UA64 mapping
3243 * elf64-sparc.c: Likewise.
3245 2001-05-25 H.J. Lu <hjl@gnu.org>
3247 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
3248 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
3249 (coff-rs6000.lo): Remove the old dependency.
3250 * Makefile.in: Rebuild.
3252 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
3255 2001-05-25 H.J. Lu <hjl@gnu.org>
3257 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
3258 rs6000coff_core_file_matches_executable_p,
3259 rs6000coff_core_file_failing_command and
3260 rs6000coff_core_file_failing_signal only if AIX_CORE is
3262 (pmac_xcoff_vec): Likewise.
3263 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
3265 2001-05-25 Timothy Wall <twall@redhat.com>
3267 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
3268 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
3270 2001-05-25 H.J. Lu <hjl@gnu.org>
3272 * bfd-in2.h: Regenerated.
3273 * libcoff.h: Likewise.
3275 2001-05-25 Alan Modra <amodra@one.net.au>
3277 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
3278 undefined millicode syms in shared libs.
3279 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
3280 (elf32_hppa_check_relocs): Likewise.
3281 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3282 (elf32_hppa_size_dynamic_sections): Likewise.
3283 (elf32_hppa_relocate_section): Likewise.
3284 (elf32_hppa_finish_dynamic_symbol): Likewise.
3285 (elf32_hppa_finish_dynamic_sections): Likewise.
3287 2001-05-24 Tom Rix <trix@redhat.com>
3289 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
3290 xcoff-target.h not used to define rs6000 or ppc bfd.
3293 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
3296 * coff-rs6000.c : Many changes for 64 bit support. Move common
3297 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
3300 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
3301 linker now supported. Explictly define the rs6000coff64_vec.
3303 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
3304 (coff_print_aux) same
3305 (coff_write_object_contents) same
3306 (coff_slurp_line_table) same
3308 * coffgen.c : (coff_fix_symbol_name) formatting
3309 (coff_mangle_symbols) xcoff 64 bit support
3310 (coff_write_symbol) same
3311 (coff_write_alien_symbol) same
3312 (coff_write_native_symbol) same
3313 (coff_write_symbols) same
3314 (coff_get_symbol_info) same
3315 (bfd_coff_get_syment) same
3316 (coff_print_symbol) same
3318 * config.bfd : add powerpc64-*-aix* target
3320 * libcoff-in.h : formatting
3322 * libcoff.h : move xcoff extern declarations to libxcoff.h
3324 * libxcoff.h : New file
3326 * xcofflink.c : Many changes for xcoff64 support. Move common
3327 structures to include/coff/xcoff.h. Move specific structure to
3328 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
3329 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
3331 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
3334 (xcoff_build_ldsyms) : handle special __rtinit symbol.
3336 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3338 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
3341 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3343 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
3344 * libbfd.h: Regenerate.
3345 * bfd-in2.h: Regenerate.
3347 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
3348 * archures.c (bfd_mach_mips12000): Define.
3349 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
3350 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
3352 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
3353 * bfd-in2.h: Regenerate.
3354 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
3356 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
3358 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
3359 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
3360 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
3361 that is used by GCC.
3363 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3365 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
3366 of entries in a structured section.
3367 * elf.c: Use new macro.
3368 * elf32-i386.c: Use new macro.
3369 * elf32-mips.c: Use new macro.
3370 * elf64-alpha.c: Use new macro.
3371 * elf64-sparc.c: Use new macro.
3372 * elfcode.h: Use new macro.
3373 * elflink.h: Use new macro.
3375 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3377 * bfdint.texi: Replace -oformat with --oformat.
3379 2001-05-21 Andreas Jaeger <aj@suse.de>
3381 * dwarf2.c (decode_line_info): Fix error message.
3382 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
3383 adjust error message.
3385 2001-05-18 H.J. Lu <hjl@gnu.org>
3387 * elflink.h (elf_link_add_object_symbols): Revert the last
3390 2001-05-17 Alan Modra <amodra@one.net.au>
3392 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
3393 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
3394 (hppa_build_one_stub): Add an assert to check plt.offset.
3396 2001-05-17 H.J. Lu <hjl@gnu.org>
3398 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
3399 version definition to basename of the output filename.
3401 2001-05-17 H.J. Lu <hjl@gnu.org>
3403 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
3404 basename of the bfd filename.
3406 2001-05-16 Alan Modra <amodra@one.net.au>
3408 * section.c (asection): Add linker_has_input field.
3409 (STD_SECTION): Adjust initialization to suit.
3410 * ecoff.c (bfd_debug_section): Likewise.
3411 * bfd-in2.h: Regenerate.
3413 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
3415 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3416 negative 32-bit operands to 16 operands when the operand is
3417 going to be zero-extended by the modified opcode.
3419 2001-05-12 Peter Targett <peter.targett@arccores.com>
3421 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3422 name for 'arc5' core versions.
3423 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3425 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3427 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3429 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3431 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3433 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3434 to .gnu.linkonce.t.FOO text section.
3436 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3438 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3439 fields, change sec into secinfo.
3440 (struct sec_merge_info): Add chain, remove last fields.
3441 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3442 (sec_merge_hash_lookup): If lookup could not use a string only
3443 because it has bad alignment, mark the old string for deletion.
3444 (sec_merge_add): Add secinfo argument. Don't compute entry's
3445 position, instead record the section.
3446 (sec_merge_emit): Update for the sec into secinfo change in
3447 struct sec_merge_hash_entry.
3448 (_bfd_merge_section): Only record the section for merging, defer
3449 putting strings into the hash table.
3450 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3451 _bfd_merge_sections): New functions.
3452 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3454 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3455 (_bfd_nolink_bfd_merge_sections): Define.
3456 * libbfd.h: Likewise.
3457 (bfd_generic_merge_sections): Add prototype.
3458 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3459 (struct bfd_target): Likewise.
3460 * bfd.c (bfd_merge_sections): Define.
3461 * bfd-in2.h: Rebuilt.
3462 * elf.c (_bfd_elf_merge_sections): New function.
3463 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3464 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3465 * reloc.c (bfd_generic_merge_sections): New function.
3466 * vms.c (vms_bfd_merge_sections): New function.
3467 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3468 * aout-target.h (MY_bfd_merge_sections): Define.
3469 * aout-tic30.c (MY_bfd_merge_sections): Define.
3470 * binary.c (binary_bfd_merge_sections): Define.
3471 * bout.c (b_out_bfd_merge_sections): Define.
3472 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3473 * coffcode.c (coff_bfd_merge_sections): Define.
3474 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3475 * i386msdos.c (msdos_bfd_merge_sections): Define.
3476 * i386os9k.c (os9k_bfd_merge_sections): Define.
3477 * ieee.c (ieee_bfd_merge_sections): Define.
3478 * ihex.c (ihex_bfd_merge_sections): Define.
3479 * nlm-target.h (nlm_bfd_merge_sections): Define.
3480 * oasys.c (oasys_bfd_merge_sections): Define.
3481 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3482 * som.c (som_bfd_merge_sections): Define.
3483 * srec.c (srec_bfd_merge_sections): Define.
3484 * tekhex.c (tekhex_bfd_merge_sections): Define.
3485 * versados.c (versados_bfd_merge_sections): Define.
3486 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3488 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3490 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3491 to be unsigned long, in order to match its use.
3493 2001-05-10 H.J. Lu <hjl@gnu.org>
3495 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3498 2001-05-09 H.J. Lu <hjl@gnu.org>
3500 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3501 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3502 Remove the unused veriable `dynver'.
3504 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3506 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3507 NULL or is not COFF.
3508 (coff_i386_rtype_to_howto): Don't dump core if output section
3511 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3513 * ecoff.c (bfd_debug_section): Fix initialization.
3514 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3515 is always a positive integer. Cast away sign mismatch.
3516 * elf32-mips.c: Fix misleading comment and typo.
3517 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3519 * elflink.c: Fix typo.
3520 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3521 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3523 2001-05-04 Richard Henderson <rth@redhat.com>
3525 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3527 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3529 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3530 EF_ARM_HASENTRY if the start address is set.
3532 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3534 * targets.c (_bfd_target_vector_entries): Compute value based on
3535 the size of the _bfd_target_vector and not bfd_target_vector.
3537 2001-05-03 H.J. Lu <hjl@gnu.org>
3539 * elfcode.h: Include "libiberty.h".
3541 * elflink.h (elf_link_add_object_symbols): Set
3542 elf_dt_name (abfd) to basename of the bfd filename.
3543 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3544 of the bfd filename.
3546 2001-05-03 Andreas Jaeger <aj@suse.de>
3548 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3549 (elf_generic_info_to_howto_rel): Likewise.
3550 * coff-alpha.c (reloc_nil): Likewise.
3551 (alpha_ecoff_bad_format_hook): Likewise.
3552 (alpha_adjust_reloc_out): Likewise.
3553 (alpha_bfd_reloc_type_lookup): Likewise.
3554 (alpha_convert_external_reloc): Likewise.
3555 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3556 (elf64_alpha_reloc_bad): Likewise.
3557 (elf64_alpha_reloc_gpdisp): Likewise.
3558 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3559 (elf64_alpha_info_to_howto): Likewise.
3560 (elf64_alpha_add_symbol_hook): Likewise.
3561 (elf64_alpha_create_got_section): Likewise.
3562 (elf64_alpha_is_local_label_name): Likewise.
3563 (elf64_alpha_merge_ind_symbols): Likewise.
3564 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3565 (mips_elf64_get_reloc_upper_bound): Likewise.
3566 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3567 (nlm_alpha_get_public_offset): Likewise.
3569 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3571 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3572 about overflow in R_OPENRISC_LO_16_IN_INSN and
3573 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3575 2001-04-30 H.J. Lu <hjl@gnu.org>
3577 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3578 only for ELF_LINK_FORCED_LOCAL.
3579 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3580 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3581 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3583 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3584 if the symbol has hidden or internal visibility.
3586 2001-04-30 Alan Modra <amodra@one.net.au>
3588 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3589 calls to undefined weak symbols.
3591 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3593 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3594 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3596 2001-04-27 Andreas Jaeger <aj@suse.de>
3598 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3599 out handled entries.
3600 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3601 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3602 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3605 2001-04-27 Sean McNeil <sean@mcneil.com>
3607 * config.bfd: Add arm-vxworks target.
3608 * coff-arm (coff_arm_relocate_section): Add in symbol value to
3609 addend (fro VXworks targets).
3611 2001-04-26 H.J. Lu <hjl@gnu.org>
3613 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
3616 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3618 * bfd-in.h (bfd_cache_close): Declare newly exported function.
3619 * bfd-in2.h: Regenerated.
3621 2001-04-24 Jakub Jelinek <jakub@redhat.com>
3623 * merge.c (struct sec_merge_hash_entry): Add alignment field.
3624 (struct sec_merge_hash): Remove alignment_power.
3625 (sec_merge_hash_newfunc): Clear alignment.
3626 (sec_merge_hash_lookup): Pass alignment as argument.
3627 Use hashp->root.next, not hashp->next to walk the hash chain.
3628 If a string already in the hashtable does not have required
3629 alignment, create a new hashtable entry.
3630 (sec_merge_init): Remove alignment_power argument.
3631 (sec_merge_add): Add alignment argument.
3632 (sec_merge_emit): Alignment is now a per-entity thing, not per
3634 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
3635 for proper alignment.
3636 Pass alignment information to sec_merge_add.
3638 2001-04-24 Christian Groessler <cpg@aladdin.de>
3640 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
3641 and R_REL16 reloc types; accept odd values for R_REL16 type
3643 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
3645 * cpu-openrisc.c: New file.
3646 * elf32-openrisc.c: Likewise.
3648 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
3649 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
3650 (BFD32_BACKENDS): Add elf32-openrisc.lo.
3651 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
3652 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
3653 * Makefile.in: Regenerated.
3654 * config.bfd: (openrisc-*-elf): New target.
3655 * configure.in (bfd_elf32_openrisc_vec): New vector.
3656 * configure: Regenerated.
3657 * libbfd.h: Regenerated.
3658 * bfd-in2.h: Regenerated.
3659 * reloc.c: Add OpenRISC relocations.
3660 * targets.c (bfd_elf32_openrisc_vec): Declare.
3661 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
3662 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
3663 (bfd_openrisc_arch): Declare.
3664 (bfd_archures_list): Add bfd_openrisc_arch.
3665 * elf.c (prep_headers): Add bfd_arch_openrisc.
3667 2001-04-23 Bo Thorsen <bo@suse.de>
3669 * elf64-x86-64.c: Add c++ vtable hack.
3670 Small whitespace and comment changes.
3672 2001-04-19 Andreas Jaeger <aj@suse.de>
3674 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
3675 (elf64_x86_64_plt_entry): Likewise.
3676 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
3677 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
3679 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
3681 * elf32-cris.c: Tweak comments related to dynamic linking.
3682 (cris_elf_relocate_section): When not creating shared object, fill
3683 in the .got table for any symbol not in the dynamic symbol table.
3684 (elf_cris_finish_dynamic_symbol): When not creating shared object,
3685 only emit a .got.rela reloc if the symbol is in the dynamic symbol
3687 (cris_elf_check_relocs): Use variable r_type in all places rather
3688 than the original expression. Add default case in switch for
3690 (elf_cris_size_dynamic_sections): Iterate over
3691 elf_cris_discard_excess_program_dynamics when not creating shared
3693 (elf_cris_discard_excess_dso_dynamics): Renamed from
3694 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
3695 (elf_cris_discard_excess_program_dynamics): New.
3697 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
3699 * coffcode.h (coff_write_object_contents): Use
3700 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
3702 2001-04-14 H.J. Lu <hjl@gnu.org>
3704 * bfd-in2.h: Regenerate.
3706 2001-04-14 Jakub Jelinek <jakub@redhat.com>
3708 * section.c (STD_SECTION): Add entsize.
3710 2001-04-13 H.J. Lu <hjl@gnu.org>
3712 * section.c (SEC_MERGE): Define new flag for merging.
3713 (SEC_STRINGS): Likewise.
3714 (entsize): New field.
3716 2001-04-13 Roger Sayle <roger@metaphorics.com>
3718 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
3719 flag on pe-i386 targets.
3721 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3723 * libbfd-in.h (_bfd_merge_section): New.
3724 (_bfd_write_merged_section): New.
3725 (_bfd_merged_section_offset): New.
3726 * libbfd.h: Rebuilt.
3727 * linker.c (_bfd_generic_link_output_symbols): Handle
3729 * aoutx.h (aout_link_write_symbols): Likewise.
3730 * pdp11.c (aout_link_write_symbols): Likewise.
3731 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
3732 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
3734 (elf_link_sec_merge_syms): New.
3735 (elf_link_input_bfd): Call _bfd_merged_section_offset
3736 and _bfd_write_merged_section.
3737 Handle discard_sec_merge.
3738 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
3740 (struct bfd_elf_section_data): Likewise.
3741 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
3742 SEC_STRINGS section flags and entsize from their ELF counterparts.
3743 (_bfd_elf_link_hash_table_init): Initialize merge_info.
3744 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
3745 from their BFD counterparts.
3746 * merge.c: New file.
3747 * Makefile.am: Add strtab.lo.
3748 * Makefile.in: Rebuilt.
3750 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
3752 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
3753 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
3755 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3757 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3758 endian MIPS ELF target.
3759 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3762 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3763 64bit big endian MIPS ELF target.
3764 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3765 endian MIPS ELF target.
3766 * configure: Regenerated.
3768 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3769 little endian targets.
3770 (mips_elf_sym_is_global): Handle traditional targets.
3772 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3773 64bit big endian MIPS ELF target.
3774 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3775 endian MIPS ELF target.
3777 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
3778 and bfd_elf64_tradlittlemips_vec.
3780 2001-04-05 David Mosberger <davidm@hpl.hp.com>
3782 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
3783 ordinary "progbits" section.
3785 2001-04-04 Alan Modra <alan@linuxcare.com.au>
3787 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
3788 when -Bsymbolic causes a symbol to no longer need a .plt entry.
3790 2001-04-03 David Mosberger <davidm@hpl.hp.com>
3792 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
3794 2001-03-30 H.J. Lu <hjl@gnu.org>
3796 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
3797 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
3799 2001-03-26 H.J. Lu <hjl@gnu.org>
3801 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
3802 if there are any relocations for generic ELF.
3803 (bfd_elf32_bfd_link_add_symbols): Defined to
3804 elf32_generic_link_add_symbols.
3805 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
3806 if there are any relocations for generic ELF.
3807 (bfd_elf64_bfd_link_add_symbols): Defined to
3808 elf64_generic_link_add_symbols.
3810 2001-03-23 Nick Clifton <nickc@redhat.com>
3812 * Makefile.am (BUILD_CFILES): New variable: List of C source
3813 files created in build directory.
3814 (BUILD_HFILES): New variable: List of header files created in
3817 (po/POTFILES.in): Replace rule with empty entry.
3818 (po/SRC-POTFILES.in): New rule: Create a list of source files
3819 in the source directory.
3820 (po/BLD-POTFILES.in): New rule: Create a list of source files
3821 in the build directory.
3822 (MOSTLYCLEAN): Do not delete source files created in build
3824 * Makefile.in: Regenerate.
3825 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3827 * configure: Regenerate.
3829 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3831 Add .. to the search path when building bfd.pot.
3832 Delete POTFILES when performing distclean.
3833 Add comment describing why distclean is broken in maintainer mode.
3834 * po/POTFILES.in: Delete.
3835 * po/SRC-POTFILES.in: New file.
3836 * po/BLD-POTFILES.in: New file.
3837 * po/bfd.pot: Regenerate.
3839 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3841 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3842 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3843 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3844 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3845 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3846 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3848 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3849 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3850 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3851 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3852 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3853 New HOWTO members for new relocs.
3854 (cris_reloc_map): Map new relocs.
3855 (ELF_DYNAMIC_INTERPRETER): Define.
3856 (PLT_ENTRY_SIZE): Define.
3857 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3858 elf_cris_pic_plt_entry): New, PLT templates.
3859 (struct elf_cris_pcrel_relocs_copied, struct
3860 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3861 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3862 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3863 positive values. Adjust PCREL relocs to be relative to location
3865 (cris_elf_relocate_section): Handle relocations to dynamic
3866 objects. Handle new relocations. Call error handler when seeing
3867 non-PIC relocation for read-only sections while generating shared
3869 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3871 (bfd_elf32_bfd_link_hash_table_create,
3872 elf_backend_adjust_dynamic_symbol,
3873 elf_backend_size_dynamic_sections,
3874 elf_backend_finish_dynamic_symbol,
3875 elf_backend_finish_dynamic_sections,
3876 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3877 elf_backend_hide_symbol, elf_backend_want_got_plt,
3878 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3879 elf_backend_got_header_size, elf_backend_plt_header_size):
3882 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3883 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3884 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3885 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3886 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3887 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3888 * bfd-in2.h, libbfd.h: Regenerate.
3890 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3892 (_bfd_mips_elf_relocate_section): Give a better error message when
3893 a relocation is not recognized.
3895 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3897 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3898 non-NULL before attempting to dereference.
3900 2001-03-20 H.J. Lu <hjl@gnu.org>
3902 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3903 * configure: Rebuild.
3905 2001-03-20 Andreas Schwab <schwab@suse.de>
3907 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3908 relocation value when resolving a reference from a debugging
3911 2001-03-16 Scott Thomason <SThomaso@hii.com>
3913 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3914 (xcoff64_swap_sym_out): Fix syntax errors.
3916 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3918 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3920 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3922 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3923 (hppa_link_hash_newfunc): Init it.
3924 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3925 section appears to be non-PIC.
3926 (final_link_relocate): Likewise.
3927 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3928 possible candidate function, and set pic_call for those that will
3929 only have a .plt entry for the PIC call stub.
3930 (hppa_handle_PIC_calls): Set maybe_pic_call.
3932 2001-03-12 DJ Delorie <dj@redhat.com>
3934 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3935 R_SH_DIR8WP* relocs if they're against external symbols, else
3936 they're just for relaxing. Validate the reloc values.
3938 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3940 * binary.c (bfd_external_binary_architecture): Declare.
3941 (binary_object_p): If bfd_external_binary_architecture is defined,
3942 set the architecture to this string.
3944 2001-03-11 Philip Blundell <philb@gnu.org>
3946 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3947 entries that could serve as a definition for a weak symbol.
3949 2001-03-08 Nick Clifton <nickc@redhat.com>
3951 * Most files: Update copyright notices using Perl script created
3952 by Kevin Buettner <kevinb@redhat.com>.
3954 2001-03-07 Nick Clifton <nickc@redhat.com>
3956 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3957 prior patch on ! defined OLD_ARM_ABI.
3959 2001-03-07 Andreas Jaeger <aj@suse.de>
3961 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3962 some relocation values.
3964 2001-03-06 Nick Clifton <nickc@redhat.com>
3966 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3967 of offset in BLX(1) instruction.
3968 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3969 offset in BLX(1) instruction.
3972 2001-03-06 Nick Clifton <nickc@redhat.com>
3974 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3975 BFD_RELOC_THUMB_PCREL_BLX.
3977 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3979 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3980 * bfd-in2.h: Regenerate.
3981 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3982 * ieee.c (ieee_write_processor): Set proper id for
3985 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3987 * configure.in: Add s390 target.
3988 * configure: Regenerate.
3990 2001-02-28 Andreas Jaeger <aj@suse.de>
3992 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3995 2001-02-28 Philip Blundell <pb@futuretv.com>
3997 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3998 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
4000 2001-02-27 H.J. Lu <hjl@gnu.org>
4002 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
4003 abfd->tdata.aout_data == NULL.
4005 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4007 * elf32-hppa.c: Correct field selector in stub comments.
4008 (clobber_millicode_symbols): Formatting fix.
4010 * configure.in: Bump version to 2.11.90.
4011 * configure: Regenerate.
4012 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
4013 (CFILES): $SOURCE_CFILES + generated C files.
4014 (POTFILES): Include $HFILES not $SOURCE_HFILES.
4016 * Makefile.in: Regenerate.
4017 * doc/Makefile.in: This too.
4019 2001-02-26 Timothy Wall <twall@cygnus.com>
4021 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
4024 2001-02-26 Nick Clifton <nickc@redhat.com>
4026 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
4027 up, replacing multiple if statements with a switch.
4028 (handle_COMDAT): New function.
4030 2001-02-26 H.J. Lu <hjl@gnu.org>
4032 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
4033 a warning for section flags we do not handle instead of
4036 2001-02-26 Andreas Jaeger <aj@suse.de>
4038 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
4040 2001-02-22 Timothy Wall <twall@cygnus.com>
4042 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
4043 * configure.in: Add objects for elf64_ia64_aix vectors.
4044 * configure: Regenerated.
4045 * configure.host: Recognize ia64-*-aix*.
4046 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
4047 for AIX. AIX5 requires most relocations to be dynamic (*all*
4048 binaries are somewhat similar to shared libraries).
4049 * targets.c: Add elf64_ia64_aix vectors.
4051 2001-02-21 David Mosberger <davidm@hpl.hp.com>
4053 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
4054 C8 said "1" instead of "8". Clarify error string for IMM22:
4055 "signed integer" instead of just "integer".
4057 2001-02-20 Andreas Jaeger <aj@suse.de>
4059 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
4060 PLT entries that could serve as a definition for a weak symbol.
4062 2001-02-19 Jakub Jelinek <jakub@redhat.com>
4064 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
4065 entries that could serve as a definition for a weak symbol.
4066 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
4068 2001-02-18 David O'Brien <obrien@FreeBSD>
4070 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
4071 FreeBSD/i386-CURRENT differently until I can figure out the needed
4073 * configure: Regenerate.
4074 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
4075 FreeBSD/PowerPC, and FreeBSD/sparc64.
4077 2001-02-18 lars brinkhoff <lars@nocrew.org>
4079 * Makefile.am: Add PDP-11 a.out target.
4080 * config.bfd: Likewise.
4081 * configure.in: Likewise.
4082 * targets.c: Likewise.
4083 * archures.c: Likewise.
4084 * bfd-in2.h: Likewise. Add PDP-11 relocations.
4085 * libbfd.h: Add PDP-11 relocations.
4086 * reloc.c: Likewise.
4087 * cpu-pdp11.c: New file.
4088 * pdp11.c: New file.
4090 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
4091 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4092 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4093 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
4094 (GET_MAGIC): New macro.
4095 (PUT_MAGIC): Likewise.
4096 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
4098 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
4100 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
4101 multiarch needs it).
4103 2001-02-18 H.J. Lu <hjl@gnu.org>
4105 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
4108 2001-02-18 Kazu Hirata <kazu@hxi.com>
4110 * vms-misc.c: Fix formatting.
4112 2001-02-16 Kazu Hirata <kazu@hxi.com>
4114 * vms.c: Fix formatting.
4116 2001-02-14 H.J. Lu <hjl@gnu.org>
4118 * elf.c (elf_find_function): New function.
4119 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
4120 the file name and function name.
4122 2001-02-14 Nick Clifton <nickc@redhat.com>
4124 * ecoff.c (bfd_debug_section): Update to initialise new fields in
4127 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
4128 (BFD64_BACKENDS): Add pepigen.c
4129 Add rules to create peigen.c and pepigen.c from peXXigen.c.
4131 * Makefile.in: Regenerate.
4132 * configure: Regenerate.
4133 * po/POTFILES.in: Regenerate.
4134 * po/bfd.pot: Regenerate.
4136 2001-02-14 H.J. Lu <hjl@gnu.org>
4138 * libcoff-in.h (pe_tdata): Add members target_subsystem and
4139 force_minimum_alignment.
4141 2001-02-14 Bo Thorsen <bo@suse.de>
4143 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
4144 (elf64_86_64_size_info): Struct added to fix a problem
4145 with the hashtable string entries.
4146 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
4147 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
4148 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
4149 remove the FIXME for this.
4150 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
4151 section. Also removed the FIXME for it.
4152 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
4153 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
4154 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
4156 2001-02-13 Richard Henderson <rth@redhat.com>
4158 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
4159 and not user provided.
4161 2001-02-13 Kazu Hirata <kazu@hxi.com>
4163 * vms.c (vms_print_symbol): Remove unreachable code.
4165 * rs6000-core.c: Fix formatting.
4167 2001-02-13 David Mosberger <davidm@hpl.hp.com>
4169 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
4170 as _bfd_XXi_only_swap_filehdr_out.
4171 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
4172 pe->force_minimum_alignment to TRUE.
4173 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
4174 PEI_TARGET_SUBSYSTEM.
4175 (pe_print_private_bfd_data): Call
4176 _bfd_XX_print_private_bfd_data_common() instead of
4177 _bfd_pe_print_private_bfd_data_common().
4178 (pe_bfd_copy_private_bfd_data): Call
4179 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
4180 _bfd_pe_bfd_copy_private_bfd_data_common().
4181 (coff_bfd_copy_private_section_data): Define as
4182 _bfd_XX_bfd_copy_private_section_data instead of
4183 _bfd_pe_bfd_copy_private_section_data.
4184 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
4185 of a _bfd_pe_get_symbol_info.
4189 * peXXigen.c: Renamed from peigen.c.
4190 (COFF_WITH_XX): Define this macro (will get expanded into
4191 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
4192 compiled as peigen.c or pepigen.c.
4193 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
4194 define the canonical PEP structures and definitions.
4195 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
4196 effect, enforce minimum file and section alignments. If
4197 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
4198 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
4199 so, by default, this is a no-op).
4201 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
4202 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
4203 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
4204 _bfd_pefoo if it's not defined. Use these macros to define
4207 * libcoff.h (pe_tdata): Add members target_subsystem and
4208 force_minimum_alignment.
4210 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
4212 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
4214 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
4217 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
4218 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
4221 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
4222 (BFD64_BACKENDS_CFILES): Mention pepigen.c
4223 (peigen.c): Add rule to generate from peXXigen.c.
4225 (pepigen.lo): List dependencies for pepigen.lo.
4227 2001-02-13 Alan Modra <alan@linuxcare.com.au>
4229 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
4230 $global$ referenced but not defined, set its value here.
4232 2001-02-09 Bo Thorsen <bo@suse.de>
4234 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
4236 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
4238 (elf64_x86_64_relocate_section): Fix formatting.
4239 (elf64_x86_64_relocate_section): Fix addend for relocation of
4240 R_X86_64_(8|16|32|PC8|PC16|PC32).
4242 2001-02-12 Jan Hubicka <jh@suse.cz>
4244 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
4246 2001-02-11 H.J. Lu <hjl@gnu.org>
4248 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
4251 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4253 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
4254 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
4255 relocations against dynsym symbols.
4257 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
4258 the R_MIPS_26 relocation.
4259 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
4260 the R_MIPS_26 relocation.
4261 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
4263 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
4264 the R_MIPS_26 relocation.
4265 (mips_elf64_howto_table_rela): Likewise.
4267 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
4268 member to mark symbols that have non-CALL relocations against
4270 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
4271 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
4273 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
4274 non-CALL relocation against it is encountered.
4275 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
4276 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
4277 no_fn_stub is not set.
4279 * elf32-mips.c (mips_elf_output_extsym): Get the output section
4280 information from the real symbol for indirect ones.
4281 Check no_fn_stub to find out if a symbol has a function stub
4284 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4286 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
4287 * Makefile.in: Regenerate.
4289 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4291 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
4292 true if section name is an unwind table section name.
4293 (elfNN_ia64_additional_program_headers): Count each unwind section
4295 (elfNN_ia64_modify_segment_map): Install one unwind program header
4296 for each unwind separate section. Note: normally the linker
4297 script merges the unwind sections that go into a single segment,
4298 so this still generates at most one unwind program header per
4301 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
4302 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
4303 (elfNN_ia64_fake_sections): Mark sections with names that start
4304 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
4307 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
4308 Use it to make sh_info in unwind section point to the text section
4311 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4313 * Makefile.am: Add linux target for S/390.
4314 * archures.c: Likewise.
4315 * bfd-in2.h: Likewise.
4316 * config.bfd: Likewise.
4317 * configure.in: Likewise.
4319 * libbfd.h: Likewise.
4320 * targets.c: Likewise.
4321 * cpu-s390.c: New file.
4322 * elf32-s390.c: New file.
4323 * elf64-s390.c: New file.
4325 2001-02-09 Nick Clifton <nickc@redhat.com>
4327 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
4328 ImageBase. This has already been done by coff_swap_hdr_in.
4330 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4332 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
4334 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4336 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
4337 (sparc64_elf_relocate_section): Likewise.
4339 2001-02-09 Mark Kettenis <kettenis@gnu.org>
4341 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
4342 similar to R_SPARC_32.
4343 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
4345 2001-02-08 H.J. Lu <hjl@gnu.org>
4347 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
4348 relocation entries for weak definitions when building DSO with
4351 2001-02-08 Richard Henderson <rth@redhat.com>
4353 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
4354 before visibility. Locally defined protected symbols are not
4357 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
4359 * config.bfd: Enable coff64 for rs6000-*. Patch from
4360 <hzoli@austin.ibm.com>.
4362 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
4364 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
4365 found, do not attempt to find dwarf2 info before returning.
4367 2001-02-07 Jakub Jelinek <jakub@redhat.com>
4369 * elflink.h (is_global_symbol_definition): Rename to
4370 is_global_data_symbol_definition and have it reject function
4372 (elf_link_is_defined_archive_symbol): Use renamed function.
4374 2001-02-07 Todd Vierling <tv@wasabisystems.com>
4376 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
4377 * libbfd.h (bfd_target_vector): Likewise.
4378 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
4379 make static; create pointer reference named bfd_target_vector.
4380 (_bfd_target_vector_entries): Calculate this based on the array
4381 typed _bfd_target_vector.
4383 2001-02-06 H.J. Lu <hjl@gnu.org>
4385 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
4386 internal symbols are not dynamic.
4387 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
4389 2001-02-06 Nick Clifton <nickc@redhat.com>
4391 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
4392 that it will not be pulled into the list of files that make up
4394 * Makefile.in: Regenerate.
4395 * po/bfd.pot: Regenerate.
4397 2001-02-06 H.J. Lu <hjl@gnu.org>
4399 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
4401 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
4402 external_PEI_IMAGE_hdr.
4404 2001-02-06 Kazu Hirata <kazu@hxi.com>
4406 * elf-m10200.c: Fix formatting.
4408 2001-02-04 Nick Clifton <nickc@redhat.com>
4410 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
4411 rel, it will be handled later on.
4413 2001-02-02 Fred Fish <fnf@ninemoons.com>
4415 * Makefile.in: Fix typo.
4417 2001-02-01 Kazu Hirata <kazu@hxi.com>
4419 * elf-m10300.c: Fix formatting.
4421 2001-01-30 Alan Modra <alan@linuxcare.com.au>
4423 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4424 (elf_backend_get_symbol_type): Define.
4425 (elf64_hppa_object_p): Set architecture and machine from elf
4428 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4430 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4433 2001-01-26 Richard Henderson <rth@redhat.com>
4435 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4436 for non-default visibility.
4437 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4438 delete ugly macro and replace with pretty function.
4440 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4442 * coff-go32.c: Update copyright.
4443 * coff-stgo32.c: Likewise.
4444 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4445 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4446 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4447 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4449 2001-01-25 Kazu Hirata <kazu@hxi.com>
4451 * bfd-in2.h: Rebuild.
4452 * libbfd.h: Likewise.
4454 2001-01-23 H.J. Lu <hjl@gnu.org>
4456 * bfd-in2.h: Rebuild.
4458 2001-01-23 H.J. Lu <hjl@gnu.org>
4460 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4461 is NULL or PRIV(vms_rec) is outside of the buffer.
4463 2001-01-23 Kazu Hirata <kazu@hxi.com>
4465 * coff64-rs6000.c: Fix formatting.
4466 * coff-arm.c: Likewise.
4467 * coffgen.c: Likewise.
4468 * cofflink.c: Likewise.
4469 * coff-mcore.c: Likewise.
4470 * coff-mips.c: Likewise.
4471 * coff-pmac.c: Likewise.
4472 * coff-ppc.c: Likewise.
4473 * coff-rs6000.c: Likewise.
4474 * elf32.c: Likewise.
4475 * elf32-fr30.c: Likewise.
4476 * elf32-i370.c: Likewise.
4477 * elf32-i860.c: Likewise.
4478 * elf32-m32r.c: Likewise.
4479 * elf32-m68k.c: Likewise.
4480 * elf32-mcore.c: Likewise.
4481 * elf32-ppc.c: Likewise.
4482 * elf32-sh.c: Likewise.
4483 * elf32-v850.c: Likewise.
4484 * elf64-alpha.c: Likewise.
4485 * elf64-sparc.c: Likewise.
4486 * elflink.c: Likewise.
4487 * elflink.h: Likewise.
4488 * elf-m10200.c: Likewise.
4489 * elf-m10300.c: Likewise.
4490 * elfxx-ia64.c: Likewise.
4492 * aoutx.h: Fix formatting.
4494 * bfd-in2.h: Likewise.
4495 * bfd-in.h: Likewise.
4496 * cpu-i386.c: Likewise.
4497 * cpu-m68hc11.c: Likewise.
4498 * dwarf2.c: Likewise.
4499 * elf64-x86-64.c: Likewise.
4500 * format.c: Likewise.
4501 * freebsd.h: Likewise.
4503 * hp300hpux.c: Likewise.
4504 * hppabsd-core.c: Likewise.
4505 * hpux-core.c: Likewise.
4507 2001-01-22 Bo Thorsen <bo@suse.de>
4509 * elf64-x86-64.c: Added PIC support for X86-64.
4510 (elf64_x86_64_link_hash_newfunc): Function added.
4511 (elf64_x86_64_link_hash_table_create): Likewise.
4512 (elf64_x86_64_check_relocs): Likewise.
4513 (elf64_x86_64_gc_mark_hook): Likewise.
4514 (elf64_x86_64_gc_sweep_hook): Likewise.
4515 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4516 (elf64_x86_64_size_dynamic_sections): Likewise.
4517 (elf64_x86_64_discard_copies): Likewise.
4518 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4519 (elf64_x86_64_finish_dynamic_sections): Likewise.
4520 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4522 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4524 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4525 * Makefile.in: Regenerate.
4527 2001-01-21 Kazu Hirata <kazu@hxi.com>
4529 * coff-a29k.c: Fix formatting.
4531 2001-01-19 H.J. Lu <hjl@gnu.org>
4533 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4534 relocation section names.
4535 (elf_i386_relocate_section): Report files with bad relocation
4536 section names and return false.
4538 2001-01-17 Bo Thorsen <bo@suse.de>
4540 * targets.c: Alphabetize list of xvecs.
4542 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4544 * config.bfd: Add linux target variant for elfxx-hppa.
4545 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4546 bfd_elf64_hppa_linux_vec.
4547 * configure: Regenerate.
4548 * elf64-hppa.c: Include elf64-target.h again to support linux
4550 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4551 * elf32-hppa.c: Include elf32-target.h again to support linux
4553 (elf32_hppa_post_process_headers): New function.
4554 (elf_backend_post_process_headers): Define.
4555 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4556 bfd_elf32_hppa_linux_vec.
4558 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4559 and data_segment_base fields.
4560 (elf32_hppa_link_hash_table_create ): Init them.
4561 (elf32_hppa_check_relocs): Update comments.
4562 (hppa_record_segment_addr): New function.
4563 (elf32_hppa_relocate_section): Call it.
4564 (final_link_relocate): Handle R_PARISC_SEGREL32.
4565 (elf32_hppa_final_link): New function.
4566 (bfd_elf32_bfd_final_link): Define to call it.
4567 (hppa_unwind_entry_compare): New function.
4568 * cache.c (bfd_open_file): Create files in write+read mode.
4570 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4571 SEGREL32 and numerous other relocs. Change duplicate
4572 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4574 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4577 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4578 .plt entries for DT_INIT and DT_FINI.
4579 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4580 DT_INIT and DT_FINI.
4582 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4583 offsets for stub .plt access if wide mode. Check offset in range.
4585 2001-01-13 Nick Clifton <nickc@redhat.com>
4587 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4590 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4593 2001-01-12 Alan Modra <alan@linuxcare.com.au>
4595 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4596 * configure: Regenerate.
4598 2001-01-11 Peter Targett <peter.targett@arccores.com>
4600 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4601 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4602 * cpu-arc.c (arch_info_struct): Add entries for variants.
4603 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4604 (arc_get_mach) Don't assume machine names prefixed arc- before
4606 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4608 (arc_elf_final_write_processing) Likewise.
4609 (ELF_MACHINE_CODE) Use EM_ARC.
4611 2001-01-10 Nick Clifton <nickc@redhat.com>
4613 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
4615 2001-01-07 Philip Blundell <philb@gnu.org>
4617 * README: Replace `bug-gnu-utils@gnu.org' with
4618 `bug-binutils@gnu.org'.
4620 2001-01-04 Kazu Hirata <kazu@hxi.com>
4622 * som.c: Fix formatting.
4624 2001-01-03 Kazu Hirata <kazu@hxi.com>
4626 * ecoffswap.h: Fix formatting.
4627 * elf-bfd.h: Likewise.
4628 * elfarm-nabi.c: Likewise.
4629 * elfarm-oabi.c: Likewise.
4630 * elfcode.h: Likewise.
4631 * elfcore.h: Likewise.
4632 * elflink.c: Likewise.
4633 * elflink.h: Likewise.
4634 * elfxx-ia64.c: Likewise.
4635 * elfxx-target.h: Likewise.
4636 * libbfd.c: Likewise
4637 * linker.c: Likewise.
4638 * lynx-core.c: Likewise.
4640 2001-01-02 Kazu Hirata <kazu@hxi.com>
4642 * pc532-mach.c: Fix formatting.
4643 * pe-arm.c: Likewise.
4644 * pe-i386.c: Likewise.
4645 * pe-mips.c: Likewise.
4646 * pe-ppc.c: Likewise.
4647 * pe-sh.c: Likewise.
4648 * pei-mips.c: Likewise.
4649 * pei-sh.c: Likewise.
4650 * peicode.h: Likewise.
4651 * ppcboot.c: Likewise.
4652 * ptrace-core.c: Likewise.
4654 2001-01-01 Kazu Hirata <kazu@hxi.com>
4656 * reloc.c: Fix formatting.
4657 * riscix.c: Likewise.
4658 * rs6000-core.c: Likewise.
4659 * xcoff-target.h: Likewise.
4661 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4663 * elfcode.h (elf_object_p): Also restore the bfd mach field on
4664 error, by calling bfd_default_set_arch_mach with incoming
4667 2000-12-26 Kazu Hirata <kazu@hxi.com>
4669 * vaxnetbsd.c: Fix formatting.
4670 * versados.c: Likewise.
4671 * vms-gsd.c: Likewise.
4672 * vms-hdr.c: Likewise.
4673 * vms-misc.c: Likewise.
4675 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
4677 * archive.c (coff_write_armap): Don't write more than symbol_count
4678 `archive_member_file_ptr's.
4680 2000-12-25 Kazu Hirata <kazu@hxi.com>
4682 * vms-tir.c: Fix formatting.
4684 2000-12-23 Kazu Hirata <kazu@hxi.com>
4686 * vms.c: Fix formatting.
4689 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
4691 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
4693 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
4695 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
4698 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
4700 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
4702 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
4704 * libbfd.c (bfd_get_bits): Added
4705 (bfd_put_bits): Likewise
4706 * bfd-in.h: Declared the above.
4707 * bfd-in2.h: Regenerated.
4709 2000-12-20 Kazu Hirata <kazu@hxi.com>
4711 * targets.c: Fix formatting.
4712 * tekhex.c: Likewise.
4713 * trad-core.c: Likewise.
4715 2000-12-19 Kazu Hirata <kazu@hxi.com>
4717 * sco5-core.c: Fix formatting.
4718 * section.c: Likewise.
4719 * sparclinux.c: Likewise.
4720 * sparclynx.c: Likewise.
4721 * sparcnetbsd.c: Likewise.
4723 * stabs.c: Likewise.
4724 * stab-syms.c: Likewise.
4725 * sunos.c: Likewise.
4727 * sysdep.h: Likewise.
4729 2000-12-18 Nick Clifton <nickc@redhat.com>
4731 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
4733 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
4734 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
4736 2000-12-18 Nick Clifton <nickc@redhat.com>
4738 * vms-misc.c (_bfd_vms_get_record): Add default case to
4741 2000-12-15 Miloslav Trmac <mitr@volny.cz>
4743 * elfcore.h (elf_core_file_p): Move to the start of the program
4744 headers before attempting to read them.
4746 2000-12-14 Kazu Hirata <kazu@hxi.com>
4748 * peigen.c: Fix formatting.
4752 2000-12-13 Kazu Hirata <kazu@hxi.com>
4754 * peigen.c: Fix formatting.
4756 2000-12-12 Jim Wilson <wilson@redhat.com>
4758 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4760 2000-12-08 Mark Salter <msalter@redhat.com>
4762 * binary.c (binary_set_section_contents): Ignore sections
4765 2000-12-12 Kazu Hirata <kazu@hxi.com>
4767 * m68klinux.c: Fix formatting.
4768 * m68knetbsd.c: Likewise.
4769 * mipsbsd.c: Likewise.
4770 * netbsd-core.c: Likewise.
4771 * netbsd.h: Likewise.
4772 * newsos3.c: Likewise.
4773 * nlm32-alpha.c: Likewise.
4774 * nlm32-i386.c: Likewise.
4775 * nlm32-ppc.c: Likewise.
4776 * nlm32-sparc.c: Likewise.
4777 * nlmcode.h: Likewise.
4778 * nlmswap.h: Likewise.
4779 * nlm-target.h: Likewise.
4780 * ns32knetbsd.c: Likewise.
4782 2000-12-10 Fred Fish <fnf@be.com>
4784 * elflink.h (elf_link_output_extsym): Don't complain about undefined
4785 symbols in shared objects if allow_shlib_undefined is true.
4787 2000-12-12 Nick Clifton <nickc@redhat.com>
4789 * cpu-sh.c: Fix formattng.
4790 * elf.c: Fix formattng.
4791 * elf32-mips.c: Fix formattng.
4792 * elf32-sh.c: Fix formattng.
4793 * elf64-alpha.c: Fix formattng.
4795 2000-12-09 Nick Clifton <nickc@redhat.com>
4797 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
4798 dwarf2_find_line_info as last parameter to invocation of
4799 _bfd_dwarf2_find_nearest_line.
4800 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
4801 dwarf2_find_line_info as last parameter to invocation of
4802 _bfd_dwarf2_find_nearest_line.
4804 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
4806 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
4807 (BFD_LIBS): ...to here.
4808 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
4809 (BFD_LIBS_CFILES): ...to here.
4810 * Makefile.in: Regenerate.
4811 * configure.in: Remove dwarf.lo from the elf shell variable.
4812 * configure: Regenerate.
4813 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
4814 * libcoff.h: Regenerate.
4815 * coffgen.c (coff_find_nearest_line): Call
4816 _bfd_dwarf2_find_nearest_line.
4817 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4819 (read_abbrevs): Likewise
4820 (decode_line_info): Likewise.
4821 (parse_comp_unit): Likewise.
4822 (comp_unit_find_nearest_line): Likewise.
4823 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4824 * libbfd.h: Regenerate.
4825 * elf.c (_bfd_elf_find_nearest_line): Update call.
4826 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4827 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4828 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4829 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4830 (styp_to_sec_flags): Handle DWARF2 sections.
4831 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4832 to _bfd_find_nearest_line.
4833 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4834 call to _bfd_find_nearest_line.
4836 2000-12-08 Kazu Hirata <kazu@hxi.com>
4838 * coffgen.c: Fix formatting.
4839 * elf-m10300.c: Likewise.
4840 * elf32-i386.c: Likewise.
4841 * elf32-i960.c: Likewise.
4842 * elf32-m68k.c: Likewise.
4843 * elf32-mcore.c: Likewise.
4844 * elf32-ppc.c: Likewise.
4845 * elf32-sh.c: Likewise.
4846 * elf32-sparc.c: Likewise.
4847 * elf32-v850.c: Likewise.
4848 * elf64-alpha.c: Likewise.
4849 * elf64-hppa.c: Likewise.
4850 * elf64-mips.c: Likewise.
4851 * elf64-sparc.c: Likewise.
4853 2000-12-07 Kazu Hirata <kazu@hxi.com>
4855 * elf32-ppc.c: Fix formatting.
4856 * elf64-x86-64.c: Likewise.
4858 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4860 From Ralf Baechle <ralf@gnu.org>
4862 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4863 BFDs containing no sections or empty .text, .data or .bss sections
4864 to be merged, regardless of their flags.
4866 2000-12-06 Kazu Hirata <kazu@hxi.com>
4868 * elf32-m32r.c: Fix formatting.
4869 * elf32-m68hc11.c: Likewise.
4870 * elf32-m68hc12.c: Likewise.
4871 * elf32-m68k.c: Likewise.
4872 * elf32-mcore.c: Likewise.
4873 * elf32-pj.c: Likewise.
4874 * elf32-ppc.c: Likewise.
4876 2000-12-05 Kazu Hirata <kazu@hxi.com>
4878 * elf32-fr30.c: Fix formatting.
4879 * elf32-hppa.c: Likewise.
4880 * elf32-i370.c: Likewise.
4881 * elf32-i386.c: Likewise.
4882 * elf32-i860.c: Likewise.
4883 * elf32-i960.c: Likewise.
4885 2000-12-03 Kazu Hirata <kazu@hxi.com>
4887 * elf32-arm.h: Fix formatting.
4888 * elf32-avr.c: Likewise.
4889 * elf32-cris.c: Likewise.
4890 * elf32-d10v.c: Likewise.
4891 * elf32-d30v.c: Likewise.
4892 * elf-hppa.h: Likewise.
4893 * elf-m10200.c: Likewise.
4894 * elf-m10300.c: Likewise.
4896 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4898 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4899 bfd_mach_mips32_4k. Update FIXME comment.
4900 * archures.c (bfd_mach_mips32): New constant.
4901 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4902 the latter, renumber it.
4903 * bfd-in2.h (bfd_mach_mips32): New constant.
4904 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4905 the latter, renumber it.
4906 * cpu-mips.c (I_mips32): New constant.
4907 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4908 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4909 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4910 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4911 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4912 with E_MIPS_MACH_MIPS32_4K.
4913 (_bfd_mips_elf_final_write_processing): Replace
4914 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4915 bfd_mach_mips32 case.
4916 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4917 comparison with support for MIPS32.
4918 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4921 * aoutx.h (NAME(aout,machine_type)): Add cases for
4922 bfd_mach_mips5 and bfd_mach_mips64.
4923 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4924 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4925 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4926 (arch_info_struct): Add entries for bfd_mach_mips5 and
4928 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4929 _bfd_mips_elf_print_private_bfd_data): Add cases for
4930 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4931 (_bfd_mips_elf_final_write_processing): Add cases for
4932 bfd_mach_mips5 and bfd_mach_mips64.
4934 * aoutx.h (NAME(aout,machine_type)): Add a
4935 bfd_mach_mips_sb1 case.
4936 * archures.c (bfd_mach_mips_sb1): New constant.
4937 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4938 * cpu-mips.c (I_sb1): New constant.
4939 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4940 * elf32-mips.c (elf_mips_mach): Add case for
4942 (_bfd_mips_elf_final_write_processing): Add case for
4945 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4947 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4948 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4949 (sparc*-*-rtems*): Switched from a.out to ELF.
4951 2000-11-30 Jan Hubicka <jh@suse.cz>
4953 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4954 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4955 (elf64-x86-64.lo): Add dependencies.
4956 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4957 bfd_mach_x86_64_intel_syntax.
4958 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4959 * config.bfd (x86_64): Add.
4960 * configure.in: Add support for bfd_elf64_x86_64_vec.
4961 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4962 (bfd_i386_arch, i8086_ar): Link in.
4963 * elf64-x86-64.c: New file.
4964 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4965 * targets.c (bfd_elf64_x86_64_vec): Add.
4966 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4968 2000-11-30 Kazu Hirata <kazu@hxi.com>
4970 * xcofflink.c: Fix formatting.
4972 2000-11-28 Kazu Hirata <kazu@hxi.com>
4974 * aoutx.h: Fix formatting.
4975 * bfd-in.h: Likewise.
4976 * bfd-in2.h: Likewise.
4977 * cache.c: Likewise.
4978 * cisco-core.c: Likewise.
4979 * coff64-rs6000.c: Likewise.
4980 * coffcode.h: Likewise.
4981 * coffswap.h: Likewise.
4982 * corefile.c: Likewise.
4983 * elf32-mips.c: Likewise.
4985 2000-11-27 Kazu Hirata <kazu@hxi.com>
4987 * aout-adobe.c: Fix formatting.
4988 * coff64-rs6000.c: Likewise.
4989 * coffgen.c: Likewise.
4990 * cofflink.c: Likewise.
4992 2000-11-27 Philip Blundell <pb@futuretv.com>
4994 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4995 (obj_coff_strings_written): New accessor macro for above.
4996 * libcoff.h: Regenerate.
4997 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4999 * coffcode.h (coff_write_object_contents): No need to write out
5000 the string table if it's already been done.
5002 2000-11-22 Philip Blundell <pb@futuretv.com>
5004 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
5005 weak undefined symbols.
5007 2000-11-24 Nick Clifton <nickc@redhat.com>
5009 * archures.c (bfd_mach_arm_5TE): Define.
5010 (bfd_mach_arm+XScale): Define.
5011 * bfd-in2.h: Regenerate.
5013 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
5014 BFD_RELOC_ARM_PCREL_BLX.
5016 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
5017 XScale machine numbers.
5019 * config.bfd (xscale-elf): Add target.
5020 (xscale-coff): Add target.
5022 * cpu-arm.c: Add xscale machine name.
5023 Add v5t, v5te and XScale machine numbers.
5025 2000-11-23 Kazu Hirata <kazu@hxi.com>
5027 * aix386-core.c: Fix formatting.
5029 2000-11-22 Jim Wilson <wilson@redhat.com>
5031 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
5032 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
5033 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
5034 (ins_imms_scaled): Initialize sign_bit at function entry.
5035 (elf64_ia64_operands): Add missing initializers.
5036 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
5037 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
5038 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
5039 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
5040 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
5042 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
5043 and free_extsyms at function entry.
5044 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
5045 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
5046 (get_got): Delete unused local srel.
5047 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
5048 (elfNN_ia64_relocate_section): Delete unused local dynindx.
5050 2000-11-21 Kazu Hirata <kazu@hxi.com>
5052 * coff-a29k.c: Fix formatting.
5053 * coff-h8500.c: Likewise.
5054 * coff-i960.c: Likewise.
5055 * coff-ppc.c: Likewise.
5056 * coff-rs6000.c: Likewise.
5057 * coff-stgo32.c: Likewise.
5058 * coff-tic54x.c: Likewise.
5059 * coff-w65.c: Likewise.
5060 * cpu-h8500.c: Likewise.
5061 * cpu-hppa.c: Likewise.
5062 * cpu-ns32k.c: Likewise.
5063 * ecoff.c: Likewise.
5064 * ecofflink.c: Likewise.
5066 2000-11-21 Nick Clifton <nickc@redhat.com>
5068 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
5069 remove possibility of infinite loop.
5071 2000-11-20 Kazu Hirata <kazu@hxi.com>
5073 * aix386-core.c: Fix formatting.
5074 * aout-adobe.c: Likewise.
5075 * aout-arm.c: Likewise.
5076 * aout-encap.c: Likewise.
5077 * aout-ns32k.c: Likewise.
5078 * aout-target.h: Likewise.
5079 * aout-tic30.c: Likewise.
5080 * aoutf1.h: Likewise.
5081 * aoutx.h: Likewise.
5082 * archive.c: Likewise.
5083 * bfd-in.h: Likewise.
5084 * bfd-in2.h: Likewise.
5088 2000-11-17 H.J. Lu <hjl@gnu.org>
5090 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
5091 pltoff entries for DT_INIT and DT_FINI.
5092 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
5093 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
5096 2000-11-16 Richard Henderson <rth@redhat.com>
5098 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
5099 (allocate_dynrel_entries): Likewise.
5100 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
5101 (set_pltoff_entry): Likewise.
5102 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
5103 (elfNN_ia64_reloc_type_lookup): Likewise.
5104 (elfNN_ia64_install_value): Likewise.
5105 (elfNN_ia64_relocate_section): Likewise.
5106 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
5107 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
5109 2000-11-16 Kazu Hirata <kazu@hxi.com>
5111 * cpu-a29k.c: Fix formatting.
5112 * cpu-alpha.c: Likewise.
5113 * cpu-arm.c: Likewise.
5114 * cpu-avr.c: Likewise.
5115 * cpu-d10v.c: Likewise.
5116 * cpu-h8500.c: Likewise.
5117 * cpu-hppa.c: Likewise.
5118 * cpu-i370.c: Likewise.
5119 * cpu-i386.c: Likewise.
5120 * cpu-i960.c: Likewise.
5121 * cpu-ia64-opc.c: Likewise.
5122 * cpu-ia64.c: Likewise.
5123 * cpu-m32r.c: Likewise.
5124 * cpu-m68hc11.c: Likewise.
5125 * cpu-m68hc12.c: Likewise.
5126 * cpu-m68k.c: Likewise.
5127 * cpu-m88k.c: Likewise.
5128 * cpu-mips.c: Likewise.
5129 * cpu-ns32k.c: Likewise.
5130 * cpu-pj.c: Likewise.
5131 * cpu-powerpc.c: Likewise.
5132 * cpu-sh.c: Likewise.
5133 * cpu-sparc.c: Likewise.
5134 * cpu-tic54x.c: Likewise.
5135 * cpu-v850.c: Likewise.
5136 * cpu-vax.c: Likewise.
5137 * cpu-w65.c: Likewise.
5138 * cpu-we32k.c: Likewise.
5139 * cpu-z8k.c: Likewise.
5140 * dwarf1.c: Likewise.
5141 * dwarf2.c: Likewise.
5143 2000-11-15 Kazu Hirata <kazu@hxi.com>
5145 * coff-arm.c: Fix formatting.
5146 * coff-ppc.c: Likewise.
5147 * coff-rs6000.c: Likewise.
5148 * coff-sh.c: Likewise.
5149 * coff-sparc.c: Likewise.
5150 * coff-tic30.c: Likewise.
5151 * coff-tic54x.c: Likewise.
5152 * coff-tic80.c: Likewise.
5153 * coff-w65.c: Likewise.
5154 * coff-we32k.c: Likewise.
5155 * coff-z8k.c: Likewise.
5157 2000-11-15 Richard Henderson <rth@redhat.com>
5159 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
5160 section with the same ALLOC|LOAD flags as the source section.
5162 2000-11-14 Jakub Jelinek <jakub@redhat.com>
5164 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
5165 by STO_ALPHA constants.
5167 2000-11-14 Kazu Hirata <kazu@hxi.com>
5169 * coff-pmac.c: Fix formatting.
5170 * coff-ppc.c: Likewise.
5172 2000-11-13 H.J. Lu <hjl@gnu.org>
5174 * elflink.h (elf_link_add_object_symbols): Also add indirect
5175 symbols for common symbols with the default version.
5177 2000-11-09 Philip Blundell <pb@futuretv.com>
5179 * section.c (STD_SECTION): Set gc_mark flag.
5181 2000-11-11 Kazu Hirata <kazu@hxi.com>
5183 * coff-i960.c: Likewise.
5184 * coff-m68k.c: Likewise.
5185 * coff-m88k.c: Likewise.
5186 * coff-mcore.c: Likewise.
5187 * coff-mips.c: Likewise.
5189 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
5191 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
5193 2000-11-10 Kazu Hirata <kazu@hxi.com>
5195 * coff-h8300.c: Fix formatting.
5196 * coff-h8500.c: Likewise.
5197 * coff-i386.c: Likewise.
5198 * coff-i860.c: Likewise.
5199 * coff-i960.c: Likewise.
5200 * coff-ia64.c: Likewise.
5202 2000-11-09 Kazu Hirata <kazu@hxi.com>
5204 * archive.c: Fix formatting.
5205 * archures.c: Likewise.
5207 2000-11-07 Richard Henderson <rth@redhat.com>
5209 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
5210 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
5211 * section.c (bfd_set_section_contents): Call memcpy if
5212 section->contents set and location not equal to contents plus offset.
5214 2000-11-08 Kazu Hirata <kazu@hxi.com>
5216 * bfd-in.h: Fix formatting.
5217 * bfd-in2.h: Likewise.
5219 * binary.c: Likewise.
5221 * coff-a29k.c: Likewise.
5222 * coff-alpha.c: Likewise.
5223 * coff-apollo.c: Likewise.
5224 * coff-aux.c: Likewise.
5226 2000-11-07 Kazu Hirata <kazu@hxi.com>
5228 * aix386-core.c: Fix formatting.
5229 * aoutf1.h: Likewise.
5230 * aoutx.h: Likewise.
5231 * archures.c: Likewise.
5232 * armnetbsd.c: Likewise.
5234 2000-11-07 Alan Modra <alan@linuxcare.com.au>
5236 * coff-h8300.c (special): Adjust reloc address.
5238 2000-11-06 Steve Ellcey <sje@cup.hp.com>
5240 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
5241 to differentiate elf32 and elf64 on ia64.
5242 * bfd-in2.h: Regenerate.
5243 * config.bfd: Add target for "ia64*-*-hpux*".
5244 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
5245 * configure: Regenerate.
5246 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
5247 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
5249 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
5250 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
5251 * Makefile.in: Regnerate.
5252 * elf64-ia64.c: Deleted.
5253 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
5255 2000-11-06 Kazu Hirata <kazu@hxi.com>
5257 * aout-adobe.c: Fix formatting.
5258 * aout-arm.c: Likewise.
5259 * aout-cris.c: Likewise.
5260 * aout-encap.c: Likewise.
5261 * aout-ns32k.c: Likewise.
5262 * aout-target.h: Likewise.
5263 * aout-tic30.c: Likewise.
5265 2000-11-05 Philip Blundell <philb@gnu.org>
5267 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
5268 BFDs containing no sections to be merged, regardless of their flags.
5270 2000-11-04 Philip Blundell <philb@gnu.org>
5272 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
5273 if a relocation for an undefined symbol also results in an
5276 2000-11-06 Christopher Faylor <cgf@cygnus.com>
5278 * config.bfd: Add support for Sun Chorus.
5280 2000-11-05 David O'Brien <obrien@FreeBSD.org>
5282 * configure.in: Recognize alpha-*-freebsd*.
5283 * configure: Regenerate.
5285 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
5287 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
5288 (Chunk): New global variable set by a parameter in objcopy.c.
5289 (S3Forced): New global variable set by a parameter in
5291 (srec_set_section_contents): If S3Forced is true, always generate
5293 (srec_write_section): Use 'Chunk' to limit maximum length of S
5296 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5298 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
5299 * Makefile.in: Regenerate.
5300 * bfd-in2.h: Regenerate.
5301 * po/bfd.pot: Regenerate.
5303 2000-10-31 Philip Blundell <philb@gnu.org>
5305 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
5306 EF_SOFT_FLOAT if it is defined.
5308 2000-10-27 Philip Blundell <philb@gnu.org>
5310 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
5311 attempts to mix PIC code with non-PIC, just mark the output as
5312 being position dependent.
5313 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
5314 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
5315 all mismatches, not just the first one.
5317 2000-10-25 Chris Demetriou <cgd@sibyte.com>
5319 * ieee.c (ieee_archive_p): Plug one of many possible
5320 memory leaks in error handling.
5322 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5324 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
5325 elf32_sparc_object_p, elf32_sparc_final_write_processing):
5327 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
5328 sparc64_elf_object_p): Support v9b.
5329 * archures.c: Declare v8plusb and v9b machines.
5331 * cpu-sparc.c: Ditto.
5333 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5335 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
5338 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
5339 (SYMBOL_CALLS_LOCAL): New macro.
5340 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
5341 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
5342 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
5343 (ppc_elf_relocate_section): Use flag variable to determine
5344 whether the relocation refers to a local symbol.
5345 Test whether a PLTREL24 reloc will produce a reloc by looking
5346 to see whether a PLT entry was made.
5348 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5350 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
5351 entries that could serve as a definition for a weak symbol.
5353 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
5355 From Ralf Baechle <ralf@gnu.org>
5357 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
5358 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
5359 against local symbols.
5360 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
5362 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5364 * section.c (struct sec): Add kept_section.
5365 (struct bfd_comdat_info): Remove sec, we can use above.
5366 (STD_SECTION): Add initializer.
5367 (bfd_make_section_anyway): Init here too.
5369 * bfd-in2.h: Regenerate.
5371 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
5373 (elf_link_input_bfd): Set all asection->symbol->value's here, and
5374 fudge values for discarded link-once section symbols.
5376 * elf64-hppa.c: Include alloca-conf.h
5378 2000-10-11 Alan Modra <alan@linuxcare.com.au>
5380 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
5382 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
5384 2000-10-10 Alan Modra <alan@linuxcare.com.au>
5386 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
5388 2000-10-10 Tom Rix <trix@redhat.com>
5390 * section.c (bfd_make_section_anyway): Release newsect ptr when
5391 newsect->symbol fails to alloc. Use bfd_release instead of free.
5393 2000-10-09 Richard Henderson <rth@cygnus.com
5395 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
5396 (elf64_ia64_unwind_entry_compare): New.
5397 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
5399 2000-10-07 Alan Modra <alan@linuxcare.com.au>
5401 * elflink.h (size_dynamic_sections): Don't create various tags if
5402 .dynstr is excluded from the link. Don't set first dynsym entry
5403 if dynsymcount is zero.
5404 (elf_bfd_final_link): Don't try to swap out dynamic syms if
5405 .dynsym excluded from the link. Don't try to write any dynamic
5406 sections excluded from the link.
5408 * elf.c (swap_out_syms): Handle global section symbols.
5410 2000-10-05 DJ Delorie <dj@redhat.com>
5412 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
5413 * coffcode.h (coff_set_alignment_hook): read extended reloc count
5414 (coff_write_relocs): write extended reloc count
5415 (coff_write_object_contents): account for extended relocs
5417 2000-10-05 Jim Wilson <wilson@cygnus.com>
5419 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5421 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5422 elf_backend_section_flags function.
5423 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5425 (elf64_ia64_section_flags): New function containing flag conversion
5427 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5428 * elfxx-target.h (elf_backend_section_flags): Define.
5429 (elfNN_bed): Initialize elf_backend_section_flags field.
5431 2000-10-02 Alan Modra <alan@linuxcare.com.au>
5433 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5434 _bfd_elf32_gc_record_vtable. Correct a comment.
5436 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5438 From Ralf Baechle <ralf@gnu.org>
5440 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5441 produces binaries with got[1] = 0x80000001 to differenciate them
5442 for the dynamic linker from the broken binaries produced by old
5445 2000-09-30 Petr Sorfa <petrs@sco.com>
5447 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5448 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5449 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5450 * configure: Regenerate.
5452 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5454 Define two bfd_targets for absence and presence of leading
5455 underscore on symbols. Make sure to only link same kind.
5456 * elf32-cris.c (cris_elf_object_p,
5457 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5458 cris_elf_merge_private_bfd_data): New.
5459 (elf_backend_object_p, elf_backend_final_write_processing,
5460 bfd_elf32_bfd_print_private_bfd_data,
5461 bfd_elf32_bfd_merge_private_bfd_data): Define.
5462 <Target vector definition>: Include elf32-target.h twice with
5463 different macro settings:
5464 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5465 bfd_elf32_us_cris_vec.
5466 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5467 (elf_symbol_leading_char): First as 0, then '_'.
5468 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5469 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5470 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5471 * configure: Regenerate.
5472 * targets.c: Declare bfd_elf32_us_cris_vec.
5473 * po/bfd.pot: Regenerate.
5475 2000-09-29 Momchil Velikov <velco@fadata.bg>
5477 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5478 R_ARM_THM_PC22 relocations.
5480 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5482 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5484 2000-09-29 Momchil Velikov <velco@fadata.bg>
5486 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5487 is has the SEC_HAS_CONTENTS flag set.
5489 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
5490 Hans-Peter Nilsson <hp@axis.com>
5492 * aout-cris.c (N_TXTADDR): Define.
5494 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5496 * som.c: Include alloca-conf.h.
5497 * Makefile.am: "make dep-am"
5498 * Makefile.in: Regenerate.
5500 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5502 * elf32-hppa.c (plt_stub): New.
5503 (PLT_STUB_ENTRY): Define.
5504 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5505 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5506 (elf32_hppa_link_hash_table_create): Init to suit.
5507 (elf32_hppa_check_relocs): Set has_12bit_branch and
5508 has_17bit_branch as appropriate.
5509 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5510 non-local functions.
5511 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5512 Add space for plt_stub as needed.
5513 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5514 functions at plt_stub.
5515 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5516 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5518 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5519 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5520 of fixed size, and if negative, disable handling of input sections
5521 before stub section. Set up default stub group size depending
5522 on detected branch relocs.
5523 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5524 ensure different offsets from sym_value aren't rounded to
5525 different 2k blocks. Use lrsel and rrsel for other stubs too for
5526 consistency rather than necessity.
5527 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
5528 (final_link_relocate): Likewise.
5529 (elf32_hppa_relocate_section): Likewise.
5531 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
5532 (_bfd_elf_hppa_gen_reloc_type): Generate them.
5533 (elf_hppa_final_link_relocate): Handle them.
5534 (elf_hppa_relocate_insn): Likewise.
5535 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
5537 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
5539 * elfcode.h (elf_object_p): Preserve and clear abfd section
5540 information. Restore at error.
5542 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5544 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
5545 is empty, make sure that its rva also 0. NT loader dislikes
5548 2000-09-26 Steve Ellcey <sje@cup.hp.com>
5550 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
5553 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5555 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
5556 currently unused RELATIVE_DYNAMIC_RELOCS code.
5557 (hppa_discard_copies): Likewise.
5558 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
5559 comments. Don't check non-code output sections for stub grouping.
5561 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5563 * section.c (bfd_get_unique_section_name): Return NULL if
5566 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5568 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
5569 instruction sequence to actually work.
5570 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
5573 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5575 * elf32-sh.c (sh_elf_relocate_section): Use
5576 _bfd_final_link_relocate to apply the relocation against a section
5577 symbol, when doing relocatable links.
5579 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5581 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
5583 (stub_hash_newfunc): Here too.
5584 (hppa_add_stub): And here.
5585 (elf32_hppa_link_hash_table): Remove stub_section_created,
5586 reloc_section_created, first_init_sec and first_fini_sec. Add
5588 (elf32_hppa_link_hash_table_create): Init to suit.
5589 (hppa_get_stub_entry): Add support for grouping stub sections.
5590 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
5591 section code. Index stub vars by section->id.
5592 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
5593 exit paths. Zap allocation of above removed vars. Refine
5596 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
5597 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
5598 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
5599 rather than pointer to bfd_link_info.
5600 (hppa_add_stub): Likewise.
5601 (final_link_relocate): Likewise.
5603 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
5605 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
5608 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
5610 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
5611 ld/emulparams/shelf.sh.
5613 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5615 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
5616 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
5617 * bfd-in2.h: Regenerate.
5619 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
5621 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
5622 LITUSE relocations incorrectly if -relax is specified on the ld
5623 command line and the displacement field of the load or store
5624 instruction is non-zero. (Patch by paul.winalski@compaq.com)
5626 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5628 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
5629 first_fini_sec here.
5630 (elf32_hppa_size_stubs): Instead correctly find the first .init
5631 and .fini section here.
5633 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
5635 * elf32-hppa.c (clobber_millicode_symbols): New function.
5636 (elf32_hppa_size_dynamic_sections): Call it.
5638 2000-09-14 Alan Modra <alan@linuxcare.com.au>
5640 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
5641 packed. Add plabel, plt_abs packed booleans.
5642 (hppa_link_hash_newfunc): Init new fields.
5643 (PLABEL_PLT_ENTRY_SIZE): Define.
5644 (hppa_stub_name): Use size_t len vars.
5645 (hppa_add_stub): Likewise.
5646 (elf32_hppa_build_stubs): Likewise.
5647 (hppa_build_one_stub): Kill some compiler warnings.
5648 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
5649 if dynamic linking. Munge the local plt offsets into
5650 local_got_refcounts. Set h->plabel for all global PLABELs. Use
5651 size_t len vars. Add assert for plabel addend.
5652 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
5653 (elf32_hppa_hide_symbol): New function.
5654 (elf_backend_hide_symbol): Define.
5655 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
5656 with h->plabel set. Don't make plt entries to have dynamic syms
5657 when they have been forced local. If plt entry is used by a
5658 plabel, make it PLABEL_PLT_ENTRY_SIZE.
5659 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
5660 Set up .plt offsets for local syms.
5661 (elf32_hppa_relocate_section): Initialise plt entries for local
5662 syms. Leave weak undefined plabels zero. Make global plabel
5663 relocs against function symbol, and leave the addend zero.
5664 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
5665 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
5666 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
5667 relocs instead of SEGREL32 for dynamic got relocs.
5668 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
5669 (elf_backend_got_header_size): Adjust.
5670 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
5672 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
5673 (hppa_type_of_stub): Use it instead of #if 0
5674 (hppa_discard_copies): Use it here too.
5675 (elf32_hppa_size_dynamic_sections): And here.
5677 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
5678 (elf32_hppa_link_hash_table_create): And here.
5679 (hppa_build_one_stub): And here. Instead keep track of stub
5680 offset using _raw_size.
5681 (elf32_hppa_size_stubs): Likewise.
5682 (elf32_hppa_build_stubs): Likewise.
5683 (hppa_size_one_stub): Likewise. Resize reloc section too.
5685 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
5686 first_fini_sec handling. Don't search for reloc section or set
5687 hplink->reloc_section_created here.
5688 (elf32_hppa_size_stubs): Instead search for reloc sections, and
5689 set reloc_section_created here.
5690 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
5691 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
5693 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
5695 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
5696 with `hplink->root.'.
5697 (elf32_hppa_check_relocs): Likewise.
5698 (elf32_hppa_gc_sweep_hook): Likewise.
5699 (elf32_hppa_adjust_dynamic_symbol): Likewise.
5700 (hppa_handle_PIC_calls): Likewise.
5701 (elf32_hppa_size_dynamic_sections): Likewise.
5702 (elf32_hppa_set_gp): Likewise.
5703 (elf32_hppa_relocate_section): Likewise.
5704 (elf32_hppa_finish_dynamic_symbol): Likewise.
5705 (elf32_hppa_finish_dynamic_sections): Likewise.
5707 From David Huggins-Daines <dhd@linuxcare.com>
5708 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
5709 defined weak symbols in shared links.
5710 (final_link_relocate): Calls to defined weak symbols in shared
5711 objects must go via import stubs, as the target might not be known
5714 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5716 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
5717 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
5718 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
5719 the original entries with EMPTY_HOWTOs, and added new ones to fill
5721 (sh_elf_info_to_howto): Make sure the new gap isn't used.
5722 (sh_elf_relocate_section): Likewise.
5724 2000-09-13 Anders Norlander <anorland@acc.umu.se>
5726 * cpu-mips.c (arch_info_struct): Add mips:4K
5727 * bfd-in2.h (bfd_mach_mips4K): New define.
5728 * archures.c: Add bfd_mach_mips4K to comment.
5729 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
5730 E_MIPS_ARCH_2 for bfd_mach_mips4K.
5732 2000-09-13 Marco Franzen <marcof@thyron.com>
5734 * som.c (som_write_symbol_strings): Do not used fixed buffers,
5735 use size_t as a counter.
5736 (som_write_space_strings): Similarly.
5738 2000-09-12 Jason Eckhardt <jle@cygnus.com>
5740 * elf32-i860.c (elf32_i860_relocate_pc26): New function
5742 (elf32_i860_relocate_section): Invoke new function from here.
5744 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5746 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
5749 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5751 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
5752 target section name instead of dumping core when the target symbol is
5755 2000-09-09 Kazu Hirata <kazu@hxi.com>
5757 * riscix.c: Remove DEFUN.
5759 2000-09-08 Nick Clifton <nickc@redhat.com>
5761 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
5762 initialise flags in output bfd if the input bfd is the default
5763 architecture with the default flags.
5765 2000-09-08 Kazu Hirata <kazu@hxi.com>
5767 * archive.c: Fix formatting.
5768 * coff-arm.c: Likewise.
5769 * doc/chew.c: Likewise.
5771 2000-09-08 Alan Modra <alan@linuxcare.com.au>
5773 * section.c (bfd_get_unique_section_name): Put a dot before the
5776 2000-09-07 Kazu Hirata <kazu@hxi.com>
5778 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
5779 * elf.c: Fix formatting.
5781 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
5783 * config.bfd (sh-*-linux*): Added.
5784 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
5785 * targets.c: Declare them.
5786 * elf32-sh-lin.c: New file.
5787 * Makefile.am: Compile it.
5788 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
5789 * configure, Makefile.in: Rebuilt.
5791 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
5793 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
5794 pseduo-section when determining where the TOC ends.
5796 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
5797 output x_tvndx as it is only two bytes wide.
5799 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
5800 reloc is 26 or 32 bits wide.
5802 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
5803 for relocs that don't change anything. Also look at the full
5806 2000-09-06 Philip Blundell <philb@gnu.org>
5808 * config.bfd (arm*-*-uclinux*): New target.
5810 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5812 * configure: Rebuilt with new libtool.m4.
5814 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5816 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
5817 word for variable name.
5818 * bfd-in2.h: Regenerate.
5820 2000-09-05 Nick Clifton <nickc@redhat.com>
5822 * config.in: Regenerate.
5823 * libbfd.h: Regenerate.
5824 * po/bfd.pot: Regenerate.
5825 * doc/bfdint.texi: Remove CVS date string - it foils compares with
5828 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
5830 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
5832 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5834 Shared library and PIC support.
5835 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5836 (GOT_ENTRY_SIZE): New.
5837 (ELF_DYNAMIC_INTERPRETER): New.
5838 (STUB_SUFFIX): Define.
5839 (LONG_BRANCH_PIC_IN_SHLIB): Define.
5840 (RELATIVE_DYNAMIC_RELOCS): Define.
5841 (enum elf32_hppa_stub_type): New.
5842 (struct elf32_hppa_stub_hash_entry): Rename offset to
5843 stub_offset. Add a number of new fields.
5844 (struct elf32_hppa_link_hash_entry): New.
5845 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
5847 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
5848 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
5849 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
5851 (hppa_link_hash_newfunc): New function.
5852 (elf32_hppa_link_hash_table_create): Use above function. Init new
5854 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
5855 instead of addend, and remove sym_name from args. Don't use
5856 symbol name for local syms, instead use sym index.
5857 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
5858 stub type rather than size. Pass in hash and handle import stub
5859 case. Also pass in reloc instead of offset so we can calculate
5860 PCREL22F and PCREL12F branches properly.
5861 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
5862 import and export stubs too.
5863 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5864 import and export stub sizing.
5865 (elf32_hppa_check_relocs): New function.
5866 (elf32_hppa_adjust_dynamic_symbol): New function.
5867 (hppa_discard_copies): New function.
5868 (elf32_hppa_size_dynamic_sections): New function.
5869 (elf_backend_size_dynamic_sections): Define.
5870 (elf32_hppa_finish_dynamic_symbol): New function.
5871 (elf_backend_finish_dynamic_symbol): Define.
5872 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5873 some local vars into the link hash table too. For shared links,
5874 trundle over function syms, generating export stubs. Handle
5875 PCREL22F branches. Break out stub creation code from here..
5876 (hppa_add_stub): .. to here. New function.
5877 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5878 call the bfd linker. Use elf_gp to record global pointer.
5879 Calculate a value from sections if $global$ is missing.
5880 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5881 (elf32_hppa_gc_mark_hook): New function.
5882 (elf_backend_gc_mark_hook): Define.
5883 (elf32_hppa_gc_sweep_hook): New function.
5884 (elf_backend_gc_sweep_hook): Define.
5885 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5886 Add rel to args, and remove howto, input_bfd, offset, addend,
5887 sym_name as we can recalculate these locally. Handle calls to
5888 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5889 handling of undefined weak syms. Check that stubs are in range.
5890 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5891 message on hitting a DPREL21L reloc that needs fixing. Subtract
5892 off PC for PCREL14F. Break out code that does a stub lookup from
5894 (hppa_get_stub_entry): ..to here. New function.
5895 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5896 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5898 (elf32_hppa_finish_dynamic_sections): New function.
5899 (elf_backend_finish_dynamic_sections): Define.
5900 (elf_backend_final_write_processing) Define.
5901 (hppa_handle_PIC_calls): New function.
5902 (elf32_hppa_build_stubs): Call it. Pass link_info to
5903 hppa_build_one_stub.
5904 (elf32_hppa_create_dynamic_sections): New function
5905 to create .plt and .got then set .plt flags correctly.
5906 (elf_backend_create_dynamic_sections): Define.
5907 (elf32_hppa_object_p): New function.
5908 (elf_backend_object_p): Define.
5909 (elf32_hppa_elf_get_symbol_type): New function.
5910 (elf_backend_get_symbol_type): Define.
5911 (elf_backend_can_gc_sections): Define.
5912 (elf_backend_want_got_plt): Define.
5913 (elf_backend_plt_alignment): Set to 2.
5914 (elf_backend_plt_readonly): Define.
5915 (elf_backend_want_plt_sym): Define.
5916 (elf_backend_got_header_size): Reserve one entry.
5918 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5919 (elf32_hppa_size_stubs): Pass in multi_subspace.
5920 (elf32_hppa_set_gp): Declare.
5922 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5923 (bfd_get_unique_section_name): New function.
5924 * bfd-in2.h: Regenerate.
5926 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5927 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5930 From David Huggins-Daines <dhd@linuxcare.com>
5931 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5932 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5933 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5934 been updated in finish_dynamic_symbol before modifying function
5937 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5938 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5939 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5940 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5941 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5942 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5943 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5944 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5946 From David Huggins-Daines <dhd@linuxcare.com>
5947 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5948 style of local labels as well.
5950 2000-09-03 Philip Blundell <philb@gnu.org>
5952 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5953 references to undefined symbols in debugging sections.
5955 2000-09-02 H.J. Lu <hjl@gnu.org>
5957 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5958 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5959 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5962 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5964 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5965 (elf32_i860_is_local_label_name): New function and prototype.
5967 2000-09-02 Nick Clifton <nickc@redhat.com>
5969 * configure.in: Increase version number to 2.10.91.
5970 * configure: Regenerate.
5971 * aclocal.m4: Regenerate.
5972 * config.in: Regenerate.
5973 * po/bfd.pot: Regenerate.
5975 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5977 * elf.c (_bfd_elf_make_section_from_shdr): Add
5978 .gnu.linkobce.wi. to the list of debug section names.
5980 2000-09-02 Nick Clifton <nickc@redhat.com>
5982 * dwarf2.c (find_debug_info): New function: Locate a section
5983 containing dwarf2 debug information.
5984 (bfd_dwarf2_find_nearest_line): Find all sections containing
5985 debug information and include them in the stash.
5987 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5989 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5990 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5991 (sh_reloc_map): Add new relocs.
5992 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5993 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5994 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5995 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5997 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5998 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5999 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
6000 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
6001 New array constants.
6002 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
6004 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
6005 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
6006 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
6007 elf_sh_plt_reloc_offset): Define.
6008 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
6009 elf_sh_link_hash_table): New structs.
6010 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
6011 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
6013 (elf_backend_create_dynamic_sections,
6014 bfd_elf32_bfd_link_hash_table_create,
6015 elf_backend_adjust_dynamic_symbol,
6016 elf_backend_size_dynamic_sections,
6017 elf_backend_finish_dynamic_symbol,
6018 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
6019 elf_backend_plt_readonly, elf_backend_want_plt_sym,
6020 elf_backend_got_header_size, elf_backend_plt_header_size):
6022 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
6023 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
6025 * bfd-in2.h, libbfd.h: Rebuilt.
6027 2000-09-01 Alan Modra <alan@linuxcare.com.au>
6029 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
6032 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
6034 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
6035 not initialized, set them to indicate the SH1 instruction set.
6037 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
6039 * acinclude.m4: Include libtool and gettext macros from the
6041 * aclocal.m4, configure: Rebuilt.
6043 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
6045 * elf.c: Eliminate references to __sparcv9 macro; replace with
6046 autoconf variables HAVE_PSINFO32_T etc.
6047 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
6048 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
6050 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
6051 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
6052 * aclocal.m4: Ditto.
6053 * configure: Regenerate.
6055 2000-08-27 Alan Modra <alan@linuxcare.com.au>
6057 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
6058 for any shared link, not just shared -Bsymbolic.
6059 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
6060 any shared link, and pass link info to it.
6061 (elf_i386_size_dynamic_sections): Update comment.
6062 (elf_i386_discard_copies): Modify to discard relocs for symbols
6063 that have been forced local.
6064 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
6065 that have been forced local.
6067 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
6069 * elflink.h (elf_link_add_object_symbols): Allow common
6070 symbols to have an alignment of 1 if explicitly requested, and
6071 not overridden by other definitions.
6073 2000-08-22 Doug Kwan <dkwan@transmeta.com>
6075 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
6076 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
6078 2000-08-22 H.J. Lu <hjl@gnu.org>
6080 * elf-bfd.h (elf_link_hash_table): Add runpath.
6082 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
6083 * bfd-in2.h: Rebuilt.
6085 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
6086 "runpath" field to NULL.
6087 (bfd_elf_get_runpath_list): New function.
6089 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
6092 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
6094 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
6095 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
6096 explicitly. Improve validation of r_type.
6098 2000-08-21 H.J. Lu <hjl@gnu.org>
6100 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
6101 dynamic allocated content space. Add a comment to remind us that
6102 one day this ought to be fixed.
6103 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6104 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6105 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6107 2000-08-21 Jason Eckhardt <jle@cygnus.com>
6109 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
6110 field with the newly relocated value instead of adding it to the
6111 existing immediate field.
6112 (elf32_i860_relocate_splitn): Likewise.
6113 (elf32_i860_relocate_highadj): Likewise.
6115 2000-08-16 Jason Eckhardt <jle@cygnus.com>
6117 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
6118 was previously just a stub).
6120 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
6122 * elflink.c (_bfd_elf_create_got_section): Don't abort().
6124 (_bfd_elf_create_dynamic_sections): Likewise.
6126 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
6128 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
6129 for undefined symbols to be the beginning of the section.
6131 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
6132 four extra entries at the beginning of the .rela.plt section.
6133 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
6134 section to account for the four reserved entries in the .plt section.
6136 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
6138 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
6139 to the list of NOPs we recognize after a branch-and-link.
6140 Use the ori NOP when one is needed.
6142 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
6145 2000-08-14 Jim Wilson <wilson@cygnus.com>
6147 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
6148 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
6149 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
6152 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
6154 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
6156 2000-08-10 Jason Eckhardt <jle@cygnus.com>
6158 * elf32-i860.c (elf32_i860_relocate_section): New function.
6159 (i860_final_link_relocate): New function.
6160 (elf32_i860_relocate_splitn): New function.
6161 (elf32_i860_relocate_pc16): New function.
6162 (elf32_i860_relocate_highadj): New function.
6163 (elf32_i860_howto): Minor adjustments to some relocations.
6164 (elf_info_to_howto_rel): Define.
6165 (elf_backend_relocate_section): Define.
6167 2000-08-10 Nick Clifton <nickc@cygnus.com>
6169 * elf32-arm.h: Fix formatting.
6171 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
6173 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
6175 2000-08-08 Jason Eckhardt <jle@cygnus.com>
6177 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
6179 2000-08-07 Kazu Hirata <kazu@hxi.com>
6181 * ieee.c (ieee_write_debug_part): Rewrite a comment.
6182 * elf64-ia64.c: Fix a typo.
6184 2000-08-05 Jason Eckhardt <jle@cygnus.com>
6186 * elf32-i860.c (elf32_i860_howto_table): New structure.
6187 (lookup_howto): New function.
6188 (elf32_i860_reloc_type_lookup): New function.
6189 (elf32_i860_info_to_howto_rela): New function.
6190 (elf_code_to_howto_index): New structure.
6191 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
6192 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
6193 elf32_i860_reloc_type_lookup.
6195 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
6197 * som.c (struct fixup_format): Constify `format'.
6198 (som_hppa_howto_table): Use SOM_HOWTO macro.
6199 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
6200 (som_bfd_reloc_type_lookup): Likewise.
6201 (compare_subspaces): Remove unused `count1', `count2'.
6202 (som_begin_writing): Remove unused `total_reloc_size'.
6203 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
6204 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
6205 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
6206 (som_find_nearest_line): Decorate unused parameter(s).
6207 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
6208 (som_bfd_link_split_section): Likewise.
6210 2000-08-03 Nick Clifton <nickc@cygnus.com>
6212 * section.c: Restore backed out code.
6213 * elf.c: Restore backed out code.
6214 (copy_private_bfd_data): Fix bug preventing stipped dynamic
6215 binaries from working.
6216 * bfd-in2.h: Regenerate.
6218 2000-08-03 H.J. Lu <hjl@gnu.org>
6220 * section.c: Back out the change made by Nick Clifton
6221 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
6223 * bfd-in2.h: Likewise.
6226 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
6228 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
6230 2000-07-31 Jason Eckhardt <jle@cygnus.com>
6232 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
6233 * bfd-in2.h, libbfd.h: Regenerate.
6235 2000-07-31 Nick Clifton <nickc@cygnus.com>
6237 * section.c (struct sec): Add new boolean field 'segment_mark'.
6238 (STD_SECTION): Initialise new field to zero.
6240 * bfd-in2.h: Regenerate.
6242 * elf.c (copy_private_bfd_data): Reorganise section to segment
6243 mapping to cope with moved sections requiring new segments,
6244 and overlapping segments.
6245 (SEGMENT_END): New macro: Return the end address of a segment.
6246 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
6247 contains a section by comparing their VMA addresses.
6248 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
6249 contains a section by comparing their LMA addresses.
6250 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
6251 section should be included in a segment.
6252 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
6253 follows another in memory.
6254 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
6257 2000-07-22 Jason Eckhardt <jle@cygnus.com>
6259 * cpu-i860.c: Added comments.
6261 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
6262 bfd_elf32_i860_little_vec.
6263 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
6264 (ELF_MAXPAGESIZE): Changed to 4096.
6266 * targets.c (bfd_elf32_i860_little_vec): Declaration of
6268 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
6270 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
6271 config for little endian elf32 i860.
6272 (targ_defvec): Define for the new config above
6273 as "bfd_elf32_i860_little_vec".
6274 (targ_selvecs): Define for the new config above
6275 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
6277 * configure.in (bfd_elf32_i860_little_vec): Added recognition
6280 * configure: Regenerated.
6282 2000-07-27 H.J. Lu <hjl@gnu.org>
6284 * elflink.h (elf_merge_symbol): Take one more argument,
6285 dt_needed, to indicate if the symbol comes from a DT_NEEDED
6286 entry. Don't overide the existing weak definition if dt_needed
6288 (elf_link_add_object_symbols): Pass dt_needed to
6289 elf_merge_symbol ().
6291 2000-07-27 Nick Clifton <nickc@cygnus.com>
6293 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
6296 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
6298 * configure.host (*-*-aix*): AIX has 'long long' always.
6300 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
6301 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
6302 (xcoff_write_archive_contents_big): Don't update the offset
6303 of the symbol table, xcoff_write_armap will do it.
6305 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
6307 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
6308 of dynobj for SGI_COMPAT checks.
6310 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6312 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
6313 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
6314 * bfd-in2.h: Regenerate.
6316 2000-07-21 Nick Clifton <nickc@cygnus.com>
6318 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
6319 range symbol indices in relocs and issue an error message.
6321 2000-07-20 H.J. Lu <hjl@gnu.org>
6323 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
6324 info->new_dtags when setting DT_FLAGS_1. It will only be set
6325 by the new linker options. It shouldn't break anything.
6327 2000-07-20 H.J. Lu <hjl@gnu.org>
6329 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
6330 only if info->new_dtags is true.
6332 2000-07-20 H.J. Lu <hjl@gnu.org>
6334 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
6335 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
6337 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
6339 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
6340 (ALL_MACHINES_CFILES): Add cpu-cris.c.
6341 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
6342 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
6343 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
6344 * Makefile.in: Rebuild.
6345 * aclocal.m4: Rebuild.
6346 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
6347 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
6348 (bfd_cris_arch): Declare.
6349 (bfd_archures_list): Add bfd_cris_arch.
6350 * bfd-in2.h: Rebuild.
6351 * config.bfd: (cris-*-*): New target.
6352 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
6353 * configure: Rebuild.
6354 * elf.c (prep_headers): Add bfd_arch_cris.
6355 * libbfd.h: Rebuild.
6356 * libaout.h (enum machine_type): Add M_CRIS.
6357 * reloc.c: Add CRIS relocations.
6358 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
6359 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
6360 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
6361 * po/POTFILES.in, po/bfd.pot: Regenerate.
6363 2000-07-19 H.J. Lu <hjl@gnu.org>
6365 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
6366 DF_TEXTREL if DT_TEXTREL is set.
6367 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
6368 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
6369 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6370 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
6371 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
6372 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6373 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
6374 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6375 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
6376 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
6378 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
6379 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
6381 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
6383 2000-07-19 H.J. Lu <hjl@gnu.org>
6385 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
6386 * bfd-in2.h: Rebuild.
6388 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
6389 (elf_dt_soname): New.
6391 * elf.c (bfd_elf_set_dt_needed_soname): New.
6393 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
6394 entry if the shared object loaded by DT_NEEDED is used to
6395 resolve the reference in a regular object.
6397 2000-07-19 H.J. Lu <hjl@gnu.org>
6399 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
6400 DT_DEPAUDIT and DT_AUDIT as strings.
6402 2000-07-19 Nick Clifton <nickc@cygnus.com>
6404 * format.c: Fix formatting.
6406 2000-07-19 H.J. Lu <hjl@gnu.org>
6408 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
6410 2000-07-19 H.J. Lu <hjl@gnu.org>
6412 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
6413 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
6414 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
6415 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
6416 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
6417 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
6418 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
6420 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
6422 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
6423 renamed functions from here...
6424 (assign_section_numbers): Use renamed functions.
6425 (prep_headers): Use renamed functions.
6427 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
6428 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
6429 * bfd-in2.h: Regenerate.
6431 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
6433 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
6434 parenthesis in if statement.
6436 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
6438 Enable the support for Traditional MIPS.
6439 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
6440 return ict_none appropriately for traditional mips targets.
6441 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
6442 (STUB_MOVE): Conditionalize for traditonal mips.
6443 (STUB_LI16): Likewise.
6444 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6445 room for RTPROC header.
6446 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6447 the permission for the PT_DYNAMIC as read, write and execute.
6448 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6449 for traditonal mips.
6450 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6451 _DYNAMIC_LINKING for traditonal mips.
6452 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6453 in case of traditonal mips.
6454 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6455 entry is required. For a function if PLT is not required then set the
6456 corresponding hash table entry to 0.
6457 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6459 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6460 shared object set the value to 0.
6461 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6462 _DYNAMIC_LINKING for traditonal mips.
6463 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6464 for traditonal mips.
6466 2000-07-15 H.J. Lu <hjl@gnu.org>
6468 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6470 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6472 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6473 out a structure that is BFD_IN_MEMORY.
6475 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6477 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6478 bfd pointer. Print section id instead of bfd pointer for local
6479 syms. Prefix addend with `+' for global syms as well as local.
6480 Correct calculation of name component lengths.
6481 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6483 From David Huggins-Daines <dhd@linuxcare.com>
6484 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6485 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6486 (elf64_hppa_modify_segment_map): Likewise.
6488 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6490 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6491 addresses to be "naturally" sign extended. Return -1 if unknown.
6492 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6493 * bfd-in2.h: Regenerate.
6495 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6497 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6498 and ECOF_SIGNED_64 to list ways to extract an offset.
6499 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6500 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6502 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6503 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6505 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6507 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6508 bfd_get_start_address.
6509 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6510 (elf_swap_ehdr_out): Ditto.
6512 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6514 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6515 compatibility with older binutils.
6517 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6519 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6520 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6522 From Ryan Bradetich <rbradetich@uswest.net>
6523 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6524 (parse_line_table): Ditto.
6525 (_bfd_dwarf1_find_nearest_line): Ditto.
6526 * syms.c (cmpindexentry): Remove extra `*' from params.
6528 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
6530 * elf32-mips.c (sort_dynamic_relocs): New Function.
6531 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
6532 via qsort to sort the dynamic relocations in increasing r_symndx
6535 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6537 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
6538 ATTRIBUTE_UNUSED to unused args.
6539 (get_opd): Likewise.
6540 (get_plt): Likewise.
6541 (get_dlt): Likewise.
6542 (get_stub): Likewise.
6543 (elf64_hppa_adjust_dynamic_symbol): Likewise.
6544 (elf64_hppa_link_output_symbol_hook): Likewise.
6545 (elf64_hppa_check_relocs): Delete unused var.
6546 (elf64_hppa_size_dynamic_sections): Likewise.
6547 (elf64_hppa_finalize_opd): Likewise.
6548 (elf64_hppa_finalize_dynreloc): Likewise.
6549 (elf64_hppa_modify_segment_map): Likewise.
6550 (elf64_hppa_finish_dynamic_sections): Likewise.
6552 * elf-hppa.h (elf_hppa_final_write_processing): Add
6553 ATTRIBUTE_UNUSED to unused args.
6554 (elf_hppa_final_link_relocate): Likewise.
6555 (elf_hppa_record_segment_addrs): Add paretheses.
6556 (elf_hppa_relocate_section): Constify dyn_name.
6558 From David Huggins-Daines <dhd@linuxcare.com>
6559 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
6560 rearrange case statement so that it gets preferred to 32-bit ones.
6562 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
6563 asection->id instead of address of asection structure.
6564 (elf32_hppa_size_stubs): Likewise.
6566 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
6567 for .init* and .fini*.
6569 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
6570 and addends used in stub names to 32 bits.
6571 (elf32_hppa_size_stubs): Likewise.
6573 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
6574 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
6575 not bfd_put_64. Fix minor comment typo and formatting.
6577 Changes to create multiple linker stubs, positioned immediately
6578 before the section where they are required.
6579 * elf32-hppa.c: Don't include hppa_stubs.h.
6580 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
6581 (elf32_hppa_stub_hash_table): Delete.
6582 (elf32_hppa_link_hash_entry): Delete.
6583 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
6584 stub_hash_table, and store the struct here rather than a pointer.
6585 Delete output_symbol_count. Add offset array. Change
6586 global_value to a bfd_vma.
6587 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
6588 (elf32_hppa_stub_hash_traverse): Delete.
6589 (elf32_hppa_name_of_stub): Delete.
6590 (elf32_hppa_link_hash_lookup): Delete.
6591 (elf32_hppa_link_hash_traverse): Delete.
6592 (elf32_hppa_stub_hash_table_init): Delete.
6593 (elf32_hppa_size_of_stub): Pass input section and offset rather
6594 than location and calculate location here. Don't pass name as all
6595 stubs are now the same size.
6596 (elf32_hppa_stub_hash_newfunc): Init new fields.
6597 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
6599 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
6600 comparing against ints. Rewrite stub handling code.
6601 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
6602 Case enums to int before comparing against ints. Remove
6603 bfd_reloc_dangerous case.
6604 (elf32_hppa_build_one_stub): Rewrite.
6605 (elf32_hppa_size_one_stub): New function.
6606 (elf32_hppa_build_stubs): Rewrite.
6607 (elf32_hppa_size_stubs): Pass in linker call-back functions.
6608 Rewrite stub-handling specific code.
6610 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
6612 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
6614 * hppa_stubs.h: Delete.
6615 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
6616 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
6617 * Makefile.in: Regenerate.
6619 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
6622 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
6624 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
6625 and section name for bfd_reloc_notsupported error message.
6626 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
6627 bfd_reloc_notsupported.
6628 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
6630 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
6631 undefined weak symbols for all relocs.
6632 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
6633 offsets are relative to one past the delay slot.
6634 (elf32_hppa_size_stubs): Account for reloc addend when calculating
6635 branch destination. Put addend into stub name too.
6636 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
6637 adjust by 8 when deciding whether a linker stub is needed. Put
6638 addend into stub name as for above.
6640 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
6641 various args and vars.
6642 (elf32_hppa_bfd_final_link_relocate): Here too.
6643 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
6644 inner block var to avoid shadowing.
6646 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
6648 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
6649 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
6650 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
6652 * libhppa.h: Change practically all unsigned ints to plain ints.
6653 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
6656 From Ryan Bradetich <rbradetich@uswest.net>
6657 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
6658 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
6660 From David Huggins-Daines <dhd@linuxcare.com>
6661 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
6662 to the new OP_* ones.
6664 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
6665 error exit. Bail out earlier on plabel relocs that we aren't
6666 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
6667 string, and then don't free our copy.
6668 (elf32_hppa_build_one_stub): Make insn unsigned int.
6670 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
6671 available with BL, not BE and BLE.
6673 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
6674 code for elf arg relocs.
6675 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
6676 argument with elf_link_hash_entry h. Handle undefined weak
6677 symbols. Move $global$ lookup from here...
6678 (elf32_hppa_relocate_section): ...to here. Return correct error
6679 message for non-handled relocs.
6680 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
6681 wrong test was -0x3ffff to +0x40000.
6683 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
6684 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
6685 Handle them as such.
6686 (elf_hppa_relocate_insn): Fix a typo.
6688 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
6689 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6690 assemble_17, assemble_21): Delete.
6691 Supply defines for all 64 possible opcodes.
6692 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
6693 formats. Handle COMICLR.
6694 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
6697 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
6698 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
6699 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
6701 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
6702 the local syms - did this code get deleted accidentally? Ignore
6703 undefined and undefweak syms.
6705 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
6706 block. Use it instead of elf64_hppa_hash_table (info).
6707 (elf_hppa_final_link_relocate): Use hppa_info instead of
6708 elf64_hppa_hash_table (info).
6710 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6711 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6712 (hppa_rebuild_insn): Mask immediate bits here instead.
6713 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6715 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6717 * section.c (struct sec): Add id field. Tidy comment formatting.
6718 (bfd_make_section_anyway): Set id.
6719 (STD_SECTION): Init id too.
6720 Change CONST to const throughout.
6721 * archures.c (bfd_arch_info): Tidy comment.
6722 (bfd_arch_list): Change a CONST to const.
6723 * libbfd-in.h: Tidy comments and replace CONST with const.
6724 * elf-bfd.h: Likewise.
6725 * libbfd.h: Regenerate.
6726 * bfd-in2.h: Regenerate.
6727 * libcoff.h: Regenerate.
6729 2000-07-07 DJ Delorie <dj@redhat.com>
6731 * archive.c (_bfd_write_archive_contents): Add an informative
6734 2000-07-06 Kazu Hirata <kazu@hxi.com>
6736 * srec.c: Fix formatting.
6738 2000-06-05 DJ Delorie <dj@redhat.com>
6742 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
6744 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
6745 value of PC-relative offsets.
6747 2000-07-03 Jim Wilson <wilson@cygnus.com>
6749 * elf64-alpha.c (alpha_elf_size_info): New.
6750 (elf_backend_size_info): Define to alpha_elf_size_info.
6751 * elfcode.h (elf_size_info): Change hash bucket size to 4.
6753 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
6755 * elf32-mips.c: Include elf32-target.h again for the traditional
6758 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
6760 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
6761 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
6762 (avr_info_to_howto_rela): Likewise.
6763 (elf32_avr_gc_mark_hook): Likewise.
6764 (elf32_avr_gc_sweep_hook): Likewise.
6765 (elf32_avr_relocate_section): Likewise.
6767 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
6769 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
6770 an external symbol for a non-shared, non-relocatable link.
6772 2000-07-03 Nick Clifton <nickc@redhat.com>
6774 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
6775 is an external symbol.
6776 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
6779 2000-07-03 Kazu Hirata <kazu@hxi.com>
6781 * reloc16.c: Fix formatting.
6783 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6785 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
6786 to add a new target for traditional mips i.e
6787 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
6788 * configure.in: Likewise.
6789 * configure: Rebuild.
6790 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
6792 (bfd_elf32_tradlittlemips_vec): Likewise.
6793 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
6794 to see that elfNN_bed does not get redefined even if the target file
6795 is included twice for a chip. See elf32-mips.c.
6797 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6799 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6800 (CLEANFILES): Add DEPA.
6801 * Makefile.in: Regenerate.
6803 2000-06-30 DJ Delorie <dj@cygnus.com>
6805 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
6806 can't assume the PE header is at 0x80.
6808 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
6810 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
6812 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
6814 * go32stub.h: Update stub.
6816 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6818 * archures.c (bfd_mach_avr5): Define.
6819 * bfd-in2.h (bfd_mach_avr5): Define.
6820 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
6821 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
6822 (compatible): Update comment. Add missing test.
6823 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
6824 for avr2 and avr4. Simplify 8K wrap code.
6825 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
6826 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
6828 2000-06-26 Kazu Hirata <kazu@hxi.com>
6830 * coff-h8300.c: Fix formatting.
6831 * cpu-h8300.c: Likewise.
6833 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
6835 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
6836 for local symbols whose names are unknown.
6838 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6840 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6842 * Makefile.in: Regenerate.
6843 * doc/Makefile.in: Regenerate.
6845 2000-06-20 H.J. Lu <hjl@gnu.org>
6847 * Makefile.am: Rebuild dependency.
6848 * Makefile.in: Rebuild.
6850 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6852 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
6853 (elf_backend_copy_indirect_symbol): Map to the new function.
6855 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6857 * archive.c (normalize): Correct pointer comparison when checking
6859 (bfd_bsd_truncate_arname): Likewise.
6860 (bfd_gnu_truncate_arname): Likewise.
6862 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6864 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6865 sections elf_{text,data}_{section,symbol}.
6866 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6867 (_bfd_mips_elf_hide_symbol): New function.
6868 (elf_backend_hide_symbol): Map to the new function.
6869 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6870 definitions of mips_elf_{text,data}_{section,symbol}.
6871 (mips_elf_local_relocation_p): Try to find the direct symbol
6872 based on new check_forced argument.
6873 (mips_elf_calculate_relocation): Use new version of
6874 mips_elf_local_relocation_p.
6875 (mips_elf_relocate_section): Likewise.
6876 (_bfd_mips_elf_relocate_section): Likewise.
6877 (mips_elf_sort_hash_table): Only assert that have enough GOT
6879 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6880 entry if the relocation based on the new external argument.
6881 (mips_elf_create_dynamic_relocation): Assert that we have a
6882 section contents allocated where we can swap out the dynamic
6884 (mips_elf_calculate_relocation): Find the real hash-table entry
6885 correctly by using h->root.root.type. Only create a dynamic
6886 relocation entry if the symbol is defined in a shared library.
6887 Create an external GOT entry for the GOT16 relocation if the
6888 symbol was forced local.
6889 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6890 dynamic index if the symbol was forced local.
6892 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6894 * elf32-mips.c: Fix typos in comments.
6896 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6898 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6901 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6903 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6904 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6905 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6906 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6907 (bfd_elf32_m68hc11_vec): Likewise.
6908 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6909 Supports 68hc11 & 68hc12 at the same time.
6910 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6912 (bfd_elf32_m68hc11_vec): Likewise.
6913 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6914 * archures.c (bfd_m68hc12_arch): Define and register in global list
6915 (bfd_m68hc11_arch): Likewise.
6916 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6917 BFD_RELOC_M68HC11_3B): Define.
6918 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6919 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6921 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6923 * elf_bfd.h (struct elf_backend_data): Add info argument to
6924 elf_backend_hide_symbol.
6925 (_bfd_elf_link_hash_hide_symbol): Likewise.
6926 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6927 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6928 * elflink.h (elf_link_add_object_symbols): Likewise.
6929 (elf_link_assign_sym_version): Likewise.
6931 2000-06-18 H.J. Lu <hjl@gnu.org>
6933 * coff-i386.c (coff_i386_reloc): Don't return in case of
6934 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6935 Compensate PE relocations when linking with non-PE object
6936 files to generate a non-PE executable.
6938 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6940 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6941 GOT entries if we're doing a static link or -Bsymbolic link.
6943 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6945 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6946 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6948 (elf_link_output_relocs): Likewise.
6949 (elf_reloc_link_order): Likewise.
6951 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6953 * archures.c (enum bfd_architecture): #define constants for
6954 PowerPc and RS6000 machine numbers.
6955 * bfd-in2.h: Regenerate.
6956 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6957 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6958 and RS6000 machine numbers using #defined constants from
6960 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6961 machine numbers using #defined constants from archures.c. Add
6962 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6963 64-bit words in 620 entry.
6964 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6966 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6968 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6970 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6971 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6972 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6974 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6976 * bfd-in.h (bfd_family_coff): Define.
6977 * bfd-in2.h: Regenerate.
6978 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6979 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6980 instead of bfd_target_coff_flavour.
6981 * cofflink.c (_bfd_coff_final_link): Likewise.
6982 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6983 exclude XCOFF files.
6984 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6986 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6987 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6988 * xcofflink.c (XCOFF_XVECP): Delete.
6989 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6990 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6991 bfd_xcoff_record_link_assignment,
6992 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6993 check for bfd_target_xcoff_flavour.
6995 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6997 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6999 (read_hdr): New function.
7000 (rs6000coff_core_p): Store mstsave or __context64 struct instead
7001 of trying to extract individual registers. Set abfd->arch_info
7002 to match the architecture that created the core file.
7003 (rs6000coff_get_section_contents): Delete.
7004 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
7006 2000-06-14 H.J. Lu <hjl@gnu.org>
7008 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
7011 2000-06-13 H.J. Lu <hjl@gnu.org>
7013 * configure: Regenerate.
7015 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
7017 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
7020 2000-06-08 David O'Brien <obrien@FreeBSD.org>
7022 * configure.in (VERSION): Update to show this is the CVS mainline.
7024 2000-06-07 Alan Modra <alan@linuxcare.com.au>
7026 * elf32-d10v.c: Include elf/d10v.h
7027 (enum reloc_type): Delete.
7028 * elf32-d30v.c: Include elf/d30v.h
7029 (enum reloc_type): Delete.
7031 * Makefile.am: Run "make dep-am" to regenerate dependencies.
7032 * Makefile.in: Regenerate.
7034 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
7035 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
7036 move HOWTOs into elf_howto_table.
7037 (R_386_standard, R_386_ext_offset): Define.
7038 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
7039 (elf_i386_reloc_type_lookup): Modify calculation of index into
7040 elf_howto_table since we've removed the padding.
7041 (elf_i386_info_to_howto_rel): Likewise.
7042 (elf_i386_relocate_section): Likewise.
7044 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
7046 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
7048 2000-06-05 H.J. Lu <hjl@gnu.org>
7050 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
7051 an error when seeing an undefined symbol with hidden/internal
7052 attribute. It is handled in *_relocate_section ().
7054 2000-06-05 H.J. Lu <hjl@gnu.org>
7056 * elflink.h (elf_fix_symbol_flags): Follow the link for the
7057 indirect symbol for the ELF_LINK_NON_ELF bit.
7058 (elf_link_output_extsym): Don't output the indirect symbol even
7059 if the ELF_LINK_NON_ELF bit is set.
7061 2000-06-01 J.T. Conklin <jtc@redback.com>
7063 * config.bfd (i[3456]86-*-netbsdelf*): New target.
7064 (i[3456]86-*-netbsdaout*): New target.
7065 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
7066 (i[3456]86-*-openbsd*): Likewise.
7068 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
7070 * trad-core.c: From hpux-core.c, include <dirent.h> or
7071 <sys/ndir.h> when possible.
7073 2000-05-31 Ulrich Drepper <drepper@redhat.com>
7075 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
7076 definitions. We must not assume they are sorted in the file
7077 according to their index numbers.
7079 2000-05-31 Alan Modra <alan@linuxcare.com.au>
7081 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
7082 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
7083 R_PARISC_DIR17F are for absolute branches; Handle them as such.
7085 2000-05-30 Nick Clifton <nickc@cygnus.com>
7087 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
7088 80960CA, 80960MC as valid machine names.
7090 2000-05-30 H.J. Lu <hjl@gnu.org>
7092 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
7093 visibility bits if the symbol is undefined. Correctly handle
7094 weak undefined symbols with hidden and internal attributes.
7096 * elflink.h (elf_link_add_object_symbols): Always turn the
7097 symbol into local if it has the hidden or internal attribute.
7099 2000-05-29 Philip Blundell <philb@gnu.org>
7101 * ppcboot.c: Add packed attribute if compiling with GCC.
7103 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
7105 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
7107 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
7109 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
7110 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
7111 corefile on a 64-bit (Sparc Solaris) host. Also clean up
7114 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7116 * Makefile.am: Update dependencies with "make dep-am"
7117 * Makefile.in: Regenerate.
7119 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
7120 bindtextdomain): Replace defines with those from intl/libgettext.h
7121 to quieten gcc warnings.
7123 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
7125 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
7127 * archive.c (normalize, bfd_bsd_truncate_arname,
7128 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
7129 file names with backslashes.
7131 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
7134 * sysdep.h: Include filenames.h.
7136 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7138 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
7140 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7142 * elf64-sparc.c (sparc64_elf_relax_section): New.
7143 (sparc64_elf_relocate_section): Optimize tail call into branch always
7145 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7146 (elf32_sparc_relax_section): New.
7148 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7150 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
7151 Remove unusued variables.
7152 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
7153 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
7154 previous fix, so that shared libs really don't influence targets
7155 extension mask and memory model.
7157 2000-05-23 H.J. Lu <hjl@gnu.org>
7159 * elf64-alpha.c (elf64_alpha_relocate_section): Check
7160 h->root.other not h->other.
7161 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7163 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
7165 2000-05-23 H.J. Lu <hjl@gnu.org>
7167 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
7168 undefined symbol with the non-default visibility attributes.
7169 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
7170 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7171 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7172 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7173 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7174 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7175 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7176 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7177 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7178 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
7179 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7181 2000-05-22 Richard Henderson <rth@cygnus.com>
7183 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
7184 PCREL22, PCREL64I. Zero size of special relocs.
7185 (elf64_ia64_reloc_type_lookup): Likewise.
7186 (USE_BRL, oor_brl, oor_ip): New.
7187 (elf64_ia64_relax_section): New.
7188 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
7189 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
7190 (elf64_ia64_relocate_section): Likewise.
7191 (bfd_elf64_bfd_relax_section): New.
7192 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
7193 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
7194 * bfd-in2.h, libbfd.h: Regenerate.
7196 2000-05-22 Nick Clifton <nickc@cygnus.com>
7198 * configure.in : Add peigen.lo to MIPS PE targets.
7199 * configure: Regenerate.
7201 2000-05-22 Momchil Velikov <velco@fadata.bg>
7203 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
7204 only if it is known for both input and output bfds. Separate
7205 error message strings as in some languages, it may be necessary
7206 to change more than one place in the string to change between
7209 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
7210 endianess checks, call _bfd_generic_verify_endian_match() instead.
7212 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
7214 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
7216 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
7217 endianess before checking bfd flavours.
7219 2000-05-22 H.J. Lu <hjl@gnu.org>
7221 * elflink.h (elf_link_output_extsym): Clear the visibility
7222 field for symbols not defined locally.
7224 2000-05-18 Alan Modra <alan@linuxcare.com.au>
7226 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
7227 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
7228 (hppa_rebuild_insn): Mask immediate bits here instead.
7229 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
7231 2000-05-18 Momchil Velikov <velco@fadata.bg>
7233 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
7234 relocs for an executable, ensure that they are virtual addresses.
7236 2000-05-18 Jeffrey A Law (law@cygnus.com)
7238 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
7240 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
7241 Rick Gorton <gorton@scrugs.lkg.dec.com>
7243 * elflink.h: Add emitrelocations support: when enabled, relocation
7244 information and relocation sections are put into final output
7245 executables. If the emitrelocations flag is set, do the following:
7246 (elf_bfd_final_link): Emit relocation sections.
7247 (elf_link_input_bfd): Compute relocation section contents.
7248 (elf_gc_sections): Don't clean relocation sections.
7250 2000-05-16 Catherine Moore <clm@cygnus.com>
7252 * som.c (som_decode_symclass): Recognize weak symbols.
7254 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
7256 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
7257 read idata section only from dataoff.
7258 (pe_print_edata): Correctly check for valid eat_member.
7260 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7262 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
7264 2000-05-14 Philip Blundell <philb@gnu.org>
7266 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
7268 2000-05-12 Alan Modra <alan@linuxcare.com.au>
7270 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
7272 * peigen.c (pe_print_idata): Look for .idata section and print
7273 info even if data directory has zero entries. Read idata section
7274 starting from dataoff, and adjust all data offsets to suit. Cast
7275 all bfd_vma vars to unsigned long before passing to fprintf.
7276 * peigen.c (pe_print_edata): Similarly, look for .edata section
7277 and print info even if data directory has zero entries. Cast
7278 all bfd_vma vars to unsigned long before passing to fprintf.
7280 From Szabolcs Szakacsits <szaka@F-Secure.com>
7281 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
7282 directory size which may be bogus.
7283 * peigen.c (pe_print_edata): Similarly.
7285 2000-05-09 Alan Modra <alan@linuxcare.com.au>
7287 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
7289 (copy_private_bfd_data): Allow for space possibly taken up by elf
7290 headers when calculating segment physical address from lma.
7292 2000-05-08 Alan Modra <alan@linuxcare.com.au>
7294 * versados.c (versados_scan): Init stringlen and pass_2_done.
7296 * trad-core.c (trad_unix_core_file_p): Return
7297 bfd_error_wrong_format rather than bfd_error_file_truncated.
7299 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
7300 add_data_entry. DataDirectory virtual address is relative.
7301 (pe_print_idata): Account for relative DataDirectory virtual
7302 addresses. Don't trash datasize inside POWERPC_LE_PE code.
7303 (pe_print_edata): Similarly.
7305 From Szabolcs Szakacsits <szaka@F-Secure.com>
7306 * peigen.c (dir_names): Add Delay Import Directory.
7307 (pe_print_idata): Always search for bfd section containing
7308 idata address rather than looking up section name. Print this
7309 section name rather than .idata.
7310 (pe_print_edata): Similarly. Also print some fields as %08lx.
7311 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
7314 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7316 * xcoff.h: Rename to xcoff-target.h
7317 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
7318 * coff-rs6000.c: Ditto.
7319 * coff64-rs6000.c: Ditto.
7320 * coff-pmac.c: Ditto.
7321 * Makefile.in: Regenerate.
7323 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7325 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
7326 Change U802TOC64MAGIC to U803XTOCMAGIC.
7328 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
7330 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
7331 * bfd-in.h: Prototype bfd_elf_get_arch_size.
7332 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
7334 2000-05-04 Alan Modra <alan@linuxcare.com.au>
7336 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
7338 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
7340 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
7341 hidden and internal symbols.
7342 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
7344 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
7345 assign a PLT or GOT entry to symbols with hidden and
7346 internal visibility.
7348 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
7350 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
7352 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
7354 2000-05-02 H.J. Lu <hjl@gnu.org>
7356 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
7359 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7361 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
7362 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
7364 * Makefile.in: Regenerate.
7366 2000-05-01 Jim Wilson <wilson@cygnus.com>
7368 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
7369 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
7370 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
7371 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
7372 * Makefile.in: Rebuild.
7374 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7376 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
7377 doesn't work very well.
7379 * elf-hppa.h (elf_hppa_internal_shdr): Define.
7380 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
7381 Set hdr->s_type to 1 if ARCH_SIZE == 32.
7382 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
7383 (elf_hppa_info_to_howto): Likewise.
7384 (elf_hppa_info_to_howto_rel): Likewise.
7385 (elf_hppa_reloc_type_lookup): Likewise.
7386 (elf_hppa_is_local_label_name): Likewise.
7387 (elf_hppa_fake_sections): Likewise.
7388 (elf_hppa_final_write_processing): Likewise.
7389 (elf_hppa_howto_table): Fully initialise all entries.
7390 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
7391 (elf_hppa_info_to_howto): Likewise.
7392 (elf_hppa_info_to_howto_rel): Likewise.
7393 (elf_hppa_reloc_type_lookup): Likewise.
7394 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
7395 elf_hppa_unmark_useless_dynamic_symbols,
7396 elf_hppa_remark_useless_dynamic_symbols,
7397 elf_hppa_record_segment_addrs, elf_hppa_final_link,
7398 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
7399 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
7400 elf32-hppa.c mess is cleaned up.
7401 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
7402 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
7403 r_field then call hppa_field_adjust inline func with variable
7404 r_field arg, instead call hppa_field_adjust with fixed arg.
7405 In case R_PARISC_PCREL22F, don't set r_field.
7406 (elf_hppa_relocate_insn): Change args and return type to unsigned
7407 int. Call re_assemble_* funcs to do the work.
7409 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
7412 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
7414 (sign_extend): Mask first before sign extending.
7415 (low_sign_extend): Rewrite without condition expression.
7416 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
7417 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
7418 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7419 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
7420 result as function return value rather than through pointer arg.
7421 Accept unsigned int args, and return unsigned int.
7422 (re_assemble_3): New. Combines function of dis_assemble_3 with
7423 re-assembly of opcode and immediate.
7424 (re_assemble_12): Likewise.
7425 (re_assemble_16): Likewise.
7426 (re_assemble_17): Likewise.
7427 (re_assemble_21): Likewise.
7428 (re_assemble_22): Likewise.
7429 (hppa_field_adjust): Rewrite and document, paying attention to
7430 size of types and signed/unsigned issues.
7431 (get_opcode): Shift before masking.
7432 (FDLW): Rename to FLDW.
7433 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
7434 (hppa_rebuild_insn): Change args and return value to unsigned
7435 int. Make use of re_assemble_*. Correct case 11.
7437 * dep-in.sed: Handle ../opcodes/.
7438 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
7439 elf64-hppa.h, hppa_stubs.h, xcoff.h.
7440 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
7441 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
7442 elfarm-nabi.lo dependencies outside of auto-dependency area.
7443 Regenerate dependencies.
7444 * Makefile.in: Regenerate.
7446 * configure.in (TRAD_HEADER): Test non-null before
7448 * configure: Regenerate.
7450 * reloc.c: Fix mis-spelling in comment.
7452 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7454 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7455 * vms.c (vms_openr_next_archived_file): Return NULL.
7457 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7459 * coffcode.h Copy changes mistakenly done to libcoff.h in
7462 2000-04-29 Andreas Jaeger <aj@suse.de>
7464 * libbfd-in.h: Correctly check GCC version.
7465 * bfd-in.h: Likewise.
7466 * libhppa.h: Likewise.
7467 * libbfd.h: Regenerate.
7468 * bfd-in2.h: Regenerate.
7470 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7472 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7473 coffdu-rs6000.{lo,c}.
7474 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7476 * Makefile.in: Regenerate.
7477 * xcoff.h: New file.
7478 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7479 * coff-rs6000.c: Move all declarations and defines that are
7480 common to the xcoff backends into xcoff.h
7481 * coff64-rs6000.c: Ditto,
7483 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7485 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7486 _bfd_coff_force_symnames in strings and
7487 _bfd_coff_debug_string_prefix_length to their default values.
7488 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7490 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7492 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7493 _bfd_coff_force_symnames in strings and
7494 _bfd_coff_debug_string_prefix_length to their default values.
7496 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7498 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7499 Check local_got_refcounts before dereferencing.
7501 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7502 before deciding we don't need R_PPC_PLT32 relocation.
7503 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7506 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7508 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7510 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7511 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7512 (elf_i386_relocate_section): Allow for .plt to go missing.
7513 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7514 can use a relative reloc for got as elf_i386_relocate_section.
7515 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7517 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7519 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7521 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7523 * Makefile.am (coff64-rs6000.lo): New rule.
7524 * Makefile.in: Regenerate.
7525 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
7526 xcoff_is_local_label_name, xcoff_rtype2howto,
7527 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
7528 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
7529 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
7530 (NO_COFF_SYMBOLS): Define.
7531 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
7532 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
7534 (MINUS_ONE): New macro.
7535 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7537 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7538 coff_SWAP_aux_out): Map to the new functions.
7539 * coff64-rs6000.c: New file.
7540 * libcoff.h (bfd_coff_backend_data): Add new fields
7541 _bfd_coff_force_symnames_in_strings and
7542 _bfd_coff_debug_string_prefix_length.
7543 (bfd_coff_force_symnames_in_strings,
7544 bfd_coff_debug_string_prefix_length): New macros for above fields.
7545 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
7546 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7547 of using coff_swap_sym_in directly.
7548 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
7549 (coff_set_flags) Set magic for XCOFF64.
7550 (coff_compute_section_file_positions): Add symbol name length to
7551 string section length if bfd_coff_debug_string_prefix_length is
7553 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
7554 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
7555 using coff_swap_lineno_in directly.
7556 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
7557 and _bfd_coff_debug_string_prefix_length fields.
7558 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
7559 symbol names into strings table when
7560 bfd_coff_force_symnames_in_strings is true.
7561 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
7562 SET_RELOC_VADDR): New macros.
7563 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7564 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
7566 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
7567 changes within RS6000COFF_C specific code.
7568 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7569 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
7570 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7571 Extend existing hack on target name.
7572 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
7574 * coff-tic54x.c (ticof): Keep up to date with new fields
7575 in bfd_coff_backend_data.
7576 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
7577 targ_selvecs to include rs6000coff64_vec for rs6000.
7578 * configure.in: Add rs6000coff64_vec case.
7579 * cpu-powerpc.c: New bfd_arch_info_type.
7581 2000-04-24 Jeffrey A Law (law@cygnus.com)
7583 * config.bfd: Only disable elf32-hppa vectors, not all of the
7584 BSD and OSF configuration support. Provide (disabled) clauses
7586 * configure.in: Add clause for PA64 support.
7587 * configure: Rebuilt.
7589 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
7590 (bfd_elf64_hppa_vec): Declare.
7592 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
7593 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
7594 (elf64-hppa.lo): Add dependencies.
7595 * Makefile.in: Rebuilt.
7597 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
7599 2000-04-24 Jason Eckhardt <jle@cygnus.com>
7601 * libhppa.h (dis_assemble_16): New function.
7602 (pa_arch): Added pa20w element.
7604 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
7606 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
7607 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
7608 bfd_elf64_slurp_reloc_table.
7610 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
7611 definitions to get external names.
7612 (elf_write_relocs): Renamed from write_relocs and make global.
7613 (elf_slurp_reloc_table): Make global.
7614 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
7616 * archive.c (hpux_uid_gid_encode): New function.
7617 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
7618 defined and the ID is greater than 99999.
7619 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
7620 special uid/gid fields into 32 bit values.
7622 2000-04-21 Matthew Green <mrg@cygnus.com>
7624 * config.bfd: Add NetBSD/sparc64 support.
7626 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
7627 David Mosberger <davidm@hpl.hp.com>
7628 Timothy Wall <twall@cygnus.com>
7629 Jim Wilson <wilson@cygnus.com>
7631 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
7632 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
7633 (BFD64_BACKENDS): Add elf64-ia64.lo.
7634 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
7635 (cpu-ia64.lo, elf64-ia64.lo): New rules.
7636 * Makefile.in: Rebuild.
7637 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
7638 (bfd_ia64_arch): Declare.
7639 (bfd_archures_list): Add bfd_ia64_arch.
7640 * bfd-in2.h: Rebuild.
7641 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
7642 * configure: Rebuild.
7643 * configure.host: (ia64-*-linux*): New host.
7644 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
7645 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
7646 * elf.c (prep_headers): Add bfd_arch_ia64.
7647 * libbfd.h: Rebuild.
7648 * reloc.c: Add IA-64 relocations.
7649 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
7651 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
7652 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
7654 2000-04-21 Richard Henderson <rth@cygnus.com>
7656 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
7657 contents when performing a partial link.
7658 (bfd_elf_d30v_reloc_21): Likewise.
7660 2000-04-20 H.J. Lu <hjl@gnu.org>
7662 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
7663 patch to symbols defined by a shared object.
7664 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
7666 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7669 * dwarf2.c (concat_filename): Avoid string literal concatenation.
7670 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
7672 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
7674 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
7675 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
7676 (coff-ia64.lo): Add dependency.
7677 * Makefile.in: Regenerate.
7678 * coff-ia64.c: New file.
7679 * efi-app-ia32.c: Ditto.
7680 * efi-app-ia64.c: Ditto.
7681 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
7682 (coff_set_flags): Ditto.
7683 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
7684 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
7685 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
7686 * configure: Regenerate.
7687 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
7688 (PUT_OPTHDR_IMAGE_BASE): Ditto.
7689 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7690 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7691 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7692 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7693 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7694 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7695 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7696 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7697 (GET_PDATA_ENTRY): Ditto.
7698 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
7699 data_start. Use above macros to read fields that are 64 bit wide for
7700 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
7701 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
7702 FileAlignment and SectionAlignment to minimum alignment if they
7704 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
7705 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
7706 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
7707 Use above macros to write fields that are 64 bit wide for
7709 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
7710 5*4 otherwise. This should be right for IA-32 and IA-64, but may
7711 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
7712 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
7713 begin address, end address, and unwind info address only. Use
7714 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
7716 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
7717 HIGH3ADJ relocation names.
7718 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
7719 * targets.c: Declare bfd_efi_app_ia32_vec and
7720 bfd_efi_app_ia64_vec.
7721 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
7722 bfd_efi_app_ia64_vec.
7724 2000-04-17 Timothy Wall <twall@cygnus.com>
7726 * bfd-in2.h: Add prototypes for tic54x load page access.
7727 * bfd-in.h: Regenerate.
7728 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
7729 in customized _set_arch_mach function.
7730 * coffcode.h (coff_set_alignment_hook): Set section load page if
7731 the appropriate macro is defined.
7732 (write_object_contents): Read section load page.
7734 2000-04-13 Alan Modra <alan@linuxcare.com.au>
7736 * elf32-hppa.h: Update copyright date.
7738 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
7739 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
7741 * elf32-d30v.c (MAX32): Don't use LL suffix.
7742 (MIN32): Define in terms of MAX32.
7743 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
7745 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
7748 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
7750 2000-04-12 Alan Modra <alan@linuxcare.com.au>
7752 * dep-in.sed: Match space before file name, not after.
7753 * Makefile.am: Regenerate dependencies.
7754 * Makefile.in: Regenerate.
7756 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
7757 case, allow address wrap-around stupidly removed 2000-03-17. Sign
7758 extend without an if statement.
7760 2000-04-11 Alan Modra <alan@linuxcare.com.au>
7762 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
7764 * elf32-mips.c (gprel16_with_gp): Likewise.
7765 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
7766 here using -0x40000, not (int)0xfffc0000.
7767 (elf32_hppa_size_of_stub): Likewise.
7769 2000-04-11 Timothy Wall <twall@cygnus.com>
7771 * coff-tic54x.c: Now builds with all targets.
7772 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
7773 * Makefile.in: Regenerate.
7774 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
7775 unitialized variable.
7777 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
7779 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
7780 --enable-build-warnings option.
7781 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
7782 * Makefile.in, configure: Re-generate.
7784 2000-04-07 Nick Clifton <nickc@cygnus.com>
7786 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
7787 BFD_RELOC_THUMB_PCREL_BLX.
7789 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7790 R_ARM_XPC25 and R_ARM_THM_PC22.
7792 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
7793 R_ARM_XPC25 and R_ARM_THM_XPC22.
7794 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
7795 R_ARM_[XPC25|THM_XPC22].
7797 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
7798 elf/arm-oabi.h to elf/arm.h
7800 * Makefile.am: Fix dependency for elfarm-oabi.c
7801 * Makefile.in: Regenerate.
7803 * bfd-in2.h: Regenerate.
7804 * libbfd.h: Regenerate.
7806 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7808 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
7809 and restore it on failure. Release newly allocated tdata on
7812 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
7814 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
7815 (decode_line_info): Set it. Report error if unit->line_offset is
7816 equal to or larger than it.
7818 2000-04-07 Timothy Wall <twall@cygnus.com>
7820 * targets.c: Added vecs for tic54x.
7821 * reloc.c: Added relocs for tic54x.
7822 * libbfd.h: Regenerated.
7823 * configure: Add TI COFF vecs for tic54x.
7824 * configure.in: Ditto.
7825 * config.bfd (targ_cpu): Recognize new tic54x target.
7826 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
7827 * bfd-in2.h: Add tic54x target and relocations.
7828 * Makefile.am, Makefile.in: Add tic54x target.
7829 * archures.c (bfd_archures_list): Add tic54x target.
7830 * coff-tic54x.c: New.
7831 * cpu-tic54x.c: New.
7833 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7835 * elfcore.h (elf_core_file_p): call backend_object_p which
7836 thereby gets an opportunity to update the arch/machine type.
7838 2000-04-06 Timothy Wall <twall@cygnus.com>
7840 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
7841 class. Handle SEC_CLINK and SEC_BLOCK flags.
7842 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
7843 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
7845 2000-04-06 Nick Clifton <nickc@cygnus.com>
7847 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
7848 EF_INTERWORK if this is an unknown EABI.
7849 (elf32_arm_merge_private_bfd_data): Check EABI version
7850 numbers. Only check EF_xxx flags if the EABI version number
7852 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
7853 if the EABI version number is unknown.
7854 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
7855 if the EABI version number is unknown.
7857 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7859 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
7860 BFD_RELOC_SH_LOOP_END.
7861 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
7862 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7863 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7864 (sh_elf_reloc_loop): New function.
7865 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7867 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7868 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7869 * bfd-in2.h, libbfd.h: Regenerate.
7871 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7873 * po/bfd.pot: Regenerate.
7875 * Makefile.am: Remove extraneous mkdep comment.
7876 (MKDEP): Use gcc -MM rather than mkdep.
7877 (DEP): Quote when passing vars to sub-make. Add warning
7879 (DEP1): Rewrite for "gcc -MM".
7880 (CLEANFILES): Add DEP2.
7881 Update dependencies.
7882 * Makefile.in: Regenerate.
7884 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7886 * configure.in: Added corefile support for AIX 4.3. In particular,
7887 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7888 compiling rs6000-core.c.
7889 * configure: Regenerated.
7891 2000-04-03 H.J. Lu <hjl@gnu.org>
7893 * cache.c (bfd_open_file): Unlink the output file only if
7894 it has non-zero size.
7896 2000-04-01 Ken Block USG <block@zk3.dec.com>
7898 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7899 relative relocations for non-loaded sections in shared objects.
7900 (elf64_alpha_check_relocs): Similarly.
7902 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7904 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7905 BFD_RELOC_16 to switch for extended relocs.
7906 (MY_swap_ext_reloc_in): New.
7907 (MY_swap_ext_reloc_out): New.
7908 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7909 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7910 (NAME(aout,squirt_out_relocs)): Similarly use
7911 MY_swap_ext_reloc_out.
7912 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7914 2000-04-03 Kazu Hirata <kazu@hxi.com>
7916 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7917 the R_PCRWORD_B case.
7919 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7921 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7925 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7927 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7928 HOWTO references to bfd_elf_generic_reloc, that have
7929 partial_inplace == true, now use the new function. The function
7930 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7931 extends its fixes to the R_M32R_{16,24,32} relocs.
7932 The new logic in m32r_elf_lo16_reloc() has been removed, and
7933 it instead calls the new routine to obtain that functionality.
7935 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7937 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7938 elf32_avr_check_relocs, avr_final_link_relocate,
7939 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7940 elf32_avr_object_p): Add prototypes.
7941 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7942 (bfd_elf_avr_final_write_processing): Make static.
7944 2000-03-27 Denis Chertykov <denisc@overta.ru>
7946 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7947 * archures.c (bfd_architecture): Add AVR architecture.
7948 (bfd_archures_list): Add reference to AVR architecture info.
7949 * elf.c (prep_headers): Handle bfd_arch_avr.
7950 * reloc.c: Add various AVR relocation enums.
7951 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7953 * Makefile.am: Add support for AVR elf.
7954 * configure.in: Likewise.
7955 * config.bfd: Likewise.
7956 * Makefile.in: Regenerate.
7957 * configure: This too.
7958 * bfd-in2.h: And this.
7959 * libbfd.h: And this.
7961 2000-03-24 H.J. Lu <hjl@gnu.org>
7963 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7964 (elf64_alpha_find_reloc_at_ofs): Likewise.
7966 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7968 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7969 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7970 allowable range used to be -2**(n-1) to 2**n-1.
7971 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7972 "boolean overflow" with "bfd_reloc_status_type flag".
7974 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7976 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7978 2000-03-14 Kazu Hirata <kazu@hxi.com>
7980 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7981 of shrinks properly, including the last reloc.
7983 2000-03-13 Kazu Hirata <kazu@hxi.com>
7985 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7988 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7990 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7991 a format mismatch rather than an "error" from bfd_read such as
7992 bfd_error_file_truncated.
7994 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7996 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7997 sign-extension and big-endian compensation for
7998 R_MIPS_64 even in ld -r.
8000 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
8002 * elf32-mips.c (mips_elf_next_relocation): Rename from
8003 mips_elf_next_lo16_relocation, and generalize to look
8004 for any relocation type.
8005 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
8006 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
8007 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
8008 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
8009 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
8010 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
8011 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
8012 (mips_rtype_to_howto): Likewise.
8013 (mips_elf_calculate_relocation): Handle new relocs.
8014 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
8015 are paired. The addend for R_MIPS_GNU_REL16_S2
8016 is shifted right two bits.
8018 2000-03-10 Alan Modra <alan@linuxcare.com.au>
8020 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
8021 comment, and ensure it doesn't happen again.
8022 (bfd_install_relocation): Same here.
8023 (_bfd_relocate_contents): Don't bother assigning unused signmask
8024 shift result. Fix typos in comments.
8025 Remove trailing whitespace throughout file.
8027 2000-03-07 Doug Evans <dje@casey.transmeta.com>
8029 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
8030 * bfd-in2.h: Rebuild.
8032 2000-03-06 Nick Clifton <nickc@cygnus.com>
8034 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
8036 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
8037 (SIZEOF_ILF_STRINGS): Redefine.
8038 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
8039 relative reloc, as opposed to a section relative reloc.
8040 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
8042 Add length of symbol's prefix to string pointer.
8043 Store a pointer to the symbol in the symbol pointer table.
8044 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
8045 Initialise the symbol pointer table.
8046 Store the hint in the Hint/Name table.
8047 Make the jump reloc be symbol realtive, not section relative.
8048 Create an import symbol for imported code.
8050 2000-03-06 Catherine Moore <clm@cygnus.com>
8052 * elf.c (swap_out_syms): Check for null type_ptr.
8054 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
8056 * aout-target.h (MY(write_object_contents)): Remove unused
8057 and unusable "#if CHOOSE_RELOC_SIZE".
8058 * pc532-mach.c (MY(write_object_contents)): Ditto.
8059 * netbsd.h (MY(write_object_contents)): Ditto.
8060 * hp300hpux.c (MY(write_object_contents)): Ditto.
8061 * freebsd.h (MY(write_object_contents)): Ditto.
8062 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
8064 2000-02-29 H.J. Lu <hjl@gnu.org>
8066 * peicode.h (jtab): Make it static.
8068 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
8069 defined and COFF_IMAGE_WITH_PE is not defined.
8070 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
8071 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
8073 2000-03-01 Nick Clifton <nickc@cygnus.com>
8075 * coff-arm.c (bfd_arm_process_before_allocation): Make
8076 'symndx' signed to prevent compile time warning.
8078 * coff-mcore.c: Remove unused prototype for pe_object_p.
8080 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
8081 functions that are not used when COFF_IMAGE_WITH_PE is
8083 (struct sh_opcode): Change type of 'flags' field to unsigned
8084 long so that it can hold the USESAS flag.
8086 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
8088 * elf-m10300.c (mn10300_elf_relax_section): Initialise
8091 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
8093 Remove unusued variables and code.
8094 (elf_backend_add_symbol_hook): Fix prototype.
8096 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
8099 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
8102 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
8104 Remove unusued variables and code.
8105 (elf_backend_add_symbol_hook): Fix prototype.
8107 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
8109 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
8110 to unused function parameter.
8112 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
8114 Use EMPTY_HOWTO to initialise empty howto slots.
8115 Remove unused variables.
8117 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
8119 2000-03-01 H.J. Lu <hjl@gnu.org>
8121 * aoutx.h (aout_link_input_section_std): Pass "true" to
8122 the undefined_symbol callback.
8123 (aout_link_input_section_ext): Likewise.
8124 * bout.c (get_value): Likewise.
8125 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
8126 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
8128 (alpha_relocate_section): Likewise.
8129 * coff-arm.c (coff_arm_relocate_section): Likewise.
8130 * coff-i960.c (coff_i960_relocate_section): Likewise.
8131 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
8132 * coff-mips.c (mips_relocate_section): Likewise.
8133 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
8134 * coff-sh.c (sh_relocate_section): Likewise.
8135 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
8136 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
8137 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
8138 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
8139 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
8140 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
8141 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
8142 * elf32-i370.c (i370_elf_relocate_section): Likewise.
8143 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
8144 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
8145 * elf32-sh.c (sh_elf_relocate_section): Likewise.
8146 * elf32-v850.c (v850_elf_relocate_section): Likewise.
8147 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
8148 * elflink.h (elf_link_output_extsym): Likewise.
8149 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
8150 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
8151 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
8153 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
8154 undefined_symbol callback when building shared library with
8155 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
8157 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
8158 * elf32-i386.c (elf_i386_relocate_section): Likewise.
8159 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
8160 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
8161 (elf32_mips_get_relocated_section_content): Likewise.
8162 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
8163 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
8164 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
8165 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
8167 2000-02-28 Nick Clifton <nickc@cygnus.com>
8169 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
8170 * Makefile.in: Regenerate.
8172 * configure.in: Add support for mips and sh pe vectors.
8173 * configure: regenerate.
8175 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
8178 * targets.c: Add mips and sh pe vectors.
8180 * libpei.h (coff_final_link_postscript): Only define if not
8183 * coffcode.h: Add support for WinCE magic numbers.
8185 * peigen.c (pe_print_reloc): Update comment and rearrange
8186 appending of newline character.
8188 * peicode.h: Add support for Image Library Format.
8189 (pe_ILF_vars): Structure containing data used by ILF code.
8190 (pe_ILF_make_a_section): New function. Create a section based
8192 (pe_ILF_make_a_reloc): New function. Create a reloc based on
8194 (pe_ILF_make_a_symbol): New function. Create a symbol based
8196 (pe_ILF_save_relocs): New function. Store the relocs created
8197 by pe_ILF_make_a_reloc in a section.
8198 (pe_ILF_build_a_bfd): New function. Create a BFD describing
8200 (pe_ILF_object_p): New function. Return a bfd_target pointer
8202 (pe_bfd_object_p): If an ILF object is detected call
8203 pe_ILF_object_p on it.
8205 * coff-arm.c: Add support for WinCE relocs which are different
8206 from normal ARM COFF relocs.
8207 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
8209 * coff-sh.c: Add support for sh-pe target.
8210 * pe-sh.c: New file. Support code for sh-pe target.
8211 * pei-sh.c: New file. Support code for sh-pe target.
8213 * pe-mips.c: New file. Support code for mips-pe target.
8214 * pei-mips.c: New file. Support code for mips-pe target.
8216 2000-02-27 Jakub Jelinek <jakub@redhat.com>
8218 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
8219 architecture if the object causing the bump is dynamic.
8220 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
8221 and also don't it for memory ordering.
8222 (sparc64_elf_write_relocs): Take src_rela out of the loop.
8224 2000-02-27 Ian Lance Taylor <ian@zembu.com>
8226 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
8227 calling bfd_get_section_size_before_reloc.
8228 (decode_line_info): Likewise.
8229 (_bfd_dwarf2_find_nearest_line): Likewise.
8231 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
8233 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
8234 name of the libtool directory.
8235 * Makefile.in: Rebuild.
8237 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
8239 * som.c (SOM_HOWTO): Define.
8240 (som_hppa_howto_table): Use it.
8242 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8244 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
8246 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
8248 2000-02-24 Catherine Moore <clm@cygnus.com>
8250 * som.c (som_misc_symbol_info): Add field
8252 (som_bfd_derive_misc_symbol_info): Initialize
8254 (som_build_and_write_symbol_table): Keep track
8255 of secondary_def field.
8256 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
8257 if secondary_def field is set.
8258 (som_bfd_ar_write_symbol_stuff): Initialize
8261 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
8263 * dwarf2.c (read_address): Read 16-bits addresses.
8264 (parse_comp_unit): Accept addr_size == 2.
8266 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
8268 * bfd-in.h: Update copyright date.
8270 2000-02-23 Linas Vepstas <linas@linas.org>
8272 * cpu-i370.c: New file.
8273 * elf32-i370.c: New file.
8274 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
8275 (bfd_i370_arch): New.
8276 (bfd_archures_list): Add bfd_i370_arch.
8277 * elf.c (prep_headers): Add bfd_arch_i370.
8278 * Makefile.am: Add support for IBM 370 elf.
8279 * config.bfd: Likewise.
8280 * configure.in: Likewise.
8281 * libbfd.h (bfd_reloc_code_real_names): Likewise.
8282 * reloc.c (bfd_reloc_code_type): Likewise.
8283 * targets.c: Likewise.
8285 * Makefile.in: Regenerate.
8286 * configure: Regenerate.
8287 * bfd-in2.h: Regenerate.
8289 2000-02-22 Ian Lance Taylor <ian@zembu.com>
8291 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
8292 invalid relocation types, and change them to R_386_NONE.
8294 2000-02-22 H.J. Lu <hjl@gnu.org>
8296 * elflink.h (elf_link_add_object_symbols): If a version symbol is
8297 not defined, don't add a second ELF_VER_CHR.
8299 * elflink.h (elf_bfd_final_link): Call output_extsym for global
8300 symbols converted to local symbols even when stripping all
8302 (elf_link_output_extsym): Process global symbols converted to
8303 local symbols even if they are being stripped.
8305 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
8307 * archures.c (bfd_octets_per_byte): Return unsigned int.
8308 (bfd_arch_mach_octets_per_byte): Ditto.
8309 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
8311 * section.c (bfd_get_section_size_before_reloc): Quell signed
8312 vs. unsigned comparison warning.
8313 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
8314 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
8315 change. What was I thinking?
8316 * bfd-in2.h: Regenerate.
8318 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
8319 (elf_gc_sections): Same here.
8320 (elf_gc_common_finalize_got_offsets): And here.
8322 2000-02-21 Ian Lance Taylor <ian@zembu.com>
8324 ELF HPPA doesn't work at present; remove it until it does.
8325 * config.bfd: Comment out setting targ_defvec to
8327 * Makefile.am: Rebuild dependencies.
8328 (BFD32_BACKENDS): Remove elf32-hppa.lo.
8329 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
8330 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
8331 * Makefile.in: Rebuild.
8332 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
8334 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8336 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
8337 is no bfd_free(). Revert bfd_free part of previous change.
8339 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8341 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
8343 (coff_compute_section_file_positions): Use bfd_free to pair
8345 (coff_write_object_contents): Likewise.
8347 * coff-rs6000.c (xcoff_howto_table_16): New variable.
8348 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
8350 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
8352 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
8353 (xcoff_ar_file_hdr_big): New structure.
8354 (SIZEOF_AR_FILE_HDR_BIG): New macro.
8355 (xcoff_ar_hdr_big): New structure.
8356 (SIZEOF_AR_HDR_BIG): New macro.
8357 (xcoff_big_format_p): New macro.
8358 (xcoff_ardata_big): New macro.
8359 (arch_xhdr_big): New macro.
8360 (xcoff_slurp_armap): Handle large archives.
8361 (xcoff_archive_p): Detect large archives.
8362 (xcoff_read_ar_hdr): Handle large archives.
8363 (xcoff_openr_next_archived_file): Handle large archives.
8364 (xcoff_generic_stat_arch_elt): Handle large archives.
8365 (xcoff_write_armap_old): Rename from xcoff_write_armap.
8366 (xcoff_write_armap_big): New function.
8367 (xcoff_write_armap): New function, dispatch to _old or _big.
8368 (xcoff_write_archive_contents_old): Rename from
8369 xcoff_write_archive_contents.
8370 (xcoff_write_archive_contents_big): New function.
8371 (xcoff_write_archive_contents): New function, dispatch to _old or
8374 2000-02-18 Richard Henderson <rth@cygnus.com>
8376 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
8377 and hide_symbol members.
8378 (elf_link_hash_copy_indirect): Remove.
8379 (elf_link_hash_hide_symbol): Remove.
8380 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
8381 and elf_backend_hide_symbol.
8382 (_bfd_elf_link_hash_copy_indirect): Declare.
8383 (_bfd_elf_link_hash_hide_symbol): Declare.
8384 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
8385 (_bfd_elf_link_hash_hide_symbol): Likewise.
8386 (_bfd_elf_link_hash_table_init): Don't init killed members.
8387 * elflink.h (elf_link_add_object_symbols): Use the bed function
8388 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
8389 (elf_link_assign_sym_version): Likewise.
8390 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
8391 (elf_backend_hide_symbol): Likewise.
8392 (elfNN_bed): Update for new members.
8394 2000-02-17 Kevin Buettner <kevinb@redhat.com>
8396 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
8397 STACK_END_ADDR): Define for new core file format.
8398 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
8399 for handling the vagaries of the various core file structures used
8400 by AIX over the years.
8401 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
8402 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
8403 core_dumpx structure.
8405 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8407 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
8408 (bfd_mach_sh3_dsp): Likewise.
8409 (bfd_mach_sh4): Reinstate.
8410 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
8411 * bfd-in2.h: Regenerate.
8412 * coff-sh.c (struct sh_opcode): flags is no longer short.
8413 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
8414 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
8415 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
8416 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
8417 (sh_opcodes): No longer const.
8418 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
8419 (sh_insn_uses_reg): Check for USESAS and USESR8.
8420 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
8421 (_bfd_sh_align_load_span): Return early for SH4.
8422 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
8423 Take into account that field b of a parallel processing insn
8424 could be mistaken for a separate insn.
8425 * cpu-sh.c (arch_info_struct): New array elements for
8426 sh2, sh-dsp and sh3-dsp.
8427 Reinstate element for sh4.
8428 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
8429 (SH4_NEXT): Reinstate.
8430 (SH3_NEXT, SH3E_NEXT): Adjust.
8431 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
8432 * elf32-sh.c (sh_elf_set_private_flags): New function.
8433 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
8434 (sh_elf_merge_private_data): New function.
8435 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
8436 (bfd_elf32_bfd_copy_private_bfd_data): Define.
8437 (bfd_elf32_bfd_merge_private_bfd_data): Change to
8438 sh_elf_merge_private_data.
8440 2000-02-13 Richard Henderson <rth@cygnus.com>
8442 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8443 hide_symbol members.
8444 (elf_link_hash_copy_indirect): New.
8445 (elf_link_hash_hide_symbol): New.
8446 * elflink.h (elf_link_add_object_symbols): Break out copy from
8447 indirect new new symbol to elf.c.
8448 (elf_link_assign_sym_version): Break out privatization of
8449 non-exported symbol to elf.c.
8450 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8451 (_bfd_elf_link_hash_hide_symbol): New.
8452 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8454 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8456 * section.c (_bfd_strip_section_from_output): Add info parameter.
8457 If it passed as non-NULL, use it to check whether any input BFD
8458 has an input section which uses this output section. Change all
8460 * bfd-in2.h: Rebuild.
8462 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8463 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8465 * bfd-in2.h: Rebuild.
8467 2000-02-10 Timothy Wall <twall@cygnus.com>
8469 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8470 allow final modifications of swapped-in symbol.
8471 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8472 * coffcode.h (coff_write_relocs): Use macro
8473 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8474 symbol index should be set to -1.
8476 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
8478 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8479 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8480 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8481 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8482 sh_insns_uses_or_sets_freg): New functions.
8483 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8484 * (sh_insns_conflict): Use new functions and new macros to
8485 detect conflicts when two instructions both set same integer registers,
8486 both set same fp register, and both set special register.
8488 2000-02-09 Timothy Wall <twall@cygnus.com>
8490 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8491 swapping in sections, so that the swapping routines have access to
8494 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8496 * coff-go32.c: Update comment. Update copyright.
8498 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8500 * syms.c (bfd_decode_symclass)
8501 Two new class characters were added - 'V' and 'v'. The
8502 meaning of 'W' is now restricted to just weak non-object
8503 symbols. This allows differentiation between, for example,
8504 weak functions vs weak objects. nm for example now dumps:
8506 'w' = weak unresolved
8507 'V' = weak global object
8508 'v' = weak unresolved object
8510 (bfd_is_undefined_symclass): New function. Return true if the
8511 given symbol class represents and undefined/unresolved symbol.
8513 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8516 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8518 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8519 STT_ARM_16BIT flag set, but it is not attached to a data object
8520 return STT_ARM_16BIT so that it will be treated as code by the
8523 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
8525 * coff-i386.c (i3coff_object_p): Remove prototype.
8528 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
8529 to name. Update copyright.
8531 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
8532 assignment to avoid warning. Update copyright.
8534 2000-01-24 Robert Lipe (robertl@sco.com)
8536 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
8537 instead of using GNU C extension.
8539 2000-01-21 Nick Clifton <nickc@cygnus.com>
8541 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
8542 amount from a bfd_in_memory structure.
8543 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
8546 2000-01-14 Nick Clifton <nickc@cygnus.com>
8548 * linker.c (default_indirect_link_order): oops - fix incorrectly
8549 applied patch from Tim Wall.
8551 2000-01-13 Timothy Wall (twall@tiac.net>
8553 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
8554 = scnhsz, filhsz, relsz, aoutsz, etc)
8556 * coffswap.h: Ditto.
8558 2000-01-13 Nick Clifton <nickc@cygnus.com>
8560 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
8561 interwork thumb to arm stub.
8563 2000-01-13 Timothy Wall (twall@tiac.net>
8565 * archures.c (bfd_octets_per_byte): New function: Return
8567 (bfd_arch_mach_octets_per_byte): New function: Return target
8570 * section.c: Distinguish between octets and bytes for usage of
8571 _cooked_size, _raw_size, and output_offset. Clarify
8572 description of bfd_set_section_contents.
8574 * bfd-in2.h: Regenerate.
8576 * coffgen.c: Indicate that the offset parameter is in bytes, not
8579 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
8580 where appropriate to get the octet offset when calling
8581 bfd_set_section_contents.
8582 (bfd_coff_reloc_link_order): Ditto.
8584 * linker.c (bfd_generic_reloc_link_order): Ditto.
8585 (_bfd_default_link_order): Ditto.
8587 * reloc.c (bfd_perform_relocation): Distinguish between octets
8588 and bytes. Use octets when indexing into octet data; use bytes
8589 when calculating target addresses.
8590 (bfd_install_relocation): Ditto.
8592 * srec.c (srec_write_section): Ditto.
8594 2000-01-13 Nick Clifton <nickc@cygnus.com>
8596 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
8597 3 to 2. This allows 4 byte sized sections, which is necessary for
8598 dlltool to build functioning DLLs.
8600 2000-01-10 Philip Blundell <pb@futuretv.com>
8602 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
8603 (arm*-*-conix*): New target.
8605 2000-01-10 Egor Duda <deo@logos-m.ru>
8607 * config.bfd: Include elf32_i386 vector to target list for cygwin
8610 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
8611 * configure.in: Test for structure win32_pstatus_t in
8613 * configure: Regenerate.
8615 * elf.c (elfcore_grok_win32pstatus): New function: process
8616 win32_pstatus_t notes in elf core file.
8617 (elfcore_grok_note): Detect win32_pstatus notes.
8619 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
8621 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
8623 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
8624 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
8626 For older changes see ChangeLog-9899
8632 version-control: never