1 2001-11-13 John Marshall <jmarshall@acm.org>
2 Alan Modra <amodra@bigpond.net.au>
4 * section.c (bfd_make_section_anyway): Don't increment section_id
5 and the BFD's section_count if adding the section failed.
6 * vms.c (vms_new_section_hook): Adjust for bfd_make_section_anyway
9 2001-11-12 Orjan Friberg <orjanf@axis.com>
11 * elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new
14 2001-11-11 H.J. Lu <hjl@gnu.org>
16 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Call
17 _bfd_elf_strtab_size instead of _bfd_stringtab_size.
19 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Change
20 dynstr type to `struct elf_strtab_hash *'.
22 2001-11-11 Hans-Peter Nilsson <hp@bitrange.com>
24 * elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
25 size_t. Rename second i to j.
27 Sat Nov 10 08:56:02 2001 Jeffrey A Law (law@cygnus.com)
29 * binary.c: Include safe-ctype.h after bfd.h and sysdep.h.
31 2001-11-10 Alan Modra <amodra@bigpond.net.au>
33 * elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF
34 relocs into shared libs.
35 * elf32-cris.c (cris_elf_relocate_section): Likewise.
36 * elf32-i370.c (i370_elf_relocate_section): Likewise.
37 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
38 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
39 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
40 * elf32-sh.c (sh_elf_relocate_section): Likewise.
41 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
42 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
43 * elf64-s390.c (elf_s390_relocate_section): Likewise.
44 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
45 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
46 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
48 * elf.c (bfd_section_from_r_symndx): New function.
49 * elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define.
50 (struct sym_sec_cache): New.
51 (bfd_section_from_r_symndx): Declare.
52 (struct bfd_elf_section_data): Change local_dynrel type to PTR.
53 * elflink.h (elf_link_input_bfd): Don't test for removed linkonce
54 relocs when relocatable. Don't zero entire reloc, just zero the
56 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add sym_sec.
57 (elf32_hppa_link_hash_table_create): Init it.
58 (elf32_hppa_check_relocs): Track dynamic relocs needed for local
59 syms on a per-section basis as we do for globals.
60 (elf32_hppa_gc_sweep_hook): Update for local_dynrel change.
61 (allocate_dynrelocs): Warning fix.
62 (elf32_hppa_size_dynamic_sections): Don't allocate relocs when
63 section has been discarded.
64 (elf32_hppa_relocate_section): Don't copy STN_UNDEF relocs
66 * elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec.
67 (elf_i386_link_hash_table_create): Init it.
68 (elf_i386_check_relocs): Track dynamic relocs needed for local
69 syms on a per-section basis as we do for globals.
70 (elf_i386_gc_sweep_hook): Update for local_dynrel change.
72 (allocate_dynrelocs): Warning fix.
73 (elf_i386_size_dynamic_sections): Don't allocate relocs when
74 section has been discarded.
75 (elf_i386_relocate_section): Don't copy STN_UNDEF relocs
77 * elf32-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
78 (elf_s390_link_hash_table_create): Init it.
79 (elf_s390_check_relocs): Track dynamic relocs needed for local
80 syms on a per-section basis as we do for globals.
81 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
83 (allocate_dynrelocs): Warning fix.
84 (elf_s390_size_dynamic_sections): Don't allocate relocs when
85 section has been discarded.
86 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
88 * elf64-ppc.c (struct ppc_link_hash_table): Add sym_sec.
89 (ppc64_link_hash_table_create): Init it.
90 (ppc64_elf_check_relocs): Track dynamic relocs needed for local
91 syms on a per-section basis as we do for globals.
92 (ppc64_elf_gc_sweep_hook): Update for local_dynrel change.
93 (allocate_dynrelocs): Call the correct record_dynamic_dymbol
94 function. Warning fix.
95 (ppc64_elf_size_dynamic_sections): Don't allocate relocs when
96 section has been discarded.
97 (ppc64_elf_relocate_section): Don't copy STN_UNDEF relocs
99 * elf64-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
100 (elf_s390_link_hash_table_create): Init it.
101 (elf_s390_check_relocs): Track dynamic relocs needed for local
102 syms on a per-section basis as we do for globals.
103 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
105 (allocate_dynrelocs): Warning fix.
106 (elf_s390_size_dynamic_sections): Don't allocate relocs when
107 section has been discarded.
108 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
111 2001-11-08 Martin Schwidefsky <schwidefsky@de.ibm.com>
113 * elf32-s390: Major rework that introduces all recent changes to
114 the s390 backends. Get a closer match to elf32-i386.
115 (elf_s390_relocate_section): Make use of dynamic section short-cuts.
116 Localise vars, and delay setting. Better error reporting, replace
117 BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a
118 symbol is not defined in the regular object file and tread the weak
119 definition as the normal one. Don't discard relocs for undefweak or
120 undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in
121 test for avoided copy relocs. Reinstate fudge for unresolved relocs
122 in debugging sections.
123 (elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy
124 reloc processing for weakdefs. Remove redundant casts and aborts.
125 Delay setting of vars until needed. Move creation of dynamic symbols
126 and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace
127 BFD_ASSERT with abort. Discard .plt entries for everything with
129 (elf_s390_check_relocs): Don't allocate space for dynamic relocs,
130 .got or .relgot here but do it in allocate_dynrelocs. Reference count
131 possible .plt and .got entries. Don't test input section SEC_READONLY
132 here to try to avoid copy relocs, and keep dyn_relocs regardless of
133 ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of
134 variables until needed. Remove separate switch stmt for creating .got
135 section. Initialise local_got_refcounts to 0. Cache pointer to
136 "sreloc" section in elf_section_data. Tweak condition under which .got
137 created. Report files with bad relocation section names.
138 (elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that
139 have been forced local. Use same test to decide if we can use a
140 relative reloc for got as elf_s390_relocate_section. Expand SHN_UNDEF
141 comment. Move expressions out of function calls. Replace BFD_ASSERT
143 (elf_s390_finish_dynamic_sections): Migrate common code out of switch
144 statement. Replace BFD_ASSERT with abort.
145 (elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i"
146 to "ibfd". Allocate space for local dyn relocs. Use DF_TEXTREL flag
147 instead of looking up section names for DT_TEXTREL. Replace
148 BFD_ASSERT with abort. Zero out the dynamic allocated content space.
149 Add a comment to remind us that one day this ought to be fixed.
150 (struct elf_s390_link_hash_entry): Rename "root" to "elf".
151 (struct elf_s390_link_hash_table): Likewise.
152 (elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get
153 rid of unnecessary casts.
154 (struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields.
155 Remove "section" field.
156 (elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
157 Reference count possible .plt entries. Don't deallocate .got and
159 (struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs.
161 (struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to
163 (elf_s390_discard_copies): Delete.
164 (elf_s390_link_hash_traverse): Delete.
165 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
166 rather than gc variety).
167 (struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt,
168 srelplt, sdynbss, srelbss fields.
169 (elf_s390_link_hash_table_create): Init them.
170 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
171 (allocate_dynrelocs): New function.
172 (create_got_section): New function.
173 (elf_backend_can_refcount): Define.
174 (elf_backend_copy_indirect_symbol): Define.
175 (elf_s390_copy_indirect_symbol): New function.
176 (elf_s390_create_dynamic_sections): New function.
177 (readonly_dynrelocs): New function.
178 * elf64-s390.c: Likewise.
180 2001-11-07 Jakub Jelinek <jakub@redhat.com>
182 * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo.
183 (BFD32_BACKENDS_CFILES): Add elf-strtab.c.
184 (elf-strtab.lo): Add rule.
185 * Makefile.in: Rebuilt.
186 * configure.in (elf): Add elf-strtab.lo.
187 * configure: Rebuilt.
188 * elf-bfd.h (elf_strtab_hash): Forward declare.
189 (struct elf_link_hash_table): Change dynstr type to
190 struct elf_strtab_hash *.
191 (struct elf_obj_tdata): Change strtab_ptr type to
192 struct elf_strtab_hash *.
193 (_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add,
194 _bfd_elf_strtab_addref, _bfd_elf_strtab_delref,
195 _bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size,
196 _bfd_elf_strtab_offset, _bfd_elf_strtab_emit,
197 _bfd_elf_strtab_finalize): New prototypes.
198 * elf-strtab.c: New file.
199 * elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add
200 and _bfd_elf_strtab_size instead of _bfd_stringtab calls.
201 Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or
202 when forcing dynamic symbol to local.
203 (elf_link_create_dynamic_sections): Call
204 _bfd_elf_strtab_init instead of elf_stringtab_init.
205 (elf_link_record_local_dynamic_symbol): Likewise, change
206 dynstr type. Use _bfd_elf_strtab functions instead of
207 _bfd_stringtab calls.
208 (size_dynamic_sections): Use _bfd_elf_strtab functions instead of
209 _bfd_stringtab calls. For DT_RUNPATH and Verdaux vda_name fields,
210 call _bfd_elf_strtab_addref. Call elf_finalize_dynstr.
211 (elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions.
212 (elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing
213 dynamic symbol to local.
214 (elf_link_assign_sym_version): Likewise.
215 (elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of
217 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr
218 type. Call _bfd_elf_strtab functions instead of
219 _bfd_stringtab functions.
220 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
221 * elf.c (_bfd_elf_init_reloc_shdr): Likewise.
222 (elf_fake_sections): Likewise.
223 (assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs
224 on shstrtab hash table, call _bfd_elf_strtab_addref on each section
225 name in the output. Call _bfd_elf_strtab_finalize and
226 use _bfd_elf_strtab_offset to finalize sh_name section header fields.
227 (_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size
228 instead of _bfd_stringtab_size.
229 (prep_headers): Change shstrtab type.
230 Use _bfd_elf_strtab calls instead of _bfd_stringtab calls.
232 2001-11-07 Alan Modra <amodra@bigpond.net.au>
234 * elflink.h (elf_link_input_bfd <removed linkonce relocs>): Fix
235 bad symtab segfault. Formatting and warning fixes. Improve
236 error message for internationalisation.
238 2001-11-06 H.J. Lu (hjl@gnu.org)
240 * elflink.h (elf_link_input_bfd): Complain about relocs against
243 2001-11-03 Alan Modra <amodra@bigpond.net.au>
245 * elfxx-target.h (elfNN_bed): Correct want_got_sym, want_dynbss order.
247 2001-11-02 H.J. Lu <hjl@gnu.org>
249 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
250 dynamic relocation for symbols defined in regular objects when
251 creating executables.
253 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
255 * configure.in (ALL_LINGUAS): Add "fr".
256 * configure: Regenerate.
257 * po/fr.po: New file.
259 * coffgen.c (coff_object_p): Add comment to H.J.'s recent patch.
261 2001-11-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
263 * som.c (setup_sections): Initialize subspace_sections.
265 2001-11-02 H.J. Lu (hjl@gnu.org)
267 * coffgen.c (coff_object_p): Return 0 if the header is too big.
269 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
271 * elfcore.h (elf_core_file_p): Preserve and clear abfd section
272 information. Save bfd arch and mach values. Restore on error.
274 2001-11-02 Alan Modra <amodra@bigpond.net.au>
276 * elf32-hppa.c (hppa_handle_PIC_calls): Rename to mark_PIC_calls.
277 (allocate_PIC_calls): New function.
278 (allocate_dynrelocs): Don't allocate pic_call plt entries here.
279 (elf32_hppa_size_dynamic_sections): Call allocate_PIC_calls.
280 (elf32_hppa_finish_dynamic_symbol): Remove dead code.
282 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
284 * elf32-cris.c (cris_elf_grok_prstatus): New function.
285 (cris_elf_grok_psinfo): New function.
286 (elf_backend_grok_prstatus): Define.
287 (elf_backend_grok_psinfo): Define.
289 2001-11-01 Alan Modra <amodra@bigpond.net.au>
291 * elf64-ppc.c (ppc64_elf_relocate_section): Correct branch
294 2001-10-31 Chris Demetriou <cgd@demetriou.com>
296 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Handle PC-relative
297 relocations properly.
299 2001-10-31 H.J. Lu <hjl@gnu.org>
301 * elflink.h (elf_link_output_extsym): Don't clear the visibility
302 field for relocateable.
304 2001-11-01 Alan Modra <amodra@bigpond.net.au>
306 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count
307 .plt relocs in DT_RELASZ.
309 2001-10-29 NIIBE Yutaka <gniibe@m17n.org>
311 * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
314 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
316 * targets.c: Fix typo: bfd_mmo_mmix_vec => bfd_mmo_vec.
318 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
320 * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo.
321 (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo.
322 (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c.
323 Regenerate dependencies.
324 * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors.
325 * config.bfd: [BFD64] (mmix-*-*): New case.
326 * cpu-mmix.c, mmo.c, elf64-mmix.c: New files.
327 * archures.c (enum bfd_architecture): Add bfd_arch_mmix.
328 (bfd_mmix_arch): Declare.
329 (bfd_archures_list): Add bfd_mmix_arch.
330 * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour.
331 (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare.
332 (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and
334 * reloc.c: Add MMIX relocations.
335 * bfd.c (struct _bfd, tdata): Add mmo_data.
336 * Makefile.in: Regenerate.
337 * configure: Regenerate.
338 * libbfd.h: Regenerate.
339 * bfd-in2.h: Regenerate.
340 * configure: Rebuild.
342 2001-10-30 Richard Earnshaw (rearnsha@arm.com)
344 * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
345 p_paddr of the segment that contains it.
346 (copy_private_bfd_data): If the LMA for a segment is known, use it
347 for matching sections to segments.
348 (assign_file_positions_for_segments): Use the LMA when adjusting
349 for inter-section alignment padding.
351 2001-10-29 Kazu Hirata <kazu@hxi.com>
353 * README: Fix a typo.
355 2001-10-24 Richard Henderson <rth@redhat.com>
357 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
358 timestamp to time_t for ctime.
360 2001-10-24 Hans-Peter Nilsson <hp@axis.com>
362 * elf32-cris.c (cris_reloc_type_lookup): Change loop to use
363 unsigned, increasing index.
365 2001-10-23 H.J. Lu <hjl@gnu.org>
367 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
368 m != NULL before accessing it.
370 2001-10-23 Alan Modra <amodra@bigpond.net.au>
372 * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing
373 bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup
374 doesn't accept BFD_RELOC_* on some targets, eg. hppa.
376 * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs.
377 (hppa_link_hash_newfunc): Likewise.
378 (elf32_hppa_finish_dynamic_symbol): Likewise.
379 (allocate_dynrelocs): Always allocate .got relocs if shared.
380 (elf32_hppa_relocate_section): Output them too. Similarly
381 consolidate .plt reloc code, and no longer initialise .plt
382 when a reloc is output.
383 (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries
384 when no reloc is output.
386 From Herbert Xu <herbert@gondor.apana.org.au>
387 * elf32-hppa.c (final_link_relocate): Call bfd_set_error for
388 unreachable branches.
390 2001-10-22 H.J. Lu <hjl@gnu.org>
392 * configure.in (WIN32LIBADD): Use -L../libiberty for
394 * configure: Rebuild.
396 2001-10-21 H.J. Lu <hjl@gnu.org>
398 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
399 if shared library is enabled only for Linux hosts.
400 * configure: Rebuild.
402 2001-10-21 H.J. Lu <hjl@gnu.org>
404 * configure.in (WIN32LIBADD): Check if PICFLAG is defined in
405 ../libiberty/Makefile instead of $enable_shared.
406 * configure: Rebuild.
408 2001-10-21 H.J. Lu <hjl@gnu.org>
410 * elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover
413 2001-10-20 H.J. Lu <hjl@gnu.org>
415 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
416 if shared library is enabled.
417 * configure: Rebuild.
419 2001-10-20 H.J. Lu <hjl@gnu.org>
421 * elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
423 2001-10-19 H.J. Lu <hjl@gnu.org>
425 * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
428 2001-10-18 H.J. Lu <hjl@gnu.org>
430 * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
431 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
433 2001-10-18 Jakub Jelinek <jakub@redhat.com>
435 * section.c (_bfd_strip_section_from_output): Don't count
436 SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
438 2001-10-17 Alan Modra <amodra@bigpond.net.au>
440 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
441 Elf_Internal_Shdr.contents now that it's no longer a PTR.
442 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
443 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
444 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
445 * elf32-sh.c (sh_elf_relax_section): Likewise.
446 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
447 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
448 * elf.c (setup_group): Warning fixes.
449 * elflink.h (elf_link_sort_relocs): Likewise.
450 * pdp11.c (slurp_reloc_table): Likewise.
452 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
454 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
457 2001-10-15 H.J. Lu <hjl@gnu.org>
459 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
460 for relocations against discarded link-once section.
462 2001-10-15 Alan Modra <amodra@bigpond.net.au>
464 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
465 bfd_reloc_outofrange and similar errors.
467 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
468 rather than ind->weakdef.
469 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
470 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
471 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
472 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
473 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
475 2001-10-15 Alan Modra <amodra@bigpond.net.au>
476 H.J. Lu <hjl@gnu.org>
478 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
479 counts for aliases instead of aborting.
480 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
481 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
483 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
484 to -1 for non-function symbols.
485 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
486 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
487 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
488 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
489 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
490 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
491 plt.offset instead of plt.refcount when setting to -1.
493 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
495 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
496 like R_ARM_PC24. Include reloc number in error message about
499 2001-10-10 Jakub Jelinek <jakub@redhat.com>
501 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
502 relocations against the same symbol in .rel{,a}.dyn section.
504 2001-10-10 Kazu Hirata <kazu@hxi.com>
506 * aout-encap.c: Fix comment typos.
508 * archive.c: Likewise.
510 * coff64-rs6000.c: Likewise.
511 * coffcode.h: Likewise.
512 * coffgen.c: Likewise.
513 * cofflink.c: Likewise.
514 * coff-mips.c: Likewise.
516 * elf32-m32r.c: Likewise.
517 * libcoff-in.h: Likewise.
518 * libecoff.h: Likewise.
519 * libxcoff.h: Likewise.
520 * nlm32-i386.c: Likewise.
522 * section.c: Likewise.
525 * bfd-in2.h: Regenerate.
526 * libcoff.h: Likewise.
528 2001-10-10 Alan Modra <amodra@bigpond.net.au>
530 * elf.c (elf_map_symbols): Don't create new section symbols; Use
531 existing section syms. Update comments.
532 (copy_private_bfd_data): Formatting fixes.
533 (elfcore_grok_win32pstatus): Likewise.
534 (swap_out_syms): Likewise. Remove unnecessary level of braces.
536 2001-10-09 Alan Modra <amodra@bigpond.net.au>
538 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
540 (elf_group_name): Define.
541 (elf_next_in_group): Define.
542 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
543 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
544 first member section; Instead use elf_next_in_group.
545 (bfd_section_from_shdr): Likewise.
546 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
548 2001-10-09 Alan Modra <amodra@bigpond.net.au>
550 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
551 "next_in_group". Fix gp and gp_size comments.
552 * elf.c (union elf_internal_group): New.
553 (setup_group): New function.
554 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
555 Call setup_group for SHF_GROUP sections.
556 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
557 (elf_fake_sections): Set header type for SEC_GROUP, and header
558 flags for sections in a group.
559 (set_group_contents): New function.
560 (_bfd_elf_compute_section_file_positions): Call it.
561 (assign_section_numbers): Set sh_link for SHT_GROUP.
563 * elflink.h (gc_mark_hook): Handle section groups.
564 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
565 * section.c (SEC_GROUP): Define.
566 (struct sec): Comment fixes.
567 * bfd-in2.h: Regenerate.
569 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
570 out of function args.
571 (_bfd_elf_canonicalize_reloc): Similarly.
572 (_bfd_elf_get_symtab): Here too.
573 (_bfd_elf_canonicalize_dynamic_symtab): And here.
574 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
575 bfd_bread, and remove unnecessary cast.
577 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
579 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
581 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
583 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
586 2001-10-06 Alan Modra <amodra@bigpond.net.au>
588 * bfd.c (bfd_assert): Report bfd version.
589 (_bfd_abort): Likewise.
591 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
592 section sym values. Instead replace any relocs against them with
593 relocs against STN_UNDEF, which has a zero value.
595 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
598 2001-10-05 Jeff Law <law@redhat.com>
600 * som.h (som_exec_data): New field "version_id".
601 * som.c (som_object_setup): Record the version_id if it
603 (som_prep_headers): Do not initialize version_id here.
604 (som_finish_writing): Initialize version_id here.
606 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
608 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
609 according to the MIPS/SGI ELF64 ABI Draft.
610 (mips_elf_sort_hash_table): Typo.
612 2001-10-04 Alan Modra <amodra@bigpond.net.au>
614 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
616 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
617 copying flags if this is a weakdef.
619 2001-10-04 Alan Modra <amodra@bigpond.net.au>
621 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
624 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
625 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
626 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
628 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
629 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
630 backends we configure. Run "make dep-am".
631 (install-data-local): Install symcat.h.
632 * dep-in.sed: Remove symcat.h from dependencies.
633 * Makefile.in: Regenerate.
635 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
637 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
639 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
641 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
642 (elf_backend_default_use_rela_p): New define.
644 2001-10-03 Alan Modra <amodra@bigpond.net.au>
646 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
649 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
650 * configure: Regenerate.
651 * Makefile.am (BFD_H_FILES): Add version.h.
652 * Makefile.in: Regenerate.
653 * po/SRC-POTFILES.in: Regenerate.
655 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
656 elf_backend_copy_indirect_symbol so that backend has a chance to
657 copy other necessary fields.
658 * elf-bfd.h (struct elf_backend_data): Update description of
659 elf_backend_copy_indirect_symbol.
660 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
661 copying flags if this is a weakdef.
662 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
663 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
664 than bfd_link_hash_lookup.
665 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
666 reloc processing for weakdefs.
667 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
668 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
670 2001-10-02 Alan Modra <amodra@bigpond.net.au>
672 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
673 result of ELF64_R_TYPE to enum before using in a switch.
674 (ppc64_elf_gc_mark_hook): Likewise.
675 (ppc64_elf_gc_sweep_hook): Likewise.
676 (ppc64_elf_reloc_type_class): Likewise.
678 2001-10-02 Alan Modra <amodra@bigpond.net.au>
680 * version.h: New file.
681 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
682 (BFD_VERSION_DATE): Define.
683 (BFD_VERSION_STRING): Define.
684 * configure.in: AC_SUBST bfd_version, bfd_version_date and
686 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
687 * bfd-in2.h: Regenerate.
688 * configure: Regenerate.
689 * Makefile.am: Run "make dep-am".
690 * Makefile.in: Regenerate.
692 * bfd-in.h: Include "symcat.h".
693 (CONCAT4): Redefine as for old CAT4.
694 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
695 Add warning regarding whitespace.
696 * aout-cris.c: Likewise.
697 * aout-ns32k.c: Likewise.
698 * aout-sparcle.c: Likewise.
699 * aout-tic30.c: Likewise.
701 * armnetbsd.c: Likewise.
702 * demo64.c: Likewise.
703 * elf-bfd.h: Likewise.
704 * gen-aout.c: Likewise.
705 * host-aout.c: Likewise.
706 * hp300bsd.c: Likewise.
707 * hp300hpux.c: Likewise.
708 * i386aout.c: Likewise.
709 * i386bsd.c: Likewise.
710 * i386dynix.c: Likewise.
711 * i386freebsd.c: Likewise.
712 * i386linux.c: Likewise.
713 * i386lynx.c: Likewise.
714 * i386mach3.c: Likewise.
715 * i386netbsd.c: Likewise.
716 * libaout.h: Likewise.
717 * m68k4knetbsd.c: Likewise.
718 * m68klinux.c: Likewise.
719 * m68klynx.c: Likewise.
720 * m68knetbsd.c: Likewise.
721 * m88kmach3.c: Likewise.
722 * mipsbsd.c: Likewise.
723 * newsos3.c: Likewise.
724 * ns32knetbsd.c: Likewise.
725 * pc532-mach.c: Likewise.
727 * riscix.c: Likewise.
728 * sparclinux.c: Likewise.
729 * sparclynx.c: Likewise.
730 * sparcnetbsd.c: Likewise.
732 * targets.c: Likewise.
733 * vaxnetbsd.c: Likewise.
734 * vms-hdr.c: Likewise.
736 2001-10-01 Alan Modra <amodra@bigpond.net.au>
738 * bfd-in.h: Remove comments regarding generated files.
739 * libbfd-in.h: Likewise.
740 * libcoff-in.h: Likewise.
741 * bfd-in2.h: Regenerate.
742 * libbfd.h: Likewise.
743 * libcoff.h: Likewise.
745 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
746 Hans-Peter Nilsson <hp@bitrange.com>
748 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
749 partial_inplace, matching assembler output. Set src_mask to
751 (sh_elf_relocate_section): Delete misplaced comment.
752 For relocatable linking against section symbol, call
753 _bfd_relocate_contents for partial_inplace relocs and adjust
754 rel->r_addend for others.
755 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
756 bfd_get_32, not at rel->r_addend.
758 2001-09-30 Alan Modra <amodra@bigpond.net.au>
760 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
761 the old dir refcount, so we indirectly set them to init_refcount.
762 Short-circuit asserts when we've just verified they are true.
764 2001-09-29 Alan Modra <amodra@bigpond.net.au>
766 * section.c (struct sec): Remove kept_section.
767 (STD_SECTION): Remove kept_section initialisation.
768 (bfd_make_section_anyway): Here too.
769 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
770 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
771 * elflink.h (elf_link_input_bfd): Set discarded link-once section
772 symbols to zero, and remove all code involved with kept_section
773 and tracking section symbol values.
774 * bfd-in2.h: Regenerate.
775 * configure.in: Bump version number.
776 * configure: Regenerate.
778 2001-09-29 Alan Modra <amodra@bigpond.net.au>
780 * elf64-ppc.c (struct ppc_dyn_relocs): New.
781 (IS_ABSOLUTE_RELOC): Define.
782 (struct ppc_link_hash_entry): New.
783 (struct ppc_link_hash_table): New.
784 (ppc_hash_table): Define.
785 (link_hash_newfunc): New function.
786 (ppc64_elf_link_hash_table_create): New function.
787 (create_got_section): New function.
788 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
789 pointers to our dynamic sections in hash table.
790 (ppc64_elf_copy_indirect_symbol): New function.
791 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
792 dynamic sections. Localise vars. Modify code for refcounts
793 starting from zero. Don't allocate here, or force symbols dynamic.
794 Don't copy all relocs if shared, select ones we need. Add code
795 to track possible copy relocs for non-shared link.
796 (ppc64_elf_gc_mark_hook): Update comment.
797 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
798 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
799 code for reference counting garbage collection. Don't create .plt
800 entries for functions that don't comply with ABI naming convention,
801 and don't allocate .plt space here. Use short-cuts to dynamic
802 sections. If possible, keep dynamic relocations instead of using
803 copy relocs. Remove confused comments.
804 (ppc_adjust_dynindx): Delete.
805 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
806 (allocate_dynrelocs): New function.
807 (readonly_dynrelocs): New function.
808 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
809 space here, and call allocate_dynrelocs to allocate space for
810 global .plt, .got and reloc sections. Use short-cuts to dynamic
811 sections. Call readonly_dynrelocs to determine whether we need
812 DT_TEXTREL. Don't generate section symbols here, the generic
813 ELF linker code does it for us.
814 (ppc64_elf_final_link): Call regular ELF backend linker rather than
815 gc variety, since we do our own .got handling.
816 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
817 dynamic section short-cuts. Localise vars, and delay setting.
818 Handle unknown relocs in main switch statement. Replace ugly
819 complicated tests for unresolvable relocs with a simple direct
820 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
821 before allowing an undefined sym in a shared lib. Do R_*_DS tests
822 after main switch, when we've set addend. Do non-addend insn
823 tweaks before main swithc. Ignore input_section->vma when
824 calculating reloc offsets as it's always zero. Rewrite dynamic
825 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
826 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
827 of dynamic section short-cuts. Reorganise .plt handling code.
828 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
829 Move expressions out of swap_reloca_out function calls.
830 (ppc64_elf_reloc_type_class): New function.
831 (ppc64_elf_info_to_howto): Move common expression to local var.
832 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
833 of dynamic section short-cuts. Don't fiddle with section syms
834 here as the ELF linker does it for us.
835 (elf_backend_can_refcount): Define.
836 (bfd_elf64_bfd_link_hash_table_create): Define.
837 (elf_backend_copy_indirect_symbol): Define.
838 (elf_backend_reloc_type_class): Define.
839 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
841 2001-09-29 Alan Modra <amodra@bigpond.net.au>
843 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
844 (struct elf_backend_data): Add can_refcount.
845 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
846 got.refcount and plt.refcount from init_refcount.
847 (_bfd_elf_link_hash_table_init): Set up init_refcount.
848 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
849 rather than got/plt.offset, and test for <= 0 rather than -1.
850 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
851 * elfxx-target.h (elf_backend_can_refcount): Define.
852 (elfNN_bed): Init can_refcount.
853 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
854 (_bfd_generic_link_hash_newfunc): Likewise.
855 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
857 (elf_backend_can_refcount): Define.
858 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
860 (elf32_hppa_copy_indirect_symbol): Make static to agree with
862 (elf_backend_can_refcount): Define.
863 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
865 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
866 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
867 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
868 (elf_backend_can_refcount): Define.
869 (elf_i386_copy_indirect_symbol): Make static to agree with
870 prototype. Formatting fix.
871 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
873 (elf_backend_can_refcount): Define.
874 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
876 (elf_backend_can_refcount): Define.
877 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
879 (elf_backend_can_refcount): Define.
880 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
882 (elf_backend_can_refcount): Define.
883 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
885 (elf_backend_can_refcount): Define.
887 * som.c (som_write_symbol_strings): Cast current_offset in
888 bfd_seek call to match param type.
890 2001-09-28 J. Brobecker <brobecker@gnat.com>
892 * som.c (som_write_symbol_strings): Fix incorrect type of
893 current_offset to match the function definition. Fixes a build
894 failure on HPUX-11.00.
896 2001-09-28 Richard Henderson <rth@redhat.com>
898 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
899 SEC_MERGE, SEC_STRINGS.
901 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
902 * bfd-in2.h: Rebuild.
904 2001-09-28 Alan Modra <amodra@bigpond.net.au>
906 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
907 reloc code using x86_64_reloc_map.
909 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
910 no longer allocate here. Localise some vars to blocks where they
912 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
913 setting of vars until needed.
914 (allocate_dynrelocs): Don't create a .plt entry without a reloc
915 when symbol visibilty makes a function local.
916 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
917 swap_reloca_out function calls.
918 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
919 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
922 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
923 no longer allocate here. Localise some vars to blocks where they
924 are used. Remove separate switch stmt for creating .got sec.
925 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
926 redundant casts and aborts. Delay setting of vars until needed.
927 (allocate_dynrelocs): Remove redundant casts and aborts.
928 (elf_i386_size_dynamic_sections): Move comment.
929 (elf_i386_finish_dynamic_symbol): Move expressions out of function
931 (elf_i386_relocate_section): Likewise. Comment typo fix.
932 (elf_i386_finish_dynamic_sections): Migrate common code out of
934 (elf_backend_* defines): Sort.
936 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
937 without a reloc when symbol visibilty makes a function local.
939 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
941 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
942 conflicting float flags.
944 2001-09-26 Alan Modra <amodra@bigpond.net.au>
946 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
947 (elf_backend_copy_indirect_symbol): Define.
948 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
949 (struct elf_i386_link_hash_table): Likewise.
950 (link_hash_newfunc): Get rid of unnecessary casts.
951 (elf_i386_link_hash_table_create): Likewise.
952 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
953 Don't test input section SEC_READONLY here to try to avoid copy
954 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
955 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
956 here to properly test whether we need copy relocs. Do so for weak
959 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
960 (elf_backend_copy_indirect_symbol): Define.
961 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
962 (stub_hash_newfunc): Get rid of unnecessary casts.
963 (hppa_link_hash_newfunc): Likewise.
964 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
965 Don't test input section SEC_READONLY here to try to avoid copy
966 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
967 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
968 here to properly test whether we need copy relocs. Do so for weak
971 2001-09-26 Alan Modra <amodra@bigpond.net.au>
973 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
974 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
975 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
977 2001-09-25 Jakub Jelinek <jakub@redhat.com>
979 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
982 2001-09-25 H.J. Lu <hjl@gnu.org>
984 * bfd-in2.h: Regenerated.
986 2001-09-25 Alan Modra <amodra@bigpond.net.au>
988 * elf32-i386.c: Add comment re linker function names and ordering.
989 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
990 (elf_i386_grok_prstatus): Move before linker functions.
991 (elf_i386_grok_psinfo): Likewise.
992 (elf_i386_fake_sections): Move so that functions are ordered.
993 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
995 2001-09-25 Alan Modra <amodra@bigpond.net.au>
997 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
1000 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
1001 code handling this option.
1002 (LONG_BRANCH_VIA_PLT): Likewise.
1003 (RELATIVE_DYNRELOCS): Define as zero.
1004 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
1005 "pc_count" fields. Remove "section" field.
1006 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
1007 (elf32_hppa_check_relocs): Don't allocate space for dynamic
1008 relocs here. Instead, record all needed dynamic relocs via
1009 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
1010 in elf_section_data.
1011 (elf32_hppa_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 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
1016 Call readonly_dynrelocs to determine need for DT_TEXTREL.
1017 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1018 (elf32_hppa_relocate_section): Make use of cached sreloc.
1019 (elf32_hppa_reloc_type_class): New function.
1020 (elf_backend_reloc_type_class): Define.
1022 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1024 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
1025 and "sreloc" fields.
1026 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
1027 "pc_count" fields. Remove "section" field.
1028 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
1029 allocate space for dynamic relocs here. Instead, record all
1030 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
1031 pointer to "sreloc" section in elf_section_data.
1032 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1033 (allocate_plt_and_got_and_discard_relocs): Rename to
1034 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
1035 (readonly_dynrelocs): New function.
1036 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
1037 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1038 (elf_i386_relocate_section): Make use of cached sreloc.
1040 2001-09-24 Alan Modra <amodra@bigpond.net.au>
1042 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
1043 reloc rather than just the type.
1044 (_bfd_elf_reloc_type_class): Likewise.
1045 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1046 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
1047 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
1048 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
1049 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
1050 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
1051 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
1052 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
1053 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
1054 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
1055 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
1056 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
1057 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
1058 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
1059 * elflink.h: Formatting fixes.
1060 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
1061 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
1062 o->contents to PTR. Update call to elf_backend_reloc_type_class.
1064 2001-09-22 John Reiser <jreiser@BitWagon.com>
1066 * elfcode.h (elf_object_p): Allow for no section header at all in
1067 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
1069 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
1071 * elfxx-ia64.c: Fix compile time warning messages.
1072 * coff-mcore.c: Fix compile time warning messages.
1073 * coff-ppc.c: Fix compile time warning messages.
1074 * coffcode.h: Fix compile time warning messages.
1075 * elf32-mips.c: Fix compile time warning messages.
1076 * elf64-alpha.c: Fix compile time warning messages.
1077 * libbfd.c: Fix compile time warning messages.
1078 * bfd-in2.h: Regenerate.
1080 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1082 * Makefile.am: Run "make dep-am".
1083 * Makefile.in: Regenerate.
1085 * aoutx.h: Formatting fixes.
1086 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
1088 * linker.c: Replace bfd_get_filename with bfd_archive_filename
1091 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1093 * bfd.c (bfd_archive_filename): New function.
1094 * bfd-in2.h: Regenerate.
1095 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
1096 in error messages where the bfd is an input bfd.
1097 * aout-cris.c: Likewise.
1098 * coff-arm.c: Likewise.
1099 * coff-mcore.c: Likewise.
1100 * coff-ppc.c: Likewise.
1101 * coff-rs6000.c: Likewise.
1102 * coff-sh.c: Likewise.
1103 * coff-tic54x.c: Likewise.
1104 * coff-tic80.c: Likewise.
1105 * coff64-rs6000.c: Likewise.
1106 * coffcode.h: Likewise.
1107 * coffgen.c: Likewise.
1108 * cofflink.c: Likewise.
1109 * ecofflink.c: Likewise.
1110 * elf-hppa.h: Likewise.
1112 * elf32-arm.h: Likewise.
1113 * elf32-cris.c: Likewise.
1114 * elf32-gen.c: Likewise.
1115 * elf32-hppa.c: Likewise.
1116 * elf32-i370.c: Likewise.
1117 * elf32-i386.c: Likewise.
1118 * elf32-m32r.c: Likewise.
1119 * elf32-mcore.c: Likewise.
1120 * elf32-mips.c: Likewise.
1121 * elf32-ppc.c: Likewise.
1122 * elf32-s390.c: Likewise.
1123 * elf32-sh.c: Likewise.
1124 * elf32-sparc.c: Likewise.
1125 * elf32-v850.c: Likewise.
1126 * elf64-alpha.c: Likewise.
1127 * elf64-gen.c: Likewise.
1128 * elf64-ppc.c: Likewise.
1129 * elf64-s390.c: Likewise.
1130 * elf64-sparc.c: Likewise.
1131 * elf64-x86-64.c: Likewise.
1132 * elflink.h: Likewise.
1133 * elfxx-ia64.c: Likewise.
1136 * libbfd.c: Likewise.
1137 * pdp11.c: Likewise.
1138 * pe-mips.c: Likewise.
1139 * peicode.h: Likewise.
1141 * xcofflink.c: Likewise.
1143 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
1145 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
1148 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
1151 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
1152 Consolidate error messages, and split long messages to two lines.
1154 2001-09-20 John Reiser <jreiser@BitWagon.com>
1156 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
1157 and info->allow_shlib_undefined.
1158 * elf32-cris.c: Likewise.
1159 * elf32-hppa.c: Likewise.
1160 * elf32-m68k.c: Likewise.
1161 * elf32-mips.c: Likewise.
1162 * elf32-ppc.c: Likewise.
1163 * elf32-s390.c: Likewise.
1164 * elf32-sh.c: Likewise.
1165 * elf32-sparc.c: Likewise.
1166 * elf64-alpha.c: Likewise.
1167 * elf64-hppa.c: Likewise.
1168 * elf64-ppc.c: Likewise.
1169 * elf64-s390.c: Likewise.
1170 * elf64-sparc.c: Likewise.
1171 * elf64-x86-64.c: Likewise.
1172 * elfxx-ia64.c: Likewise.
1174 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1176 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
1177 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1178 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
1179 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
1180 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
1181 (bfd_default_scan): Use ISDIGIT instead of isdigit.
1182 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
1183 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
1184 isxdigit/isdigit/islower.
1185 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
1186 (mangle_name): Use ISALNUM instead of isalnum.
1187 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
1188 (scan): Use ISDIGIT instead of isdigit.
1189 * hosts/alphavms.h: Don't include <ctype.h>.
1190 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
1191 (ieee_object_p): Use TOUPPER instead of toupper.
1192 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
1193 (ihex_bad_byte): Use ISPRINT instead of isprint.
1194 * merge.c: Don't include <ctype.h>.
1195 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
1196 (oasys_write_sections): Use ISDIGIT instead of isdigit.
1197 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
1198 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1199 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
1200 (mangle_name): Use ISALNUM instead of isalnum.
1201 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
1202 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
1203 isupper/islower/isdigit.
1204 (som_decode_symclass): Use TOUPPER instead of toupper.
1205 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
1206 (srec_bad_byte): Use ISPRINT instead of isprint.
1207 (srec_scan): Use ISSPACE instead of isspace.
1208 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
1209 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
1210 * syms.c: Include "safe-ctype.h"
1211 (islower, toupper): Remove macro definitions.
1212 (bfd_decode_symclass): Use TOUPPER instead of toupper.
1213 * vms-gsd.c: Don't include <ctype.h>.
1214 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
1215 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
1217 * vms-tir.c: Don't include <ctype.h>.
1219 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1221 * libbfd.c (bfd_bread): New function replacing bfd_read without
1222 redundant params. Allow reads up to (size_t) -2 in length.
1223 (bfd_bwrite): Similarly for bfd_write.
1224 (real_read): Return a size_t.
1225 (bfd_read): Call bfd_bread.
1226 (bfd_write): Call bfd_bwrite.
1227 (warn_deprecated): New function to annoy everybody.
1228 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
1229 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
1230 (bfd_read, bfd_write): Define as macro.
1231 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
1232 likewise for bfd_write. Ensure function args are correct size by
1233 using casts or local vars. In some cases, remove unnecessary
1234 casts. Formatting fixes, in some cases removing a large expression
1235 from function args by using a local var. Replace CONST with const.
1236 Modify variable types to avoid warings. Use casts to avoid
1237 warnings when using negative numbers in unsigned expressions.
1238 * aout-adobe.c: Likewise.
1239 * aout-arm.c: Likewise.
1240 * aout-cris.c: Likewise.
1241 * aout-encap.c: Likewise.
1242 * aout-ns32k.c: Likewise.
1243 * aout-target.h: Likewise.
1244 * aout-tic30.c: Likewise.
1245 * aoutf1.h: Likewise.
1246 * aoutx.h: Likewise.
1247 * archive.c: Likewise.
1248 * archures.c: Likewise.
1249 * bfd-in.h: Likewise.
1251 * binary.c: Likewise.
1253 * cache.c: Likewise.
1254 * cisco-core.c: Likewise.
1255 * coff-a29k.c: Likewise.
1256 * coff-alpha.c: Likewise.
1257 * coff-arm.c: Likewise.
1258 * coff-h8300.c: Likewise.
1259 * coff-h8500.c: Likewise.
1260 * coff-i386.c: Likewise.
1261 * coff-i860.c: Likewise.
1262 * coff-i960.c: Likewise.
1263 * coff-ia64.c: Likewise.
1264 * coff-m68k.c: Likewise.
1265 * coff-m88k.c: Likewise.
1266 * coff-mcore.c: Likewise.
1267 * coff-mips.c: Likewise.
1268 * coff-ppc.c: Likewise.
1269 * coff-rs6000.c: Likewise.
1270 * coff-sh.c: Likewise.
1271 * coff-sparc.c: Likewise.
1272 * coff-stgo32.c: Likewise.
1273 * coff-tic30.c: Likewise.
1274 * coff-tic54x.c: Likewise.
1275 * coff-tic80.c: Likewise.
1276 * coff-w65.c: Likewise.
1277 * coff-z8k.c: Likewise.
1278 * coff64-rs6000.c: Likewise.
1279 * coffcode.h: Likewise.
1280 * coffgen.c: Likewise.
1281 * cofflink.c: Likewise.
1282 * coffswap.h: Likewise.
1283 * corefile.c: Likewise.
1284 * cpu-arc.c: Likewise.
1285 * cpu-h8300.c: Likewise.
1286 * cpu-h8500.c: Likewise.
1287 * cpu-i960.c: Likewise.
1288 * cpu-ia64-opc.c: Likewise.
1289 * cpu-ns32k.c: Likewise.
1290 * cpu-pdp11.c: Likewise.
1291 * cpu-pj.c: Likewise.
1292 * cpu-sh.c: Likewise.
1293 * cpu-w65.c: Likewise.
1294 * cpu-z8k.c: Likewise.
1295 * dwarf1.c: Likewise.
1296 * dwarf2.c: Likewise.
1297 * ecoff.c: Likewise.
1298 * ecofflink.c: Likewise.
1299 * ecoffswap.h: Likewise.
1300 * elf-bfd.h: Likewise.
1301 * elf-hppa.h: Likewise.
1302 * elf-m10200.c: Likewise.
1303 * elf-m10300.c: Likewise.
1305 * elf32-arc.c: Likewise.
1306 * elf32-arm.h: Likewise.
1307 * elf32-avr.c: Likewise.
1308 * elf32-cris.c: Likewise.
1309 * elf32-fr30.c: Likewise.
1310 * elf32-gen.c: Likewise.
1311 * elf32-h8300.c: Likewise.
1312 * elf32-hppa.c: Likewise.
1313 * elf32-i370.c: Likewise.
1314 * elf32-i386.c: Likewise.
1315 * elf32-i860.c: Likewise.
1316 * elf32-m32r.c: Likewise.
1317 * elf32-m68k.c: Likewise.
1318 * elf32-mcore.c: Likewise.
1319 * elf32-mips.c: Likewise.
1320 * elf32-openrisc.c: Likewise.
1321 * elf32-pj.c: Likewise.
1322 * elf32-ppc.c: Likewise.
1323 * elf32-s390.c: Likewise.
1324 * elf32-sh-lin.c: Likewise.
1325 * elf32-sh.c: Likewise.
1326 * elf32-sparc.c: Likewise.
1327 * elf32-v850.c: Likewise.
1328 * elf64-alpha.c: Likewise.
1329 * elf64-hppa.c: Likewise.
1330 * elf64-mips.c: Likewise.
1331 * elf64-ppc.c: Likewise.
1332 * elf64-s390.c: Likewise.
1333 * elf64-sparc.c: Likewise.
1334 * elf64-x86-64.c: Likewise.
1335 * elfarm-nabi.c: Likewise.
1336 * elfcode.h: Likewise.
1337 * elfcore.h: Likewise.
1338 * elflink.c: Likewise.
1339 * elflink.h: Likewise.
1340 * elfxx-ia64.c: Likewise.
1341 * elfxx-target.h: Likewise.
1342 * format.c: Likewise.
1344 * hp300hpux.c: Likewise.
1345 * hppabsd-core.c: Likewise.
1346 * hpux-core.c: Likewise.
1347 * i386aout.c: Likewise.
1348 * i386dynix.c: Likewise.
1349 * i386linux.c: Likewise.
1350 * i386lynx.c: Likewise.
1351 * i386mach3.c: Likewise.
1352 * i386msdos.c: Likewise.
1353 * i386os9k.c: Likewise.
1356 * irix-core.c: Likewise.
1357 * libaout.h: Likewise.
1358 * libbfd-in.h: Likewise.
1359 * libbfd.c: Likewise.
1360 * libcoff-in.h: Likewise.
1361 * libecoff.h: Likewise.
1362 * libieee.h: Likewise.
1363 * libnlm.h: Likewise.
1364 * libpei.h: Likewise.
1365 * libxcoff.h: Likewise.
1366 * linker.c: Likewise.
1367 * lynx-core.c: Likewise.
1368 * m68klinux.c: Likewise.
1369 * merge.c: Likewise.
1370 * mipsbsd.c: Likewise.
1371 * netbsd-core.c: Likewise.
1373 * nlm32-alpha.c: Likewise.
1374 * nlm32-i386.c: Likewise.
1375 * nlm32-ppc.c: Likewise.
1376 * nlm32-sparc.c: Likewise.
1377 * nlmcode.h: Likewise.
1378 * nlmswap.h: Likewise.
1379 * ns32k.h: Likewise.
1380 * oasys.c: Likewise.
1381 * opncls.c: Likewise.
1382 * osf-core.c: Likewise.
1383 * pc532-mach.c: Likewise.
1384 * pdp11.c: Likewise.
1385 * pe-mips.c: Likewise.
1386 * peXXigen.c: Likewise.
1387 * peicode.h: Likewise.
1388 * ppcboot.c: Likewise.
1389 * ptrace-core.c: Likewise.
1390 * reloc.c: Likewise.
1391 * reloc16.c: Likewise.
1392 * riscix.c: Likewise.
1393 * rs6000-core.c: Likewise.
1394 * sco5-core.c: Likewise.
1395 * section.c: Likewise.
1397 * sparclinux.c: Likewise.
1398 * sparclynx.c: Likewise.
1400 * stabs.c: Likewise.
1401 * sunos.c: Likewise.
1403 * targets.c: Likewise.
1404 * tekhex.c: Likewise.
1405 * trad-core.c: Likewise.
1406 * versados.c: Likewise.
1407 * vms-gsd.c: Likewise.
1408 * vms-hdr.c: Likewise.
1409 * vms-misc.c: Likewise.
1410 * vms-tir.c: Likewise.
1413 * xcofflink.c: Likewise.
1414 * bfd-in2.h: Regenerate.
1415 * libbfd.h: Regenerate.
1416 * libcoff.h: Regenerate.
1418 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
1419 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
1420 (ufile_ptr): Define.
1421 (bfd_tell): Return a ufile_ptr.
1422 * libbfd.c (bfd_tell): Likewise.
1423 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
1425 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
1426 * aoutf1.h: Likewise.
1428 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
1429 larger than unsigned long can represent.
1431 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
1432 size overflows size_t.
1433 (bfd_realloc): Likewise.
1434 (bfd_zmalloc): Likewise.
1435 * opncls.c (bfd_alloc): Likewise.
1436 (bfd_zalloc): Likewise.
1437 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1438 (bfd_alloc, bfd_zalloc): Update.
1440 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1442 (bfd_get_signed_8): Likewise.
1443 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1444 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1445 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1446 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1447 * libaout.h: Likewise define and use here.
1448 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1449 * aout-arm.c: Likewise.
1450 * aout-encap.c: Likewise.
1451 * aout-ns32k.c: Likewise.
1452 * aout-tic30.c: Likewise.
1453 * aoutf1.h: Likewise.
1454 * aoutx.h: Likewise.
1456 * coff-alpha.c: Likewise.
1457 * coff-h8300.c: Likewise.
1458 * coff-h8500.c: Likewise.
1459 * coff-i960.c: Likewise.
1460 * coff-ia64.c: Likewise.
1461 * coff-m88k.c: Likewise.
1462 * coff-mips.c: Likewise.
1463 * coff-ppc.c: Likewise.
1464 * coff-rs6000.c: Likewise.
1465 * coff-sh.c: Likewise.
1466 * coff-sparc.c: Likewise.
1467 * coff-stgo32.c: Likewise.
1468 * coff-tic30.c: Likewise.
1469 * coff-tic80.c: Likewise.
1470 * coff-w65.c: Likewise.
1471 * coff-z8k.c: Likewise.
1472 * coff64-rs6000.c: Likewise.
1473 * coffgen.c: Likewise.
1474 * cofflink.c: Likewise.
1475 * coffswap.h: Likewise.
1476 * ecoff.c: Likewise.
1477 * ecoffswap.h: Likewise.
1479 * elf32-mips.c: Likewise.
1480 * elf64-mips.c: Likewise.
1481 * hp300hpux.c: Likewise.
1482 * i386dynix.c: Likewise.
1483 * i386lynx.c: Likewise.
1484 * i386msdos.c: Likewise.
1485 * i386os9k.c: Likewise.
1486 * libpei.h: Likewise.
1487 * nlm32-alpha.c: Likewise.
1488 * nlm32-i386.c: Likewise.
1489 * nlm32-ppc.c: Likewise.
1490 * nlmcode.h: Likewise.
1491 * nlmswap.h: Likewise.
1492 * oasys.c: Likewise.
1493 * pdp11.c: Likewise.
1494 * pe-mips.c: Likewise.
1495 * peXXigen.c: Likewise.
1496 * peicode.h: Likewise.
1497 * riscix.c: Likewise.
1498 * sunos.c: Likewise.
1499 * xcofflink.c: Likewise.
1500 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1501 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1502 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1503 equivalent H_PUT_* macro instead.
1504 (GETWORD, GETHALF, GETBYTE): Similarly.
1505 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1506 (GETWORD, GETHALF, GETBYTE): Likewise.
1507 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1509 * bfd-in.h (struct orl): Change "pos" to a union.
1510 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1511 (bsd_write_armap): Here too.
1512 (coff_write_armap): And here.
1513 * coff-rs6000.c (xcoff_write_armap_old): And here.
1514 (xcoff_write_one_armap_big): And here.
1515 (xcoff_write_armap_big): And here.
1516 * ecoff.c (_bfd_ecoff_write_armap): And here.
1517 * elf64-mips.c (mips_elf64_write_armap): And here.
1519 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1520 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1521 * elf32-h8300.c (elf32_h8_mach): Likewise.
1522 * elf32-mips.c (elf_mips_mach): Likewise.
1523 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1525 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1527 (aix386_core_vec): Typo fix.
1529 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1530 etc. to avoid redefined macro warning.
1531 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1532 (MY(fix_pcrel_26)): Likewise.
1533 * aout-ns32k.c (MY(put_reloc)): Likewise.
1534 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1535 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1536 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1538 * aout-encap.c: Include "file", not <file> for binutils headers.
1539 (encap_object_p): Half baked attempt to fix compile errors in
1540 code dealing with "magic".
1542 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1543 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1544 bfd_vma's rather than longs.
1545 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1546 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1547 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1549 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1550 Use unsigned comparisons.
1551 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1552 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1553 (_bfd_do_ns32k_reloc_contents): Likewise.
1554 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1555 (_bfd_ns32k_get_immediate): Likewise.
1556 (_bfd_ns32k_put_displacement): Likewise.
1557 (_bfd_ns32k_put_immediate): Likewise.
1558 (bfd_reloc_status_type): Likewise.
1560 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1562 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1563 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1564 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1566 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1567 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1568 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1570 (_bfd_elfcore_strndup): Likewise for "dup".
1571 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1572 "name" to avoid shadowing.
1573 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1574 definition of "off".
1575 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1576 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1578 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1580 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1582 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1584 (elf_link_input_bfd): Likewise.
1585 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1586 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1587 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1589 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1590 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1591 (sunos_write_dynamic_symbol): Remove unused vars.
1592 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1593 innermost "directory_name" and "file_name" vars.
1594 * tekhex.c (first_phase): Rename local var "type" to "stype".
1595 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1596 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1597 doing comparison at caller.
1598 (vms_esecflag_by_name): Likewise.
1599 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1600 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1601 (xcoff_write_global_symbol): Rename "p" param to "inf".
1603 * cisco-core.c: Add missing prototypes.
1604 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1605 (cisco_core_file_failing_signal): Likewise.
1606 (cisco_core_file_matches_executable_p): Likewise.
1607 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1608 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1609 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1610 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1612 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1613 thumb_glue_size and arm_glue_size.
1614 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1616 * coff64-rs6000.c: Group prototypes together.
1618 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1619 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1621 * cpu-arc.c: Add missing prototypes.
1622 * cpu-h8500.c: Likewise.
1623 * cpu-i960.c: Likewise.
1624 * cpu-pj.c: Likewise.
1625 * cpu-sh.c: Likewise.
1626 * cpu-w65.c: Likewise.
1627 * cpu-z8k.c: Likewise.
1628 * elf32-fr30.c: Likewise.
1629 * elf32-h8300.c: Likewise.
1630 * elf32-i370.c: Likewise.
1631 * hpux-core.c: Likewise.
1632 * versados.c: Likewise.
1634 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
1635 * cpu-h8500.c: Likewise.
1636 * cpu-i960.c: Likewise.
1637 * cpu-z8k.c: Likewise.
1639 * cpu-ia64-opc.c: Correct comment.
1641 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
1643 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
1645 (bfd_elf32_write_out_phdrs): Likewise.
1646 (bfd_elf64_write_out_phdrs): Likewise.
1647 (elf_linker_section_pointers): Change addend to bfd_vma.
1648 (_bfd_elf_find_pointer_linker_section): Likewise.
1649 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
1650 filepos to unsigned file_ptr.
1651 (_bfd_elfcore_strndup): Change max param to size_t.
1652 * elf.c (_bfd_elfcore_make_pseudosection): As above.
1653 (_bfd_elfcore_strndup): Likewise.
1654 (_bfd_elf_find_pointer_linker_section): Likewise.
1656 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
1657 insn and sym_value to ints.
1659 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
1661 (elfcore_read_notes): Likewise.
1663 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
1664 param from unsigned char to int.
1665 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
1666 for info_to_howto call.
1667 (add_dynamic_entry): Define macro.
1668 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
1670 * elf32-cris.c (add_dynamic_entry): Define macro.
1671 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
1673 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
1674 (elf32_h8_object_p): Likewise.
1675 (elf32_h8_merge_private_bfd_data): Likewise.
1676 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
1678 * elf32-hppa.c (add_dynamic_entry): Define macro.
1679 (elf32_hppa_size_dynamic_sections): Use it.
1680 * elf32-i370.c (add_dynamic_entry): Define macro.
1681 (i370_elf_size_dynamic_sections): Use it.
1682 (i370_noop): Make static.
1683 * elf32-i386.c (add_dynamic_entry): Define macro.
1684 (elf_i386_size_dynamic_sections): Use it.
1685 * elf32-m68k.c (add_dynamic_entry): Define macro.
1686 (elf_m68k_size_dynamic_sections): Use it.
1687 * elf32-ppc.c (add_dynamic_entry): Define macro.
1688 (ppc_elf_size_dynamic_sections): Use it.
1689 * elf32-s390.c (add_dynamic_entry): Define macro.
1690 (elf_s390_size_dynamic_sections): Use it.
1691 * elf64-alpha.c (add_dynamic_entry): Define macro.
1692 (elf64_alpha_size_dynamic_sections): Use it.
1693 * elf64-hppa.c (add_dynamic_entry): Define macro.
1694 (elf64_hppa_size_dynamic_sections): Use it.
1695 * elf64-ppc.c (add_dynamic_entry): Define macro.
1696 (ppc64_elf_size_dynamic_sections): Use it.
1697 * elf64-s390.c (add_dynamic_entry): Define macro.
1698 (elf_s390_size_dynamic_sections): Use it.
1699 * elf64-sparc.c (add_dynamic_entry): Define macro.
1700 (sparc64_elf_size_dynamic_sections): Use it.
1701 * elf64-x86-64.c (add_dynamic_entry): Define macro.
1702 (elf64_x86_64_size_dynamic_sections): Use it.
1703 * elfxx-ia64.c (add_dynamic_entry): Define macro.
1704 (elfNN_ia64_size_dynamic_sections): Use it.
1706 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
1707 (v850_elf_perform_relocation): Make "r_type" param unsigned.
1709 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
1710 false if the first malloc fails rather than going via error_return.
1712 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
1714 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
1716 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
1718 * elfxx-ia64.c (global_sym_index): Return a long.
1720 * ieee.c (get_symbol): Use int rather than char param.
1721 (ieee_slurp_sections): Move "section" var to inner blocks.
1722 (copy_expression): Don't init "value" to zero or worry about
1723 clearing to zero after using.
1724 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
1727 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
1730 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
1731 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
1733 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
1735 * pc532-mach.c (MYNSX): Delete.
1736 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
1737 (write_object_contents): Correct prototype.
1739 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
1740 than unsigned short.
1742 * section.c (bfd_set_section_contents): Remove redundant
1743 "offset < 0" test. Check that "count" doesn't overflow size_t.
1744 (bfd_get_section_contents): Likewise.
1746 * som.c (som_fixup_formats): Add missing braces.
1747 (som_reloc_addend): Pass a bfd_vma for "addend".
1749 * srec.c (srec_write_record): Pass "type" as an unsigned int.
1750 (srec_write_symbols): Remove an unnecessary var.
1752 * targets.c (_bfd_target_vector): Sort entries. Sort externs
1754 * configure.in: Sort to match. Bump version number.
1755 * configure: Regenerate.
1757 * tekhex.c (move_section_contents): Assert offset == 0.
1759 * versados.c (new_symbol_string): Constify arg.
1760 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
1761 (versados_get_symbol_info): Make static.
1762 (versados_print_symbol): Likewise.
1763 (versados_get_reloc_upper_bound): Likewise.
1764 (versados_canonicalize_reloc): Likewise.
1766 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
1768 * elflink.h (elf_link_input_bfd): Fix typo in error message.
1770 2001-09-17 H.J. Lu <hjl@gnu.org>
1772 * dwarf1.c (parse_die): Take a new arg for the end of the
1773 section. Return false if die is beyond the section.
1774 (parse_functions_in_unit): Pass the end of the section to
1776 (_bfd_dwarf1_find_nearest_line): Likewise.
1778 2001-09-14 Michael Rauch <mrauch@netbsd.org>
1780 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1781 just like R_SPARC_32.
1783 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1785 * configure.bfd: Add arm-openbsd target.
1787 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1789 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1790 Add support for mips64.
1792 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
1794 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1796 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
1798 * elf.c (prep_headers): Get the machine code from the elf
1800 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
1801 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
1802 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
1803 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
1804 * elf-arc.c (arc_elf_final_write_processing): Don't override
1805 e_machine, it's now properly set in prep_headers.
1806 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
1808 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
1809 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
1810 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
1811 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
1812 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
1813 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
1814 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
1815 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
1816 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
1817 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
1818 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
1819 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
1821 2001-09-11 Richard Henderson <rth@redhat.com>
1823 * elf64-alpha.c (elf64_alpha_section_flags): New.
1824 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
1826 2001-09-11 Richard Henderson <rth@redhat.com>
1828 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
1829 apply HINT relocations against dynamic symbols.
1831 2001-09-11 H.J. Lu <hjl@gnu.org>
1833 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
1835 2001-09-09 Richard Henderson <rth@redhat.com>
1837 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
1839 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1840 following a call to a near function.
1842 2001-09-08 Richard Henderson <rth@redhat.com>
1844 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1845 relocation errors. Fail gp-relative relocations against
1848 2001-09-08 Alan Modra <amodra@bigpond.net.au>
1850 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1851 as well as DEF_DYNAMIC in test for avoided copy relocs.
1852 (allocate_plt_and_got_and_discard_relocs): Likewise.
1853 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1854 (allocate_plt_and_got_and_discard_relocs): Likewise.
1856 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1858 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1861 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1863 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1865 (mips_elf64_howto_table_rel): Likewise.
1867 2001-09-05 Tom Rix <trix@redhat.com>
1869 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1870 and syscall symbols.
1871 (write_global_symbol) : Same.
1872 (bfd_xcoff_export_symbol): Remove unused syscall param.
1873 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1874 bfd_xcoff_import_symbol.
1876 * bfd-in2.h : Regenerate.
1878 2001-09-04 Richard Henderson <rth@redhat.com>
1880 * elf64-alpha.c (SKIP_HOWTO): New.
1881 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1882 Fix sizes of 16-bit mem format relocs.
1883 (elf64_alpha_reloc_map): Update to match.
1884 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1885 (elf64_alpha_relax_without_lituse): Likewise.
1886 (elf64_alpha_check_relocs): Handle GPREL16.
1887 (elf64_alpha_relocate_section): Likewise.
1888 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1889 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1890 * bfd-in2.h, libbfd.h: Rebuild.
1892 2001-09-04 Jeff Law <law@redhat.com>
1894 * elf32-h8300.c (elf32_h8_relax_section): New function.
1895 (elf32_h8_relax_delete_bytes): Likewise.
1896 (elf32_h8_symbol_address_p): Likewise.
1897 (elf32_h8_get_relocated_section_contents): Likewise.
1898 (bfd_elf32_bfd_relax_section): Define.
1899 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1901 * elf32-h8300.c (special): New function.
1902 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1904 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1905 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1906 Fix minor problems with 8bit and 16bit PC relative relocations.
1908 2001-09-01 Andreas Jaeger <aj@suse.de>
1910 * vms-tir.c: Add missing prototypes.
1911 * vms-hdr.c: Likewise.
1912 * vms-gsd.c: Likewise.
1913 * vms-misc.c: Likewise.
1915 2001-08-31 H.J. Lu <hjl@gnu.org>
1917 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1918 with bad relocation.
1920 2001-08-31 Eric Christopher <echristo@redhat.com>
1921 Jason Eckhardt <jle@redhat.com>
1923 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1924 mips32_4k and mips64.
1925 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1926 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1927 * bfd/cpu-mips.c: Ditto.
1928 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1929 * bfd/bfd-in2.h: Regenerate.
1931 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1933 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1934 value into R_ALPHA_RELATIVE's addend.
1935 (elf64_alpha_finish_dynamic_symbol): Likewise.
1937 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1939 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1940 recomputed addend during relocatable link if not USE_REL.
1942 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1945 2001-08-30 H.J. Lu <hjl@gnu.org>
1947 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1949 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1950 relocations for weak definitions.
1952 2001-08-30 H.J. Lu <hjl@gnu.org>
1954 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1955 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1956 * Makefile.in: Rebuild.
1958 2001-08-30 H.J. Lu <hjl@gnu.org>
1960 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1961 dynamic relocation for undefined weak symbols when creating
1962 executables. Check h->root.root.type, instead of h->root.type.
1964 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1966 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1967 default from coff to elf.
1969 2001-08-29 Jeff Law <law@redhat.com>
1971 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1973 (h8_reloc_map): Similarly.
1974 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1975 Add support for PC relative relocations.
1977 * elf32-h8300.c: Put all prototypes together.
1978 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1979 (elf32_h8_final_link_relocate): New function for linker.
1980 (elf32_h8_relocate_section): Similarly.
1981 (elf_backend_relocate_section): Define.
1983 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1984 (h8300_scan): Handle architecture:machine encodings typically
1985 found in linker scripts.
1986 * elf.c (prep_headers): Do not try to do H8 machine recognition
1988 * elf32-h8300.c: Add some missing prototypes.
1989 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1990 (elf32_h8_object_p): Similarly.
1992 2001-08-29 Tom Rix <trix@redhat.com>
1994 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1995 does not follow a XTY_SD.
1997 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1999 * targmatch.sed: Delete case statements.
2000 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
2003 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
2005 * Makefile.am (elf32-h8300.lo): New target.
2006 * config.bfd (h8300*-*-elf): New case.
2007 * configure.in (bfd_elf32_h8300_vec): New case.
2008 * elf.c (prep_headers): Add case for bfd_arch_h8300.
2009 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
2010 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
2011 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
2012 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
2013 * elf32-h8300.c: New file.
2014 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
2016 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2018 * sparclynx.c: Add missing prototypes.
2019 * coff-mcore.c: Add missing prototypes.
2020 * elf32-pj.c: Add missing prototypes.
2021 * nlm32-sparc.c: Add missing prototypes.
2022 * oasys.c: Add missing prototypes.
2023 * pdp11.c: Add missing prototypes.
2024 * pe-mips.c: Add missing prototypes.
2025 * riscix.c: Add missing prototypes.
2027 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2029 * elf32-i386.c: Add missing prototypes.
2030 * elf32-ppc.c: Likewise.
2031 * elf32-sh-lin.c: Likewise.
2032 * elfarm-nabi.c: Likewise.
2034 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2036 * elf32-i386.c (elf_i386_grok_prstatus): New function.
2037 (elf_i386_grok_psinfo): New function.
2038 (elf_backend_grok_prstatus): Define.
2039 (elf_backend_grok_psinfo): Likewise.
2040 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
2041 (ppc_elf_grok_psinfo): New function.
2042 (elf_backend_grok_prstatus): Define.
2043 (elf_backend_grok_psinfo): Likewise.
2044 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
2045 (elf32_shlin_grok_psinfo): New function.
2046 (elf_backend_grok_prstatus): Define.
2047 (elf_backend_grok_psinfo): Likewise.
2048 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
2049 (elf32_arm_nabi_grok_psinfo): New function.
2050 (elf_backend_grok_prstatus): Define.
2051 (elf_backend_grok_psinfo): Likewise.
2053 2001-08-27 H.J. Lu <hjl@gnu.org>
2055 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
2057 (mips_elf_calculate_relocation): Create dynamic relocation for
2058 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
2061 2001-08-27 H.J. Lu <hjl@gnu.org>
2063 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
2064 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
2065 (_bfd_elf32_mips_grok_prstatus): Likewise.
2066 (_bfd_elf32_mips_grok_psinfo): Likewise.
2067 (_bfd_mips_elf_hide_symbol): Make it static and cast to
2068 `struct mips_elf_link_hash_entry *'.
2069 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
2071 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2073 * mipsbsd.c: Add missing prototypes.
2074 * hp300hpux.c: Add missing prototypes.
2075 * i386aout.c: Add missing prototypes.
2076 * i386lynx.c: Add missing prototypes.
2077 * i386mach3.c: Add missing prototypes.
2078 * i386msdos.c: Add missing prototypes.
2079 * i386os9k.c: Add missing prototypes.
2081 2001-08-27 Linus Nordberg <linus@swox.se>
2082 Torbjorn Granlund <tege@swox.com>
2083 Staffan Ulfberg <staffanu@swox.se>
2084 Alan Modra <amodra@bigpond.net.au>
2086 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
2087 targ64_selvecs for 32 bit powerpc targets.
2088 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
2089 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
2091 * Makefile.in: Regenerate.
2092 * configure.in: Add elf64_powerpc vecs.
2093 * configure: Regenerate.
2094 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
2095 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
2096 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
2097 * elf64-ppc.c: New file.
2098 * reloc.c: Add powerpc64 relocs.
2099 * libbfd.h: Regenerate.
2100 * bfd-in2.h: Regenerate.
2102 2001-08-27 Andreas Schwab <schwab@suse.de>
2104 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
2105 reloc is against read-only section.
2106 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
2107 looking up section names for DT_TEXTREL.
2108 (elf32_m68k_reloc_type_class): New function.
2109 (elf_backend_reloc_type_class): Define.
2111 2001-08-27 Andreas Jaeger <aj@suse.de>
2113 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2114 reloc is against read-only section.
2115 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2116 looking up section names for DT_TEXTREL.
2117 (elf_s390_reloc_type_class): New.
2118 (elf_backend_reloc_type_class): Define.
2120 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2121 reloc is against read-only section.
2122 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2123 looking up section names for DT_TEXTREL.
2124 (elf_s390_reloc_type_class): New.
2125 (elf_backend_reloc_type_class): Define.
2127 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
2128 is against read-only section.
2129 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2130 looking up section names for DT_TEXTREL.
2131 (ppc_elf_reloc_type_class): New.
2132 (elf_backend_reloc_type_class): Define.
2134 2001-08-26 Andreas Jaeger <aj@suse.de>
2136 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
2137 reloc is against read-only section.
2138 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
2139 looking up section names for DT_TEXTREL.
2140 (elf_cris_reloc_type_class): New.
2141 (elf_backend_reloc_type_class): Define.
2143 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
2144 against read-only section.
2145 (elf_backend_reloc_type_class): Define.
2146 (sh_elf_reloc_type_class): New.
2147 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2148 looking up section names for DT_TEXTREL.
2150 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
2151 reloc is against read-only section.
2152 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
2153 looking up section names for DT_TEXTREL.
2154 (elf32_arm_reloc_type_class): New.
2155 (elf_backend_reloc_type_class): Define.
2157 2001-08-25 Andreas Jaeger <aj@suse.de>
2159 * oasys.c: Add missing prototypes.
2161 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
2162 attribute for parameter.
2163 * elf.c (_bfd_elf_reloc_type_class): Likewise.
2165 * versados.c (get_4): Make static.
2166 (get_10): Make static.
2167 Add missing prototypes.
2168 (process_esd): Fix call to versados_new_symbol.
2170 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
2172 * coff-a29k.c: Add missing prototypes.
2173 * coff-apollo.c: Add missing prototypes.
2174 * coff-arm.c: Add missing prototypes.
2175 * coff-i860.c: Add missing prototypes.
2176 * coff-rs6000.c: Add missing prototypes.
2177 * coff-tic80.c: Add missing prototypes.
2178 * elf-m10200.c: Add missing prototypes.
2179 * elf-m10300.c: Add missing prototypes.
2180 * elf32-arm.h: Add missing prototypes.
2181 * elf32-d10v.c: Add missing prototypes.
2182 * elf32-m32r.c: Add missing prototypes.
2183 * elf32-mcore.c: Add missing prototypes.
2184 * elf32-openrisc.c: Add missing prototypes.
2185 * elf32-sh.c: Add missing prototypes.
2186 * elf32-sparc.c: Add missing prototypes.
2187 * elf32-v850.c: Add missing prototypes.
2188 * elfarm-nabi.c: Add missing prototypes.
2189 * elfarm-oabi.c: Add missing prototypes.
2191 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2193 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
2194 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
2196 2001-08-24 H.J. Lu <hjl@gnu.org>
2198 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
2201 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
2203 * elf-bfd.h (elf_hash_table): Revert definition.
2204 (is_elf_hash_table): New macro.
2205 * elflink.h (elf_link_add_object_symbols): Test
2206 is_elf_hash_table before accessing ELF only fields in hash
2208 (elf_link_create_dynamic_sections): Fail if not using an ELF
2210 (elf_add_dynamic_entry): Fail if not using an ELF hash
2212 (elf_link_record_local_dynamic_symbol): Fail if not using an
2214 (size_dynamic_sections): Fail if not using an ELF hash
2216 (elf_adjust_dynamic_symbol): Fail if not using an ELF
2218 (elf_bfd_final_link): Fail if not using an ELF hash
2221 2001-08-24 H.J. Lu <hjl@gnu.org>
2223 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
2224 table is not an ELF linker hash table.
2226 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
2227 table type to bfd_link_elf_hash_table.
2229 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
2232 * linker.c (_bfd_link_hash_table_init): Set the linker hash
2233 table type to bfd_link_generic_hash_table.
2235 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2237 * bfd.c (bfd_alt_mach_code): New function.
2238 * bfd-in2.h: Rebuilt.
2240 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2242 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
2243 `type' field in the hash entry when deciding whether to follow a
2246 2001-08-24 Jakub Jelinek <jakub@redhat.com>
2248 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
2250 (elf_link_sort_relocs): Adjust accordingly.
2252 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
2253 (elf64_alpha_check_relocs): Set it if section this reloc is against
2254 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
2256 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
2257 is is against read-only section.
2258 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
2259 check section names.
2260 (elf64_alpha_reloc_type_class): New.
2261 (elf_backend_reloc_type_class): Define.
2263 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2265 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
2268 2001-08-23 Andreas Jaeger <aj@suse.de>
2270 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
2271 the reloc is against read-only section.
2272 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
2273 of looking up section names for DT_TEXTREL.
2274 (elf64_x86_64_reloc_type_class): New.
2275 (elf_backend_reloc_type_class): Define.
2277 2001-08-23 H.J. Lu <hjl@gnu.org>
2279 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
2280 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
2282 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
2283 bfd_print_symbol_vandf.
2284 * coffgen.c (coff_print_symbol): Likewise.
2285 * elf.c (bfd_elf_print_symbol): Likewise.
2286 * ieee.c (ieee_print_symbol): Likewise.
2287 * nlmcode.h (nlm_print_symbol): Likewise.
2288 * oasys.c (oasys_print_symbol): Likewise.
2289 * pdp11.c (NAME(aout,print_symbol)): Likewise.
2290 * som.c (som_print_symbol): Likewise.
2291 * srec.c (srec_print_symbol): Likewise.
2292 * tekhex.c (tekhex_print_symbol): Likewise.
2293 * versados.c (versados_print_symbol): Likewise.
2294 * vms.c (vms_print_symbol): Likewise.
2296 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
2297 with bfd_fprintf_vma.
2298 (bfd_elf_print_symbol): Likewise.
2299 * syms.c (bfd_print_symbol_vandf): Likewise.
2301 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2303 * aoutf1.h (sunos_write_object_contents): Silence compile time
2305 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
2307 * bout.c: Add missing function prototypes. Fix formatting.
2308 * coff-z8k.c: Add missing function prototypes. Fix formatting.
2309 * coff-w65.c: Add missing function prototypes. Fix formatting.
2310 * coff-h8500.c: Add missing function prototypes. Fix formatting.
2311 * coff-h8300.c: Add missing function prototypes. Fix formatting.
2312 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
2313 * coff-tic30.c: Add missing function prototypes. Fix formatting.
2314 * coff-m68k.c: Add missing function prototypes. Fix formatting.
2315 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
2316 * coff-sh.c: Add missing function prototypes. Fix formatting.
2318 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2320 * elf-bfd.h (enum elf_reloc_type_class): New.
2321 (struct elf_backend_data): Add elf_backend_reloc_type_class.
2322 (_bfd_elf_reloc_type_class): New.
2323 * elfxx-target.h (elf_backend_reloc_type_class): Define.
2324 (elfNN_bed): Add elf_backend_reloc_type_class.
2325 * elf.c (_bfd_elf_reloc_type_class): New.
2326 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
2327 is against read-only section.
2328 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
2329 looking up section names for DT_TEXTREL.
2330 (elf_i386_reloc_type_class): New.
2331 (elf_backend_reloc_type_class): Define.
2332 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
2333 reloc is against read-only section.
2334 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
2335 looking up section names for DT_TEXTREL.
2336 (elf32_sparc_reloc_type_class): New.
2337 (elf_backend_reloc_type_class): Define.
2338 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
2339 reloc is against read-only section.
2340 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2341 looking up section names for DT_TEXTREL.
2342 (sparc64_elf_reloc_type_class): New.
2343 (elf_backend_reloc_type_class): Define.
2344 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
2345 (elfNN_ia64_hash_table_create): Clear ia64_info.
2346 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
2348 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
2349 instead of looking up section names for DT_TEXTREL.
2350 (elfNN_ia64_reloc_type_class): New.
2351 (elf_backend_reloc_type_class): Define.
2352 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
2353 (struct elf_link_sort_rela): New.
2354 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
2355 (elf_bfd_final_link): Call elf_link_sort_relocs.
2356 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
2359 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2361 * configure.in (x86-bsdi): No corefile support.
2362 * configure: Regenerate.
2364 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
2366 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
2369 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
2371 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
2372 the alignment of dwarf2 linkonce sections to 0.
2373 * coff-sto32.c: Likewise.
2375 2001-08-20 Andreas Jaeger <aj@suse.de>
2377 * coff-sparc.c: Add missing prototypes.
2378 * elf32-s390.c: Likewise.
2379 * elf32-i960.c: Likewise.
2380 * aout-target.h: Likewise.
2382 2001-08-20 H.J. Lu <hjl@gnu.org>
2384 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
2385 (elf_num_section_syms): New for num_section_syms.
2387 * elf.c (elf_map_symbols): Set num_section_syms.
2388 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
2389 the section symbol index.
2391 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
2393 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
2394 select the generic has table creator. All elf backends need elf
2395 specific fields in the hash table.
2397 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2399 * archive.c (offsetof): Remove define.
2402 * sysdep.h (offsetof): Define.
2404 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2406 * bfd.c (bfd_get_gp_size): Return an unsigned int.
2407 (bfd_set_gp_size): Make param unsigned.
2408 * bfd-in2.h: Regenerate.
2409 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
2410 than calling bfd_get_gp_size.
2411 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
2412 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2414 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2416 * linker.c (default_fill_link_order): Handle four byte fill value.
2418 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2420 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
2422 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
2424 * elf64-mips.c (UNUSED_RELOC): Define.
2425 (mips_elf64_howto_table_rel): Use it.
2426 (mips_elf64_howto_table_rela): Here too.
2427 (mips_elf64_write_relocs): Fix signed/unsigned warning.
2429 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
2431 * coffgen.c (coff_print_symbol): Fix warnings.
2432 (coff_find_nearest_line): Likewise.
2433 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2434 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
2435 * format.c (bfd_check_format_matches): Likewise.
2436 (bfd_set_format): Likewise.
2437 * coff-ia64.c: Add missing prototypes.
2438 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2439 signed to silence warnings.
2440 (elf64_alpha_relocate_section): Likewise.
2441 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2442 (elf64_alpha_add_symbol_hook): Likewise.
2443 (elf64_alpha_final_link): Likewise.
2444 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2445 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2446 (elf64_alpha_size_got_sections): Likewise.
2447 * elfxx-ia64.c: Add missing prototypes.
2448 (elfNN_ia64_relocate_section): Fix warning.
2449 (elfNN_ia64_unwind_entry_compare): Make params const.
2451 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2453 * config.bfd (targ64_selvecs): New.
2454 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2456 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2457 (BFD_DEFAULT_TARGET_SIZE): New.
2458 (BFD_ARCH_SIZE): Comment.
2459 * configure.in (target_size): New. Set instead of target64 in
2460 selvecs case statement. Set target64 from it.
2461 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2462 * bfd-in2.h: Regenerate.
2463 * configure: Regenerate.
2465 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2467 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2468 (bfd_errmsgs): Add corresponding message.
2469 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2470 finding an archive that contains different format object files.
2471 Return bfd_error_wrong_object_format for this case.
2472 * format.c: Formatting fixes. s/CONST/const/.
2473 (bfd_check_format_matches): Accept archives that give
2474 bfd_error_wrong_object_format if no full match is found. Tidy
2475 code handling matching_vector. Don't return a pointer to freed
2476 memory in `matching'. Handle ambiguous matches as for partial
2478 * bfd-in2.h: Regenerate.
2480 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2482 * libieee.h (common_header_type): Add last_byte field.
2484 * ieee.c: Add missing prototypes. Some format fixes.
2485 (struct output_buffer_struct): Move for availability to prototypes.
2486 (ieee_part_after): New function.
2487 (ieee_slurp_debug): Use it here.
2488 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2489 ieee_part_after to set last_byte to one past end of current part.
2491 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2493 (parse_expression): Don't go beyond the end of the current part.
2494 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2495 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2496 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2497 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2498 ieee_set_section_contents, ieee_write_object_contents,
2499 ieee_make_empty_symbol): Make static.
2500 (ieee_archive_p): Correct comments regarding bfd_read.
2501 (ieee_object_p): Similarly.
2502 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2503 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2504 input_bfd, output_bfd, output_buffer.
2505 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2506 do_with_relocs, ie. as a symbol for relocatable files.
2507 (ieee_vec): Add comments showing functions referenced by macros.
2509 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2511 * aout-tic30.c: Add missing prototypes. Fix formatting.
2512 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2513 * peXXigen.c: Add missining prototypes. Fix formatting.
2514 * aout-adobe.c: Add missining prototypes. Fix formatting.
2516 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2518 * elf32-v850.c: Add missing function prototypes.
2519 Fix some formatting.
2521 * cpu-v850.c: Add missing function prototype.
2522 Fix some formatting.
2524 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2526 * elf-bfd.h (struct elf_backend_data): Add new fields
2527 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2528 (bfd_elf_sprintf_vma): Rename function prototype to
2529 '_bfd_elf_sprintf_vma'.
2530 (bfd_elf_fprintf_vma): Rename function prototype to
2531 '_bfd_elf_fprintf_vma'.
2532 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2533 directly, instead indirect via the elf_backend_data structure.
2534 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2535 instead indirect via the elf_backend_data structure.
2536 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2537 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2538 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2540 (elf_backend_fprintf_vma): Initialise if not already defined.
2541 (struct elf_backend_data): Initialise the
2542 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2544 2001-08-10 Andreas Jaeger <aj@suse.de>
2546 * elf64-sparc.c: Add missing prototypes.
2547 * elf32-cris.c: Likewise.
2548 * elf32-i370.c: Likewise.
2549 * elf64-hppa.c: Likewise.
2550 * elf64-s390.c: Likewise.
2552 2001-08-10 Andreas Jaeger <aj@suse.de>
2554 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2555 Add prototypes where needed.
2557 2001-08-10 H.J. Lu <hjl@gnu.org>
2559 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2560 (bfd_fprintf_vma): Likewise.
2562 2001-08-10 H.J. Lu <hjl@gnu.org>
2564 * bfd.c (bfd_sprintf_vma): Don't return void.
2565 (bfd_fprintf_vma): Likewise.
2567 2001-08-10 Andreas Jaeger <aj@suse.de>
2569 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2571 * configure: Regenerate.
2573 2001-08-10 Alan Modra <amodra@bigpond.net.au>
2575 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2576 warning if not BFD64. Add braces so emacs auto format works.
2577 (bfd_elf_fprintf_vma): Likewise.
2579 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2581 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2582 param to agree with libxcoff.h.
2583 (xcoff_swap_ldhdr_out): Likewise.
2584 (xcoff_swap_ldsym_in): Likewise.
2585 (xcoff_swap_ldsym_out): Likewise.
2586 (xcoff_swap_ldrel_in): Likewise.
2587 (xcoff_swap_ldrel_out): Likewise.
2588 (xcoff_create_csect_from_smclas): Likewise.
2589 * coff64-rs6000.c: Add missing prototypes.
2590 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2592 (xcoff64_swap_ldhdr_out): Likewise.
2593 (xcoff64_swap_ldsym_in): Likewise.
2594 (xcoff64_swap_ldsym_out): Likewise.
2595 (xcoff64_swap_ldrel_in): Likewise.
2596 (xcoff64_swap_ldrel_out): Likewise.
2597 (xcoff64_ppc_relocate_section): Make static.
2598 (xcoff64_slurp_armap): Likewise.
2599 (xcoff64_archive_p): Likewise.
2600 (xcoff64_openr_next_archived_file): Likewise.
2601 (xcoff64_sizeof_headers): Likewise.
2602 (xcoff64_is_lineno_count_overflow): Likewise.
2603 (xcoff64_is_reloc_count_overflow): Likewise.
2604 (xcoff64_loader_symbol_offset): Likewise.
2605 (xcoff64_loader_reloc_offset): Likewise.
2606 * elf64-gen.c: Add missing prototypes.
2608 2001-08-09 H.J. Lu <hjl@gnu.org>
2610 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2611 (bfd_elf_fprintf_vma): Likewise.
2613 2001-08-09 H.J. Lu <hjl@gnu.org>
2615 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2618 * bfd-in2.h: Regenerated.
2620 2001-08-09 H.J. Lu <hjl@gnu.org>
2622 * bfd-in.h (bfd_sprintf_vma): New prototype.
2623 (bfd_fprintf_vma): Likewise.
2624 (bfd_elf_sprintf_vma): Likewise.
2625 (bfd_elf_fprintf_vma): Likewise.
2626 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2627 * bfd-in2.h: Regenerated.
2629 * bfd.c (bfd_sprintf_vma): New. Defined.
2630 (bfd_fprintf_vma): Likewise.
2632 * elf.c (bfd_elf_sprintf_vma): New. Defined.
2633 (bfd_elf_fprintf_vma): Likewise.
2635 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2637 * coff-rs6000.c: Add missing prototypes.
2638 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
2639 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
2640 xcoff_loader_reloc_offset): Make static.
2641 * dwarf1.c: Add missing prototypes.
2642 * dwarf2.c: Add missing prototypes.
2643 (struct abbrev_info): Move definition.
2644 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
2645 * elf.c: Add missing prototypes.
2646 * elf32-gen.c: Likewise.
2647 * elf32-i386.c: Likewise.
2648 * elf32-ppc.c: Likewise.
2649 (ppc_elf_sort_rela): Use PTR instead of "void *".
2650 * elflink.h: Add missing prototypes. Formatting fixes.
2651 * merge.c: Add missing prototypes.
2652 (last4_eq): Use PTR instead of "void *".
2653 (last_eq): Likewise.
2654 * syms.c: Add missing prototypes.
2656 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2658 * bfd.c: Fix formatting.
2659 * bfd-in2.h: Regenerate.
2661 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2663 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
2664 true (this target uses REL relocations) and 'pcrel_offset' to
2665 false (the PC is implied, not stored in the offset).
2667 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2669 1999-10-19 Linus Nordberg <linus@swox.se>
2670 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
2671 * elfxx-target.h (elf_backend_want_got_sym): Define.
2672 (elfNN_bed): Add elf_backend_want_got_sym.
2673 * elflink.c (_bfd_elf_create_got_section): Define
2674 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2676 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
2678 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
2679 (find_rela_addend): New function.
2680 (parse_comp_unit): Call it to find the abbrev offset addend.
2681 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
2682 members of dwarf2_debug as debugging information is read.
2684 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
2686 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
2687 targets as well as sh-pe.
2689 2001-08-03 Ben Harris <bjh21@netbsd.org>
2691 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
2692 reloc from start of section when computing value for R_ARM_REL32
2695 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2697 From H.J. Lu <hjl@gnu.org>
2698 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
2699 keep relocs for undefined syms if there are no dynamic sections in
2701 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
2703 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2705 * cofflink.c (coff_link_check_ar_symbols): also search for
2706 __imp__symbol as well as _symbol.
2707 * linker.c (_bfd_generic_link_add_archive_symbols): also
2708 search for __imp__symbol as well as _symbol.
2710 2001-08-01 Adam Nemet <anemet@lnxw.com>
2712 * elf.c (elf_sort_sections): Return zero only as the last step.
2714 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
2716 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
2718 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
2719 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
2722 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2724 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
2725 to match corresponding bfd_coff_backend data member.
2727 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2729 * Makefile.am: Update dependencies with "make dep-am".
2730 * Makefile.in: Regenerate
2732 2001-07-15 H.J. Lu <hjl@gnu.org>
2734 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
2735 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
2736 * Makefile.in: Regenerate.
2738 2001-07-11 H.J. Lu <hjl@gnu.org>
2740 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
2741 flags when creating the reloc section if the ALLOC flag in the
2742 source section is set.
2744 2001-07-11 Steve Ellcey <sje@cup.hp.com>
2746 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
2747 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
2748 * bfd-in2.h: Regenerate.
2749 * libbfd.h: Regenerate.
2750 * elfxx-ia64.c (ia64_howto_table): Define how to handle
2752 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
2753 (elfNN_ia64_check_relocs): Likewise.
2754 (elfNN_ia64_install_value): Likewise.
2755 (elfNN_ia64_relocate_section): Likewise.
2757 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2759 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
2761 (elf32_sparc_check_relocs): Likewise.
2762 Only create .rela section for alloced sections in shared libraries.
2763 (elf32_sparc_relocate_section): Likewise.
2764 Remove redundant check.
2765 Optimize unaligned reloc usage.
2766 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
2769 2001-07-11 H.J. Lu <hjl@gnu.org>
2771 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
2772 ALLOC|LOAD flags as the source section for debugging sections
2773 when creating the reloc section.
2775 2001-07-05 Jim Wilson <wilson@redhat.com>
2777 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2778 the section of the bigger symbol.
2780 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2782 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2784 * peicode.h (coff_swap_scnhdr_in): For sections containing
2785 uninitialised data, only set their size to s_paddr if this does
2786 not reset their size to zero. MS's latest compilers will set
2789 2001-07-04 H.J. Lu <hjl@gnu.org>
2791 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2792 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2795 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
2797 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
2799 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
2800 sections being discarded.
2802 2001-06-30 Alan Modra <amodra@bigpond.net.au>
2804 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
2805 instead of _bfd_elfcore_section_from_phdr.
2806 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
2807 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
2808 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
2809 (elfcore_grok_prstatus): Likewise.
2810 (elfcore_grok_lwpstatus): Likewise.
2811 (bfd_get_elf_phdr_upper_bound): Likewise.
2812 (elfcore_make_note_pseudosection): Formatting.
2813 (_bfd_elfcore_strndup): Formatting.
2814 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
2815 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
2817 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
2819 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
2820 and _bfd_elfcore_strndup.
2821 (struct elf_backend_data): Add elf_backend_grok_prstatus
2822 and elf_backend_grok_psinfo.
2823 * elf.c (_bfd_elfcore_make_pseudosection): New function.
2824 (elfcore_grok_prstatus): Use it.
2825 (elfcore_make_note_pseudosection): Likewise.
2826 (elfcore_strndup): Rename to...
2827 (_bfd_elfcore_strndup): Here, and make global.
2828 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
2829 (elfcore_grok_note): Call elf_backend_grok_prstatus
2830 and elf_backend_grok_psinfo if available.
2831 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
2832 (_bfd_elf32_mips_grok_psinfo): New function.
2833 (elf_backend_grok_prstatus): Define.
2834 (elf_backend_grok_psinfo): Define.
2835 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
2836 (elf_backend_grok_psinfo): Likewise.
2837 (elfNN_bed): Include elf_backend_grok_prstatus and
2838 elf_backend_grok_psinfo.
2840 2001-06-29 H.J. Lu <hjl@gnu.org>
2842 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2843 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2844 is NULL before filling PLT.
2846 2001-06-29 Alan Modra <amodra@bigpond.net.au>
2848 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2850 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2852 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2854 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2855 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2858 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2859 (IS_ABSOLUTE_RELOC): Define.
2860 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2861 (hppa_link_hash_newfunc): Always init it.
2862 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2863 create COPY relocs only when the reloc is in a read-only section.
2864 Instead, allocate space for a dynamic reloc to reference the
2865 library symbol directly. Keep track of space we allocate using
2867 (hppa_discard_copies): Delete, and move code to..
2868 (allocate_plt_and_got): ..here. Rename to
2869 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2870 relocs for non-shared link.
2871 (elf32_hppa_size_dynamic_sections): Update calls to above.
2872 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2873 in lieu of COPY relocs.
2875 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2877 (elf_i386_adjust_dynamic_symbol): ..nor here..
2878 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2880 (elf_i386_size_dynamic_sections): Fix a comment.
2881 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2882 involved in writing reloc out.
2884 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2886 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2887 Ensure syms are dynamic if we might be emitting a reloc.
2888 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2889 for undefweak or undefined syms..
2890 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2892 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2893 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2894 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2895 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2897 2001-06-24 H.J. Lu <hjl@gnu.org>
2899 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2900 strncasecmp/strcasecmp instead of strncmp/strcmp.
2902 2001-06-23 H.J. Lu <hjl@gnu.org>
2904 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2905 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2906 in the regular object file and treat the weak definition as
2909 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2911 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2912 unresolved_reloc test to exclude cases where we use "relocation"
2913 before setting it to point into the .got. Reinstate fudge for
2914 unresolved relocs in debugging sections.
2916 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2917 complicated tests for unresolvable relocs with a simple direct
2918 scheme using "unresolved_reloc" var.
2920 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2921 elf_i386_dyn_relocs. Update comment.
2922 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2924 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2926 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2928 (elf_i386_size_dynamic_sections): Likewise.
2929 (elf_i386_finish_dynamic_symbol): Likewise.
2930 (elf_i386_finish_dynamic_sections): Likewise.
2931 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2934 Avoid creating COPY relocs if possible.
2935 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2936 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2937 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2938 reloc is in a read-only section. Instead, allocate space for a
2939 dynamic reloc to reference the library symbol directly. Keep
2940 track of space we allocate using pcrel_relocs_copied.
2941 (discard_copies): Delete, and move code to ..
2942 (allocate_plt_and_got): ..here. Rename to
2943 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2944 relocs for non-shared link.
2945 (elf_i386_size_dynamic_sections): Update calls to above functions.
2946 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2947 more ugly logic to avoid "unresolvable relocation" error. Use
2948 htab shortcut in place of elf_hash_table macro.
2949 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2950 not always be created now.
2952 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2954 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2957 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2959 * configure.host (mips64-*-linux): Reformat.
2961 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2963 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2964 allocate local .got space. Use shortcuts from hash table for .got
2965 and .plt rather than comparing section names.
2966 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2967 adjusting index into local_got_refcounts to document what we are
2969 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2970 Tidy .got and .plt error checking.
2972 2001-06-20 Catherine Moore <clm@redhat.com>
2974 * elf-bfd.h (struct elf_backend_data):
2975 elf_backend_emit_relocs: New field: Function for emitting
2977 elf_backend_count_relocs: New field: Function for determining
2978 the number of relocs to be emitted.
2979 * elfxx-target.h: Provide default (NULL) values for
2980 elf_backend_emit_relocs and elf_backend_count_relocs.
2981 * elflink.h (elf_link_size_reloc_section): Make the hash table
2982 big enough to hold the relocs counted by either reloc_count or
2984 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2985 should be emitted, either because of a command line option
2986 stored in the info structure or because the target provides a
2987 special reloc emitting function.
2988 If the target provides a reloc counting function use it,
2989 unless performing a relocatable link or emitting all relocs.
2990 Also set the SEC_RELOC flag on any output section which will
2992 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2993 should be emitted, either because of a command line option
2994 stored in the info structure or because the target provides a
2995 special reloc emitting function.
2996 If the target provides a reloc emitting function, use it,
2997 unless performing a relocatable link or emitting all relocs.
2999 2001-06-20 H.J. Lu <hjl@gnu.org>
3001 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
3002 allocate local .got space.
3004 2001-06-19 Andreas Jaeger <aj@suse.de>
3006 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
3009 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3011 * elflink.h (struct elf_assign_sym_version_info): Remove member
3012 export_dynamic. All users changed to use info member.
3013 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
3014 export_dynamic, instead use member in parameter info.
3015 * bfd-in.h (bfd_elf32_size_dynamic_sections,
3016 bfd_elf64_size_dynamic_sections): Update prototype.
3017 * bfd-in2.h: Regenerate.
3019 2001-06-18 H.J. Lu <hjl@gnu.org>
3021 * elflink.h (elf_info_failed): Add a new field, verdefs.
3022 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
3024 (elf_export_symbol): Check eif->verdefs to decide if a symbol
3027 2001-06-17 H.J. Lu <hjl@gnu.org>
3029 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
3030 readonly_reloc, to record if a relocation in the .rel.dyn
3031 section is against a read-only section.
3032 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
3034 (_bfd_mips_elf_check_relocs): Record if there is a relocation
3035 in the .rel.dyn section against a read-only section by setting
3036 DF_TEXTREL or readonly_reloc.
3037 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
3039 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
3040 there is a relocation in the .rel.dyn section against a
3042 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
3045 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3047 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
3048 function. Move flagword result into parameter list. Remove
3049 comment about setting bfd_error_handler to intercept failure
3051 * coffgen.c (make_a_section_from_file): Examine result of
3052 calling bfd_coff_styp_to_sec_flags and pass a failure back to
3054 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
3055 function. Move flagword result into parameter list.
3056 * libcoff.h: Regenerate.
3057 * libecoff.h: Regenerate.
3059 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
3061 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
3062 section is going to follow it.
3064 2001-06-12 Catherine Moore <clm@redhat.com>
3066 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
3067 with the file_align entry from elf_backend_data.
3068 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3069 (elf_gc_record_vtentry): Likewise.
3071 2001-06-10 Alan Modra <amodra@bigpond.net.au>
3073 * elflink.h: Whitespace changes.
3074 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
3075 rather than "unsigned char".
3076 (elf_link_output_relocs): Likewise.
3077 (elf_link_input_bfd): Likewise.
3078 (elf_reloc_link_order): LIkewise.
3079 * elf.c: s/CONST/const/. Whitespace changes.
3080 * elf32-mips.c: Formatting fix.
3082 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
3083 * Makefile.in: Regenerate.
3084 * po/Make-in: Remove trailing tab.
3086 2001-06-09 Philip Blundell <philb@gnu.org>
3088 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
3090 (elf32_arm_plt_entry): Likewise.
3092 2001-06-08 H.J. Lu <hjl@gnu.org>
3094 * elf.c (swap_out_syms): Keep names for global section symbols.
3096 2001-06-07 H.J. Lu <hjl@gnu.org>
3098 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
3099 MIPS-based machines need it.
3101 2001-06-07 H.J. Lu <hjl@gnu.org>
3103 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
3106 * config.bfd: Remove ecoff from Linux/mips.
3108 2001-06-07 Andreas Jaeger <aj@suse.de>
3110 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
3112 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
3113 alignment of 8 for .rela sections; handle further relocations.
3115 2001-06-06 Christian Groessler <cpg@aladdin.de>
3117 * coff-z8k.c: Fix formatting.
3118 Fix howtos: howto->size was always 1.
3120 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3122 * configure.host (mips64*-*-linux*): Define.
3124 2001-06-05 Alan Modra <amodra@bigpond.net.au>
3126 * elf32-i386.c (elf_i386_discard_copies): Rename to
3127 discard_copies, and use elf_link_hash_entry arg rather than
3128 elf_i386_link_hash_entry.
3129 (elf_i386_link_hash_traverse): Delete.
3130 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
3131 Tidy sizing of dynamic sections.
3132 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
3133 possible .plt entries.
3134 (elf_i386_gc_sweep_hook): Likewise.
3135 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
3136 everything with plt.refcount <= 0.
3138 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
3140 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
3141 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
3143 (allocate_plt_and_got): ..instead do it all here. New function.
3144 (elf_i386_size_dynamic_sections): Allocate local .got space and
3145 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
3146 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
3147 rather than gc variety).
3148 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3149 (elf_i386_relocate_section): Use it here and correct handling of
3150 R_386_GOT32. Provide section and offset for "unresolvable
3151 relocation" error message.
3152 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
3154 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
3155 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
3156 (elf_i386_link_hash_table_create): Init them.
3157 (create_got_section): New function.
3158 (elf_i386_create_dynamic_sections): New function.
3159 (elf_backend_create_dynamic_sections): Set to above.
3160 (elf_i386_check_relocs): Use shortcuts from hash table rather than
3161 calling bfd_get_section_by_name.
3162 (elf_i386_gc_sweep_hook): Likewise.
3163 (elf_i386_adjust_dynamic_symbol): Likewise.
3164 (elf_i386_size_dynamic_sections): Likewise.
3165 (elf_i386_relocate_section): Likewise.
3166 (elf_i386_finish_dynamic_sections): Likewise.
3168 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
3170 2001-06-02 H.J. Lu <hjl@gnu.org>
3172 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
3174 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
3176 2001-06-02 H.J. Lu <hjl@gnu.org>
3178 * aout-cris.c (MACHTYPE_OK): New. Defined.
3180 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
3182 * section.c (_bfd_strip_section_from_output): Handle NULL
3185 2001-06-02 H.J. Lu <hjl@gnu.org>
3187 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
3188 rs6000coff64_vec only if BFD64 is defined.
3189 (powerpc64-*-aix*): Enable only if BFD64 is defined.
3191 2001-06-02 H.J. Lu <hjl@gnu.org>
3193 * coff-ia64.c (ia64coff_object_p): Rewrite with
3194 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
3196 2001-06-01 Andreas Jaeger <aj@suse.de>
3198 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
3199 relocation, small reformatting.
3201 2001-05-29 Andreas Jaeger <aj@suse.de>
3203 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
3204 (elf64_x86_64_relocate_section): Likewise.
3206 2001-05-30 Alan Modra <amodra@one.net.au>
3208 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
3209 millicode. Don't allocate .got and .rela.got space here..
3210 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
3211 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
3213 (hppa_handle_PIC_calls): ..nor here..
3214 (allocate_plt_and_got): ..instead do it all here. New function.
3215 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
3216 call allocate_plt_and_got. No need to zap .got if not dynamic.
3217 (elf32_hppa_final_link): Call regular bfd_final_link instead of
3218 gc_common_final_link.
3219 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3220 (elf32_hppa_relocate_section): Use it here.
3221 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
3222 dynamic_sections_created.
3223 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
3225 2001-05-28 Andreas Jaeger <aj@suse.de>
3227 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
3228 generic version since we want a hashsize of 4.
3229 (elf_backend_size_info): Likewise.
3231 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3233 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
3235 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
3236 (elf_link_input_bfd): Likewise.
3237 (elf_reloc_link_order): Likewise.
3238 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
3239 relocations correctly.
3241 2001-05-28 Nicolas Pitre <nico@cam.org>
3243 * elf32-arm.h: fix PLT generation for big endian ARM
3245 2001-05-28 Alan Modra <amodra@one.net.au>
3247 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
3248 for symbols forced local that need plabels.
3249 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
3250 .plt.rela for local syms if non-shared.
3251 (hppa_build_one_stub): Mask lsb of plt.offset.
3252 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
3253 (clobber_millicode_symbols): Correct comment.
3254 (elf32_hppa_relocate_section): Likewise.
3255 (elf32_hppa_finish_dynamic_symbol): Likewise.
3257 2001-05-28 Jeff Sturm <jsturm@one-point.com>
3259 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
3260 * bfd-in2.h: Regenerate.
3261 * libbfd.h: Regenerate.
3262 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
3263 and BFD_RELOC_SPARC_UA64 mapping
3264 * elf64-sparc.c: Likewise.
3266 2001-05-25 H.J. Lu <hjl@gnu.org>
3268 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
3269 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
3270 (coff-rs6000.lo): Remove the old dependency.
3271 * Makefile.in: Rebuild.
3273 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
3276 2001-05-25 H.J. Lu <hjl@gnu.org>
3278 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
3279 rs6000coff_core_file_matches_executable_p,
3280 rs6000coff_core_file_failing_command and
3281 rs6000coff_core_file_failing_signal only if AIX_CORE is
3283 (pmac_xcoff_vec): Likewise.
3284 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
3286 2001-05-25 Timothy Wall <twall@redhat.com>
3288 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
3289 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
3291 2001-05-25 H.J. Lu <hjl@gnu.org>
3293 * bfd-in2.h: Regenerated.
3294 * libcoff.h: Likewise.
3296 2001-05-25 Alan Modra <amodra@one.net.au>
3298 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
3299 undefined millicode syms in shared libs.
3300 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
3301 (elf32_hppa_check_relocs): Likewise.
3302 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3303 (elf32_hppa_size_dynamic_sections): Likewise.
3304 (elf32_hppa_relocate_section): Likewise.
3305 (elf32_hppa_finish_dynamic_symbol): Likewise.
3306 (elf32_hppa_finish_dynamic_sections): Likewise.
3308 2001-05-24 Tom Rix <trix@redhat.com>
3310 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
3311 xcoff-target.h not used to define rs6000 or ppc bfd.
3314 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
3317 * coff-rs6000.c : Many changes for 64 bit support. Move common
3318 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
3321 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
3322 linker now supported. Explictly define the rs6000coff64_vec.
3324 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
3325 (coff_print_aux) same
3326 (coff_write_object_contents) same
3327 (coff_slurp_line_table) same
3329 * coffgen.c : (coff_fix_symbol_name) formatting
3330 (coff_mangle_symbols) xcoff 64 bit support
3331 (coff_write_symbol) same
3332 (coff_write_alien_symbol) same
3333 (coff_write_native_symbol) same
3334 (coff_write_symbols) same
3335 (coff_get_symbol_info) same
3336 (bfd_coff_get_syment) same
3337 (coff_print_symbol) same
3339 * config.bfd : add powerpc64-*-aix* target
3341 * libcoff-in.h : formatting
3343 * libcoff.h : move xcoff extern declarations to libxcoff.h
3345 * libxcoff.h : New file
3347 * xcofflink.c : Many changes for xcoff64 support. Move common
3348 structures to include/coff/xcoff.h. Move specific structure to
3349 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
3350 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
3352 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
3355 (xcoff_build_ldsyms) : handle special __rtinit symbol.
3357 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3359 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
3362 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3364 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
3365 * libbfd.h: Regenerate.
3366 * bfd-in2.h: Regenerate.
3368 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
3369 * archures.c (bfd_mach_mips12000): Define.
3370 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
3371 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
3373 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
3374 * bfd-in2.h: Regenerate.
3375 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
3377 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
3379 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
3380 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
3381 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
3382 that is used by GCC.
3384 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3386 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
3387 of entries in a structured section.
3388 * elf.c: Use new macro.
3389 * elf32-i386.c: Use new macro.
3390 * elf32-mips.c: Use new macro.
3391 * elf64-alpha.c: Use new macro.
3392 * elf64-sparc.c: Use new macro.
3393 * elfcode.h: Use new macro.
3394 * elflink.h: Use new macro.
3396 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3398 * bfdint.texi: Replace -oformat with --oformat.
3400 2001-05-21 Andreas Jaeger <aj@suse.de>
3402 * dwarf2.c (decode_line_info): Fix error message.
3403 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
3404 adjust error message.
3406 2001-05-18 H.J. Lu <hjl@gnu.org>
3408 * elflink.h (elf_link_add_object_symbols): Revert the last
3411 2001-05-17 Alan Modra <amodra@one.net.au>
3413 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
3414 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
3415 (hppa_build_one_stub): Add an assert to check plt.offset.
3417 2001-05-17 H.J. Lu <hjl@gnu.org>
3419 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
3420 version definition to basename of the output filename.
3422 2001-05-17 H.J. Lu <hjl@gnu.org>
3424 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
3425 basename of the bfd filename.
3427 2001-05-16 Alan Modra <amodra@one.net.au>
3429 * section.c (asection): Add linker_has_input field.
3430 (STD_SECTION): Adjust initialization to suit.
3431 * ecoff.c (bfd_debug_section): Likewise.
3432 * bfd-in2.h: Regenerate.
3434 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
3436 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3437 negative 32-bit operands to 16 operands when the operand is
3438 going to be zero-extended by the modified opcode.
3440 2001-05-12 Peter Targett <peter.targett@arccores.com>
3442 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3443 name for 'arc5' core versions.
3444 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3446 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3448 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3450 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3452 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3454 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3455 to .gnu.linkonce.t.FOO text section.
3457 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3459 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3460 fields, change sec into secinfo.
3461 (struct sec_merge_info): Add chain, remove last fields.
3462 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3463 (sec_merge_hash_lookup): If lookup could not use a string only
3464 because it has bad alignment, mark the old string for deletion.
3465 (sec_merge_add): Add secinfo argument. Don't compute entry's
3466 position, instead record the section.
3467 (sec_merge_emit): Update for the sec into secinfo change in
3468 struct sec_merge_hash_entry.
3469 (_bfd_merge_section): Only record the section for merging, defer
3470 putting strings into the hash table.
3471 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3472 _bfd_merge_sections): New functions.
3473 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3475 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3476 (_bfd_nolink_bfd_merge_sections): Define.
3477 * libbfd.h: Likewise.
3478 (bfd_generic_merge_sections): Add prototype.
3479 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3480 (struct bfd_target): Likewise.
3481 * bfd.c (bfd_merge_sections): Define.
3482 * bfd-in2.h: Rebuilt.
3483 * elf.c (_bfd_elf_merge_sections): New function.
3484 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3485 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3486 * reloc.c (bfd_generic_merge_sections): New function.
3487 * vms.c (vms_bfd_merge_sections): New function.
3488 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3489 * aout-target.h (MY_bfd_merge_sections): Define.
3490 * aout-tic30.c (MY_bfd_merge_sections): Define.
3491 * binary.c (binary_bfd_merge_sections): Define.
3492 * bout.c (b_out_bfd_merge_sections): Define.
3493 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3494 * coffcode.c (coff_bfd_merge_sections): Define.
3495 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3496 * i386msdos.c (msdos_bfd_merge_sections): Define.
3497 * i386os9k.c (os9k_bfd_merge_sections): Define.
3498 * ieee.c (ieee_bfd_merge_sections): Define.
3499 * ihex.c (ihex_bfd_merge_sections): Define.
3500 * nlm-target.h (nlm_bfd_merge_sections): Define.
3501 * oasys.c (oasys_bfd_merge_sections): Define.
3502 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3503 * som.c (som_bfd_merge_sections): Define.
3504 * srec.c (srec_bfd_merge_sections): Define.
3505 * tekhex.c (tekhex_bfd_merge_sections): Define.
3506 * versados.c (versados_bfd_merge_sections): Define.
3507 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3509 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3511 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3512 to be unsigned long, in order to match its use.
3514 2001-05-10 H.J. Lu <hjl@gnu.org>
3516 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3519 2001-05-09 H.J. Lu <hjl@gnu.org>
3521 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3522 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3523 Remove the unused veriable `dynver'.
3525 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3527 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3528 NULL or is not COFF.
3529 (coff_i386_rtype_to_howto): Don't dump core if output section
3532 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3534 * ecoff.c (bfd_debug_section): Fix initialization.
3535 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3536 is always a positive integer. Cast away sign mismatch.
3537 * elf32-mips.c: Fix misleading comment and typo.
3538 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3540 * elflink.c: Fix typo.
3541 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3542 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3544 2001-05-04 Richard Henderson <rth@redhat.com>
3546 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3548 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3550 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3551 EF_ARM_HASENTRY if the start address is set.
3553 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3555 * targets.c (_bfd_target_vector_entries): Compute value based on
3556 the size of the _bfd_target_vector and not bfd_target_vector.
3558 2001-05-03 H.J. Lu <hjl@gnu.org>
3560 * elfcode.h: Include "libiberty.h".
3562 * elflink.h (elf_link_add_object_symbols): Set
3563 elf_dt_name (abfd) to basename of the bfd filename.
3564 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3565 of the bfd filename.
3567 2001-05-03 Andreas Jaeger <aj@suse.de>
3569 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3570 (elf_generic_info_to_howto_rel): Likewise.
3571 * coff-alpha.c (reloc_nil): Likewise.
3572 (alpha_ecoff_bad_format_hook): Likewise.
3573 (alpha_adjust_reloc_out): Likewise.
3574 (alpha_bfd_reloc_type_lookup): Likewise.
3575 (alpha_convert_external_reloc): Likewise.
3576 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3577 (elf64_alpha_reloc_bad): Likewise.
3578 (elf64_alpha_reloc_gpdisp): Likewise.
3579 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3580 (elf64_alpha_info_to_howto): Likewise.
3581 (elf64_alpha_add_symbol_hook): Likewise.
3582 (elf64_alpha_create_got_section): Likewise.
3583 (elf64_alpha_is_local_label_name): Likewise.
3584 (elf64_alpha_merge_ind_symbols): Likewise.
3585 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3586 (mips_elf64_get_reloc_upper_bound): Likewise.
3587 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3588 (nlm_alpha_get_public_offset): Likewise.
3590 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3592 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3593 about overflow in R_OPENRISC_LO_16_IN_INSN and
3594 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3596 2001-04-30 H.J. Lu <hjl@gnu.org>
3598 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3599 only for ELF_LINK_FORCED_LOCAL.
3600 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3601 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3602 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3604 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3605 if the symbol has hidden or internal visibility.
3607 2001-04-30 Alan Modra <amodra@one.net.au>
3609 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3610 calls to undefined weak symbols.
3612 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3614 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3615 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3617 2001-04-27 Andreas Jaeger <aj@suse.de>
3619 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3620 out handled entries.
3621 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3622 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3623 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3626 2001-04-27 Sean McNeil <sean@mcneil.com>
3628 * config.bfd: Add arm-vxworks target.
3629 * coff-arm (coff_arm_relocate_section): Add in symbol value to
3630 addend (fro VXworks targets).
3632 2001-04-26 H.J. Lu <hjl@gnu.org>
3634 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
3637 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3639 * bfd-in.h (bfd_cache_close): Declare newly exported function.
3640 * bfd-in2.h: Regenerated.
3642 2001-04-24 Jakub Jelinek <jakub@redhat.com>
3644 * merge.c (struct sec_merge_hash_entry): Add alignment field.
3645 (struct sec_merge_hash): Remove alignment_power.
3646 (sec_merge_hash_newfunc): Clear alignment.
3647 (sec_merge_hash_lookup): Pass alignment as argument.
3648 Use hashp->root.next, not hashp->next to walk the hash chain.
3649 If a string already in the hashtable does not have required
3650 alignment, create a new hashtable entry.
3651 (sec_merge_init): Remove alignment_power argument.
3652 (sec_merge_add): Add alignment argument.
3653 (sec_merge_emit): Alignment is now a per-entity thing, not per
3655 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
3656 for proper alignment.
3657 Pass alignment information to sec_merge_add.
3659 2001-04-24 Christian Groessler <cpg@aladdin.de>
3661 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
3662 and R_REL16 reloc types; accept odd values for R_REL16 type
3664 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
3666 * cpu-openrisc.c: New file.
3667 * elf32-openrisc.c: Likewise.
3669 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
3670 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
3671 (BFD32_BACKENDS): Add elf32-openrisc.lo.
3672 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
3673 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
3674 * Makefile.in: Regenerated.
3675 * config.bfd: (openrisc-*-elf): New target.
3676 * configure.in (bfd_elf32_openrisc_vec): New vector.
3677 * configure: Regenerated.
3678 * libbfd.h: Regenerated.
3679 * bfd-in2.h: Regenerated.
3680 * reloc.c: Add OpenRISC relocations.
3681 * targets.c (bfd_elf32_openrisc_vec): Declare.
3682 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
3683 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
3684 (bfd_openrisc_arch): Declare.
3685 (bfd_archures_list): Add bfd_openrisc_arch.
3686 * elf.c (prep_headers): Add bfd_arch_openrisc.
3688 2001-04-23 Bo Thorsen <bo@suse.de>
3690 * elf64-x86-64.c: Add c++ vtable hack.
3691 Small whitespace and comment changes.
3693 2001-04-19 Andreas Jaeger <aj@suse.de>
3695 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
3696 (elf64_x86_64_plt_entry): Likewise.
3697 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
3698 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
3700 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
3702 * elf32-cris.c: Tweak comments related to dynamic linking.
3703 (cris_elf_relocate_section): When not creating shared object, fill
3704 in the .got table for any symbol not in the dynamic symbol table.
3705 (elf_cris_finish_dynamic_symbol): When not creating shared object,
3706 only emit a .got.rela reloc if the symbol is in the dynamic symbol
3708 (cris_elf_check_relocs): Use variable r_type in all places rather
3709 than the original expression. Add default case in switch for
3711 (elf_cris_size_dynamic_sections): Iterate over
3712 elf_cris_discard_excess_program_dynamics when not creating shared
3714 (elf_cris_discard_excess_dso_dynamics): Renamed from
3715 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
3716 (elf_cris_discard_excess_program_dynamics): New.
3718 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
3720 * coffcode.h (coff_write_object_contents): Use
3721 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
3723 2001-04-14 H.J. Lu <hjl@gnu.org>
3725 * bfd-in2.h: Regenerate.
3727 2001-04-14 Jakub Jelinek <jakub@redhat.com>
3729 * section.c (STD_SECTION): Add entsize.
3731 2001-04-13 H.J. Lu <hjl@gnu.org>
3733 * section.c (SEC_MERGE): Define new flag for merging.
3734 (SEC_STRINGS): Likewise.
3735 (entsize): New field.
3737 2001-04-13 Roger Sayle <roger@metaphorics.com>
3739 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
3740 flag on pe-i386 targets.
3742 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3744 * libbfd-in.h (_bfd_merge_section): New.
3745 (_bfd_write_merged_section): New.
3746 (_bfd_merged_section_offset): New.
3747 * libbfd.h: Rebuilt.
3748 * linker.c (_bfd_generic_link_output_symbols): Handle
3750 * aoutx.h (aout_link_write_symbols): Likewise.
3751 * pdp11.c (aout_link_write_symbols): Likewise.
3752 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
3753 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
3755 (elf_link_sec_merge_syms): New.
3756 (elf_link_input_bfd): Call _bfd_merged_section_offset
3757 and _bfd_write_merged_section.
3758 Handle discard_sec_merge.
3759 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
3761 (struct bfd_elf_section_data): Likewise.
3762 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
3763 SEC_STRINGS section flags and entsize from their ELF counterparts.
3764 (_bfd_elf_link_hash_table_init): Initialize merge_info.
3765 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
3766 from their BFD counterparts.
3767 * merge.c: New file.
3768 * Makefile.am: Add strtab.lo.
3769 * Makefile.in: Rebuilt.
3771 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
3773 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
3774 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
3776 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3778 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3779 endian MIPS ELF target.
3780 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3783 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3784 64bit big endian MIPS ELF target.
3785 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3786 endian MIPS ELF target.
3787 * configure: Regenerated.
3789 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3790 little endian targets.
3791 (mips_elf_sym_is_global): Handle traditional targets.
3793 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3794 64bit big endian MIPS ELF target.
3795 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3796 endian MIPS ELF target.
3798 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
3799 and bfd_elf64_tradlittlemips_vec.
3801 2001-04-05 David Mosberger <davidm@hpl.hp.com>
3803 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
3804 ordinary "progbits" section.
3806 2001-04-04 Alan Modra <alan@linuxcare.com.au>
3808 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
3809 when -Bsymbolic causes a symbol to no longer need a .plt entry.
3811 2001-04-03 David Mosberger <davidm@hpl.hp.com>
3813 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
3815 2001-03-30 H.J. Lu <hjl@gnu.org>
3817 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
3818 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
3820 2001-03-26 H.J. Lu <hjl@gnu.org>
3822 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
3823 if there are any relocations for generic ELF.
3824 (bfd_elf32_bfd_link_add_symbols): Defined to
3825 elf32_generic_link_add_symbols.
3826 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
3827 if there are any relocations for generic ELF.
3828 (bfd_elf64_bfd_link_add_symbols): Defined to
3829 elf64_generic_link_add_symbols.
3831 2001-03-23 Nick Clifton <nickc@redhat.com>
3833 * Makefile.am (BUILD_CFILES): New variable: List of C source
3834 files created in build directory.
3835 (BUILD_HFILES): New variable: List of header files created in
3838 (po/POTFILES.in): Replace rule with empty entry.
3839 (po/SRC-POTFILES.in): New rule: Create a list of source files
3840 in the source directory.
3841 (po/BLD-POTFILES.in): New rule: Create a list of source files
3842 in the build directory.
3843 (MOSTLYCLEAN): Do not delete source files created in build
3845 * Makefile.in: Regenerate.
3846 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3848 * configure: Regenerate.
3850 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3852 Add .. to the search path when building bfd.pot.
3853 Delete POTFILES when performing distclean.
3854 Add comment describing why distclean is broken in maintainer mode.
3855 * po/POTFILES.in: Delete.
3856 * po/SRC-POTFILES.in: New file.
3857 * po/BLD-POTFILES.in: New file.
3858 * po/bfd.pot: Regenerate.
3860 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3862 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3863 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3864 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3865 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3866 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3867 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3869 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3870 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3871 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3872 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3873 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3874 New HOWTO members for new relocs.
3875 (cris_reloc_map): Map new relocs.
3876 (ELF_DYNAMIC_INTERPRETER): Define.
3877 (PLT_ENTRY_SIZE): Define.
3878 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3879 elf_cris_pic_plt_entry): New, PLT templates.
3880 (struct elf_cris_pcrel_relocs_copied, struct
3881 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3882 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3883 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3884 positive values. Adjust PCREL relocs to be relative to location
3886 (cris_elf_relocate_section): Handle relocations to dynamic
3887 objects. Handle new relocations. Call error handler when seeing
3888 non-PIC relocation for read-only sections while generating shared
3890 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3892 (bfd_elf32_bfd_link_hash_table_create,
3893 elf_backend_adjust_dynamic_symbol,
3894 elf_backend_size_dynamic_sections,
3895 elf_backend_finish_dynamic_symbol,
3896 elf_backend_finish_dynamic_sections,
3897 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3898 elf_backend_hide_symbol, elf_backend_want_got_plt,
3899 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3900 elf_backend_got_header_size, elf_backend_plt_header_size):
3903 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3904 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3905 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3906 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3907 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3908 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3909 * bfd-in2.h, libbfd.h: Regenerate.
3911 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3913 (_bfd_mips_elf_relocate_section): Give a better error message when
3914 a relocation is not recognized.
3916 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3918 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3919 non-NULL before attempting to dereference.
3921 2001-03-20 H.J. Lu <hjl@gnu.org>
3923 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3924 * configure: Rebuild.
3926 2001-03-20 Andreas Schwab <schwab@suse.de>
3928 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3929 relocation value when resolving a reference from a debugging
3932 2001-03-16 Scott Thomason <SThomaso@hii.com>
3934 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3935 (xcoff64_swap_sym_out): Fix syntax errors.
3937 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3939 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3941 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3943 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3944 (hppa_link_hash_newfunc): Init it.
3945 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3946 section appears to be non-PIC.
3947 (final_link_relocate): Likewise.
3948 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3949 possible candidate function, and set pic_call for those that will
3950 only have a .plt entry for the PIC call stub.
3951 (hppa_handle_PIC_calls): Set maybe_pic_call.
3953 2001-03-12 DJ Delorie <dj@redhat.com>
3955 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3956 R_SH_DIR8WP* relocs if they're against external symbols, else
3957 they're just for relaxing. Validate the reloc values.
3959 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3961 * binary.c (bfd_external_binary_architecture): Declare.
3962 (binary_object_p): If bfd_external_binary_architecture is defined,
3963 set the architecture to this string.
3965 2001-03-11 Philip Blundell <philb@gnu.org>
3967 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3968 entries that could serve as a definition for a weak symbol.
3970 2001-03-08 Nick Clifton <nickc@redhat.com>
3972 * Most files: Update copyright notices using Perl script created
3973 by Kevin Buettner <kevinb@redhat.com>.
3975 2001-03-07 Nick Clifton <nickc@redhat.com>
3977 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3978 prior patch on ! defined OLD_ARM_ABI.
3980 2001-03-07 Andreas Jaeger <aj@suse.de>
3982 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3983 some relocation values.
3985 2001-03-06 Nick Clifton <nickc@redhat.com>
3987 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3988 of offset in BLX(1) instruction.
3989 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3990 offset in BLX(1) instruction.
3993 2001-03-06 Nick Clifton <nickc@redhat.com>
3995 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3996 BFD_RELOC_THUMB_PCREL_BLX.
3998 2001-03-06 Igor Shevlyakov <igor@windriver.com>
4000 * archures.c (bfd_default_scan): Add Coldfire CPUs.
4001 * bfd-in2.h: Regenerate.
4002 * cpu-m68k.c: Add Coldfire CPUs for arch table.
4003 * ieee.c (ieee_write_processor): Set proper id for
4006 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
4008 * configure.in: Add s390 target.
4009 * configure: Regenerate.
4011 2001-02-28 Andreas Jaeger <aj@suse.de>
4013 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
4016 2001-02-28 Philip Blundell <pb@futuretv.com>
4018 * elf32-arm.h: Update mentions of renamed EF_xx constants.
4019 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
4021 2001-02-27 H.J. Lu <hjl@gnu.org>
4023 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
4024 abfd->tdata.aout_data == NULL.
4026 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4028 * elf32-hppa.c: Correct field selector in stub comments.
4029 (clobber_millicode_symbols): Formatting fix.
4031 * configure.in: Bump version to 2.11.90.
4032 * configure: Regenerate.
4033 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
4034 (CFILES): $SOURCE_CFILES + generated C files.
4035 (POTFILES): Include $HFILES not $SOURCE_HFILES.
4037 * Makefile.in: Regenerate.
4038 * doc/Makefile.in: This too.
4040 2001-02-26 Timothy Wall <twall@cygnus.com>
4042 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
4045 2001-02-26 Nick Clifton <nickc@redhat.com>
4047 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
4048 up, replacing multiple if statements with a switch.
4049 (handle_COMDAT): New function.
4051 2001-02-26 H.J. Lu <hjl@gnu.org>
4053 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
4054 a warning for section flags we do not handle instead of
4057 2001-02-26 Andreas Jaeger <aj@suse.de>
4059 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
4061 2001-02-22 Timothy Wall <twall@cygnus.com>
4063 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
4064 * configure.in: Add objects for elf64_ia64_aix vectors.
4065 * configure: Regenerated.
4066 * configure.host: Recognize ia64-*-aix*.
4067 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
4068 for AIX. AIX5 requires most relocations to be dynamic (*all*
4069 binaries are somewhat similar to shared libraries).
4070 * targets.c: Add elf64_ia64_aix vectors.
4072 2001-02-21 David Mosberger <davidm@hpl.hp.com>
4074 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
4075 C8 said "1" instead of "8". Clarify error string for IMM22:
4076 "signed integer" instead of just "integer".
4078 2001-02-20 Andreas Jaeger <aj@suse.de>
4080 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
4081 PLT entries that could serve as a definition for a weak symbol.
4083 2001-02-19 Jakub Jelinek <jakub@redhat.com>
4085 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
4086 entries that could serve as a definition for a weak symbol.
4087 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
4089 2001-02-18 David O'Brien <obrien@FreeBSD>
4091 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
4092 FreeBSD/i386-CURRENT differently until I can figure out the needed
4094 * configure: Regenerate.
4095 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
4096 FreeBSD/PowerPC, and FreeBSD/sparc64.
4098 2001-02-18 lars brinkhoff <lars@nocrew.org>
4100 * Makefile.am: Add PDP-11 a.out target.
4101 * config.bfd: Likewise.
4102 * configure.in: Likewise.
4103 * targets.c: Likewise.
4104 * archures.c: Likewise.
4105 * bfd-in2.h: Likewise. Add PDP-11 relocations.
4106 * libbfd.h: Add PDP-11 relocations.
4107 * reloc.c: Likewise.
4108 * cpu-pdp11.c: New file.
4109 * pdp11.c: New file.
4111 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
4112 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4113 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4114 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
4115 (GET_MAGIC): New macro.
4116 (PUT_MAGIC): Likewise.
4117 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
4119 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
4121 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
4122 multiarch needs it).
4124 2001-02-18 H.J. Lu <hjl@gnu.org>
4126 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
4129 2001-02-18 Kazu Hirata <kazu@hxi.com>
4131 * vms-misc.c: Fix formatting.
4133 2001-02-16 Kazu Hirata <kazu@hxi.com>
4135 * vms.c: Fix formatting.
4137 2001-02-14 H.J. Lu <hjl@gnu.org>
4139 * elf.c (elf_find_function): New function.
4140 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
4141 the file name and function name.
4143 2001-02-14 Nick Clifton <nickc@redhat.com>
4145 * ecoff.c (bfd_debug_section): Update to initialise new fields in
4148 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
4149 (BFD64_BACKENDS): Add pepigen.c
4150 Add rules to create peigen.c and pepigen.c from peXXigen.c.
4152 * Makefile.in: Regenerate.
4153 * configure: Regenerate.
4154 * po/POTFILES.in: Regenerate.
4155 * po/bfd.pot: Regenerate.
4157 2001-02-14 H.J. Lu <hjl@gnu.org>
4159 * libcoff-in.h (pe_tdata): Add members target_subsystem and
4160 force_minimum_alignment.
4162 2001-02-14 Bo Thorsen <bo@suse.de>
4164 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
4165 (elf64_86_64_size_info): Struct added to fix a problem
4166 with the hashtable string entries.
4167 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
4168 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
4169 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
4170 remove the FIXME for this.
4171 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
4172 section. Also removed the FIXME for it.
4173 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
4174 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
4175 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
4177 2001-02-13 Richard Henderson <rth@redhat.com>
4179 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
4180 and not user provided.
4182 2001-02-13 Kazu Hirata <kazu@hxi.com>
4184 * vms.c (vms_print_symbol): Remove unreachable code.
4186 * rs6000-core.c: Fix formatting.
4188 2001-02-13 David Mosberger <davidm@hpl.hp.com>
4190 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
4191 as _bfd_XXi_only_swap_filehdr_out.
4192 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
4193 pe->force_minimum_alignment to TRUE.
4194 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
4195 PEI_TARGET_SUBSYSTEM.
4196 (pe_print_private_bfd_data): Call
4197 _bfd_XX_print_private_bfd_data_common() instead of
4198 _bfd_pe_print_private_bfd_data_common().
4199 (pe_bfd_copy_private_bfd_data): Call
4200 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
4201 _bfd_pe_bfd_copy_private_bfd_data_common().
4202 (coff_bfd_copy_private_section_data): Define as
4203 _bfd_XX_bfd_copy_private_section_data instead of
4204 _bfd_pe_bfd_copy_private_section_data.
4205 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
4206 of a _bfd_pe_get_symbol_info.
4210 * peXXigen.c: Renamed from peigen.c.
4211 (COFF_WITH_XX): Define this macro (will get expanded into
4212 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
4213 compiled as peigen.c or pepigen.c.
4214 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
4215 define the canonical PEP structures and definitions.
4216 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
4217 effect, enforce minimum file and section alignments. If
4218 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
4219 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
4220 so, by default, this is a no-op).
4222 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
4223 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
4224 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
4225 _bfd_pefoo if it's not defined. Use these macros to define
4228 * libcoff.h (pe_tdata): Add members target_subsystem and
4229 force_minimum_alignment.
4231 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
4233 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
4235 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
4238 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
4239 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
4242 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
4243 (BFD64_BACKENDS_CFILES): Mention pepigen.c
4244 (peigen.c): Add rule to generate from peXXigen.c.
4246 (pepigen.lo): List dependencies for pepigen.lo.
4248 2001-02-13 Alan Modra <alan@linuxcare.com.au>
4250 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
4251 $global$ referenced but not defined, set its value here.
4253 2001-02-09 Bo Thorsen <bo@suse.de>
4255 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
4257 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
4259 (elf64_x86_64_relocate_section): Fix formatting.
4260 (elf64_x86_64_relocate_section): Fix addend for relocation of
4261 R_X86_64_(8|16|32|PC8|PC16|PC32).
4263 2001-02-12 Jan Hubicka <jh@suse.cz>
4265 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
4267 2001-02-11 H.J. Lu <hjl@gnu.org>
4269 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
4272 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4274 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
4275 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
4276 relocations against dynsym symbols.
4278 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
4279 the R_MIPS_26 relocation.
4280 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
4281 the R_MIPS_26 relocation.
4282 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
4284 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
4285 the R_MIPS_26 relocation.
4286 (mips_elf64_howto_table_rela): Likewise.
4288 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
4289 member to mark symbols that have non-CALL relocations against
4291 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
4292 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
4294 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
4295 non-CALL relocation against it is encountered.
4296 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
4297 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
4298 no_fn_stub is not set.
4300 * elf32-mips.c (mips_elf_output_extsym): Get the output section
4301 information from the real symbol for indirect ones.
4302 Check no_fn_stub to find out if a symbol has a function stub
4305 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4307 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
4308 * Makefile.in: Regenerate.
4310 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4312 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
4313 true if section name is an unwind table section name.
4314 (elfNN_ia64_additional_program_headers): Count each unwind section
4316 (elfNN_ia64_modify_segment_map): Install one unwind program header
4317 for each unwind separate section. Note: normally the linker
4318 script merges the unwind sections that go into a single segment,
4319 so this still generates at most one unwind program header per
4322 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
4323 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
4324 (elfNN_ia64_fake_sections): Mark sections with names that start
4325 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
4328 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
4329 Use it to make sh_info in unwind section point to the text section
4332 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4334 * Makefile.am: Add linux target for S/390.
4335 * archures.c: Likewise.
4336 * bfd-in2.h: Likewise.
4337 * config.bfd: Likewise.
4338 * configure.in: Likewise.
4340 * libbfd.h: Likewise.
4341 * targets.c: Likewise.
4342 * cpu-s390.c: New file.
4343 * elf32-s390.c: New file.
4344 * elf64-s390.c: New file.
4346 2001-02-09 Nick Clifton <nickc@redhat.com>
4348 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
4349 ImageBase. This has already been done by coff_swap_hdr_in.
4351 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4353 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
4355 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4357 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
4358 (sparc64_elf_relocate_section): Likewise.
4360 2001-02-09 Mark Kettenis <kettenis@gnu.org>
4362 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
4363 similar to R_SPARC_32.
4364 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
4366 2001-02-08 H.J. Lu <hjl@gnu.org>
4368 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
4369 relocation entries for weak definitions when building DSO with
4372 2001-02-08 Richard Henderson <rth@redhat.com>
4374 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
4375 before visibility. Locally defined protected symbols are not
4378 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
4380 * config.bfd: Enable coff64 for rs6000-*. Patch from
4381 <hzoli@austin.ibm.com>.
4383 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
4385 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
4386 found, do not attempt to find dwarf2 info before returning.
4388 2001-02-07 Jakub Jelinek <jakub@redhat.com>
4390 * elflink.h (is_global_symbol_definition): Rename to
4391 is_global_data_symbol_definition and have it reject function
4393 (elf_link_is_defined_archive_symbol): Use renamed function.
4395 2001-02-07 Todd Vierling <tv@wasabisystems.com>
4397 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
4398 * libbfd.h (bfd_target_vector): Likewise.
4399 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
4400 make static; create pointer reference named bfd_target_vector.
4401 (_bfd_target_vector_entries): Calculate this based on the array
4402 typed _bfd_target_vector.
4404 2001-02-06 H.J. Lu <hjl@gnu.org>
4406 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
4407 internal symbols are not dynamic.
4408 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
4410 2001-02-06 Nick Clifton <nickc@redhat.com>
4412 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
4413 that it will not be pulled into the list of files that make up
4415 * Makefile.in: Regenerate.
4416 * po/bfd.pot: Regenerate.
4418 2001-02-06 H.J. Lu <hjl@gnu.org>
4420 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
4422 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
4423 external_PEI_IMAGE_hdr.
4425 2001-02-06 Kazu Hirata <kazu@hxi.com>
4427 * elf-m10200.c: Fix formatting.
4429 2001-02-04 Nick Clifton <nickc@redhat.com>
4431 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
4432 rel, it will be handled later on.
4434 2001-02-02 Fred Fish <fnf@ninemoons.com>
4436 * Makefile.in: Fix typo.
4438 2001-02-01 Kazu Hirata <kazu@hxi.com>
4440 * elf-m10300.c: Fix formatting.
4442 2001-01-30 Alan Modra <alan@linuxcare.com.au>
4444 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4445 (elf_backend_get_symbol_type): Define.
4446 (elf64_hppa_object_p): Set architecture and machine from elf
4449 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4451 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4454 2001-01-26 Richard Henderson <rth@redhat.com>
4456 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4457 for non-default visibility.
4458 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4459 delete ugly macro and replace with pretty function.
4461 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4463 * coff-go32.c: Update copyright.
4464 * coff-stgo32.c: Likewise.
4465 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4466 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4467 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4468 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4470 2001-01-25 Kazu Hirata <kazu@hxi.com>
4472 * bfd-in2.h: Rebuild.
4473 * libbfd.h: Likewise.
4475 2001-01-23 H.J. Lu <hjl@gnu.org>
4477 * bfd-in2.h: Rebuild.
4479 2001-01-23 H.J. Lu <hjl@gnu.org>
4481 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4482 is NULL or PRIV(vms_rec) is outside of the buffer.
4484 2001-01-23 Kazu Hirata <kazu@hxi.com>
4486 * coff64-rs6000.c: Fix formatting.
4487 * coff-arm.c: Likewise.
4488 * coffgen.c: Likewise.
4489 * cofflink.c: Likewise.
4490 * coff-mcore.c: Likewise.
4491 * coff-mips.c: Likewise.
4492 * coff-pmac.c: Likewise.
4493 * coff-ppc.c: Likewise.
4494 * coff-rs6000.c: Likewise.
4495 * elf32.c: Likewise.
4496 * elf32-fr30.c: Likewise.
4497 * elf32-i370.c: Likewise.
4498 * elf32-i860.c: Likewise.
4499 * elf32-m32r.c: Likewise.
4500 * elf32-m68k.c: Likewise.
4501 * elf32-mcore.c: Likewise.
4502 * elf32-ppc.c: Likewise.
4503 * elf32-sh.c: Likewise.
4504 * elf32-v850.c: Likewise.
4505 * elf64-alpha.c: Likewise.
4506 * elf64-sparc.c: Likewise.
4507 * elflink.c: Likewise.
4508 * elflink.h: Likewise.
4509 * elf-m10200.c: Likewise.
4510 * elf-m10300.c: Likewise.
4511 * elfxx-ia64.c: Likewise.
4513 * aoutx.h: Fix formatting.
4515 * bfd-in2.h: Likewise.
4516 * bfd-in.h: Likewise.
4517 * cpu-i386.c: Likewise.
4518 * cpu-m68hc11.c: Likewise.
4519 * dwarf2.c: Likewise.
4520 * elf64-x86-64.c: Likewise.
4521 * format.c: Likewise.
4522 * freebsd.h: Likewise.
4524 * hp300hpux.c: Likewise.
4525 * hppabsd-core.c: Likewise.
4526 * hpux-core.c: Likewise.
4528 2001-01-22 Bo Thorsen <bo@suse.de>
4530 * elf64-x86-64.c: Added PIC support for X86-64.
4531 (elf64_x86_64_link_hash_newfunc): Function added.
4532 (elf64_x86_64_link_hash_table_create): Likewise.
4533 (elf64_x86_64_check_relocs): Likewise.
4534 (elf64_x86_64_gc_mark_hook): Likewise.
4535 (elf64_x86_64_gc_sweep_hook): Likewise.
4536 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4537 (elf64_x86_64_size_dynamic_sections): Likewise.
4538 (elf64_x86_64_discard_copies): Likewise.
4539 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4540 (elf64_x86_64_finish_dynamic_sections): Likewise.
4541 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4543 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4545 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4546 * Makefile.in: Regenerate.
4548 2001-01-21 Kazu Hirata <kazu@hxi.com>
4550 * coff-a29k.c: Fix formatting.
4552 2001-01-19 H.J. Lu <hjl@gnu.org>
4554 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4555 relocation section names.
4556 (elf_i386_relocate_section): Report files with bad relocation
4557 section names and return false.
4559 2001-01-17 Bo Thorsen <bo@suse.de>
4561 * targets.c: Alphabetize list of xvecs.
4563 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4565 * config.bfd: Add linux target variant for elfxx-hppa.
4566 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4567 bfd_elf64_hppa_linux_vec.
4568 * configure: Regenerate.
4569 * elf64-hppa.c: Include elf64-target.h again to support linux
4571 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4572 * elf32-hppa.c: Include elf32-target.h again to support linux
4574 (elf32_hppa_post_process_headers): New function.
4575 (elf_backend_post_process_headers): Define.
4576 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4577 bfd_elf32_hppa_linux_vec.
4579 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4580 and data_segment_base fields.
4581 (elf32_hppa_link_hash_table_create ): Init them.
4582 (elf32_hppa_check_relocs): Update comments.
4583 (hppa_record_segment_addr): New function.
4584 (elf32_hppa_relocate_section): Call it.
4585 (final_link_relocate): Handle R_PARISC_SEGREL32.
4586 (elf32_hppa_final_link): New function.
4587 (bfd_elf32_bfd_final_link): Define to call it.
4588 (hppa_unwind_entry_compare): New function.
4589 * cache.c (bfd_open_file): Create files in write+read mode.
4591 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4592 SEGREL32 and numerous other relocs. Change duplicate
4593 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4595 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4598 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4599 .plt entries for DT_INIT and DT_FINI.
4600 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4601 DT_INIT and DT_FINI.
4603 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4604 offsets for stub .plt access if wide mode. Check offset in range.
4606 2001-01-13 Nick Clifton <nickc@redhat.com>
4608 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4611 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4614 2001-01-12 Alan Modra <alan@linuxcare.com.au>
4616 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4617 * configure: Regenerate.
4619 2001-01-11 Peter Targett <peter.targett@arccores.com>
4621 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4622 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4623 * cpu-arc.c (arch_info_struct): Add entries for variants.
4624 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4625 (arc_get_mach) Don't assume machine names prefixed arc- before
4627 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4629 (arc_elf_final_write_processing) Likewise.
4630 (ELF_MACHINE_CODE) Use EM_ARC.
4632 2001-01-10 Nick Clifton <nickc@redhat.com>
4634 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
4636 2001-01-07 Philip Blundell <philb@gnu.org>
4638 * README: Replace `bug-gnu-utils@gnu.org' with
4639 `bug-binutils@gnu.org'.
4641 2001-01-04 Kazu Hirata <kazu@hxi.com>
4643 * som.c: Fix formatting.
4645 2001-01-03 Kazu Hirata <kazu@hxi.com>
4647 * ecoffswap.h: Fix formatting.
4648 * elf-bfd.h: Likewise.
4649 * elfarm-nabi.c: Likewise.
4650 * elfarm-oabi.c: Likewise.
4651 * elfcode.h: Likewise.
4652 * elfcore.h: Likewise.
4653 * elflink.c: Likewise.
4654 * elflink.h: Likewise.
4655 * elfxx-ia64.c: Likewise.
4656 * elfxx-target.h: Likewise.
4657 * libbfd.c: Likewise
4658 * linker.c: Likewise.
4659 * lynx-core.c: Likewise.
4661 2001-01-02 Kazu Hirata <kazu@hxi.com>
4663 * pc532-mach.c: Fix formatting.
4664 * pe-arm.c: Likewise.
4665 * pe-i386.c: Likewise.
4666 * pe-mips.c: Likewise.
4667 * pe-ppc.c: Likewise.
4668 * pe-sh.c: Likewise.
4669 * pei-mips.c: Likewise.
4670 * pei-sh.c: Likewise.
4671 * peicode.h: Likewise.
4672 * ppcboot.c: Likewise.
4673 * ptrace-core.c: Likewise.
4675 2001-01-01 Kazu Hirata <kazu@hxi.com>
4677 * reloc.c: Fix formatting.
4678 * riscix.c: Likewise.
4679 * rs6000-core.c: Likewise.
4680 * xcoff-target.h: Likewise.
4682 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4684 * elfcode.h (elf_object_p): Also restore the bfd mach field on
4685 error, by calling bfd_default_set_arch_mach with incoming
4688 2000-12-26 Kazu Hirata <kazu@hxi.com>
4690 * vaxnetbsd.c: Fix formatting.
4691 * versados.c: Likewise.
4692 * vms-gsd.c: Likewise.
4693 * vms-hdr.c: Likewise.
4694 * vms-misc.c: Likewise.
4696 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
4698 * archive.c (coff_write_armap): Don't write more than symbol_count
4699 `archive_member_file_ptr's.
4701 2000-12-25 Kazu Hirata <kazu@hxi.com>
4703 * vms-tir.c: Fix formatting.
4705 2000-12-23 Kazu Hirata <kazu@hxi.com>
4707 * vms.c: Fix formatting.
4710 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
4712 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
4714 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
4716 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
4719 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
4721 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
4723 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
4725 * libbfd.c (bfd_get_bits): Added
4726 (bfd_put_bits): Likewise
4727 * bfd-in.h: Declared the above.
4728 * bfd-in2.h: Regenerated.
4730 2000-12-20 Kazu Hirata <kazu@hxi.com>
4732 * targets.c: Fix formatting.
4733 * tekhex.c: Likewise.
4734 * trad-core.c: Likewise.
4736 2000-12-19 Kazu Hirata <kazu@hxi.com>
4738 * sco5-core.c: Fix formatting.
4739 * section.c: Likewise.
4740 * sparclinux.c: Likewise.
4741 * sparclynx.c: Likewise.
4742 * sparcnetbsd.c: Likewise.
4744 * stabs.c: Likewise.
4745 * stab-syms.c: Likewise.
4746 * sunos.c: Likewise.
4748 * sysdep.h: Likewise.
4750 2000-12-18 Nick Clifton <nickc@redhat.com>
4752 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
4754 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
4755 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
4757 2000-12-18 Nick Clifton <nickc@redhat.com>
4759 * vms-misc.c (_bfd_vms_get_record): Add default case to
4762 2000-12-15 Miloslav Trmac <mitr@volny.cz>
4764 * elfcore.h (elf_core_file_p): Move to the start of the program
4765 headers before attempting to read them.
4767 2000-12-14 Kazu Hirata <kazu@hxi.com>
4769 * peigen.c: Fix formatting.
4773 2000-12-13 Kazu Hirata <kazu@hxi.com>
4775 * peigen.c: Fix formatting.
4777 2000-12-12 Jim Wilson <wilson@redhat.com>
4779 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4781 2000-12-08 Mark Salter <msalter@redhat.com>
4783 * binary.c (binary_set_section_contents): Ignore sections
4786 2000-12-12 Kazu Hirata <kazu@hxi.com>
4788 * m68klinux.c: Fix formatting.
4789 * m68knetbsd.c: Likewise.
4790 * mipsbsd.c: Likewise.
4791 * netbsd-core.c: Likewise.
4792 * netbsd.h: Likewise.
4793 * newsos3.c: Likewise.
4794 * nlm32-alpha.c: Likewise.
4795 * nlm32-i386.c: Likewise.
4796 * nlm32-ppc.c: Likewise.
4797 * nlm32-sparc.c: Likewise.
4798 * nlmcode.h: Likewise.
4799 * nlmswap.h: Likewise.
4800 * nlm-target.h: Likewise.
4801 * ns32knetbsd.c: Likewise.
4803 2000-12-10 Fred Fish <fnf@be.com>
4805 * elflink.h (elf_link_output_extsym): Don't complain about undefined
4806 symbols in shared objects if allow_shlib_undefined is true.
4808 2000-12-12 Nick Clifton <nickc@redhat.com>
4810 * cpu-sh.c: Fix formattng.
4811 * elf.c: Fix formattng.
4812 * elf32-mips.c: Fix formattng.
4813 * elf32-sh.c: Fix formattng.
4814 * elf64-alpha.c: Fix formattng.
4816 2000-12-09 Nick Clifton <nickc@redhat.com>
4818 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
4819 dwarf2_find_line_info as last parameter to invocation of
4820 _bfd_dwarf2_find_nearest_line.
4821 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
4822 dwarf2_find_line_info as last parameter to invocation of
4823 _bfd_dwarf2_find_nearest_line.
4825 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
4827 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
4828 (BFD_LIBS): ...to here.
4829 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
4830 (BFD_LIBS_CFILES): ...to here.
4831 * Makefile.in: Regenerate.
4832 * configure.in: Remove dwarf.lo from the elf shell variable.
4833 * configure: Regenerate.
4834 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
4835 * libcoff.h: Regenerate.
4836 * coffgen.c (coff_find_nearest_line): Call
4837 _bfd_dwarf2_find_nearest_line.
4838 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4840 (read_abbrevs): Likewise
4841 (decode_line_info): Likewise.
4842 (parse_comp_unit): Likewise.
4843 (comp_unit_find_nearest_line): Likewise.
4844 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4845 * libbfd.h: Regenerate.
4846 * elf.c (_bfd_elf_find_nearest_line): Update call.
4847 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4848 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4849 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4850 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4851 (styp_to_sec_flags): Handle DWARF2 sections.
4852 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4853 to _bfd_find_nearest_line.
4854 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4855 call to _bfd_find_nearest_line.
4857 2000-12-08 Kazu Hirata <kazu@hxi.com>
4859 * coffgen.c: Fix formatting.
4860 * elf-m10300.c: Likewise.
4861 * elf32-i386.c: Likewise.
4862 * elf32-i960.c: Likewise.
4863 * elf32-m68k.c: Likewise.
4864 * elf32-mcore.c: Likewise.
4865 * elf32-ppc.c: Likewise.
4866 * elf32-sh.c: Likewise.
4867 * elf32-sparc.c: Likewise.
4868 * elf32-v850.c: Likewise.
4869 * elf64-alpha.c: Likewise.
4870 * elf64-hppa.c: Likewise.
4871 * elf64-mips.c: Likewise.
4872 * elf64-sparc.c: Likewise.
4874 2000-12-07 Kazu Hirata <kazu@hxi.com>
4876 * elf32-ppc.c: Fix formatting.
4877 * elf64-x86-64.c: Likewise.
4879 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4881 From Ralf Baechle <ralf@gnu.org>
4883 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4884 BFDs containing no sections or empty .text, .data or .bss sections
4885 to be merged, regardless of their flags.
4887 2000-12-06 Kazu Hirata <kazu@hxi.com>
4889 * elf32-m32r.c: Fix formatting.
4890 * elf32-m68hc11.c: Likewise.
4891 * elf32-m68hc12.c: Likewise.
4892 * elf32-m68k.c: Likewise.
4893 * elf32-mcore.c: Likewise.
4894 * elf32-pj.c: Likewise.
4895 * elf32-ppc.c: Likewise.
4897 2000-12-05 Kazu Hirata <kazu@hxi.com>
4899 * elf32-fr30.c: Fix formatting.
4900 * elf32-hppa.c: Likewise.
4901 * elf32-i370.c: Likewise.
4902 * elf32-i386.c: Likewise.
4903 * elf32-i860.c: Likewise.
4904 * elf32-i960.c: Likewise.
4906 2000-12-03 Kazu Hirata <kazu@hxi.com>
4908 * elf32-arm.h: Fix formatting.
4909 * elf32-avr.c: Likewise.
4910 * elf32-cris.c: Likewise.
4911 * elf32-d10v.c: Likewise.
4912 * elf32-d30v.c: Likewise.
4913 * elf-hppa.h: Likewise.
4914 * elf-m10200.c: Likewise.
4915 * elf-m10300.c: Likewise.
4917 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4919 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4920 bfd_mach_mips32_4k. Update FIXME comment.
4921 * archures.c (bfd_mach_mips32): New constant.
4922 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4923 the latter, renumber it.
4924 * bfd-in2.h (bfd_mach_mips32): New constant.
4925 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4926 the latter, renumber it.
4927 * cpu-mips.c (I_mips32): New constant.
4928 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4929 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4930 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4931 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4932 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4933 with E_MIPS_MACH_MIPS32_4K.
4934 (_bfd_mips_elf_final_write_processing): Replace
4935 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4936 bfd_mach_mips32 case.
4937 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4938 comparison with support for MIPS32.
4939 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4942 * aoutx.h (NAME(aout,machine_type)): Add cases for
4943 bfd_mach_mips5 and bfd_mach_mips64.
4944 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4945 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4946 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4947 (arch_info_struct): Add entries for bfd_mach_mips5 and
4949 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4950 _bfd_mips_elf_print_private_bfd_data): Add cases for
4951 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4952 (_bfd_mips_elf_final_write_processing): Add cases for
4953 bfd_mach_mips5 and bfd_mach_mips64.
4955 * aoutx.h (NAME(aout,machine_type)): Add a
4956 bfd_mach_mips_sb1 case.
4957 * archures.c (bfd_mach_mips_sb1): New constant.
4958 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4959 * cpu-mips.c (I_sb1): New constant.
4960 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4961 * elf32-mips.c (elf_mips_mach): Add case for
4963 (_bfd_mips_elf_final_write_processing): Add case for
4966 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4968 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4969 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4970 (sparc*-*-rtems*): Switched from a.out to ELF.
4972 2000-11-30 Jan Hubicka <jh@suse.cz>
4974 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4975 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4976 (elf64-x86-64.lo): Add dependencies.
4977 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4978 bfd_mach_x86_64_intel_syntax.
4979 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4980 * config.bfd (x86_64): Add.
4981 * configure.in: Add support for bfd_elf64_x86_64_vec.
4982 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4983 (bfd_i386_arch, i8086_ar): Link in.
4984 * elf64-x86-64.c: New file.
4985 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4986 * targets.c (bfd_elf64_x86_64_vec): Add.
4987 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4989 2000-11-30 Kazu Hirata <kazu@hxi.com>
4991 * xcofflink.c: Fix formatting.
4993 2000-11-28 Kazu Hirata <kazu@hxi.com>
4995 * aoutx.h: Fix formatting.
4996 * bfd-in.h: Likewise.
4997 * bfd-in2.h: Likewise.
4998 * cache.c: Likewise.
4999 * cisco-core.c: Likewise.
5000 * coff64-rs6000.c: Likewise.
5001 * coffcode.h: Likewise.
5002 * coffswap.h: Likewise.
5003 * corefile.c: Likewise.
5004 * elf32-mips.c: Likewise.
5006 2000-11-27 Kazu Hirata <kazu@hxi.com>
5008 * aout-adobe.c: Fix formatting.
5009 * coff64-rs6000.c: Likewise.
5010 * coffgen.c: Likewise.
5011 * cofflink.c: Likewise.
5013 2000-11-27 Philip Blundell <pb@futuretv.com>
5015 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
5016 (obj_coff_strings_written): New accessor macro for above.
5017 * libcoff.h: Regenerate.
5018 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
5020 * coffcode.h (coff_write_object_contents): No need to write out
5021 the string table if it's already been done.
5023 2000-11-22 Philip Blundell <pb@futuretv.com>
5025 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
5026 weak undefined symbols.
5028 2000-11-24 Nick Clifton <nickc@redhat.com>
5030 * archures.c (bfd_mach_arm_5TE): Define.
5031 (bfd_mach_arm+XScale): Define.
5032 * bfd-in2.h: Regenerate.
5034 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
5035 BFD_RELOC_ARM_PCREL_BLX.
5037 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
5038 XScale machine numbers.
5040 * config.bfd (xscale-elf): Add target.
5041 (xscale-coff): Add target.
5043 * cpu-arm.c: Add xscale machine name.
5044 Add v5t, v5te and XScale machine numbers.
5046 2000-11-23 Kazu Hirata <kazu@hxi.com>
5048 * aix386-core.c: Fix formatting.
5050 2000-11-22 Jim Wilson <wilson@redhat.com>
5052 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
5053 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
5054 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
5055 (ins_imms_scaled): Initialize sign_bit at function entry.
5056 (elf64_ia64_operands): Add missing initializers.
5057 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
5058 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
5059 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
5060 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
5061 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
5063 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
5064 and free_extsyms at function entry.
5065 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
5066 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
5067 (get_got): Delete unused local srel.
5068 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
5069 (elfNN_ia64_relocate_section): Delete unused local dynindx.
5071 2000-11-21 Kazu Hirata <kazu@hxi.com>
5073 * coff-a29k.c: Fix formatting.
5074 * coff-h8500.c: Likewise.
5075 * coff-i960.c: Likewise.
5076 * coff-ppc.c: Likewise.
5077 * coff-rs6000.c: Likewise.
5078 * coff-stgo32.c: Likewise.
5079 * coff-tic54x.c: Likewise.
5080 * coff-w65.c: Likewise.
5081 * cpu-h8500.c: Likewise.
5082 * cpu-hppa.c: Likewise.
5083 * cpu-ns32k.c: Likewise.
5084 * ecoff.c: Likewise.
5085 * ecofflink.c: Likewise.
5087 2000-11-21 Nick Clifton <nickc@redhat.com>
5089 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
5090 remove possibility of infinite loop.
5092 2000-11-20 Kazu Hirata <kazu@hxi.com>
5094 * aix386-core.c: Fix formatting.
5095 * aout-adobe.c: Likewise.
5096 * aout-arm.c: Likewise.
5097 * aout-encap.c: Likewise.
5098 * aout-ns32k.c: Likewise.
5099 * aout-target.h: Likewise.
5100 * aout-tic30.c: Likewise.
5101 * aoutf1.h: Likewise.
5102 * aoutx.h: Likewise.
5103 * archive.c: Likewise.
5104 * bfd-in.h: Likewise.
5105 * bfd-in2.h: Likewise.
5109 2000-11-17 H.J. Lu <hjl@gnu.org>
5111 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
5112 pltoff entries for DT_INIT and DT_FINI.
5113 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
5114 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
5117 2000-11-16 Richard Henderson <rth@redhat.com>
5119 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
5120 (allocate_dynrel_entries): Likewise.
5121 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
5122 (set_pltoff_entry): Likewise.
5123 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
5124 (elfNN_ia64_reloc_type_lookup): Likewise.
5125 (elfNN_ia64_install_value): Likewise.
5126 (elfNN_ia64_relocate_section): Likewise.
5127 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
5128 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
5130 2000-11-16 Kazu Hirata <kazu@hxi.com>
5132 * cpu-a29k.c: Fix formatting.
5133 * cpu-alpha.c: Likewise.
5134 * cpu-arm.c: Likewise.
5135 * cpu-avr.c: Likewise.
5136 * cpu-d10v.c: Likewise.
5137 * cpu-h8500.c: Likewise.
5138 * cpu-hppa.c: Likewise.
5139 * cpu-i370.c: Likewise.
5140 * cpu-i386.c: Likewise.
5141 * cpu-i960.c: Likewise.
5142 * cpu-ia64-opc.c: Likewise.
5143 * cpu-ia64.c: Likewise.
5144 * cpu-m32r.c: Likewise.
5145 * cpu-m68hc11.c: Likewise.
5146 * cpu-m68hc12.c: Likewise.
5147 * cpu-m68k.c: Likewise.
5148 * cpu-m88k.c: Likewise.
5149 * cpu-mips.c: Likewise.
5150 * cpu-ns32k.c: Likewise.
5151 * cpu-pj.c: Likewise.
5152 * cpu-powerpc.c: Likewise.
5153 * cpu-sh.c: Likewise.
5154 * cpu-sparc.c: Likewise.
5155 * cpu-tic54x.c: Likewise.
5156 * cpu-v850.c: Likewise.
5157 * cpu-vax.c: Likewise.
5158 * cpu-w65.c: Likewise.
5159 * cpu-we32k.c: Likewise.
5160 * cpu-z8k.c: Likewise.
5161 * dwarf1.c: Likewise.
5162 * dwarf2.c: Likewise.
5164 2000-11-15 Kazu Hirata <kazu@hxi.com>
5166 * coff-arm.c: Fix formatting.
5167 * coff-ppc.c: Likewise.
5168 * coff-rs6000.c: Likewise.
5169 * coff-sh.c: Likewise.
5170 * coff-sparc.c: Likewise.
5171 * coff-tic30.c: Likewise.
5172 * coff-tic54x.c: Likewise.
5173 * coff-tic80.c: Likewise.
5174 * coff-w65.c: Likewise.
5175 * coff-we32k.c: Likewise.
5176 * coff-z8k.c: Likewise.
5178 2000-11-15 Richard Henderson <rth@redhat.com>
5180 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
5181 section with the same ALLOC|LOAD flags as the source section.
5183 2000-11-14 Jakub Jelinek <jakub@redhat.com>
5185 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
5186 by STO_ALPHA constants.
5188 2000-11-14 Kazu Hirata <kazu@hxi.com>
5190 * coff-pmac.c: Fix formatting.
5191 * coff-ppc.c: Likewise.
5193 2000-11-13 H.J. Lu <hjl@gnu.org>
5195 * elflink.h (elf_link_add_object_symbols): Also add indirect
5196 symbols for common symbols with the default version.
5198 2000-11-09 Philip Blundell <pb@futuretv.com>
5200 * section.c (STD_SECTION): Set gc_mark flag.
5202 2000-11-11 Kazu Hirata <kazu@hxi.com>
5204 * coff-i960.c: Likewise.
5205 * coff-m68k.c: Likewise.
5206 * coff-m88k.c: Likewise.
5207 * coff-mcore.c: Likewise.
5208 * coff-mips.c: Likewise.
5210 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
5212 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
5214 2000-11-10 Kazu Hirata <kazu@hxi.com>
5216 * coff-h8300.c: Fix formatting.
5217 * coff-h8500.c: Likewise.
5218 * coff-i386.c: Likewise.
5219 * coff-i860.c: Likewise.
5220 * coff-i960.c: Likewise.
5221 * coff-ia64.c: Likewise.
5223 2000-11-09 Kazu Hirata <kazu@hxi.com>
5225 * archive.c: Fix formatting.
5226 * archures.c: Likewise.
5228 2000-11-07 Richard Henderson <rth@redhat.com>
5230 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
5231 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
5232 * section.c (bfd_set_section_contents): Call memcpy if
5233 section->contents set and location not equal to contents plus offset.
5235 2000-11-08 Kazu Hirata <kazu@hxi.com>
5237 * bfd-in.h: Fix formatting.
5238 * bfd-in2.h: Likewise.
5240 * binary.c: Likewise.
5242 * coff-a29k.c: Likewise.
5243 * coff-alpha.c: Likewise.
5244 * coff-apollo.c: Likewise.
5245 * coff-aux.c: Likewise.
5247 2000-11-07 Kazu Hirata <kazu@hxi.com>
5249 * aix386-core.c: Fix formatting.
5250 * aoutf1.h: Likewise.
5251 * aoutx.h: Likewise.
5252 * archures.c: Likewise.
5253 * armnetbsd.c: Likewise.
5255 2000-11-07 Alan Modra <alan@linuxcare.com.au>
5257 * coff-h8300.c (special): Adjust reloc address.
5259 2000-11-06 Steve Ellcey <sje@cup.hp.com>
5261 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
5262 to differentiate elf32 and elf64 on ia64.
5263 * bfd-in2.h: Regenerate.
5264 * config.bfd: Add target for "ia64*-*-hpux*".
5265 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
5266 * configure: Regenerate.
5267 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
5268 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
5270 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
5271 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
5272 * Makefile.in: Regnerate.
5273 * elf64-ia64.c: Deleted.
5274 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
5276 2000-11-06 Kazu Hirata <kazu@hxi.com>
5278 * aout-adobe.c: Fix formatting.
5279 * aout-arm.c: Likewise.
5280 * aout-cris.c: Likewise.
5281 * aout-encap.c: Likewise.
5282 * aout-ns32k.c: Likewise.
5283 * aout-target.h: Likewise.
5284 * aout-tic30.c: Likewise.
5286 2000-11-05 Philip Blundell <philb@gnu.org>
5288 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
5289 BFDs containing no sections to be merged, regardless of their flags.
5291 2000-11-04 Philip Blundell <philb@gnu.org>
5293 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
5294 if a relocation for an undefined symbol also results in an
5297 2000-11-06 Christopher Faylor <cgf@cygnus.com>
5299 * config.bfd: Add support for Sun Chorus.
5301 2000-11-05 David O'Brien <obrien@FreeBSD.org>
5303 * configure.in: Recognize alpha-*-freebsd*.
5304 * configure: Regenerate.
5306 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
5308 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
5309 (Chunk): New global variable set by a parameter in objcopy.c.
5310 (S3Forced): New global variable set by a parameter in
5312 (srec_set_section_contents): If S3Forced is true, always generate
5314 (srec_write_section): Use 'Chunk' to limit maximum length of S
5317 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5319 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
5320 * Makefile.in: Regenerate.
5321 * bfd-in2.h: Regenerate.
5322 * po/bfd.pot: Regenerate.
5324 2000-10-31 Philip Blundell <philb@gnu.org>
5326 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
5327 EF_SOFT_FLOAT if it is defined.
5329 2000-10-27 Philip Blundell <philb@gnu.org>
5331 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
5332 attempts to mix PIC code with non-PIC, just mark the output as
5333 being position dependent.
5334 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
5335 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
5336 all mismatches, not just the first one.
5338 2000-10-25 Chris Demetriou <cgd@sibyte.com>
5340 * ieee.c (ieee_archive_p): Plug one of many possible
5341 memory leaks in error handling.
5343 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5345 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
5346 elf32_sparc_object_p, elf32_sparc_final_write_processing):
5348 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
5349 sparc64_elf_object_p): Support v9b.
5350 * archures.c: Declare v8plusb and v9b machines.
5352 * cpu-sparc.c: Ditto.
5354 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5356 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
5359 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
5360 (SYMBOL_CALLS_LOCAL): New macro.
5361 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
5362 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
5363 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
5364 (ppc_elf_relocate_section): Use flag variable to determine
5365 whether the relocation refers to a local symbol.
5366 Test whether a PLTREL24 reloc will produce a reloc by looking
5367 to see whether a PLT entry was made.
5369 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5371 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
5372 entries that could serve as a definition for a weak symbol.
5374 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
5376 From Ralf Baechle <ralf@gnu.org>
5378 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
5379 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
5380 against local symbols.
5381 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
5383 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5385 * section.c (struct sec): Add kept_section.
5386 (struct bfd_comdat_info): Remove sec, we can use above.
5387 (STD_SECTION): Add initializer.
5388 (bfd_make_section_anyway): Init here too.
5390 * bfd-in2.h: Regenerate.
5392 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
5394 (elf_link_input_bfd): Set all asection->symbol->value's here, and
5395 fudge values for discarded link-once section symbols.
5397 * elf64-hppa.c: Include alloca-conf.h
5399 2000-10-11 Alan Modra <alan@linuxcare.com.au>
5401 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
5403 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
5405 2000-10-10 Alan Modra <alan@linuxcare.com.au>
5407 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
5409 2000-10-10 Tom Rix <trix@redhat.com>
5411 * section.c (bfd_make_section_anyway): Release newsect ptr when
5412 newsect->symbol fails to alloc. Use bfd_release instead of free.
5414 2000-10-09 Richard Henderson <rth@cygnus.com
5416 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
5417 (elf64_ia64_unwind_entry_compare): New.
5418 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
5420 2000-10-07 Alan Modra <alan@linuxcare.com.au>
5422 * elflink.h (size_dynamic_sections): Don't create various tags if
5423 .dynstr is excluded from the link. Don't set first dynsym entry
5424 if dynsymcount is zero.
5425 (elf_bfd_final_link): Don't try to swap out dynamic syms if
5426 .dynsym excluded from the link. Don't try to write any dynamic
5427 sections excluded from the link.
5429 * elf.c (swap_out_syms): Handle global section symbols.
5431 2000-10-05 DJ Delorie <dj@redhat.com>
5433 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
5434 * coffcode.h (coff_set_alignment_hook): read extended reloc count
5435 (coff_write_relocs): write extended reloc count
5436 (coff_write_object_contents): account for extended relocs
5438 2000-10-05 Jim Wilson <wilson@cygnus.com>
5440 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5442 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5443 elf_backend_section_flags function.
5444 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5446 (elf64_ia64_section_flags): New function containing flag conversion
5448 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5449 * elfxx-target.h (elf_backend_section_flags): Define.
5450 (elfNN_bed): Initialize elf_backend_section_flags field.
5452 2000-10-02 Alan Modra <alan@linuxcare.com.au>
5454 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5455 _bfd_elf32_gc_record_vtable. Correct a comment.
5457 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5459 From Ralf Baechle <ralf@gnu.org>
5461 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5462 produces binaries with got[1] = 0x80000001 to differenciate them
5463 for the dynamic linker from the broken binaries produced by old
5466 2000-09-30 Petr Sorfa <petrs@sco.com>
5468 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5469 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5470 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5471 * configure: Regenerate.
5473 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5475 Define two bfd_targets for absence and presence of leading
5476 underscore on symbols. Make sure to only link same kind.
5477 * elf32-cris.c (cris_elf_object_p,
5478 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5479 cris_elf_merge_private_bfd_data): New.
5480 (elf_backend_object_p, elf_backend_final_write_processing,
5481 bfd_elf32_bfd_print_private_bfd_data,
5482 bfd_elf32_bfd_merge_private_bfd_data): Define.
5483 <Target vector definition>: Include elf32-target.h twice with
5484 different macro settings:
5485 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5486 bfd_elf32_us_cris_vec.
5487 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5488 (elf_symbol_leading_char): First as 0, then '_'.
5489 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5490 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5491 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5492 * configure: Regenerate.
5493 * targets.c: Declare bfd_elf32_us_cris_vec.
5494 * po/bfd.pot: Regenerate.
5496 2000-09-29 Momchil Velikov <velco@fadata.bg>
5498 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5499 R_ARM_THM_PC22 relocations.
5501 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5503 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5505 2000-09-29 Momchil Velikov <velco@fadata.bg>
5507 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5508 is has the SEC_HAS_CONTENTS flag set.
5510 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
5511 Hans-Peter Nilsson <hp@axis.com>
5513 * aout-cris.c (N_TXTADDR): Define.
5515 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5517 * som.c: Include alloca-conf.h.
5518 * Makefile.am: "make dep-am"
5519 * Makefile.in: Regenerate.
5521 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5523 * elf32-hppa.c (plt_stub): New.
5524 (PLT_STUB_ENTRY): Define.
5525 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5526 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5527 (elf32_hppa_link_hash_table_create): Init to suit.
5528 (elf32_hppa_check_relocs): Set has_12bit_branch and
5529 has_17bit_branch as appropriate.
5530 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5531 non-local functions.
5532 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5533 Add space for plt_stub as needed.
5534 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5535 functions at plt_stub.
5536 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5537 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5539 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5540 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5541 of fixed size, and if negative, disable handling of input sections
5542 before stub section. Set up default stub group size depending
5543 on detected branch relocs.
5544 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5545 ensure different offsets from sym_value aren't rounded to
5546 different 2k blocks. Use lrsel and rrsel for other stubs too for
5547 consistency rather than necessity.
5548 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
5549 (final_link_relocate): Likewise.
5550 (elf32_hppa_relocate_section): Likewise.
5552 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
5553 (_bfd_elf_hppa_gen_reloc_type): Generate them.
5554 (elf_hppa_final_link_relocate): Handle them.
5555 (elf_hppa_relocate_insn): Likewise.
5556 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
5558 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
5560 * elfcode.h (elf_object_p): Preserve and clear abfd section
5561 information. Restore at error.
5563 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5565 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
5566 is empty, make sure that its rva also 0. NT loader dislikes
5569 2000-09-26 Steve Ellcey <sje@cup.hp.com>
5571 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
5574 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5576 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
5577 currently unused RELATIVE_DYNAMIC_RELOCS code.
5578 (hppa_discard_copies): Likewise.
5579 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
5580 comments. Don't check non-code output sections for stub grouping.
5582 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5584 * section.c (bfd_get_unique_section_name): Return NULL if
5587 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5589 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
5590 instruction sequence to actually work.
5591 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
5594 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5596 * elf32-sh.c (sh_elf_relocate_section): Use
5597 _bfd_final_link_relocate to apply the relocation against a section
5598 symbol, when doing relocatable links.
5600 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5602 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
5604 (stub_hash_newfunc): Here too.
5605 (hppa_add_stub): And here.
5606 (elf32_hppa_link_hash_table): Remove stub_section_created,
5607 reloc_section_created, first_init_sec and first_fini_sec. Add
5609 (elf32_hppa_link_hash_table_create): Init to suit.
5610 (hppa_get_stub_entry): Add support for grouping stub sections.
5611 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
5612 section code. Index stub vars by section->id.
5613 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
5614 exit paths. Zap allocation of above removed vars. Refine
5617 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
5618 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
5619 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
5620 rather than pointer to bfd_link_info.
5621 (hppa_add_stub): Likewise.
5622 (final_link_relocate): Likewise.
5624 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
5626 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
5629 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
5631 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
5632 ld/emulparams/shelf.sh.
5634 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5636 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
5637 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
5638 * bfd-in2.h: Regenerate.
5640 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
5642 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
5643 LITUSE relocations incorrectly if -relax is specified on the ld
5644 command line and the displacement field of the load or store
5645 instruction is non-zero. (Patch by paul.winalski@compaq.com)
5647 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5649 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
5650 first_fini_sec here.
5651 (elf32_hppa_size_stubs): Instead correctly find the first .init
5652 and .fini section here.
5654 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
5656 * elf32-hppa.c (clobber_millicode_symbols): New function.
5657 (elf32_hppa_size_dynamic_sections): Call it.
5659 2000-09-14 Alan Modra <alan@linuxcare.com.au>
5661 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
5662 packed. Add plabel, plt_abs packed booleans.
5663 (hppa_link_hash_newfunc): Init new fields.
5664 (PLABEL_PLT_ENTRY_SIZE): Define.
5665 (hppa_stub_name): Use size_t len vars.
5666 (hppa_add_stub): Likewise.
5667 (elf32_hppa_build_stubs): Likewise.
5668 (hppa_build_one_stub): Kill some compiler warnings.
5669 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
5670 if dynamic linking. Munge the local plt offsets into
5671 local_got_refcounts. Set h->plabel for all global PLABELs. Use
5672 size_t len vars. Add assert for plabel addend.
5673 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
5674 (elf32_hppa_hide_symbol): New function.
5675 (elf_backend_hide_symbol): Define.
5676 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
5677 with h->plabel set. Don't make plt entries to have dynamic syms
5678 when they have been forced local. If plt entry is used by a
5679 plabel, make it PLABEL_PLT_ENTRY_SIZE.
5680 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
5681 Set up .plt offsets for local syms.
5682 (elf32_hppa_relocate_section): Initialise plt entries for local
5683 syms. Leave weak undefined plabels zero. Make global plabel
5684 relocs against function symbol, and leave the addend zero.
5685 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
5686 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
5687 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
5688 relocs instead of SEGREL32 for dynamic got relocs.
5689 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
5690 (elf_backend_got_header_size): Adjust.
5691 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
5693 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
5694 (hppa_type_of_stub): Use it instead of #if 0
5695 (hppa_discard_copies): Use it here too.
5696 (elf32_hppa_size_dynamic_sections): And here.
5698 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
5699 (elf32_hppa_link_hash_table_create): And here.
5700 (hppa_build_one_stub): And here. Instead keep track of stub
5701 offset using _raw_size.
5702 (elf32_hppa_size_stubs): Likewise.
5703 (elf32_hppa_build_stubs): Likewise.
5704 (hppa_size_one_stub): Likewise. Resize reloc section too.
5706 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
5707 first_fini_sec handling. Don't search for reloc section or set
5708 hplink->reloc_section_created here.
5709 (elf32_hppa_size_stubs): Instead search for reloc sections, and
5710 set reloc_section_created here.
5711 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
5712 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
5714 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
5716 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
5717 with `hplink->root.'.
5718 (elf32_hppa_check_relocs): Likewise.
5719 (elf32_hppa_gc_sweep_hook): Likewise.
5720 (elf32_hppa_adjust_dynamic_symbol): Likewise.
5721 (hppa_handle_PIC_calls): Likewise.
5722 (elf32_hppa_size_dynamic_sections): Likewise.
5723 (elf32_hppa_set_gp): Likewise.
5724 (elf32_hppa_relocate_section): Likewise.
5725 (elf32_hppa_finish_dynamic_symbol): Likewise.
5726 (elf32_hppa_finish_dynamic_sections): Likewise.
5728 From David Huggins-Daines <dhd@linuxcare.com>
5729 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
5730 defined weak symbols in shared links.
5731 (final_link_relocate): Calls to defined weak symbols in shared
5732 objects must go via import stubs, as the target might not be known
5735 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5737 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
5738 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
5739 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
5740 the original entries with EMPTY_HOWTOs, and added new ones to fill
5742 (sh_elf_info_to_howto): Make sure the new gap isn't used.
5743 (sh_elf_relocate_section): Likewise.
5745 2000-09-13 Anders Norlander <anorland@acc.umu.se>
5747 * cpu-mips.c (arch_info_struct): Add mips:4K
5748 * bfd-in2.h (bfd_mach_mips4K): New define.
5749 * archures.c: Add bfd_mach_mips4K to comment.
5750 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
5751 E_MIPS_ARCH_2 for bfd_mach_mips4K.
5753 2000-09-13 Marco Franzen <marcof@thyron.com>
5755 * som.c (som_write_symbol_strings): Do not used fixed buffers,
5756 use size_t as a counter.
5757 (som_write_space_strings): Similarly.
5759 2000-09-12 Jason Eckhardt <jle@cygnus.com>
5761 * elf32-i860.c (elf32_i860_relocate_pc26): New function
5763 (elf32_i860_relocate_section): Invoke new function from here.
5765 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5767 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
5770 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5772 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
5773 target section name instead of dumping core when the target symbol is
5776 2000-09-09 Kazu Hirata <kazu@hxi.com>
5778 * riscix.c: Remove DEFUN.
5780 2000-09-08 Nick Clifton <nickc@redhat.com>
5782 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
5783 initialise flags in output bfd if the input bfd is the default
5784 architecture with the default flags.
5786 2000-09-08 Kazu Hirata <kazu@hxi.com>
5788 * archive.c: Fix formatting.
5789 * coff-arm.c: Likewise.
5790 * doc/chew.c: Likewise.
5792 2000-09-08 Alan Modra <alan@linuxcare.com.au>
5794 * section.c (bfd_get_unique_section_name): Put a dot before the
5797 2000-09-07 Kazu Hirata <kazu@hxi.com>
5799 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
5800 * elf.c: Fix formatting.
5802 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
5804 * config.bfd (sh-*-linux*): Added.
5805 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
5806 * targets.c: Declare them.
5807 * elf32-sh-lin.c: New file.
5808 * Makefile.am: Compile it.
5809 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
5810 * configure, Makefile.in: Rebuilt.
5812 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
5814 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
5815 pseduo-section when determining where the TOC ends.
5817 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
5818 output x_tvndx as it is only two bytes wide.
5820 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
5821 reloc is 26 or 32 bits wide.
5823 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
5824 for relocs that don't change anything. Also look at the full
5827 2000-09-06 Philip Blundell <philb@gnu.org>
5829 * config.bfd (arm*-*-uclinux*): New target.
5831 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5833 * configure: Rebuilt with new libtool.m4.
5835 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5837 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
5838 word for variable name.
5839 * bfd-in2.h: Regenerate.
5841 2000-09-05 Nick Clifton <nickc@redhat.com>
5843 * config.in: Regenerate.
5844 * libbfd.h: Regenerate.
5845 * po/bfd.pot: Regenerate.
5846 * doc/bfdint.texi: Remove CVS date string - it foils compares with
5849 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
5851 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
5853 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5855 Shared library and PIC support.
5856 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5857 (GOT_ENTRY_SIZE): New.
5858 (ELF_DYNAMIC_INTERPRETER): New.
5859 (STUB_SUFFIX): Define.
5860 (LONG_BRANCH_PIC_IN_SHLIB): Define.
5861 (RELATIVE_DYNAMIC_RELOCS): Define.
5862 (enum elf32_hppa_stub_type): New.
5863 (struct elf32_hppa_stub_hash_entry): Rename offset to
5864 stub_offset. Add a number of new fields.
5865 (struct elf32_hppa_link_hash_entry): New.
5866 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
5868 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
5869 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
5870 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
5872 (hppa_link_hash_newfunc): New function.
5873 (elf32_hppa_link_hash_table_create): Use above function. Init new
5875 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
5876 instead of addend, and remove sym_name from args. Don't use
5877 symbol name for local syms, instead use sym index.
5878 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
5879 stub type rather than size. Pass in hash and handle import stub
5880 case. Also pass in reloc instead of offset so we can calculate
5881 PCREL22F and PCREL12F branches properly.
5882 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
5883 import and export stubs too.
5884 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5885 import and export stub sizing.
5886 (elf32_hppa_check_relocs): New function.
5887 (elf32_hppa_adjust_dynamic_symbol): New function.
5888 (hppa_discard_copies): New function.
5889 (elf32_hppa_size_dynamic_sections): New function.
5890 (elf_backend_size_dynamic_sections): Define.
5891 (elf32_hppa_finish_dynamic_symbol): New function.
5892 (elf_backend_finish_dynamic_symbol): Define.
5893 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5894 some local vars into the link hash table too. For shared links,
5895 trundle over function syms, generating export stubs. Handle
5896 PCREL22F branches. Break out stub creation code from here..
5897 (hppa_add_stub): .. to here. New function.
5898 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5899 call the bfd linker. Use elf_gp to record global pointer.
5900 Calculate a value from sections if $global$ is missing.
5901 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5902 (elf32_hppa_gc_mark_hook): New function.
5903 (elf_backend_gc_mark_hook): Define.
5904 (elf32_hppa_gc_sweep_hook): New function.
5905 (elf_backend_gc_sweep_hook): Define.
5906 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5907 Add rel to args, and remove howto, input_bfd, offset, addend,
5908 sym_name as we can recalculate these locally. Handle calls to
5909 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5910 handling of undefined weak syms. Check that stubs are in range.
5911 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5912 message on hitting a DPREL21L reloc that needs fixing. Subtract
5913 off PC for PCREL14F. Break out code that does a stub lookup from
5915 (hppa_get_stub_entry): ..to here. New function.
5916 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5917 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5919 (elf32_hppa_finish_dynamic_sections): New function.
5920 (elf_backend_finish_dynamic_sections): Define.
5921 (elf_backend_final_write_processing) Define.
5922 (hppa_handle_PIC_calls): New function.
5923 (elf32_hppa_build_stubs): Call it. Pass link_info to
5924 hppa_build_one_stub.
5925 (elf32_hppa_create_dynamic_sections): New function
5926 to create .plt and .got then set .plt flags correctly.
5927 (elf_backend_create_dynamic_sections): Define.
5928 (elf32_hppa_object_p): New function.
5929 (elf_backend_object_p): Define.
5930 (elf32_hppa_elf_get_symbol_type): New function.
5931 (elf_backend_get_symbol_type): Define.
5932 (elf_backend_can_gc_sections): Define.
5933 (elf_backend_want_got_plt): Define.
5934 (elf_backend_plt_alignment): Set to 2.
5935 (elf_backend_plt_readonly): Define.
5936 (elf_backend_want_plt_sym): Define.
5937 (elf_backend_got_header_size): Reserve one entry.
5939 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5940 (elf32_hppa_size_stubs): Pass in multi_subspace.
5941 (elf32_hppa_set_gp): Declare.
5943 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5944 (bfd_get_unique_section_name): New function.
5945 * bfd-in2.h: Regenerate.
5947 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5948 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5951 From David Huggins-Daines <dhd@linuxcare.com>
5952 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5953 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5954 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5955 been updated in finish_dynamic_symbol before modifying function
5958 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5959 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5960 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5961 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5962 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5963 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5964 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5965 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5967 From David Huggins-Daines <dhd@linuxcare.com>
5968 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5969 style of local labels as well.
5971 2000-09-03 Philip Blundell <philb@gnu.org>
5973 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5974 references to undefined symbols in debugging sections.
5976 2000-09-02 H.J. Lu <hjl@gnu.org>
5978 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5979 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5980 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5983 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5985 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5986 (elf32_i860_is_local_label_name): New function and prototype.
5988 2000-09-02 Nick Clifton <nickc@redhat.com>
5990 * configure.in: Increase version number to 2.10.91.
5991 * configure: Regenerate.
5992 * aclocal.m4: Regenerate.
5993 * config.in: Regenerate.
5994 * po/bfd.pot: Regenerate.
5996 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5998 * elf.c (_bfd_elf_make_section_from_shdr): Add
5999 .gnu.linkobce.wi. to the list of debug section names.
6001 2000-09-02 Nick Clifton <nickc@redhat.com>
6003 * dwarf2.c (find_debug_info): New function: Locate a section
6004 containing dwarf2 debug information.
6005 (bfd_dwarf2_find_nearest_line): Find all sections containing
6006 debug information and include them in the stash.
6008 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
6010 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
6011 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
6012 (sh_reloc_map): Add new relocs.
6013 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
6014 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
6015 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
6016 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
6018 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
6019 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
6020 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
6021 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
6022 New array constants.
6023 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
6025 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
6026 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
6027 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
6028 elf_sh_plt_reloc_offset): Define.
6029 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
6030 elf_sh_link_hash_table): New structs.
6031 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
6032 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
6034 (elf_backend_create_dynamic_sections,
6035 bfd_elf32_bfd_link_hash_table_create,
6036 elf_backend_adjust_dynamic_symbol,
6037 elf_backend_size_dynamic_sections,
6038 elf_backend_finish_dynamic_symbol,
6039 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
6040 elf_backend_plt_readonly, elf_backend_want_plt_sym,
6041 elf_backend_got_header_size, elf_backend_plt_header_size):
6043 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
6044 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
6046 * bfd-in2.h, libbfd.h: Rebuilt.
6048 2000-09-01 Alan Modra <alan@linuxcare.com.au>
6050 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
6053 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
6055 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
6056 not initialized, set them to indicate the SH1 instruction set.
6058 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
6060 * acinclude.m4: Include libtool and gettext macros from the
6062 * aclocal.m4, configure: Rebuilt.
6064 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
6066 * elf.c: Eliminate references to __sparcv9 macro; replace with
6067 autoconf variables HAVE_PSINFO32_T etc.
6068 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
6069 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
6071 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
6072 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
6073 * aclocal.m4: Ditto.
6074 * configure: Regenerate.
6076 2000-08-27 Alan Modra <alan@linuxcare.com.au>
6078 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
6079 for any shared link, not just shared -Bsymbolic.
6080 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
6081 any shared link, and pass link info to it.
6082 (elf_i386_size_dynamic_sections): Update comment.
6083 (elf_i386_discard_copies): Modify to discard relocs for symbols
6084 that have been forced local.
6085 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
6086 that have been forced local.
6088 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
6090 * elflink.h (elf_link_add_object_symbols): Allow common
6091 symbols to have an alignment of 1 if explicitly requested, and
6092 not overridden by other definitions.
6094 2000-08-22 Doug Kwan <dkwan@transmeta.com>
6096 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
6097 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
6099 2000-08-22 H.J. Lu <hjl@gnu.org>
6101 * elf-bfd.h (elf_link_hash_table): Add runpath.
6103 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
6104 * bfd-in2.h: Rebuilt.
6106 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
6107 "runpath" field to NULL.
6108 (bfd_elf_get_runpath_list): New function.
6110 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
6113 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
6115 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
6116 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
6117 explicitly. Improve validation of r_type.
6119 2000-08-21 H.J. Lu <hjl@gnu.org>
6121 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
6122 dynamic allocated content space. Add a comment to remind us that
6123 one day this ought to be fixed.
6124 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6125 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6126 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6128 2000-08-21 Jason Eckhardt <jle@cygnus.com>
6130 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
6131 field with the newly relocated value instead of adding it to the
6132 existing immediate field.
6133 (elf32_i860_relocate_splitn): Likewise.
6134 (elf32_i860_relocate_highadj): Likewise.
6136 2000-08-16 Jason Eckhardt <jle@cygnus.com>
6138 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
6139 was previously just a stub).
6141 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
6143 * elflink.c (_bfd_elf_create_got_section): Don't abort().
6145 (_bfd_elf_create_dynamic_sections): Likewise.
6147 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
6149 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
6150 for undefined symbols to be the beginning of the section.
6152 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
6153 four extra entries at the beginning of the .rela.plt section.
6154 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
6155 section to account for the four reserved entries in the .plt section.
6157 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
6159 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
6160 to the list of NOPs we recognize after a branch-and-link.
6161 Use the ori NOP when one is needed.
6163 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
6166 2000-08-14 Jim Wilson <wilson@cygnus.com>
6168 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
6169 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
6170 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
6173 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
6175 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
6177 2000-08-10 Jason Eckhardt <jle@cygnus.com>
6179 * elf32-i860.c (elf32_i860_relocate_section): New function.
6180 (i860_final_link_relocate): New function.
6181 (elf32_i860_relocate_splitn): New function.
6182 (elf32_i860_relocate_pc16): New function.
6183 (elf32_i860_relocate_highadj): New function.
6184 (elf32_i860_howto): Minor adjustments to some relocations.
6185 (elf_info_to_howto_rel): Define.
6186 (elf_backend_relocate_section): Define.
6188 2000-08-10 Nick Clifton <nickc@cygnus.com>
6190 * elf32-arm.h: Fix formatting.
6192 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
6194 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
6196 2000-08-08 Jason Eckhardt <jle@cygnus.com>
6198 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
6200 2000-08-07 Kazu Hirata <kazu@hxi.com>
6202 * ieee.c (ieee_write_debug_part): Rewrite a comment.
6203 * elf64-ia64.c: Fix a typo.
6205 2000-08-05 Jason Eckhardt <jle@cygnus.com>
6207 * elf32-i860.c (elf32_i860_howto_table): New structure.
6208 (lookup_howto): New function.
6209 (elf32_i860_reloc_type_lookup): New function.
6210 (elf32_i860_info_to_howto_rela): New function.
6211 (elf_code_to_howto_index): New structure.
6212 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
6213 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
6214 elf32_i860_reloc_type_lookup.
6216 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
6218 * som.c (struct fixup_format): Constify `format'.
6219 (som_hppa_howto_table): Use SOM_HOWTO macro.
6220 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
6221 (som_bfd_reloc_type_lookup): Likewise.
6222 (compare_subspaces): Remove unused `count1', `count2'.
6223 (som_begin_writing): Remove unused `total_reloc_size'.
6224 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
6225 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
6226 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
6227 (som_find_nearest_line): Decorate unused parameter(s).
6228 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
6229 (som_bfd_link_split_section): Likewise.
6231 2000-08-03 Nick Clifton <nickc@cygnus.com>
6233 * section.c: Restore backed out code.
6234 * elf.c: Restore backed out code.
6235 (copy_private_bfd_data): Fix bug preventing stipped dynamic
6236 binaries from working.
6237 * bfd-in2.h: Regenerate.
6239 2000-08-03 H.J. Lu <hjl@gnu.org>
6241 * section.c: Back out the change made by Nick Clifton
6242 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
6244 * bfd-in2.h: Likewise.
6247 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
6249 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
6251 2000-07-31 Jason Eckhardt <jle@cygnus.com>
6253 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
6254 * bfd-in2.h, libbfd.h: Regenerate.
6256 2000-07-31 Nick Clifton <nickc@cygnus.com>
6258 * section.c (struct sec): Add new boolean field 'segment_mark'.
6259 (STD_SECTION): Initialise new field to zero.
6261 * bfd-in2.h: Regenerate.
6263 * elf.c (copy_private_bfd_data): Reorganise section to segment
6264 mapping to cope with moved sections requiring new segments,
6265 and overlapping segments.
6266 (SEGMENT_END): New macro: Return the end address of a segment.
6267 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
6268 contains a section by comparing their VMA addresses.
6269 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
6270 contains a section by comparing their LMA addresses.
6271 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
6272 section should be included in a segment.
6273 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
6274 follows another in memory.
6275 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
6278 2000-07-22 Jason Eckhardt <jle@cygnus.com>
6280 * cpu-i860.c: Added comments.
6282 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
6283 bfd_elf32_i860_little_vec.
6284 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
6285 (ELF_MAXPAGESIZE): Changed to 4096.
6287 * targets.c (bfd_elf32_i860_little_vec): Declaration of
6289 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
6291 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
6292 config for little endian elf32 i860.
6293 (targ_defvec): Define for the new config above
6294 as "bfd_elf32_i860_little_vec".
6295 (targ_selvecs): Define for the new config above
6296 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
6298 * configure.in (bfd_elf32_i860_little_vec): Added recognition
6301 * configure: Regenerated.
6303 2000-07-27 H.J. Lu <hjl@gnu.org>
6305 * elflink.h (elf_merge_symbol): Take one more argument,
6306 dt_needed, to indicate if the symbol comes from a DT_NEEDED
6307 entry. Don't overide the existing weak definition if dt_needed
6309 (elf_link_add_object_symbols): Pass dt_needed to
6310 elf_merge_symbol ().
6312 2000-07-27 Nick Clifton <nickc@cygnus.com>
6314 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
6317 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
6319 * configure.host (*-*-aix*): AIX has 'long long' always.
6321 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
6322 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
6323 (xcoff_write_archive_contents_big): Don't update the offset
6324 of the symbol table, xcoff_write_armap will do it.
6326 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
6328 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
6329 of dynobj for SGI_COMPAT checks.
6331 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6333 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
6334 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
6335 * bfd-in2.h: Regenerate.
6337 2000-07-21 Nick Clifton <nickc@cygnus.com>
6339 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
6340 range symbol indices in relocs and issue an error message.
6342 2000-07-20 H.J. Lu <hjl@gnu.org>
6344 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
6345 info->new_dtags when setting DT_FLAGS_1. It will only be set
6346 by the new linker options. It shouldn't break anything.
6348 2000-07-20 H.J. Lu <hjl@gnu.org>
6350 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
6351 only if info->new_dtags is true.
6353 2000-07-20 H.J. Lu <hjl@gnu.org>
6355 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
6356 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
6358 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
6360 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
6361 (ALL_MACHINES_CFILES): Add cpu-cris.c.
6362 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
6363 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
6364 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
6365 * Makefile.in: Rebuild.
6366 * aclocal.m4: Rebuild.
6367 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
6368 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
6369 (bfd_cris_arch): Declare.
6370 (bfd_archures_list): Add bfd_cris_arch.
6371 * bfd-in2.h: Rebuild.
6372 * config.bfd: (cris-*-*): New target.
6373 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
6374 * configure: Rebuild.
6375 * elf.c (prep_headers): Add bfd_arch_cris.
6376 * libbfd.h: Rebuild.
6377 * libaout.h (enum machine_type): Add M_CRIS.
6378 * reloc.c: Add CRIS relocations.
6379 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
6380 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
6381 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
6382 * po/POTFILES.in, po/bfd.pot: Regenerate.
6384 2000-07-19 H.J. Lu <hjl@gnu.org>
6386 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
6387 DF_TEXTREL if DT_TEXTREL is set.
6388 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
6389 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
6390 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6391 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
6392 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
6393 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6394 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
6395 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6396 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
6397 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
6399 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
6400 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
6402 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
6404 2000-07-19 H.J. Lu <hjl@gnu.org>
6406 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
6407 * bfd-in2.h: Rebuild.
6409 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
6410 (elf_dt_soname): New.
6412 * elf.c (bfd_elf_set_dt_needed_soname): New.
6414 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
6415 entry if the shared object loaded by DT_NEEDED is used to
6416 resolve the reference in a regular object.
6418 2000-07-19 H.J. Lu <hjl@gnu.org>
6420 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
6421 DT_DEPAUDIT and DT_AUDIT as strings.
6423 2000-07-19 Nick Clifton <nickc@cygnus.com>
6425 * format.c: Fix formatting.
6427 2000-07-19 H.J. Lu <hjl@gnu.org>
6429 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
6431 2000-07-19 H.J. Lu <hjl@gnu.org>
6433 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
6434 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
6435 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
6436 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
6437 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
6438 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
6439 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
6441 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
6443 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
6444 renamed functions from here...
6445 (assign_section_numbers): Use renamed functions.
6446 (prep_headers): Use renamed functions.
6448 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
6449 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
6450 * bfd-in2.h: Regenerate.
6452 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
6454 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
6455 parenthesis in if statement.
6457 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
6459 Enable the support for Traditional MIPS.
6460 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
6461 return ict_none appropriately for traditional mips targets.
6462 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
6463 (STUB_MOVE): Conditionalize for traditonal mips.
6464 (STUB_LI16): Likewise.
6465 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6466 room for RTPROC header.
6467 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6468 the permission for the PT_DYNAMIC as read, write and execute.
6469 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6470 for traditonal mips.
6471 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6472 _DYNAMIC_LINKING for traditonal mips.
6473 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6474 in case of traditonal mips.
6475 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6476 entry is required. For a function if PLT is not required then set the
6477 corresponding hash table entry to 0.
6478 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6480 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6481 shared object set the value to 0.
6482 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6483 _DYNAMIC_LINKING for traditonal mips.
6484 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6485 for traditonal mips.
6487 2000-07-15 H.J. Lu <hjl@gnu.org>
6489 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6491 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6493 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6494 out a structure that is BFD_IN_MEMORY.
6496 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6498 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6499 bfd pointer. Print section id instead of bfd pointer for local
6500 syms. Prefix addend with `+' for global syms as well as local.
6501 Correct calculation of name component lengths.
6502 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6504 From David Huggins-Daines <dhd@linuxcare.com>
6505 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6506 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6507 (elf64_hppa_modify_segment_map): Likewise.
6509 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6511 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6512 addresses to be "naturally" sign extended. Return -1 if unknown.
6513 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6514 * bfd-in2.h: Regenerate.
6516 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6518 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6519 and ECOF_SIGNED_64 to list ways to extract an offset.
6520 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6521 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6523 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6524 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6526 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6528 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6529 bfd_get_start_address.
6530 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6531 (elf_swap_ehdr_out): Ditto.
6533 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6535 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6536 compatibility with older binutils.
6538 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6540 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6541 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6543 From Ryan Bradetich <rbradetich@uswest.net>
6544 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6545 (parse_line_table): Ditto.
6546 (_bfd_dwarf1_find_nearest_line): Ditto.
6547 * syms.c (cmpindexentry): Remove extra `*' from params.
6549 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
6551 * elf32-mips.c (sort_dynamic_relocs): New Function.
6552 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
6553 via qsort to sort the dynamic relocations in increasing r_symndx
6556 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6558 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
6559 ATTRIBUTE_UNUSED to unused args.
6560 (get_opd): Likewise.
6561 (get_plt): Likewise.
6562 (get_dlt): Likewise.
6563 (get_stub): Likewise.
6564 (elf64_hppa_adjust_dynamic_symbol): Likewise.
6565 (elf64_hppa_link_output_symbol_hook): Likewise.
6566 (elf64_hppa_check_relocs): Delete unused var.
6567 (elf64_hppa_size_dynamic_sections): Likewise.
6568 (elf64_hppa_finalize_opd): Likewise.
6569 (elf64_hppa_finalize_dynreloc): Likewise.
6570 (elf64_hppa_modify_segment_map): Likewise.
6571 (elf64_hppa_finish_dynamic_sections): Likewise.
6573 * elf-hppa.h (elf_hppa_final_write_processing): Add
6574 ATTRIBUTE_UNUSED to unused args.
6575 (elf_hppa_final_link_relocate): Likewise.
6576 (elf_hppa_record_segment_addrs): Add paretheses.
6577 (elf_hppa_relocate_section): Constify dyn_name.
6579 From David Huggins-Daines <dhd@linuxcare.com>
6580 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
6581 rearrange case statement so that it gets preferred to 32-bit ones.
6583 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
6584 asection->id instead of address of asection structure.
6585 (elf32_hppa_size_stubs): Likewise.
6587 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
6588 for .init* and .fini*.
6590 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
6591 and addends used in stub names to 32 bits.
6592 (elf32_hppa_size_stubs): Likewise.
6594 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
6595 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
6596 not bfd_put_64. Fix minor comment typo and formatting.
6598 Changes to create multiple linker stubs, positioned immediately
6599 before the section where they are required.
6600 * elf32-hppa.c: Don't include hppa_stubs.h.
6601 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
6602 (elf32_hppa_stub_hash_table): Delete.
6603 (elf32_hppa_link_hash_entry): Delete.
6604 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
6605 stub_hash_table, and store the struct here rather than a pointer.
6606 Delete output_symbol_count. Add offset array. Change
6607 global_value to a bfd_vma.
6608 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
6609 (elf32_hppa_stub_hash_traverse): Delete.
6610 (elf32_hppa_name_of_stub): Delete.
6611 (elf32_hppa_link_hash_lookup): Delete.
6612 (elf32_hppa_link_hash_traverse): Delete.
6613 (elf32_hppa_stub_hash_table_init): Delete.
6614 (elf32_hppa_size_of_stub): Pass input section and offset rather
6615 than location and calculate location here. Don't pass name as all
6616 stubs are now the same size.
6617 (elf32_hppa_stub_hash_newfunc): Init new fields.
6618 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
6620 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
6621 comparing against ints. Rewrite stub handling code.
6622 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
6623 Case enums to int before comparing against ints. Remove
6624 bfd_reloc_dangerous case.
6625 (elf32_hppa_build_one_stub): Rewrite.
6626 (elf32_hppa_size_one_stub): New function.
6627 (elf32_hppa_build_stubs): Rewrite.
6628 (elf32_hppa_size_stubs): Pass in linker call-back functions.
6629 Rewrite stub-handling specific code.
6631 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
6633 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
6635 * hppa_stubs.h: Delete.
6636 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
6637 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
6638 * Makefile.in: Regenerate.
6640 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
6643 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
6645 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
6646 and section name for bfd_reloc_notsupported error message.
6647 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
6648 bfd_reloc_notsupported.
6649 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
6651 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
6652 undefined weak symbols for all relocs.
6653 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
6654 offsets are relative to one past the delay slot.
6655 (elf32_hppa_size_stubs): Account for reloc addend when calculating
6656 branch destination. Put addend into stub name too.
6657 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
6658 adjust by 8 when deciding whether a linker stub is needed. Put
6659 addend into stub name as for above.
6661 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
6662 various args and vars.
6663 (elf32_hppa_bfd_final_link_relocate): Here too.
6664 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
6665 inner block var to avoid shadowing.
6667 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
6669 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
6670 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
6671 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
6673 * libhppa.h: Change practically all unsigned ints to plain ints.
6674 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
6677 From Ryan Bradetich <rbradetich@uswest.net>
6678 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
6679 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
6681 From David Huggins-Daines <dhd@linuxcare.com>
6682 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
6683 to the new OP_* ones.
6685 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
6686 error exit. Bail out earlier on plabel relocs that we aren't
6687 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
6688 string, and then don't free our copy.
6689 (elf32_hppa_build_one_stub): Make insn unsigned int.
6691 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
6692 available with BL, not BE and BLE.
6694 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
6695 code for elf arg relocs.
6696 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
6697 argument with elf_link_hash_entry h. Handle undefined weak
6698 symbols. Move $global$ lookup from here...
6699 (elf32_hppa_relocate_section): ...to here. Return correct error
6700 message for non-handled relocs.
6701 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
6702 wrong test was -0x3ffff to +0x40000.
6704 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
6705 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
6706 Handle them as such.
6707 (elf_hppa_relocate_insn): Fix a typo.
6709 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
6710 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6711 assemble_17, assemble_21): Delete.
6712 Supply defines for all 64 possible opcodes.
6713 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
6714 formats. Handle COMICLR.
6715 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
6718 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
6719 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
6720 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
6722 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
6723 the local syms - did this code get deleted accidentally? Ignore
6724 undefined and undefweak syms.
6726 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
6727 block. Use it instead of elf64_hppa_hash_table (info).
6728 (elf_hppa_final_link_relocate): Use hppa_info instead of
6729 elf64_hppa_hash_table (info).
6731 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6732 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6733 (hppa_rebuild_insn): Mask immediate bits here instead.
6734 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6736 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6738 * section.c (struct sec): Add id field. Tidy comment formatting.
6739 (bfd_make_section_anyway): Set id.
6740 (STD_SECTION): Init id too.
6741 Change CONST to const throughout.
6742 * archures.c (bfd_arch_info): Tidy comment.
6743 (bfd_arch_list): Change a CONST to const.
6744 * libbfd-in.h: Tidy comments and replace CONST with const.
6745 * elf-bfd.h: Likewise.
6746 * libbfd.h: Regenerate.
6747 * bfd-in2.h: Regenerate.
6748 * libcoff.h: Regenerate.
6750 2000-07-07 DJ Delorie <dj@redhat.com>
6752 * archive.c (_bfd_write_archive_contents): Add an informative
6755 2000-07-06 Kazu Hirata <kazu@hxi.com>
6757 * srec.c: Fix formatting.
6759 2000-06-05 DJ Delorie <dj@redhat.com>
6763 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
6765 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
6766 value of PC-relative offsets.
6768 2000-07-03 Jim Wilson <wilson@cygnus.com>
6770 * elf64-alpha.c (alpha_elf_size_info): New.
6771 (elf_backend_size_info): Define to alpha_elf_size_info.
6772 * elfcode.h (elf_size_info): Change hash bucket size to 4.
6774 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
6776 * elf32-mips.c: Include elf32-target.h again for the traditional
6779 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
6781 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
6782 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
6783 (avr_info_to_howto_rela): Likewise.
6784 (elf32_avr_gc_mark_hook): Likewise.
6785 (elf32_avr_gc_sweep_hook): Likewise.
6786 (elf32_avr_relocate_section): Likewise.
6788 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
6790 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
6791 an external symbol for a non-shared, non-relocatable link.
6793 2000-07-03 Nick Clifton <nickc@redhat.com>
6795 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
6796 is an external symbol.
6797 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
6800 2000-07-03 Kazu Hirata <kazu@hxi.com>
6802 * reloc16.c: Fix formatting.
6804 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6806 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
6807 to add a new target for traditional mips i.e
6808 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
6809 * configure.in: Likewise.
6810 * configure: Rebuild.
6811 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
6813 (bfd_elf32_tradlittlemips_vec): Likewise.
6814 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
6815 to see that elfNN_bed does not get redefined even if the target file
6816 is included twice for a chip. See elf32-mips.c.
6818 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6820 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6821 (CLEANFILES): Add DEPA.
6822 * Makefile.in: Regenerate.
6824 2000-06-30 DJ Delorie <dj@cygnus.com>
6826 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
6827 can't assume the PE header is at 0x80.
6829 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
6831 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
6833 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
6835 * go32stub.h: Update stub.
6837 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6839 * archures.c (bfd_mach_avr5): Define.
6840 * bfd-in2.h (bfd_mach_avr5): Define.
6841 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
6842 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
6843 (compatible): Update comment. Add missing test.
6844 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
6845 for avr2 and avr4. Simplify 8K wrap code.
6846 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
6847 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
6849 2000-06-26 Kazu Hirata <kazu@hxi.com>
6851 * coff-h8300.c: Fix formatting.
6852 * cpu-h8300.c: Likewise.
6854 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
6856 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
6857 for local symbols whose names are unknown.
6859 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6861 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6863 * Makefile.in: Regenerate.
6864 * doc/Makefile.in: Regenerate.
6866 2000-06-20 H.J. Lu <hjl@gnu.org>
6868 * Makefile.am: Rebuild dependency.
6869 * Makefile.in: Rebuild.
6871 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6873 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
6874 (elf_backend_copy_indirect_symbol): Map to the new function.
6876 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6878 * archive.c (normalize): Correct pointer comparison when checking
6880 (bfd_bsd_truncate_arname): Likewise.
6881 (bfd_gnu_truncate_arname): Likewise.
6883 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6885 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6886 sections elf_{text,data}_{section,symbol}.
6887 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6888 (_bfd_mips_elf_hide_symbol): New function.
6889 (elf_backend_hide_symbol): Map to the new function.
6890 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6891 definitions of mips_elf_{text,data}_{section,symbol}.
6892 (mips_elf_local_relocation_p): Try to find the direct symbol
6893 based on new check_forced argument.
6894 (mips_elf_calculate_relocation): Use new version of
6895 mips_elf_local_relocation_p.
6896 (mips_elf_relocate_section): Likewise.
6897 (_bfd_mips_elf_relocate_section): Likewise.
6898 (mips_elf_sort_hash_table): Only assert that have enough GOT
6900 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6901 entry if the relocation based on the new external argument.
6902 (mips_elf_create_dynamic_relocation): Assert that we have a
6903 section contents allocated where we can swap out the dynamic
6905 (mips_elf_calculate_relocation): Find the real hash-table entry
6906 correctly by using h->root.root.type. Only create a dynamic
6907 relocation entry if the symbol is defined in a shared library.
6908 Create an external GOT entry for the GOT16 relocation if the
6909 symbol was forced local.
6910 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6911 dynamic index if the symbol was forced local.
6913 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6915 * elf32-mips.c: Fix typos in comments.
6917 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6919 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6922 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6924 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6925 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6926 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6927 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6928 (bfd_elf32_m68hc11_vec): Likewise.
6929 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6930 Supports 68hc11 & 68hc12 at the same time.
6931 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6933 (bfd_elf32_m68hc11_vec): Likewise.
6934 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6935 * archures.c (bfd_m68hc12_arch): Define and register in global list
6936 (bfd_m68hc11_arch): Likewise.
6937 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6938 BFD_RELOC_M68HC11_3B): Define.
6939 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6940 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6942 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6944 * elf_bfd.h (struct elf_backend_data): Add info argument to
6945 elf_backend_hide_symbol.
6946 (_bfd_elf_link_hash_hide_symbol): Likewise.
6947 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6948 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6949 * elflink.h (elf_link_add_object_symbols): Likewise.
6950 (elf_link_assign_sym_version): Likewise.
6952 2000-06-18 H.J. Lu <hjl@gnu.org>
6954 * coff-i386.c (coff_i386_reloc): Don't return in case of
6955 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6956 Compensate PE relocations when linking with non-PE object
6957 files to generate a non-PE executable.
6959 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6961 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6962 GOT entries if we're doing a static link or -Bsymbolic link.
6964 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6966 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6967 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6969 (elf_link_output_relocs): Likewise.
6970 (elf_reloc_link_order): Likewise.
6972 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6974 * archures.c (enum bfd_architecture): #define constants for
6975 PowerPc and RS6000 machine numbers.
6976 * bfd-in2.h: Regenerate.
6977 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6978 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6979 and RS6000 machine numbers using #defined constants from
6981 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6982 machine numbers using #defined constants from archures.c. Add
6983 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6984 64-bit words in 620 entry.
6985 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6987 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6989 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6991 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6992 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6993 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6995 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6997 * bfd-in.h (bfd_family_coff): Define.
6998 * bfd-in2.h: Regenerate.
6999 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
7000 coff_find_nearest_line): Check COFFness using bfd_family_coff()
7001 instead of bfd_target_coff_flavour.
7002 * cofflink.c (_bfd_coff_final_link): Likewise.
7003 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
7004 exclude XCOFF files.
7005 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7007 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
7008 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
7009 * xcofflink.c (XCOFF_XVECP): Delete.
7010 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
7011 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
7012 bfd_xcoff_record_link_assignment,
7013 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
7014 check for bfd_target_xcoff_flavour.
7016 2000-06-16 Nicholas Duffek <nsd@redhat.com>
7018 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
7020 (read_hdr): New function.
7021 (rs6000coff_core_p): Store mstsave or __context64 struct instead
7022 of trying to extract individual registers. Set abfd->arch_info
7023 to match the architecture that created the core file.
7024 (rs6000coff_get_section_contents): Delete.
7025 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
7027 2000-06-14 H.J. Lu <hjl@gnu.org>
7029 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
7032 2000-06-13 H.J. Lu <hjl@gnu.org>
7034 * configure: Regenerate.
7036 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
7038 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
7041 2000-06-08 David O'Brien <obrien@FreeBSD.org>
7043 * configure.in (VERSION): Update to show this is the CVS mainline.
7045 2000-06-07 Alan Modra <alan@linuxcare.com.au>
7047 * elf32-d10v.c: Include elf/d10v.h
7048 (enum reloc_type): Delete.
7049 * elf32-d30v.c: Include elf/d30v.h
7050 (enum reloc_type): Delete.
7052 * Makefile.am: Run "make dep-am" to regenerate dependencies.
7053 * Makefile.in: Regenerate.
7055 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
7056 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
7057 move HOWTOs into elf_howto_table.
7058 (R_386_standard, R_386_ext_offset): Define.
7059 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
7060 (elf_i386_reloc_type_lookup): Modify calculation of index into
7061 elf_howto_table since we've removed the padding.
7062 (elf_i386_info_to_howto_rel): Likewise.
7063 (elf_i386_relocate_section): Likewise.
7065 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
7067 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
7069 2000-06-05 H.J. Lu <hjl@gnu.org>
7071 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
7072 an error when seeing an undefined symbol with hidden/internal
7073 attribute. It is handled in *_relocate_section ().
7075 2000-06-05 H.J. Lu <hjl@gnu.org>
7077 * elflink.h (elf_fix_symbol_flags): Follow the link for the
7078 indirect symbol for the ELF_LINK_NON_ELF bit.
7079 (elf_link_output_extsym): Don't output the indirect symbol even
7080 if the ELF_LINK_NON_ELF bit is set.
7082 2000-06-01 J.T. Conklin <jtc@redback.com>
7084 * config.bfd (i[3456]86-*-netbsdelf*): New target.
7085 (i[3456]86-*-netbsdaout*): New target.
7086 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
7087 (i[3456]86-*-openbsd*): Likewise.
7089 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
7091 * trad-core.c: From hpux-core.c, include <dirent.h> or
7092 <sys/ndir.h> when possible.
7094 2000-05-31 Ulrich Drepper <drepper@redhat.com>
7096 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
7097 definitions. We must not assume they are sorted in the file
7098 according to their index numbers.
7100 2000-05-31 Alan Modra <alan@linuxcare.com.au>
7102 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
7103 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
7104 R_PARISC_DIR17F are for absolute branches; Handle them as such.
7106 2000-05-30 Nick Clifton <nickc@cygnus.com>
7108 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
7109 80960CA, 80960MC as valid machine names.
7111 2000-05-30 H.J. Lu <hjl@gnu.org>
7113 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
7114 visibility bits if the symbol is undefined. Correctly handle
7115 weak undefined symbols with hidden and internal attributes.
7117 * elflink.h (elf_link_add_object_symbols): Always turn the
7118 symbol into local if it has the hidden or internal attribute.
7120 2000-05-29 Philip Blundell <philb@gnu.org>
7122 * ppcboot.c: Add packed attribute if compiling with GCC.
7124 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
7126 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
7128 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
7130 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
7131 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
7132 corefile on a 64-bit (Sparc Solaris) host. Also clean up
7135 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7137 * Makefile.am: Update dependencies with "make dep-am"
7138 * Makefile.in: Regenerate.
7140 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
7141 bindtextdomain): Replace defines with those from intl/libgettext.h
7142 to quieten gcc warnings.
7144 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
7146 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
7148 * archive.c (normalize, bfd_bsd_truncate_arname,
7149 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
7150 file names with backslashes.
7152 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
7155 * sysdep.h: Include filenames.h.
7157 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7159 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
7161 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7163 * elf64-sparc.c (sparc64_elf_relax_section): New.
7164 (sparc64_elf_relocate_section): Optimize tail call into branch always
7166 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7167 (elf32_sparc_relax_section): New.
7169 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7171 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
7172 Remove unusued variables.
7173 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
7174 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
7175 previous fix, so that shared libs really don't influence targets
7176 extension mask and memory model.
7178 2000-05-23 H.J. Lu <hjl@gnu.org>
7180 * elf64-alpha.c (elf64_alpha_relocate_section): Check
7181 h->root.other not h->other.
7182 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7184 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
7186 2000-05-23 H.J. Lu <hjl@gnu.org>
7188 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
7189 undefined symbol with the non-default visibility attributes.
7190 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
7191 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7192 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7193 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7194 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7195 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7196 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7197 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7198 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7199 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
7200 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7202 2000-05-22 Richard Henderson <rth@cygnus.com>
7204 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
7205 PCREL22, PCREL64I. Zero size of special relocs.
7206 (elf64_ia64_reloc_type_lookup): Likewise.
7207 (USE_BRL, oor_brl, oor_ip): New.
7208 (elf64_ia64_relax_section): New.
7209 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
7210 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
7211 (elf64_ia64_relocate_section): Likewise.
7212 (bfd_elf64_bfd_relax_section): New.
7213 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
7214 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
7215 * bfd-in2.h, libbfd.h: Regenerate.
7217 2000-05-22 Nick Clifton <nickc@cygnus.com>
7219 * configure.in : Add peigen.lo to MIPS PE targets.
7220 * configure: Regenerate.
7222 2000-05-22 Momchil Velikov <velco@fadata.bg>
7224 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
7225 only if it is known for both input and output bfds. Separate
7226 error message strings as in some languages, it may be necessary
7227 to change more than one place in the string to change between
7230 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
7231 endianess checks, call _bfd_generic_verify_endian_match() instead.
7233 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
7235 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
7237 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
7238 endianess before checking bfd flavours.
7240 2000-05-22 H.J. Lu <hjl@gnu.org>
7242 * elflink.h (elf_link_output_extsym): Clear the visibility
7243 field for symbols not defined locally.
7245 2000-05-18 Alan Modra <alan@linuxcare.com.au>
7247 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
7248 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
7249 (hppa_rebuild_insn): Mask immediate bits here instead.
7250 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
7252 2000-05-18 Momchil Velikov <velco@fadata.bg>
7254 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
7255 relocs for an executable, ensure that they are virtual addresses.
7257 2000-05-18 Jeffrey A Law (law@cygnus.com)
7259 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
7261 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
7262 Rick Gorton <gorton@scrugs.lkg.dec.com>
7264 * elflink.h: Add emitrelocations support: when enabled, relocation
7265 information and relocation sections are put into final output
7266 executables. If the emitrelocations flag is set, do the following:
7267 (elf_bfd_final_link): Emit relocation sections.
7268 (elf_link_input_bfd): Compute relocation section contents.
7269 (elf_gc_sections): Don't clean relocation sections.
7271 2000-05-16 Catherine Moore <clm@cygnus.com>
7273 * som.c (som_decode_symclass): Recognize weak symbols.
7275 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
7277 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
7278 read idata section only from dataoff.
7279 (pe_print_edata): Correctly check for valid eat_member.
7281 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7283 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
7285 2000-05-14 Philip Blundell <philb@gnu.org>
7287 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
7289 2000-05-12 Alan Modra <alan@linuxcare.com.au>
7291 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
7293 * peigen.c (pe_print_idata): Look for .idata section and print
7294 info even if data directory has zero entries. Read idata section
7295 starting from dataoff, and adjust all data offsets to suit. Cast
7296 all bfd_vma vars to unsigned long before passing to fprintf.
7297 * peigen.c (pe_print_edata): Similarly, look for .edata section
7298 and print info even if data directory has zero entries. Cast
7299 all bfd_vma vars to unsigned long before passing to fprintf.
7301 From Szabolcs Szakacsits <szaka@F-Secure.com>
7302 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
7303 directory size which may be bogus.
7304 * peigen.c (pe_print_edata): Similarly.
7306 2000-05-09 Alan Modra <alan@linuxcare.com.au>
7308 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
7310 (copy_private_bfd_data): Allow for space possibly taken up by elf
7311 headers when calculating segment physical address from lma.
7313 2000-05-08 Alan Modra <alan@linuxcare.com.au>
7315 * versados.c (versados_scan): Init stringlen and pass_2_done.
7317 * trad-core.c (trad_unix_core_file_p): Return
7318 bfd_error_wrong_format rather than bfd_error_file_truncated.
7320 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
7321 add_data_entry. DataDirectory virtual address is relative.
7322 (pe_print_idata): Account for relative DataDirectory virtual
7323 addresses. Don't trash datasize inside POWERPC_LE_PE code.
7324 (pe_print_edata): Similarly.
7326 From Szabolcs Szakacsits <szaka@F-Secure.com>
7327 * peigen.c (dir_names): Add Delay Import Directory.
7328 (pe_print_idata): Always search for bfd section containing
7329 idata address rather than looking up section name. Print this
7330 section name rather than .idata.
7331 (pe_print_edata): Similarly. Also print some fields as %08lx.
7332 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
7335 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7337 * xcoff.h: Rename to xcoff-target.h
7338 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
7339 * coff-rs6000.c: Ditto.
7340 * coff64-rs6000.c: Ditto.
7341 * coff-pmac.c: Ditto.
7342 * Makefile.in: Regenerate.
7344 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7346 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
7347 Change U802TOC64MAGIC to U803XTOCMAGIC.
7349 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
7351 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
7352 * bfd-in.h: Prototype bfd_elf_get_arch_size.
7353 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
7355 2000-05-04 Alan Modra <alan@linuxcare.com.au>
7357 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
7359 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
7361 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
7362 hidden and internal symbols.
7363 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
7365 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
7366 assign a PLT or GOT entry to symbols with hidden and
7367 internal visibility.
7369 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
7371 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
7373 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
7375 2000-05-02 H.J. Lu <hjl@gnu.org>
7377 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
7380 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7382 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
7383 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
7385 * Makefile.in: Regenerate.
7387 2000-05-01 Jim Wilson <wilson@cygnus.com>
7389 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
7390 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
7391 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
7392 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
7393 * Makefile.in: Rebuild.
7395 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7397 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
7398 doesn't work very well.
7400 * elf-hppa.h (elf_hppa_internal_shdr): Define.
7401 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
7402 Set hdr->s_type to 1 if ARCH_SIZE == 32.
7403 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
7404 (elf_hppa_info_to_howto): Likewise.
7405 (elf_hppa_info_to_howto_rel): Likewise.
7406 (elf_hppa_reloc_type_lookup): Likewise.
7407 (elf_hppa_is_local_label_name): Likewise.
7408 (elf_hppa_fake_sections): Likewise.
7409 (elf_hppa_final_write_processing): Likewise.
7410 (elf_hppa_howto_table): Fully initialise all entries.
7411 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
7412 (elf_hppa_info_to_howto): Likewise.
7413 (elf_hppa_info_to_howto_rel): Likewise.
7414 (elf_hppa_reloc_type_lookup): Likewise.
7415 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
7416 elf_hppa_unmark_useless_dynamic_symbols,
7417 elf_hppa_remark_useless_dynamic_symbols,
7418 elf_hppa_record_segment_addrs, elf_hppa_final_link,
7419 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
7420 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
7421 elf32-hppa.c mess is cleaned up.
7422 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
7423 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
7424 r_field then call hppa_field_adjust inline func with variable
7425 r_field arg, instead call hppa_field_adjust with fixed arg.
7426 In case R_PARISC_PCREL22F, don't set r_field.
7427 (elf_hppa_relocate_insn): Change args and return type to unsigned
7428 int. Call re_assemble_* funcs to do the work.
7430 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
7433 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
7435 (sign_extend): Mask first before sign extending.
7436 (low_sign_extend): Rewrite without condition expression.
7437 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
7438 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
7439 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7440 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
7441 result as function return value rather than through pointer arg.
7442 Accept unsigned int args, and return unsigned int.
7443 (re_assemble_3): New. Combines function of dis_assemble_3 with
7444 re-assembly of opcode and immediate.
7445 (re_assemble_12): Likewise.
7446 (re_assemble_16): Likewise.
7447 (re_assemble_17): Likewise.
7448 (re_assemble_21): Likewise.
7449 (re_assemble_22): Likewise.
7450 (hppa_field_adjust): Rewrite and document, paying attention to
7451 size of types and signed/unsigned issues.
7452 (get_opcode): Shift before masking.
7453 (FDLW): Rename to FLDW.
7454 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
7455 (hppa_rebuild_insn): Change args and return value to unsigned
7456 int. Make use of re_assemble_*. Correct case 11.
7458 * dep-in.sed: Handle ../opcodes/.
7459 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
7460 elf64-hppa.h, hppa_stubs.h, xcoff.h.
7461 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
7462 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
7463 elfarm-nabi.lo dependencies outside of auto-dependency area.
7464 Regenerate dependencies.
7465 * Makefile.in: Regenerate.
7467 * configure.in (TRAD_HEADER): Test non-null before
7469 * configure: Regenerate.
7471 * reloc.c: Fix mis-spelling in comment.
7473 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7475 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7476 * vms.c (vms_openr_next_archived_file): Return NULL.
7478 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7480 * coffcode.h Copy changes mistakenly done to libcoff.h in
7483 2000-04-29 Andreas Jaeger <aj@suse.de>
7485 * libbfd-in.h: Correctly check GCC version.
7486 * bfd-in.h: Likewise.
7487 * libhppa.h: Likewise.
7488 * libbfd.h: Regenerate.
7489 * bfd-in2.h: Regenerate.
7491 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7493 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7494 coffdu-rs6000.{lo,c}.
7495 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7497 * Makefile.in: Regenerate.
7498 * xcoff.h: New file.
7499 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7500 * coff-rs6000.c: Move all declarations and defines that are
7501 common to the xcoff backends into xcoff.h
7502 * coff64-rs6000.c: Ditto,
7504 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7506 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7507 _bfd_coff_force_symnames in strings and
7508 _bfd_coff_debug_string_prefix_length to their default values.
7509 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7511 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7513 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7514 _bfd_coff_force_symnames in strings and
7515 _bfd_coff_debug_string_prefix_length to their default values.
7517 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7519 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7520 Check local_got_refcounts before dereferencing.
7522 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7523 before deciding we don't need R_PPC_PLT32 relocation.
7524 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7527 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7529 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7531 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7532 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7533 (elf_i386_relocate_section): Allow for .plt to go missing.
7534 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7535 can use a relative reloc for got as elf_i386_relocate_section.
7536 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7538 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7540 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7542 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7544 * Makefile.am (coff64-rs6000.lo): New rule.
7545 * Makefile.in: Regenerate.
7546 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
7547 xcoff_is_local_label_name, xcoff_rtype2howto,
7548 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
7549 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
7550 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
7551 (NO_COFF_SYMBOLS): Define.
7552 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
7553 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
7555 (MINUS_ONE): New macro.
7556 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7558 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7559 coff_SWAP_aux_out): Map to the new functions.
7560 * coff64-rs6000.c: New file.
7561 * libcoff.h (bfd_coff_backend_data): Add new fields
7562 _bfd_coff_force_symnames_in_strings and
7563 _bfd_coff_debug_string_prefix_length.
7564 (bfd_coff_force_symnames_in_strings,
7565 bfd_coff_debug_string_prefix_length): New macros for above fields.
7566 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
7567 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7568 of using coff_swap_sym_in directly.
7569 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
7570 (coff_set_flags) Set magic for XCOFF64.
7571 (coff_compute_section_file_positions): Add symbol name length to
7572 string section length if bfd_coff_debug_string_prefix_length is
7574 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
7575 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
7576 using coff_swap_lineno_in directly.
7577 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
7578 and _bfd_coff_debug_string_prefix_length fields.
7579 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
7580 symbol names into strings table when
7581 bfd_coff_force_symnames_in_strings is true.
7582 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
7583 SET_RELOC_VADDR): New macros.
7584 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7585 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
7587 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
7588 changes within RS6000COFF_C specific code.
7589 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7590 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
7591 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7592 Extend existing hack on target name.
7593 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
7595 * coff-tic54x.c (ticof): Keep up to date with new fields
7596 in bfd_coff_backend_data.
7597 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
7598 targ_selvecs to include rs6000coff64_vec for rs6000.
7599 * configure.in: Add rs6000coff64_vec case.
7600 * cpu-powerpc.c: New bfd_arch_info_type.
7602 2000-04-24 Jeffrey A Law (law@cygnus.com)
7604 * config.bfd: Only disable elf32-hppa vectors, not all of the
7605 BSD and OSF configuration support. Provide (disabled) clauses
7607 * configure.in: Add clause for PA64 support.
7608 * configure: Rebuilt.
7610 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
7611 (bfd_elf64_hppa_vec): Declare.
7613 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
7614 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
7615 (elf64-hppa.lo): Add dependencies.
7616 * Makefile.in: Rebuilt.
7618 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
7620 2000-04-24 Jason Eckhardt <jle@cygnus.com>
7622 * libhppa.h (dis_assemble_16): New function.
7623 (pa_arch): Added pa20w element.
7625 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
7627 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
7628 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
7629 bfd_elf64_slurp_reloc_table.
7631 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
7632 definitions to get external names.
7633 (elf_write_relocs): Renamed from write_relocs and make global.
7634 (elf_slurp_reloc_table): Make global.
7635 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
7637 * archive.c (hpux_uid_gid_encode): New function.
7638 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
7639 defined and the ID is greater than 99999.
7640 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
7641 special uid/gid fields into 32 bit values.
7643 2000-04-21 Matthew Green <mrg@cygnus.com>
7645 * config.bfd: Add NetBSD/sparc64 support.
7647 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
7648 David Mosberger <davidm@hpl.hp.com>
7649 Timothy Wall <twall@cygnus.com>
7650 Jim Wilson <wilson@cygnus.com>
7652 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
7653 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
7654 (BFD64_BACKENDS): Add elf64-ia64.lo.
7655 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
7656 (cpu-ia64.lo, elf64-ia64.lo): New rules.
7657 * Makefile.in: Rebuild.
7658 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
7659 (bfd_ia64_arch): Declare.
7660 (bfd_archures_list): Add bfd_ia64_arch.
7661 * bfd-in2.h: Rebuild.
7662 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
7663 * configure: Rebuild.
7664 * configure.host: (ia64-*-linux*): New host.
7665 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
7666 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
7667 * elf.c (prep_headers): Add bfd_arch_ia64.
7668 * libbfd.h: Rebuild.
7669 * reloc.c: Add IA-64 relocations.
7670 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
7672 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
7673 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
7675 2000-04-21 Richard Henderson <rth@cygnus.com>
7677 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
7678 contents when performing a partial link.
7679 (bfd_elf_d30v_reloc_21): Likewise.
7681 2000-04-20 H.J. Lu <hjl@gnu.org>
7683 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
7684 patch to symbols defined by a shared object.
7685 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
7687 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7690 * dwarf2.c (concat_filename): Avoid string literal concatenation.
7691 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
7693 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
7695 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
7696 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
7697 (coff-ia64.lo): Add dependency.
7698 * Makefile.in: Regenerate.
7699 * coff-ia64.c: New file.
7700 * efi-app-ia32.c: Ditto.
7701 * efi-app-ia64.c: Ditto.
7702 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
7703 (coff_set_flags): Ditto.
7704 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
7705 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
7706 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
7707 * configure: Regenerate.
7708 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
7709 (PUT_OPTHDR_IMAGE_BASE): Ditto.
7710 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7711 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7712 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7713 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7714 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7715 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7716 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7717 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7718 (GET_PDATA_ENTRY): Ditto.
7719 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
7720 data_start. Use above macros to read fields that are 64 bit wide for
7721 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
7722 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
7723 FileAlignment and SectionAlignment to minimum alignment if they
7725 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
7726 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
7727 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
7728 Use above macros to write fields that are 64 bit wide for
7730 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
7731 5*4 otherwise. This should be right for IA-32 and IA-64, but may
7732 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
7733 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
7734 begin address, end address, and unwind info address only. Use
7735 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
7737 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
7738 HIGH3ADJ relocation names.
7739 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
7740 * targets.c: Declare bfd_efi_app_ia32_vec and
7741 bfd_efi_app_ia64_vec.
7742 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
7743 bfd_efi_app_ia64_vec.
7745 2000-04-17 Timothy Wall <twall@cygnus.com>
7747 * bfd-in2.h: Add prototypes for tic54x load page access.
7748 * bfd-in.h: Regenerate.
7749 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
7750 in customized _set_arch_mach function.
7751 * coffcode.h (coff_set_alignment_hook): Set section load page if
7752 the appropriate macro is defined.
7753 (write_object_contents): Read section load page.
7755 2000-04-13 Alan Modra <alan@linuxcare.com.au>
7757 * elf32-hppa.h: Update copyright date.
7759 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
7760 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
7762 * elf32-d30v.c (MAX32): Don't use LL suffix.
7763 (MIN32): Define in terms of MAX32.
7764 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
7766 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
7769 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
7771 2000-04-12 Alan Modra <alan@linuxcare.com.au>
7773 * dep-in.sed: Match space before file name, not after.
7774 * Makefile.am: Regenerate dependencies.
7775 * Makefile.in: Regenerate.
7777 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
7778 case, allow address wrap-around stupidly removed 2000-03-17. Sign
7779 extend without an if statement.
7781 2000-04-11 Alan Modra <alan@linuxcare.com.au>
7783 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
7785 * elf32-mips.c (gprel16_with_gp): Likewise.
7786 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
7787 here using -0x40000, not (int)0xfffc0000.
7788 (elf32_hppa_size_of_stub): Likewise.
7790 2000-04-11 Timothy Wall <twall@cygnus.com>
7792 * coff-tic54x.c: Now builds with all targets.
7793 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
7794 * Makefile.in: Regenerate.
7795 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
7796 unitialized variable.
7798 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
7800 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
7801 --enable-build-warnings option.
7802 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
7803 * Makefile.in, configure: Re-generate.
7805 2000-04-07 Nick Clifton <nickc@cygnus.com>
7807 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
7808 BFD_RELOC_THUMB_PCREL_BLX.
7810 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7811 R_ARM_XPC25 and R_ARM_THM_PC22.
7813 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
7814 R_ARM_XPC25 and R_ARM_THM_XPC22.
7815 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
7816 R_ARM_[XPC25|THM_XPC22].
7818 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
7819 elf/arm-oabi.h to elf/arm.h
7821 * Makefile.am: Fix dependency for elfarm-oabi.c
7822 * Makefile.in: Regenerate.
7824 * bfd-in2.h: Regenerate.
7825 * libbfd.h: Regenerate.
7827 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7829 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
7830 and restore it on failure. Release newly allocated tdata on
7833 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
7835 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
7836 (decode_line_info): Set it. Report error if unit->line_offset is
7837 equal to or larger than it.
7839 2000-04-07 Timothy Wall <twall@cygnus.com>
7841 * targets.c: Added vecs for tic54x.
7842 * reloc.c: Added relocs for tic54x.
7843 * libbfd.h: Regenerated.
7844 * configure: Add TI COFF vecs for tic54x.
7845 * configure.in: Ditto.
7846 * config.bfd (targ_cpu): Recognize new tic54x target.
7847 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
7848 * bfd-in2.h: Add tic54x target and relocations.
7849 * Makefile.am, Makefile.in: Add tic54x target.
7850 * archures.c (bfd_archures_list): Add tic54x target.
7851 * coff-tic54x.c: New.
7852 * cpu-tic54x.c: New.
7854 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7856 * elfcore.h (elf_core_file_p): call backend_object_p which
7857 thereby gets an opportunity to update the arch/machine type.
7859 2000-04-06 Timothy Wall <twall@cygnus.com>
7861 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
7862 class. Handle SEC_CLINK and SEC_BLOCK flags.
7863 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
7864 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
7866 2000-04-06 Nick Clifton <nickc@cygnus.com>
7868 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
7869 EF_INTERWORK if this is an unknown EABI.
7870 (elf32_arm_merge_private_bfd_data): Check EABI version
7871 numbers. Only check EF_xxx flags if the EABI version number
7873 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
7874 if the EABI version number is unknown.
7875 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
7876 if the EABI version number is unknown.
7878 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7880 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
7881 BFD_RELOC_SH_LOOP_END.
7882 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
7883 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7884 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7885 (sh_elf_reloc_loop): New function.
7886 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7888 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7889 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7890 * bfd-in2.h, libbfd.h: Regenerate.
7892 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7894 * po/bfd.pot: Regenerate.
7896 * Makefile.am: Remove extraneous mkdep comment.
7897 (MKDEP): Use gcc -MM rather than mkdep.
7898 (DEP): Quote when passing vars to sub-make. Add warning
7900 (DEP1): Rewrite for "gcc -MM".
7901 (CLEANFILES): Add DEP2.
7902 Update dependencies.
7903 * Makefile.in: Regenerate.
7905 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7907 * configure.in: Added corefile support for AIX 4.3. In particular,
7908 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7909 compiling rs6000-core.c.
7910 * configure: Regenerated.
7912 2000-04-03 H.J. Lu <hjl@gnu.org>
7914 * cache.c (bfd_open_file): Unlink the output file only if
7915 it has non-zero size.
7917 2000-04-01 Ken Block USG <block@zk3.dec.com>
7919 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7920 relative relocations for non-loaded sections in shared objects.
7921 (elf64_alpha_check_relocs): Similarly.
7923 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7925 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7926 BFD_RELOC_16 to switch for extended relocs.
7927 (MY_swap_ext_reloc_in): New.
7928 (MY_swap_ext_reloc_out): New.
7929 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7930 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7931 (NAME(aout,squirt_out_relocs)): Similarly use
7932 MY_swap_ext_reloc_out.
7933 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7935 2000-04-03 Kazu Hirata <kazu@hxi.com>
7937 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7938 the R_PCRWORD_B case.
7940 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7942 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7946 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7948 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7949 HOWTO references to bfd_elf_generic_reloc, that have
7950 partial_inplace == true, now use the new function. The function
7951 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7952 extends its fixes to the R_M32R_{16,24,32} relocs.
7953 The new logic in m32r_elf_lo16_reloc() has been removed, and
7954 it instead calls the new routine to obtain that functionality.
7956 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7958 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7959 elf32_avr_check_relocs, avr_final_link_relocate,
7960 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7961 elf32_avr_object_p): Add prototypes.
7962 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7963 (bfd_elf_avr_final_write_processing): Make static.
7965 2000-03-27 Denis Chertykov <denisc@overta.ru>
7967 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7968 * archures.c (bfd_architecture): Add AVR architecture.
7969 (bfd_archures_list): Add reference to AVR architecture info.
7970 * elf.c (prep_headers): Handle bfd_arch_avr.
7971 * reloc.c: Add various AVR relocation enums.
7972 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7974 * Makefile.am: Add support for AVR elf.
7975 * configure.in: Likewise.
7976 * config.bfd: Likewise.
7977 * Makefile.in: Regenerate.
7978 * configure: This too.
7979 * bfd-in2.h: And this.
7980 * libbfd.h: And this.
7982 2000-03-24 H.J. Lu <hjl@gnu.org>
7984 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7985 (elf64_alpha_find_reloc_at_ofs): Likewise.
7987 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7989 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7990 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7991 allowable range used to be -2**(n-1) to 2**n-1.
7992 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7993 "boolean overflow" with "bfd_reloc_status_type flag".
7995 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7997 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7999 2000-03-14 Kazu Hirata <kazu@hxi.com>
8001 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
8002 of shrinks properly, including the last reloc.
8004 2000-03-13 Kazu Hirata <kazu@hxi.com>
8006 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
8009 2000-03-11 Alan Modra <alan@linuxcare.com.au>
8011 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
8012 a format mismatch rather than an "error" from bfd_read such as
8013 bfd_error_file_truncated.
8015 2000-03-10 Geoff Keating <geoffk@cygnus.com>
8017 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
8018 sign-extension and big-endian compensation for
8019 R_MIPS_64 even in ld -r.
8021 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
8023 * elf32-mips.c (mips_elf_next_relocation): Rename from
8024 mips_elf_next_lo16_relocation, and generalize to look
8025 for any relocation type.
8026 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
8027 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
8028 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
8029 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
8030 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
8031 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
8032 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
8033 (mips_rtype_to_howto): Likewise.
8034 (mips_elf_calculate_relocation): Handle new relocs.
8035 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
8036 are paired. The addend for R_MIPS_GNU_REL16_S2
8037 is shifted right two bits.
8039 2000-03-10 Alan Modra <alan@linuxcare.com.au>
8041 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
8042 comment, and ensure it doesn't happen again.
8043 (bfd_install_relocation): Same here.
8044 (_bfd_relocate_contents): Don't bother assigning unused signmask
8045 shift result. Fix typos in comments.
8046 Remove trailing whitespace throughout file.
8048 2000-03-07 Doug Evans <dje@casey.transmeta.com>
8050 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
8051 * bfd-in2.h: Rebuild.
8053 2000-03-06 Nick Clifton <nickc@cygnus.com>
8055 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
8057 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
8058 (SIZEOF_ILF_STRINGS): Redefine.
8059 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
8060 relative reloc, as opposed to a section relative reloc.
8061 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
8063 Add length of symbol's prefix to string pointer.
8064 Store a pointer to the symbol in the symbol pointer table.
8065 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
8066 Initialise the symbol pointer table.
8067 Store the hint in the Hint/Name table.
8068 Make the jump reloc be symbol realtive, not section relative.
8069 Create an import symbol for imported code.
8071 2000-03-06 Catherine Moore <clm@cygnus.com>
8073 * elf.c (swap_out_syms): Check for null type_ptr.
8075 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
8077 * aout-target.h (MY(write_object_contents)): Remove unused
8078 and unusable "#if CHOOSE_RELOC_SIZE".
8079 * pc532-mach.c (MY(write_object_contents)): Ditto.
8080 * netbsd.h (MY(write_object_contents)): Ditto.
8081 * hp300hpux.c (MY(write_object_contents)): Ditto.
8082 * freebsd.h (MY(write_object_contents)): Ditto.
8083 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
8085 2000-02-29 H.J. Lu <hjl@gnu.org>
8087 * peicode.h (jtab): Make it static.
8089 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
8090 defined and COFF_IMAGE_WITH_PE is not defined.
8091 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
8092 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
8094 2000-03-01 Nick Clifton <nickc@cygnus.com>
8096 * coff-arm.c (bfd_arm_process_before_allocation): Make
8097 'symndx' signed to prevent compile time warning.
8099 * coff-mcore.c: Remove unused prototype for pe_object_p.
8101 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
8102 functions that are not used when COFF_IMAGE_WITH_PE is
8104 (struct sh_opcode): Change type of 'flags' field to unsigned
8105 long so that it can hold the USESAS flag.
8107 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
8109 * elf-m10300.c (mn10300_elf_relax_section): Initialise
8112 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
8114 Remove unusued variables and code.
8115 (elf_backend_add_symbol_hook): Fix prototype.
8117 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
8120 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
8123 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
8125 Remove unusued variables and code.
8126 (elf_backend_add_symbol_hook): Fix prototype.
8128 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
8130 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
8131 to unused function parameter.
8133 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
8135 Use EMPTY_HOWTO to initialise empty howto slots.
8136 Remove unused variables.
8138 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
8140 2000-03-01 H.J. Lu <hjl@gnu.org>
8142 * aoutx.h (aout_link_input_section_std): Pass "true" to
8143 the undefined_symbol callback.
8144 (aout_link_input_section_ext): Likewise.
8145 * bout.c (get_value): Likewise.
8146 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
8147 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
8149 (alpha_relocate_section): Likewise.
8150 * coff-arm.c (coff_arm_relocate_section): Likewise.
8151 * coff-i960.c (coff_i960_relocate_section): Likewise.
8152 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
8153 * coff-mips.c (mips_relocate_section): Likewise.
8154 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
8155 * coff-sh.c (sh_relocate_section): Likewise.
8156 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
8157 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
8158 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
8159 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
8160 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
8161 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
8162 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
8163 * elf32-i370.c (i370_elf_relocate_section): Likewise.
8164 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
8165 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
8166 * elf32-sh.c (sh_elf_relocate_section): Likewise.
8167 * elf32-v850.c (v850_elf_relocate_section): Likewise.
8168 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
8169 * elflink.h (elf_link_output_extsym): Likewise.
8170 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
8171 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
8172 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
8174 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
8175 undefined_symbol callback when building shared library with
8176 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
8178 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
8179 * elf32-i386.c (elf_i386_relocate_section): Likewise.
8180 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
8181 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
8182 (elf32_mips_get_relocated_section_content): Likewise.
8183 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
8184 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
8185 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
8186 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
8188 2000-02-28 Nick Clifton <nickc@cygnus.com>
8190 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
8191 * Makefile.in: Regenerate.
8193 * configure.in: Add support for mips and sh pe vectors.
8194 * configure: regenerate.
8196 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
8199 * targets.c: Add mips and sh pe vectors.
8201 * libpei.h (coff_final_link_postscript): Only define if not
8204 * coffcode.h: Add support for WinCE magic numbers.
8206 * peigen.c (pe_print_reloc): Update comment and rearrange
8207 appending of newline character.
8209 * peicode.h: Add support for Image Library Format.
8210 (pe_ILF_vars): Structure containing data used by ILF code.
8211 (pe_ILF_make_a_section): New function. Create a section based
8213 (pe_ILF_make_a_reloc): New function. Create a reloc based on
8215 (pe_ILF_make_a_symbol): New function. Create a symbol based
8217 (pe_ILF_save_relocs): New function. Store the relocs created
8218 by pe_ILF_make_a_reloc in a section.
8219 (pe_ILF_build_a_bfd): New function. Create a BFD describing
8221 (pe_ILF_object_p): New function. Return a bfd_target pointer
8223 (pe_bfd_object_p): If an ILF object is detected call
8224 pe_ILF_object_p on it.
8226 * coff-arm.c: Add support for WinCE relocs which are different
8227 from normal ARM COFF relocs.
8228 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
8230 * coff-sh.c: Add support for sh-pe target.
8231 * pe-sh.c: New file. Support code for sh-pe target.
8232 * pei-sh.c: New file. Support code for sh-pe target.
8234 * pe-mips.c: New file. Support code for mips-pe target.
8235 * pei-mips.c: New file. Support code for mips-pe target.
8237 2000-02-27 Jakub Jelinek <jakub@redhat.com>
8239 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
8240 architecture if the object causing the bump is dynamic.
8241 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
8242 and also don't it for memory ordering.
8243 (sparc64_elf_write_relocs): Take src_rela out of the loop.
8245 2000-02-27 Ian Lance Taylor <ian@zembu.com>
8247 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
8248 calling bfd_get_section_size_before_reloc.
8249 (decode_line_info): Likewise.
8250 (_bfd_dwarf2_find_nearest_line): Likewise.
8252 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
8254 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
8255 name of the libtool directory.
8256 * Makefile.in: Rebuild.
8258 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
8260 * som.c (SOM_HOWTO): Define.
8261 (som_hppa_howto_table): Use it.
8263 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8265 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
8267 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
8269 2000-02-24 Catherine Moore <clm@cygnus.com>
8271 * som.c (som_misc_symbol_info): Add field
8273 (som_bfd_derive_misc_symbol_info): Initialize
8275 (som_build_and_write_symbol_table): Keep track
8276 of secondary_def field.
8277 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
8278 if secondary_def field is set.
8279 (som_bfd_ar_write_symbol_stuff): Initialize
8282 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
8284 * dwarf2.c (read_address): Read 16-bits addresses.
8285 (parse_comp_unit): Accept addr_size == 2.
8287 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
8289 * bfd-in.h: Update copyright date.
8291 2000-02-23 Linas Vepstas <linas@linas.org>
8293 * cpu-i370.c: New file.
8294 * elf32-i370.c: New file.
8295 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
8296 (bfd_i370_arch): New.
8297 (bfd_archures_list): Add bfd_i370_arch.
8298 * elf.c (prep_headers): Add bfd_arch_i370.
8299 * Makefile.am: Add support for IBM 370 elf.
8300 * config.bfd: Likewise.
8301 * configure.in: Likewise.
8302 * libbfd.h (bfd_reloc_code_real_names): Likewise.
8303 * reloc.c (bfd_reloc_code_type): Likewise.
8304 * targets.c: Likewise.
8306 * Makefile.in: Regenerate.
8307 * configure: Regenerate.
8308 * bfd-in2.h: Regenerate.
8310 2000-02-22 Ian Lance Taylor <ian@zembu.com>
8312 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
8313 invalid relocation types, and change them to R_386_NONE.
8315 2000-02-22 H.J. Lu <hjl@gnu.org>
8317 * elflink.h (elf_link_add_object_symbols): If a version symbol is
8318 not defined, don't add a second ELF_VER_CHR.
8320 * elflink.h (elf_bfd_final_link): Call output_extsym for global
8321 symbols converted to local symbols even when stripping all
8323 (elf_link_output_extsym): Process global symbols converted to
8324 local symbols even if they are being stripped.
8326 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
8328 * archures.c (bfd_octets_per_byte): Return unsigned int.
8329 (bfd_arch_mach_octets_per_byte): Ditto.
8330 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
8332 * section.c (bfd_get_section_size_before_reloc): Quell signed
8333 vs. unsigned comparison warning.
8334 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
8335 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
8336 change. What was I thinking?
8337 * bfd-in2.h: Regenerate.
8339 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
8340 (elf_gc_sections): Same here.
8341 (elf_gc_common_finalize_got_offsets): And here.
8343 2000-02-21 Ian Lance Taylor <ian@zembu.com>
8345 ELF HPPA doesn't work at present; remove it until it does.
8346 * config.bfd: Comment out setting targ_defvec to
8348 * Makefile.am: Rebuild dependencies.
8349 (BFD32_BACKENDS): Remove elf32-hppa.lo.
8350 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
8351 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
8352 * Makefile.in: Rebuild.
8353 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
8355 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8357 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
8358 is no bfd_free(). Revert bfd_free part of previous change.
8360 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8362 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
8364 (coff_compute_section_file_positions): Use bfd_free to pair
8366 (coff_write_object_contents): Likewise.
8368 * coff-rs6000.c (xcoff_howto_table_16): New variable.
8369 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
8371 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
8373 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
8374 (xcoff_ar_file_hdr_big): New structure.
8375 (SIZEOF_AR_FILE_HDR_BIG): New macro.
8376 (xcoff_ar_hdr_big): New structure.
8377 (SIZEOF_AR_HDR_BIG): New macro.
8378 (xcoff_big_format_p): New macro.
8379 (xcoff_ardata_big): New macro.
8380 (arch_xhdr_big): New macro.
8381 (xcoff_slurp_armap): Handle large archives.
8382 (xcoff_archive_p): Detect large archives.
8383 (xcoff_read_ar_hdr): Handle large archives.
8384 (xcoff_openr_next_archived_file): Handle large archives.
8385 (xcoff_generic_stat_arch_elt): Handle large archives.
8386 (xcoff_write_armap_old): Rename from xcoff_write_armap.
8387 (xcoff_write_armap_big): New function.
8388 (xcoff_write_armap): New function, dispatch to _old or _big.
8389 (xcoff_write_archive_contents_old): Rename from
8390 xcoff_write_archive_contents.
8391 (xcoff_write_archive_contents_big): New function.
8392 (xcoff_write_archive_contents): New function, dispatch to _old or
8395 2000-02-18 Richard Henderson <rth@cygnus.com>
8397 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
8398 and hide_symbol members.
8399 (elf_link_hash_copy_indirect): Remove.
8400 (elf_link_hash_hide_symbol): Remove.
8401 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
8402 and elf_backend_hide_symbol.
8403 (_bfd_elf_link_hash_copy_indirect): Declare.
8404 (_bfd_elf_link_hash_hide_symbol): Declare.
8405 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
8406 (_bfd_elf_link_hash_hide_symbol): Likewise.
8407 (_bfd_elf_link_hash_table_init): Don't init killed members.
8408 * elflink.h (elf_link_add_object_symbols): Use the bed function
8409 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
8410 (elf_link_assign_sym_version): Likewise.
8411 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
8412 (elf_backend_hide_symbol): Likewise.
8413 (elfNN_bed): Update for new members.
8415 2000-02-17 Kevin Buettner <kevinb@redhat.com>
8417 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
8418 STACK_END_ADDR): Define for new core file format.
8419 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
8420 for handling the vagaries of the various core file structures used
8421 by AIX over the years.
8422 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
8423 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
8424 core_dumpx structure.
8426 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8428 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
8429 (bfd_mach_sh3_dsp): Likewise.
8430 (bfd_mach_sh4): Reinstate.
8431 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
8432 * bfd-in2.h: Regenerate.
8433 * coff-sh.c (struct sh_opcode): flags is no longer short.
8434 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
8435 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
8436 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
8437 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
8438 (sh_opcodes): No longer const.
8439 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
8440 (sh_insn_uses_reg): Check for USESAS and USESR8.
8441 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
8442 (_bfd_sh_align_load_span): Return early for SH4.
8443 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
8444 Take into account that field b of a parallel processing insn
8445 could be mistaken for a separate insn.
8446 * cpu-sh.c (arch_info_struct): New array elements for
8447 sh2, sh-dsp and sh3-dsp.
8448 Reinstate element for sh4.
8449 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
8450 (SH4_NEXT): Reinstate.
8451 (SH3_NEXT, SH3E_NEXT): Adjust.
8452 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
8453 * elf32-sh.c (sh_elf_set_private_flags): New function.
8454 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
8455 (sh_elf_merge_private_data): New function.
8456 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
8457 (bfd_elf32_bfd_copy_private_bfd_data): Define.
8458 (bfd_elf32_bfd_merge_private_bfd_data): Change to
8459 sh_elf_merge_private_data.
8461 2000-02-13 Richard Henderson <rth@cygnus.com>
8463 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8464 hide_symbol members.
8465 (elf_link_hash_copy_indirect): New.
8466 (elf_link_hash_hide_symbol): New.
8467 * elflink.h (elf_link_add_object_symbols): Break out copy from
8468 indirect new new symbol to elf.c.
8469 (elf_link_assign_sym_version): Break out privatization of
8470 non-exported symbol to elf.c.
8471 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8472 (_bfd_elf_link_hash_hide_symbol): New.
8473 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8475 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8477 * section.c (_bfd_strip_section_from_output): Add info parameter.
8478 If it passed as non-NULL, use it to check whether any input BFD
8479 has an input section which uses this output section. Change all
8481 * bfd-in2.h: Rebuild.
8483 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8484 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8486 * bfd-in2.h: Rebuild.
8488 2000-02-10 Timothy Wall <twall@cygnus.com>
8490 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8491 allow final modifications of swapped-in symbol.
8492 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8493 * coffcode.h (coff_write_relocs): Use macro
8494 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8495 symbol index should be set to -1.
8497 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
8499 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8500 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8501 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8502 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8503 sh_insns_uses_or_sets_freg): New functions.
8504 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8505 * (sh_insns_conflict): Use new functions and new macros to
8506 detect conflicts when two instructions both set same integer registers,
8507 both set same fp register, and both set special register.
8509 2000-02-09 Timothy Wall <twall@cygnus.com>
8511 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8512 swapping in sections, so that the swapping routines have access to
8515 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8517 * coff-go32.c: Update comment. Update copyright.
8519 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8521 * syms.c (bfd_decode_symclass)
8522 Two new class characters were added - 'V' and 'v'. The
8523 meaning of 'W' is now restricted to just weak non-object
8524 symbols. This allows differentiation between, for example,
8525 weak functions vs weak objects. nm for example now dumps:
8527 'w' = weak unresolved
8528 'V' = weak global object
8529 'v' = weak unresolved object
8531 (bfd_is_undefined_symclass): New function. Return true if the
8532 given symbol class represents and undefined/unresolved symbol.
8534 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8537 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8539 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8540 STT_ARM_16BIT flag set, but it is not attached to a data object
8541 return STT_ARM_16BIT so that it will be treated as code by the
8544 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
8546 * coff-i386.c (i3coff_object_p): Remove prototype.
8549 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
8550 to name. Update copyright.
8552 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
8553 assignment to avoid warning. Update copyright.
8555 2000-01-24 Robert Lipe (robertl@sco.com)
8557 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
8558 instead of using GNU C extension.
8560 2000-01-21 Nick Clifton <nickc@cygnus.com>
8562 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
8563 amount from a bfd_in_memory structure.
8564 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
8567 2000-01-14 Nick Clifton <nickc@cygnus.com>
8569 * linker.c (default_indirect_link_order): oops - fix incorrectly
8570 applied patch from Tim Wall.
8572 2000-01-13 Timothy Wall (twall@tiac.net>
8574 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
8575 = scnhsz, filhsz, relsz, aoutsz, etc)
8577 * coffswap.h: Ditto.
8579 2000-01-13 Nick Clifton <nickc@cygnus.com>
8581 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
8582 interwork thumb to arm stub.
8584 2000-01-13 Timothy Wall (twall@tiac.net>
8586 * archures.c (bfd_octets_per_byte): New function: Return
8588 (bfd_arch_mach_octets_per_byte): New function: Return target
8591 * section.c: Distinguish between octets and bytes for usage of
8592 _cooked_size, _raw_size, and output_offset. Clarify
8593 description of bfd_set_section_contents.
8595 * bfd-in2.h: Regenerate.
8597 * coffgen.c: Indicate that the offset parameter is in bytes, not
8600 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
8601 where appropriate to get the octet offset when calling
8602 bfd_set_section_contents.
8603 (bfd_coff_reloc_link_order): Ditto.
8605 * linker.c (bfd_generic_reloc_link_order): Ditto.
8606 (_bfd_default_link_order): Ditto.
8608 * reloc.c (bfd_perform_relocation): Distinguish between octets
8609 and bytes. Use octets when indexing into octet data; use bytes
8610 when calculating target addresses.
8611 (bfd_install_relocation): Ditto.
8613 * srec.c (srec_write_section): Ditto.
8615 2000-01-13 Nick Clifton <nickc@cygnus.com>
8617 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
8618 3 to 2. This allows 4 byte sized sections, which is necessary for
8619 dlltool to build functioning DLLs.
8621 2000-01-10 Philip Blundell <pb@futuretv.com>
8623 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
8624 (arm*-*-conix*): New target.
8626 2000-01-10 Egor Duda <deo@logos-m.ru>
8628 * config.bfd: Include elf32_i386 vector to target list for cygwin
8631 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
8632 * configure.in: Test for structure win32_pstatus_t in
8634 * configure: Regenerate.
8636 * elf.c (elfcore_grok_win32pstatus): New function: process
8637 win32_pstatus_t notes in elf core file.
8638 (elfcore_grok_note): Detect win32_pstatus notes.
8640 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
8642 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
8644 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
8645 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
8647 For older changes see ChangeLog-9899
8653 version-control: never