1 2001-11-13 Geoffrey Keating <geoffk@redhat.com>
3 * dwarf2.c (decode_line_info): Properly deal with unknown standard
6 2001-11-13 John Marshall <jmarshall@acm.org>
7 Alan Modra <amodra@bigpond.net.au>
9 * section.c (bfd_make_section_anyway): Don't increment section_id
10 and the BFD's section_count if adding the section failed.
11 * vms.c (vms_new_section_hook): Adjust for bfd_make_section_anyway
14 2001-11-12 Orjan Friberg <orjanf@axis.com>
16 * elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new
19 2001-11-11 H.J. Lu <hjl@gnu.org>
21 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Call
22 _bfd_elf_strtab_size instead of _bfd_stringtab_size.
24 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Change
25 dynstr type to `struct elf_strtab_hash *'.
27 2001-11-11 Hans-Peter Nilsson <hp@bitrange.com>
29 * elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
30 size_t. Rename second i to j.
32 Sat Nov 10 08:56:02 2001 Jeffrey A Law (law@cygnus.com)
34 * binary.c: Include safe-ctype.h after bfd.h and sysdep.h.
36 2001-11-10 Alan Modra <amodra@bigpond.net.au>
38 * elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF
39 relocs into shared libs.
40 * elf32-cris.c (cris_elf_relocate_section): Likewise.
41 * elf32-i370.c (i370_elf_relocate_section): Likewise.
42 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
43 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
44 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
45 * elf32-sh.c (sh_elf_relocate_section): Likewise.
46 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
47 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
48 * elf64-s390.c (elf_s390_relocate_section): Likewise.
49 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
50 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
51 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
53 * elf.c (bfd_section_from_r_symndx): New function.
54 * elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define.
55 (struct sym_sec_cache): New.
56 (bfd_section_from_r_symndx): Declare.
57 (struct bfd_elf_section_data): Change local_dynrel type to PTR.
58 * elflink.h (elf_link_input_bfd): Don't test for removed linkonce
59 relocs when relocatable. Don't zero entire reloc, just zero the
61 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add sym_sec.
62 (elf32_hppa_link_hash_table_create): Init it.
63 (elf32_hppa_check_relocs): Track dynamic relocs needed for local
64 syms on a per-section basis as we do for globals.
65 (elf32_hppa_gc_sweep_hook): Update for local_dynrel change.
66 (allocate_dynrelocs): Warning fix.
67 (elf32_hppa_size_dynamic_sections): Don't allocate relocs when
68 section has been discarded.
69 (elf32_hppa_relocate_section): Don't copy STN_UNDEF relocs
71 * elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec.
72 (elf_i386_link_hash_table_create): Init it.
73 (elf_i386_check_relocs): Track dynamic relocs needed for local
74 syms on a per-section basis as we do for globals.
75 (elf_i386_gc_sweep_hook): Update for local_dynrel change.
77 (allocate_dynrelocs): Warning fix.
78 (elf_i386_size_dynamic_sections): Don't allocate relocs when
79 section has been discarded.
80 (elf_i386_relocate_section): Don't copy STN_UNDEF relocs
82 * elf32-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
83 (elf_s390_link_hash_table_create): Init it.
84 (elf_s390_check_relocs): Track dynamic relocs needed for local
85 syms on a per-section basis as we do for globals.
86 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
88 (allocate_dynrelocs): Warning fix.
89 (elf_s390_size_dynamic_sections): Don't allocate relocs when
90 section has been discarded.
91 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
93 * elf64-ppc.c (struct ppc_link_hash_table): Add sym_sec.
94 (ppc64_link_hash_table_create): Init it.
95 (ppc64_elf_check_relocs): Track dynamic relocs needed for local
96 syms on a per-section basis as we do for globals.
97 (ppc64_elf_gc_sweep_hook): Update for local_dynrel change.
98 (allocate_dynrelocs): Call the correct record_dynamic_dymbol
99 function. Warning fix.
100 (ppc64_elf_size_dynamic_sections): Don't allocate relocs when
101 section has been discarded.
102 (ppc64_elf_relocate_section): Don't copy STN_UNDEF relocs
104 * elf64-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
105 (elf_s390_link_hash_table_create): Init it.
106 (elf_s390_check_relocs): Track dynamic relocs needed for local
107 syms on a per-section basis as we do for globals.
108 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
110 (allocate_dynrelocs): Warning fix.
111 (elf_s390_size_dynamic_sections): Don't allocate relocs when
112 section has been discarded.
113 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
116 2001-11-08 Martin Schwidefsky <schwidefsky@de.ibm.com>
118 * elf32-s390: Major rework that introduces all recent changes to
119 the s390 backends. Get a closer match to elf32-i386.
120 (elf_s390_relocate_section): Make use of dynamic section short-cuts.
121 Localise vars, and delay setting. Better error reporting, replace
122 BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a
123 symbol is not defined in the regular object file and tread the weak
124 definition as the normal one. Don't discard relocs for undefweak or
125 undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in
126 test for avoided copy relocs. Reinstate fudge for unresolved relocs
127 in debugging sections.
128 (elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy
129 reloc processing for weakdefs. Remove redundant casts and aborts.
130 Delay setting of vars until needed. Move creation of dynamic symbols
131 and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace
132 BFD_ASSERT with abort. Discard .plt entries for everything with
134 (elf_s390_check_relocs): Don't allocate space for dynamic relocs,
135 .got or .relgot here but do it in allocate_dynrelocs. Reference count
136 possible .plt and .got entries. Don't test input section SEC_READONLY
137 here to try to avoid copy relocs, and keep dyn_relocs regardless of
138 ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of
139 variables until needed. Remove separate switch stmt for creating .got
140 section. Initialise local_got_refcounts to 0. Cache pointer to
141 "sreloc" section in elf_section_data. Tweak condition under which .got
142 created. Report files with bad relocation section names.
143 (elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that
144 have been forced local. Use same test to decide if we can use a
145 relative reloc for got as elf_s390_relocate_section. Expand SHN_UNDEF
146 comment. Move expressions out of function calls. Replace BFD_ASSERT
148 (elf_s390_finish_dynamic_sections): Migrate common code out of switch
149 statement. Replace BFD_ASSERT with abort.
150 (elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i"
151 to "ibfd". Allocate space for local dyn relocs. Use DF_TEXTREL flag
152 instead of looking up section names for DT_TEXTREL. Replace
153 BFD_ASSERT with abort. Zero out the dynamic allocated content space.
154 Add a comment to remind us that one day this ought to be fixed.
155 (struct elf_s390_link_hash_entry): Rename "root" to "elf".
156 (struct elf_s390_link_hash_table): Likewise.
157 (elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get
158 rid of unnecessary casts.
159 (struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields.
160 Remove "section" field.
161 (elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
162 Reference count possible .plt entries. Don't deallocate .got and
164 (struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs.
166 (struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to
168 (elf_s390_discard_copies): Delete.
169 (elf_s390_link_hash_traverse): Delete.
170 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
171 rather than gc variety).
172 (struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt,
173 srelplt, sdynbss, srelbss fields.
174 (elf_s390_link_hash_table_create): Init them.
175 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
176 (allocate_dynrelocs): New function.
177 (create_got_section): New function.
178 (elf_backend_can_refcount): Define.
179 (elf_backend_copy_indirect_symbol): Define.
180 (elf_s390_copy_indirect_symbol): New function.
181 (elf_s390_create_dynamic_sections): New function.
182 (readonly_dynrelocs): New function.
183 * elf64-s390.c: Likewise.
185 2001-11-07 Jakub Jelinek <jakub@redhat.com>
187 * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo.
188 (BFD32_BACKENDS_CFILES): Add elf-strtab.c.
189 (elf-strtab.lo): Add rule.
190 * Makefile.in: Rebuilt.
191 * configure.in (elf): Add elf-strtab.lo.
192 * configure: Rebuilt.
193 * elf-bfd.h (elf_strtab_hash): Forward declare.
194 (struct elf_link_hash_table): Change dynstr type to
195 struct elf_strtab_hash *.
196 (struct elf_obj_tdata): Change strtab_ptr type to
197 struct elf_strtab_hash *.
198 (_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add,
199 _bfd_elf_strtab_addref, _bfd_elf_strtab_delref,
200 _bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size,
201 _bfd_elf_strtab_offset, _bfd_elf_strtab_emit,
202 _bfd_elf_strtab_finalize): New prototypes.
203 * elf-strtab.c: New file.
204 * elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add
205 and _bfd_elf_strtab_size instead of _bfd_stringtab calls.
206 Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or
207 when forcing dynamic symbol to local.
208 (elf_link_create_dynamic_sections): Call
209 _bfd_elf_strtab_init instead of elf_stringtab_init.
210 (elf_link_record_local_dynamic_symbol): Likewise, change
211 dynstr type. Use _bfd_elf_strtab functions instead of
212 _bfd_stringtab calls.
213 (size_dynamic_sections): Use _bfd_elf_strtab functions instead of
214 _bfd_stringtab calls. For DT_RUNPATH and Verdaux vda_name fields,
215 call _bfd_elf_strtab_addref. Call elf_finalize_dynstr.
216 (elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions.
217 (elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing
218 dynamic symbol to local.
219 (elf_link_assign_sym_version): Likewise.
220 (elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of
222 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr
223 type. Call _bfd_elf_strtab functions instead of
224 _bfd_stringtab functions.
225 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
226 * elf.c (_bfd_elf_init_reloc_shdr): Likewise.
227 (elf_fake_sections): Likewise.
228 (assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs
229 on shstrtab hash table, call _bfd_elf_strtab_addref on each section
230 name in the output. Call _bfd_elf_strtab_finalize and
231 use _bfd_elf_strtab_offset to finalize sh_name section header fields.
232 (_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size
233 instead of _bfd_stringtab_size.
234 (prep_headers): Change shstrtab type.
235 Use _bfd_elf_strtab calls instead of _bfd_stringtab calls.
237 2001-11-07 Alan Modra <amodra@bigpond.net.au>
239 * elflink.h (elf_link_input_bfd <removed linkonce relocs>): Fix
240 bad symtab segfault. Formatting and warning fixes. Improve
241 error message for internationalisation.
243 2001-11-06 H.J. Lu (hjl@gnu.org)
245 * elflink.h (elf_link_input_bfd): Complain about relocs against
248 2001-11-03 Alan Modra <amodra@bigpond.net.au>
250 * elfxx-target.h (elfNN_bed): Correct want_got_sym, want_dynbss order.
252 2001-11-02 H.J. Lu <hjl@gnu.org>
254 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
255 dynamic relocation for symbols defined in regular objects when
256 creating executables.
258 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
260 * configure.in (ALL_LINGUAS): Add "fr".
261 * configure: Regenerate.
262 * po/fr.po: New file.
264 * coffgen.c (coff_object_p): Add comment to H.J.'s recent patch.
266 2001-11-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
268 * som.c (setup_sections): Initialize subspace_sections.
270 2001-11-02 H.J. Lu (hjl@gnu.org)
272 * coffgen.c (coff_object_p): Return 0 if the header is too big.
274 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
276 * elfcore.h (elf_core_file_p): Preserve and clear abfd section
277 information. Save bfd arch and mach values. Restore on error.
279 2001-11-02 Alan Modra <amodra@bigpond.net.au>
281 * elf32-hppa.c (hppa_handle_PIC_calls): Rename to mark_PIC_calls.
282 (allocate_PIC_calls): New function.
283 (allocate_dynrelocs): Don't allocate pic_call plt entries here.
284 (elf32_hppa_size_dynamic_sections): Call allocate_PIC_calls.
285 (elf32_hppa_finish_dynamic_symbol): Remove dead code.
287 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
289 * elf32-cris.c (cris_elf_grok_prstatus): New function.
290 (cris_elf_grok_psinfo): New function.
291 (elf_backend_grok_prstatus): Define.
292 (elf_backend_grok_psinfo): Define.
294 2001-11-01 Alan Modra <amodra@bigpond.net.au>
296 * elf64-ppc.c (ppc64_elf_relocate_section): Correct branch
299 2001-10-31 Chris Demetriou <cgd@demetriou.com>
301 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Handle PC-relative
302 relocations properly.
304 2001-10-31 H.J. Lu <hjl@gnu.org>
306 * elflink.h (elf_link_output_extsym): Don't clear the visibility
307 field for relocateable.
309 2001-11-01 Alan Modra <amodra@bigpond.net.au>
311 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count
312 .plt relocs in DT_RELASZ.
314 2001-10-29 NIIBE Yutaka <gniibe@m17n.org>
316 * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
319 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
321 * targets.c: Fix typo: bfd_mmo_mmix_vec => bfd_mmo_vec.
323 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
325 * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo.
326 (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo.
327 (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c.
328 Regenerate dependencies.
329 * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors.
330 * config.bfd: [BFD64] (mmix-*-*): New case.
331 * cpu-mmix.c, mmo.c, elf64-mmix.c: New files.
332 * archures.c (enum bfd_architecture): Add bfd_arch_mmix.
333 (bfd_mmix_arch): Declare.
334 (bfd_archures_list): Add bfd_mmix_arch.
335 * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour.
336 (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare.
337 (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and
339 * reloc.c: Add MMIX relocations.
340 * bfd.c (struct _bfd, tdata): Add mmo_data.
341 * Makefile.in: Regenerate.
342 * configure: Regenerate.
343 * libbfd.h: Regenerate.
344 * bfd-in2.h: Regenerate.
345 * configure: Rebuild.
347 2001-10-30 Richard Earnshaw (rearnsha@arm.com)
349 * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
350 p_paddr of the segment that contains it.
351 (copy_private_bfd_data): If the LMA for a segment is known, use it
352 for matching sections to segments.
353 (assign_file_positions_for_segments): Use the LMA when adjusting
354 for inter-section alignment padding.
356 2001-10-29 Kazu Hirata <kazu@hxi.com>
358 * README: Fix a typo.
360 2001-10-24 Richard Henderson <rth@redhat.com>
362 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
363 timestamp to time_t for ctime.
365 2001-10-24 Hans-Peter Nilsson <hp@axis.com>
367 * elf32-cris.c (cris_reloc_type_lookup): Change loop to use
368 unsigned, increasing index.
370 2001-10-23 H.J. Lu <hjl@gnu.org>
372 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
373 m != NULL before accessing it.
375 2001-10-23 Alan Modra <amodra@bigpond.net.au>
377 * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing
378 bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup
379 doesn't accept BFD_RELOC_* on some targets, eg. hppa.
381 * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs.
382 (hppa_link_hash_newfunc): Likewise.
383 (elf32_hppa_finish_dynamic_symbol): Likewise.
384 (allocate_dynrelocs): Always allocate .got relocs if shared.
385 (elf32_hppa_relocate_section): Output them too. Similarly
386 consolidate .plt reloc code, and no longer initialise .plt
387 when a reloc is output.
388 (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries
389 when no reloc is output.
391 From Herbert Xu <herbert@gondor.apana.org.au>
392 * elf32-hppa.c (final_link_relocate): Call bfd_set_error for
393 unreachable branches.
395 2001-10-22 H.J. Lu <hjl@gnu.org>
397 * configure.in (WIN32LIBADD): Use -L../libiberty for
399 * configure: Rebuild.
401 2001-10-21 H.J. Lu <hjl@gnu.org>
403 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
404 if shared library is enabled only for Linux hosts.
405 * configure: Rebuild.
407 2001-10-21 H.J. Lu <hjl@gnu.org>
409 * configure.in (WIN32LIBADD): Check if PICFLAG is defined in
410 ../libiberty/Makefile instead of $enable_shared.
411 * configure: Rebuild.
413 2001-10-21 H.J. Lu <hjl@gnu.org>
415 * elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover
418 2001-10-20 H.J. Lu <hjl@gnu.org>
420 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
421 if shared library is enabled.
422 * configure: Rebuild.
424 2001-10-20 H.J. Lu <hjl@gnu.org>
426 * elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
428 2001-10-19 H.J. Lu <hjl@gnu.org>
430 * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
433 2001-10-18 H.J. Lu <hjl@gnu.org>
435 * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
436 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
438 2001-10-18 Jakub Jelinek <jakub@redhat.com>
440 * section.c (_bfd_strip_section_from_output): Don't count
441 SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
443 2001-10-17 Alan Modra <amodra@bigpond.net.au>
445 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
446 Elf_Internal_Shdr.contents now that it's no longer a PTR.
447 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
448 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
449 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
450 * elf32-sh.c (sh_elf_relax_section): Likewise.
451 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
452 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
453 * elf.c (setup_group): Warning fixes.
454 * elflink.h (elf_link_sort_relocs): Likewise.
455 * pdp11.c (slurp_reloc_table): Likewise.
457 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
459 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
462 2001-10-15 H.J. Lu <hjl@gnu.org>
464 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
465 for relocations against discarded link-once section.
467 2001-10-15 Alan Modra <amodra@bigpond.net.au>
469 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
470 bfd_reloc_outofrange and similar errors.
472 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
473 rather than ind->weakdef.
474 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
475 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
476 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
477 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
478 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
480 2001-10-15 Alan Modra <amodra@bigpond.net.au>
481 H.J. Lu <hjl@gnu.org>
483 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
484 counts for aliases instead of aborting.
485 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
486 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
488 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
489 to -1 for non-function symbols.
490 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
491 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
492 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
493 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
494 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
495 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
496 plt.offset instead of plt.refcount when setting to -1.
498 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
500 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
501 like R_ARM_PC24. Include reloc number in error message about
504 2001-10-10 Jakub Jelinek <jakub@redhat.com>
506 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
507 relocations against the same symbol in .rel{,a}.dyn section.
509 2001-10-10 Kazu Hirata <kazu@hxi.com>
511 * aout-encap.c: Fix comment typos.
513 * archive.c: Likewise.
515 * coff64-rs6000.c: Likewise.
516 * coffcode.h: Likewise.
517 * coffgen.c: Likewise.
518 * cofflink.c: Likewise.
519 * coff-mips.c: Likewise.
521 * elf32-m32r.c: Likewise.
522 * libcoff-in.h: Likewise.
523 * libecoff.h: Likewise.
524 * libxcoff.h: Likewise.
525 * nlm32-i386.c: Likewise.
527 * section.c: Likewise.
530 * bfd-in2.h: Regenerate.
531 * libcoff.h: Likewise.
533 2001-10-10 Alan Modra <amodra@bigpond.net.au>
535 * elf.c (elf_map_symbols): Don't create new section symbols; Use
536 existing section syms. Update comments.
537 (copy_private_bfd_data): Formatting fixes.
538 (elfcore_grok_win32pstatus): Likewise.
539 (swap_out_syms): Likewise. Remove unnecessary level of braces.
541 2001-10-09 Alan Modra <amodra@bigpond.net.au>
543 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
545 (elf_group_name): Define.
546 (elf_next_in_group): Define.
547 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
548 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
549 first member section; Instead use elf_next_in_group.
550 (bfd_section_from_shdr): Likewise.
551 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
553 2001-10-09 Alan Modra <amodra@bigpond.net.au>
555 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
556 "next_in_group". Fix gp and gp_size comments.
557 * elf.c (union elf_internal_group): New.
558 (setup_group): New function.
559 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
560 Call setup_group for SHF_GROUP sections.
561 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
562 (elf_fake_sections): Set header type for SEC_GROUP, and header
563 flags for sections in a group.
564 (set_group_contents): New function.
565 (_bfd_elf_compute_section_file_positions): Call it.
566 (assign_section_numbers): Set sh_link for SHT_GROUP.
568 * elflink.h (gc_mark_hook): Handle section groups.
569 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
570 * section.c (SEC_GROUP): Define.
571 (struct sec): Comment fixes.
572 * bfd-in2.h: Regenerate.
574 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
575 out of function args.
576 (_bfd_elf_canonicalize_reloc): Similarly.
577 (_bfd_elf_get_symtab): Here too.
578 (_bfd_elf_canonicalize_dynamic_symtab): And here.
579 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
580 bfd_bread, and remove unnecessary cast.
582 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
584 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
586 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
588 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
591 2001-10-06 Alan Modra <amodra@bigpond.net.au>
593 * bfd.c (bfd_assert): Report bfd version.
594 (_bfd_abort): Likewise.
596 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
597 section sym values. Instead replace any relocs against them with
598 relocs against STN_UNDEF, which has a zero value.
600 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
603 2001-10-05 Jeff Law <law@redhat.com>
605 * som.h (som_exec_data): New field "version_id".
606 * som.c (som_object_setup): Record the version_id if it
608 (som_prep_headers): Do not initialize version_id here.
609 (som_finish_writing): Initialize version_id here.
611 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
613 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
614 according to the MIPS/SGI ELF64 ABI Draft.
615 (mips_elf_sort_hash_table): Typo.
617 2001-10-04 Alan Modra <amodra@bigpond.net.au>
619 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
621 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
622 copying flags if this is a weakdef.
624 2001-10-04 Alan Modra <amodra@bigpond.net.au>
626 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
629 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
630 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
631 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
633 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
634 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
635 backends we configure. Run "make dep-am".
636 (install-data-local): Install symcat.h.
637 * dep-in.sed: Remove symcat.h from dependencies.
638 * Makefile.in: Regenerate.
640 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
642 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
644 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
646 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
647 (elf_backend_default_use_rela_p): New define.
649 2001-10-03 Alan Modra <amodra@bigpond.net.au>
651 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
654 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
655 * configure: Regenerate.
656 * Makefile.am (BFD_H_FILES): Add version.h.
657 * Makefile.in: Regenerate.
658 * po/SRC-POTFILES.in: Regenerate.
660 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
661 elf_backend_copy_indirect_symbol so that backend has a chance to
662 copy other necessary fields.
663 * elf-bfd.h (struct elf_backend_data): Update description of
664 elf_backend_copy_indirect_symbol.
665 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
666 copying flags if this is a weakdef.
667 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
668 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
669 than bfd_link_hash_lookup.
670 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
671 reloc processing for weakdefs.
672 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
673 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
675 2001-10-02 Alan Modra <amodra@bigpond.net.au>
677 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
678 result of ELF64_R_TYPE to enum before using in a switch.
679 (ppc64_elf_gc_mark_hook): Likewise.
680 (ppc64_elf_gc_sweep_hook): Likewise.
681 (ppc64_elf_reloc_type_class): Likewise.
683 2001-10-02 Alan Modra <amodra@bigpond.net.au>
685 * version.h: New file.
686 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
687 (BFD_VERSION_DATE): Define.
688 (BFD_VERSION_STRING): Define.
689 * configure.in: AC_SUBST bfd_version, bfd_version_date and
691 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
692 * bfd-in2.h: Regenerate.
693 * configure: Regenerate.
694 * Makefile.am: Run "make dep-am".
695 * Makefile.in: Regenerate.
697 * bfd-in.h: Include "symcat.h".
698 (CONCAT4): Redefine as for old CAT4.
699 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
700 Add warning regarding whitespace.
701 * aout-cris.c: Likewise.
702 * aout-ns32k.c: Likewise.
703 * aout-sparcle.c: Likewise.
704 * aout-tic30.c: Likewise.
706 * armnetbsd.c: Likewise.
707 * demo64.c: Likewise.
708 * elf-bfd.h: Likewise.
709 * gen-aout.c: Likewise.
710 * host-aout.c: Likewise.
711 * hp300bsd.c: Likewise.
712 * hp300hpux.c: Likewise.
713 * i386aout.c: Likewise.
714 * i386bsd.c: Likewise.
715 * i386dynix.c: Likewise.
716 * i386freebsd.c: Likewise.
717 * i386linux.c: Likewise.
718 * i386lynx.c: Likewise.
719 * i386mach3.c: Likewise.
720 * i386netbsd.c: Likewise.
721 * libaout.h: Likewise.
722 * m68k4knetbsd.c: Likewise.
723 * m68klinux.c: Likewise.
724 * m68klynx.c: Likewise.
725 * m68knetbsd.c: Likewise.
726 * m88kmach3.c: Likewise.
727 * mipsbsd.c: Likewise.
728 * newsos3.c: Likewise.
729 * ns32knetbsd.c: Likewise.
730 * pc532-mach.c: Likewise.
732 * riscix.c: Likewise.
733 * sparclinux.c: Likewise.
734 * sparclynx.c: Likewise.
735 * sparcnetbsd.c: Likewise.
737 * targets.c: Likewise.
738 * vaxnetbsd.c: Likewise.
739 * vms-hdr.c: Likewise.
741 2001-10-01 Alan Modra <amodra@bigpond.net.au>
743 * bfd-in.h: Remove comments regarding generated files.
744 * libbfd-in.h: Likewise.
745 * libcoff-in.h: Likewise.
746 * bfd-in2.h: Regenerate.
747 * libbfd.h: Likewise.
748 * libcoff.h: Likewise.
750 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
751 Hans-Peter Nilsson <hp@bitrange.com>
753 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
754 partial_inplace, matching assembler output. Set src_mask to
756 (sh_elf_relocate_section): Delete misplaced comment.
757 For relocatable linking against section symbol, call
758 _bfd_relocate_contents for partial_inplace relocs and adjust
759 rel->r_addend for others.
760 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
761 bfd_get_32, not at rel->r_addend.
763 2001-09-30 Alan Modra <amodra@bigpond.net.au>
765 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
766 the old dir refcount, so we indirectly set them to init_refcount.
767 Short-circuit asserts when we've just verified they are true.
769 2001-09-29 Alan Modra <amodra@bigpond.net.au>
771 * section.c (struct sec): Remove kept_section.
772 (STD_SECTION): Remove kept_section initialisation.
773 (bfd_make_section_anyway): Here too.
774 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
775 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
776 * elflink.h (elf_link_input_bfd): Set discarded link-once section
777 symbols to zero, and remove all code involved with kept_section
778 and tracking section symbol values.
779 * bfd-in2.h: Regenerate.
780 * configure.in: Bump version number.
781 * configure: Regenerate.
783 2001-09-29 Alan Modra <amodra@bigpond.net.au>
785 * elf64-ppc.c (struct ppc_dyn_relocs): New.
786 (IS_ABSOLUTE_RELOC): Define.
787 (struct ppc_link_hash_entry): New.
788 (struct ppc_link_hash_table): New.
789 (ppc_hash_table): Define.
790 (link_hash_newfunc): New function.
791 (ppc64_elf_link_hash_table_create): New function.
792 (create_got_section): New function.
793 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
794 pointers to our dynamic sections in hash table.
795 (ppc64_elf_copy_indirect_symbol): New function.
796 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
797 dynamic sections. Localise vars. Modify code for refcounts
798 starting from zero. Don't allocate here, or force symbols dynamic.
799 Don't copy all relocs if shared, select ones we need. Add code
800 to track possible copy relocs for non-shared link.
801 (ppc64_elf_gc_mark_hook): Update comment.
802 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
803 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
804 code for reference counting garbage collection. Don't create .plt
805 entries for functions that don't comply with ABI naming convention,
806 and don't allocate .plt space here. Use short-cuts to dynamic
807 sections. If possible, keep dynamic relocations instead of using
808 copy relocs. Remove confused comments.
809 (ppc_adjust_dynindx): Delete.
810 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
811 (allocate_dynrelocs): New function.
812 (readonly_dynrelocs): New function.
813 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
814 space here, and call allocate_dynrelocs to allocate space for
815 global .plt, .got and reloc sections. Use short-cuts to dynamic
816 sections. Call readonly_dynrelocs to determine whether we need
817 DT_TEXTREL. Don't generate section symbols here, the generic
818 ELF linker code does it for us.
819 (ppc64_elf_final_link): Call regular ELF backend linker rather than
820 gc variety, since we do our own .got handling.
821 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
822 dynamic section short-cuts. Localise vars, and delay setting.
823 Handle unknown relocs in main switch statement. Replace ugly
824 complicated tests for unresolvable relocs with a simple direct
825 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
826 before allowing an undefined sym in a shared lib. Do R_*_DS tests
827 after main switch, when we've set addend. Do non-addend insn
828 tweaks before main swithc. Ignore input_section->vma when
829 calculating reloc offsets as it's always zero. Rewrite dynamic
830 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
831 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
832 of dynamic section short-cuts. Reorganise .plt handling code.
833 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
834 Move expressions out of swap_reloca_out function calls.
835 (ppc64_elf_reloc_type_class): New function.
836 (ppc64_elf_info_to_howto): Move common expression to local var.
837 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
838 of dynamic section short-cuts. Don't fiddle with section syms
839 here as the ELF linker does it for us.
840 (elf_backend_can_refcount): Define.
841 (bfd_elf64_bfd_link_hash_table_create): Define.
842 (elf_backend_copy_indirect_symbol): Define.
843 (elf_backend_reloc_type_class): Define.
844 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
846 2001-09-29 Alan Modra <amodra@bigpond.net.au>
848 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
849 (struct elf_backend_data): Add can_refcount.
850 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
851 got.refcount and plt.refcount from init_refcount.
852 (_bfd_elf_link_hash_table_init): Set up init_refcount.
853 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
854 rather than got/plt.offset, and test for <= 0 rather than -1.
855 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
856 * elfxx-target.h (elf_backend_can_refcount): Define.
857 (elfNN_bed): Init can_refcount.
858 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
859 (_bfd_generic_link_hash_newfunc): Likewise.
860 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
862 (elf_backend_can_refcount): Define.
863 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
865 (elf32_hppa_copy_indirect_symbol): Make static to agree with
867 (elf_backend_can_refcount): Define.
868 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
870 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
871 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
872 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
873 (elf_backend_can_refcount): Define.
874 (elf_i386_copy_indirect_symbol): Make static to agree with
875 prototype. Formatting fix.
876 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
878 (elf_backend_can_refcount): Define.
879 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
881 (elf_backend_can_refcount): Define.
882 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
884 (elf_backend_can_refcount): Define.
885 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
887 (elf_backend_can_refcount): Define.
888 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
890 (elf_backend_can_refcount): Define.
892 * som.c (som_write_symbol_strings): Cast current_offset in
893 bfd_seek call to match param type.
895 2001-09-28 J. Brobecker <brobecker@gnat.com>
897 * som.c (som_write_symbol_strings): Fix incorrect type of
898 current_offset to match the function definition. Fixes a build
899 failure on HPUX-11.00.
901 2001-09-28 Richard Henderson <rth@redhat.com>
903 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
904 SEC_MERGE, SEC_STRINGS.
906 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
907 * bfd-in2.h: Rebuild.
909 2001-09-28 Alan Modra <amodra@bigpond.net.au>
911 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
912 reloc code using x86_64_reloc_map.
914 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
915 no longer allocate here. Localise some vars to blocks where they
917 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
918 setting of vars until needed.
919 (allocate_dynrelocs): Don't create a .plt entry without a reloc
920 when symbol visibilty makes a function local.
921 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
922 swap_reloca_out function calls.
923 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
924 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
927 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
928 no longer allocate here. Localise some vars to blocks where they
929 are used. Remove separate switch stmt for creating .got sec.
930 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
931 redundant casts and aborts. Delay setting of vars until needed.
932 (allocate_dynrelocs): Remove redundant casts and aborts.
933 (elf_i386_size_dynamic_sections): Move comment.
934 (elf_i386_finish_dynamic_symbol): Move expressions out of function
936 (elf_i386_relocate_section): Likewise. Comment typo fix.
937 (elf_i386_finish_dynamic_sections): Migrate common code out of
939 (elf_backend_* defines): Sort.
941 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
942 without a reloc when symbol visibilty makes a function local.
944 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
946 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
947 conflicting float flags.
949 2001-09-26 Alan Modra <amodra@bigpond.net.au>
951 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
952 (elf_backend_copy_indirect_symbol): Define.
953 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
954 (struct elf_i386_link_hash_table): Likewise.
955 (link_hash_newfunc): Get rid of unnecessary casts.
956 (elf_i386_link_hash_table_create): Likewise.
957 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
958 Don't test input section SEC_READONLY here to try to avoid copy
959 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
960 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
961 here to properly test whether we need copy relocs. Do so for weak
964 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
965 (elf_backend_copy_indirect_symbol): Define.
966 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
967 (stub_hash_newfunc): Get rid of unnecessary casts.
968 (hppa_link_hash_newfunc): Likewise.
969 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
970 Don't test input section SEC_READONLY here to try to avoid copy
971 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
972 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
973 here to properly test whether we need copy relocs. Do so for weak
976 2001-09-26 Alan Modra <amodra@bigpond.net.au>
978 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
979 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
980 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
982 2001-09-25 Jakub Jelinek <jakub@redhat.com>
984 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
987 2001-09-25 H.J. Lu <hjl@gnu.org>
989 * bfd-in2.h: Regenerated.
991 2001-09-25 Alan Modra <amodra@bigpond.net.au>
993 * elf32-i386.c: Add comment re linker function names and ordering.
994 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
995 (elf_i386_grok_prstatus): Move before linker functions.
996 (elf_i386_grok_psinfo): Likewise.
997 (elf_i386_fake_sections): Move so that functions are ordered.
998 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
1000 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1002 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
1005 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
1006 code handling this option.
1007 (LONG_BRANCH_VIA_PLT): Likewise.
1008 (RELATIVE_DYNRELOCS): Define as zero.
1009 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
1010 "pc_count" fields. Remove "section" field.
1011 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
1012 (elf32_hppa_check_relocs): Don't allocate space for dynamic
1013 relocs here. Instead, record all needed dynamic relocs via
1014 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
1015 in elf_section_data.
1016 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1017 (allocate_plt_and_got_and_discard_relocs): Rename to
1018 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
1019 (readonly_dynrelocs): New function.
1020 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
1021 Call readonly_dynrelocs to determine need for DT_TEXTREL.
1022 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1023 (elf32_hppa_relocate_section): Make use of cached sreloc.
1024 (elf32_hppa_reloc_type_class): New function.
1025 (elf_backend_reloc_type_class): Define.
1027 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1029 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
1030 and "sreloc" fields.
1031 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
1032 "pc_count" fields. Remove "section" field.
1033 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
1034 allocate space for dynamic relocs here. Instead, record all
1035 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
1036 pointer to "sreloc" section in elf_section_data.
1037 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1038 (allocate_plt_and_got_and_discard_relocs): Rename to
1039 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
1040 (readonly_dynrelocs): New function.
1041 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
1042 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1043 (elf_i386_relocate_section): Make use of cached sreloc.
1045 2001-09-24 Alan Modra <amodra@bigpond.net.au>
1047 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
1048 reloc rather than just the type.
1049 (_bfd_elf_reloc_type_class): Likewise.
1050 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1051 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
1052 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
1053 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
1054 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
1055 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
1056 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
1057 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
1058 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
1059 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
1060 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
1061 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
1062 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
1063 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
1064 * elflink.h: Formatting fixes.
1065 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
1066 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
1067 o->contents to PTR. Update call to elf_backend_reloc_type_class.
1069 2001-09-22 John Reiser <jreiser@BitWagon.com>
1071 * elfcode.h (elf_object_p): Allow for no section header at all in
1072 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
1074 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
1076 * elfxx-ia64.c: Fix compile time warning messages.
1077 * coff-mcore.c: Fix compile time warning messages.
1078 * coff-ppc.c: Fix compile time warning messages.
1079 * coffcode.h: Fix compile time warning messages.
1080 * elf32-mips.c: Fix compile time warning messages.
1081 * elf64-alpha.c: Fix compile time warning messages.
1082 * libbfd.c: Fix compile time warning messages.
1083 * bfd-in2.h: Regenerate.
1085 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1087 * Makefile.am: Run "make dep-am".
1088 * Makefile.in: Regenerate.
1090 * aoutx.h: Formatting fixes.
1091 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
1093 * linker.c: Replace bfd_get_filename with bfd_archive_filename
1096 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1098 * bfd.c (bfd_archive_filename): New function.
1099 * bfd-in2.h: Regenerate.
1100 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
1101 in error messages where the bfd is an input bfd.
1102 * aout-cris.c: Likewise.
1103 * coff-arm.c: Likewise.
1104 * coff-mcore.c: Likewise.
1105 * coff-ppc.c: Likewise.
1106 * coff-rs6000.c: Likewise.
1107 * coff-sh.c: Likewise.
1108 * coff-tic54x.c: Likewise.
1109 * coff-tic80.c: Likewise.
1110 * coff64-rs6000.c: Likewise.
1111 * coffcode.h: Likewise.
1112 * coffgen.c: Likewise.
1113 * cofflink.c: Likewise.
1114 * ecofflink.c: Likewise.
1115 * elf-hppa.h: Likewise.
1117 * elf32-arm.h: Likewise.
1118 * elf32-cris.c: Likewise.
1119 * elf32-gen.c: Likewise.
1120 * elf32-hppa.c: Likewise.
1121 * elf32-i370.c: Likewise.
1122 * elf32-i386.c: Likewise.
1123 * elf32-m32r.c: Likewise.
1124 * elf32-mcore.c: Likewise.
1125 * elf32-mips.c: Likewise.
1126 * elf32-ppc.c: Likewise.
1127 * elf32-s390.c: Likewise.
1128 * elf32-sh.c: Likewise.
1129 * elf32-sparc.c: Likewise.
1130 * elf32-v850.c: Likewise.
1131 * elf64-alpha.c: Likewise.
1132 * elf64-gen.c: Likewise.
1133 * elf64-ppc.c: Likewise.
1134 * elf64-s390.c: Likewise.
1135 * elf64-sparc.c: Likewise.
1136 * elf64-x86-64.c: Likewise.
1137 * elflink.h: Likewise.
1138 * elfxx-ia64.c: Likewise.
1141 * libbfd.c: Likewise.
1142 * pdp11.c: Likewise.
1143 * pe-mips.c: Likewise.
1144 * peicode.h: Likewise.
1146 * xcofflink.c: Likewise.
1148 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
1150 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
1153 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
1156 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
1157 Consolidate error messages, and split long messages to two lines.
1159 2001-09-20 John Reiser <jreiser@BitWagon.com>
1161 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
1162 and info->allow_shlib_undefined.
1163 * elf32-cris.c: Likewise.
1164 * elf32-hppa.c: Likewise.
1165 * elf32-m68k.c: Likewise.
1166 * elf32-mips.c: Likewise.
1167 * elf32-ppc.c: Likewise.
1168 * elf32-s390.c: Likewise.
1169 * elf32-sh.c: Likewise.
1170 * elf32-sparc.c: Likewise.
1171 * elf64-alpha.c: Likewise.
1172 * elf64-hppa.c: Likewise.
1173 * elf64-ppc.c: Likewise.
1174 * elf64-s390.c: Likewise.
1175 * elf64-sparc.c: Likewise.
1176 * elf64-x86-64.c: Likewise.
1177 * elfxx-ia64.c: Likewise.
1179 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1181 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
1182 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1183 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
1184 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
1185 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
1186 (bfd_default_scan): Use ISDIGIT instead of isdigit.
1187 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
1188 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
1189 isxdigit/isdigit/islower.
1190 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
1191 (mangle_name): Use ISALNUM instead of isalnum.
1192 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
1193 (scan): Use ISDIGIT instead of isdigit.
1194 * hosts/alphavms.h: Don't include <ctype.h>.
1195 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
1196 (ieee_object_p): Use TOUPPER instead of toupper.
1197 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
1198 (ihex_bad_byte): Use ISPRINT instead of isprint.
1199 * merge.c: Don't include <ctype.h>.
1200 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
1201 (oasys_write_sections): Use ISDIGIT instead of isdigit.
1202 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
1203 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1204 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
1205 (mangle_name): Use ISALNUM instead of isalnum.
1206 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
1207 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
1208 isupper/islower/isdigit.
1209 (som_decode_symclass): Use TOUPPER instead of toupper.
1210 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
1211 (srec_bad_byte): Use ISPRINT instead of isprint.
1212 (srec_scan): Use ISSPACE instead of isspace.
1213 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
1214 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
1215 * syms.c: Include "safe-ctype.h"
1216 (islower, toupper): Remove macro definitions.
1217 (bfd_decode_symclass): Use TOUPPER instead of toupper.
1218 * vms-gsd.c: Don't include <ctype.h>.
1219 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
1220 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
1222 * vms-tir.c: Don't include <ctype.h>.
1224 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1226 * libbfd.c (bfd_bread): New function replacing bfd_read without
1227 redundant params. Allow reads up to (size_t) -2 in length.
1228 (bfd_bwrite): Similarly for bfd_write.
1229 (real_read): Return a size_t.
1230 (bfd_read): Call bfd_bread.
1231 (bfd_write): Call bfd_bwrite.
1232 (warn_deprecated): New function to annoy everybody.
1233 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
1234 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
1235 (bfd_read, bfd_write): Define as macro.
1236 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
1237 likewise for bfd_write. Ensure function args are correct size by
1238 using casts or local vars. In some cases, remove unnecessary
1239 casts. Formatting fixes, in some cases removing a large expression
1240 from function args by using a local var. Replace CONST with const.
1241 Modify variable types to avoid warings. Use casts to avoid
1242 warnings when using negative numbers in unsigned expressions.
1243 * aout-adobe.c: Likewise.
1244 * aout-arm.c: Likewise.
1245 * aout-cris.c: Likewise.
1246 * aout-encap.c: Likewise.
1247 * aout-ns32k.c: Likewise.
1248 * aout-target.h: Likewise.
1249 * aout-tic30.c: Likewise.
1250 * aoutf1.h: Likewise.
1251 * aoutx.h: Likewise.
1252 * archive.c: Likewise.
1253 * archures.c: Likewise.
1254 * bfd-in.h: Likewise.
1256 * binary.c: Likewise.
1258 * cache.c: Likewise.
1259 * cisco-core.c: Likewise.
1260 * coff-a29k.c: Likewise.
1261 * coff-alpha.c: Likewise.
1262 * coff-arm.c: Likewise.
1263 * coff-h8300.c: Likewise.
1264 * coff-h8500.c: Likewise.
1265 * coff-i386.c: Likewise.
1266 * coff-i860.c: Likewise.
1267 * coff-i960.c: Likewise.
1268 * coff-ia64.c: Likewise.
1269 * coff-m68k.c: Likewise.
1270 * coff-m88k.c: Likewise.
1271 * coff-mcore.c: Likewise.
1272 * coff-mips.c: Likewise.
1273 * coff-ppc.c: Likewise.
1274 * coff-rs6000.c: Likewise.
1275 * coff-sh.c: Likewise.
1276 * coff-sparc.c: Likewise.
1277 * coff-stgo32.c: Likewise.
1278 * coff-tic30.c: Likewise.
1279 * coff-tic54x.c: Likewise.
1280 * coff-tic80.c: Likewise.
1281 * coff-w65.c: Likewise.
1282 * coff-z8k.c: Likewise.
1283 * coff64-rs6000.c: Likewise.
1284 * coffcode.h: Likewise.
1285 * coffgen.c: Likewise.
1286 * cofflink.c: Likewise.
1287 * coffswap.h: Likewise.
1288 * corefile.c: Likewise.
1289 * cpu-arc.c: Likewise.
1290 * cpu-h8300.c: Likewise.
1291 * cpu-h8500.c: Likewise.
1292 * cpu-i960.c: Likewise.
1293 * cpu-ia64-opc.c: Likewise.
1294 * cpu-ns32k.c: Likewise.
1295 * cpu-pdp11.c: Likewise.
1296 * cpu-pj.c: Likewise.
1297 * cpu-sh.c: Likewise.
1298 * cpu-w65.c: Likewise.
1299 * cpu-z8k.c: Likewise.
1300 * dwarf1.c: Likewise.
1301 * dwarf2.c: Likewise.
1302 * ecoff.c: Likewise.
1303 * ecofflink.c: Likewise.
1304 * ecoffswap.h: Likewise.
1305 * elf-bfd.h: Likewise.
1306 * elf-hppa.h: Likewise.
1307 * elf-m10200.c: Likewise.
1308 * elf-m10300.c: Likewise.
1310 * elf32-arc.c: Likewise.
1311 * elf32-arm.h: Likewise.
1312 * elf32-avr.c: Likewise.
1313 * elf32-cris.c: Likewise.
1314 * elf32-fr30.c: Likewise.
1315 * elf32-gen.c: Likewise.
1316 * elf32-h8300.c: Likewise.
1317 * elf32-hppa.c: Likewise.
1318 * elf32-i370.c: Likewise.
1319 * elf32-i386.c: Likewise.
1320 * elf32-i860.c: Likewise.
1321 * elf32-m32r.c: Likewise.
1322 * elf32-m68k.c: Likewise.
1323 * elf32-mcore.c: Likewise.
1324 * elf32-mips.c: Likewise.
1325 * elf32-openrisc.c: Likewise.
1326 * elf32-pj.c: Likewise.
1327 * elf32-ppc.c: Likewise.
1328 * elf32-s390.c: Likewise.
1329 * elf32-sh-lin.c: Likewise.
1330 * elf32-sh.c: Likewise.
1331 * elf32-sparc.c: Likewise.
1332 * elf32-v850.c: Likewise.
1333 * elf64-alpha.c: Likewise.
1334 * elf64-hppa.c: Likewise.
1335 * elf64-mips.c: Likewise.
1336 * elf64-ppc.c: Likewise.
1337 * elf64-s390.c: Likewise.
1338 * elf64-sparc.c: Likewise.
1339 * elf64-x86-64.c: Likewise.
1340 * elfarm-nabi.c: Likewise.
1341 * elfcode.h: Likewise.
1342 * elfcore.h: Likewise.
1343 * elflink.c: Likewise.
1344 * elflink.h: Likewise.
1345 * elfxx-ia64.c: Likewise.
1346 * elfxx-target.h: Likewise.
1347 * format.c: Likewise.
1349 * hp300hpux.c: Likewise.
1350 * hppabsd-core.c: Likewise.
1351 * hpux-core.c: Likewise.
1352 * i386aout.c: Likewise.
1353 * i386dynix.c: Likewise.
1354 * i386linux.c: Likewise.
1355 * i386lynx.c: Likewise.
1356 * i386mach3.c: Likewise.
1357 * i386msdos.c: Likewise.
1358 * i386os9k.c: Likewise.
1361 * irix-core.c: Likewise.
1362 * libaout.h: Likewise.
1363 * libbfd-in.h: Likewise.
1364 * libbfd.c: Likewise.
1365 * libcoff-in.h: Likewise.
1366 * libecoff.h: Likewise.
1367 * libieee.h: Likewise.
1368 * libnlm.h: Likewise.
1369 * libpei.h: Likewise.
1370 * libxcoff.h: Likewise.
1371 * linker.c: Likewise.
1372 * lynx-core.c: Likewise.
1373 * m68klinux.c: Likewise.
1374 * merge.c: Likewise.
1375 * mipsbsd.c: Likewise.
1376 * netbsd-core.c: Likewise.
1378 * nlm32-alpha.c: Likewise.
1379 * nlm32-i386.c: Likewise.
1380 * nlm32-ppc.c: Likewise.
1381 * nlm32-sparc.c: Likewise.
1382 * nlmcode.h: Likewise.
1383 * nlmswap.h: Likewise.
1384 * ns32k.h: Likewise.
1385 * oasys.c: Likewise.
1386 * opncls.c: Likewise.
1387 * osf-core.c: Likewise.
1388 * pc532-mach.c: Likewise.
1389 * pdp11.c: Likewise.
1390 * pe-mips.c: Likewise.
1391 * peXXigen.c: Likewise.
1392 * peicode.h: Likewise.
1393 * ppcboot.c: Likewise.
1394 * ptrace-core.c: Likewise.
1395 * reloc.c: Likewise.
1396 * reloc16.c: Likewise.
1397 * riscix.c: Likewise.
1398 * rs6000-core.c: Likewise.
1399 * sco5-core.c: Likewise.
1400 * section.c: Likewise.
1402 * sparclinux.c: Likewise.
1403 * sparclynx.c: Likewise.
1405 * stabs.c: Likewise.
1406 * sunos.c: Likewise.
1408 * targets.c: Likewise.
1409 * tekhex.c: Likewise.
1410 * trad-core.c: Likewise.
1411 * versados.c: Likewise.
1412 * vms-gsd.c: Likewise.
1413 * vms-hdr.c: Likewise.
1414 * vms-misc.c: Likewise.
1415 * vms-tir.c: Likewise.
1418 * xcofflink.c: Likewise.
1419 * bfd-in2.h: Regenerate.
1420 * libbfd.h: Regenerate.
1421 * libcoff.h: Regenerate.
1423 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
1424 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
1425 (ufile_ptr): Define.
1426 (bfd_tell): Return a ufile_ptr.
1427 * libbfd.c (bfd_tell): Likewise.
1428 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
1430 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
1431 * aoutf1.h: Likewise.
1433 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
1434 larger than unsigned long can represent.
1436 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
1437 size overflows size_t.
1438 (bfd_realloc): Likewise.
1439 (bfd_zmalloc): Likewise.
1440 * opncls.c (bfd_alloc): Likewise.
1441 (bfd_zalloc): Likewise.
1442 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1443 (bfd_alloc, bfd_zalloc): Update.
1445 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1447 (bfd_get_signed_8): Likewise.
1448 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1449 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1450 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1451 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1452 * libaout.h: Likewise define and use here.
1453 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1454 * aout-arm.c: Likewise.
1455 * aout-encap.c: Likewise.
1456 * aout-ns32k.c: Likewise.
1457 * aout-tic30.c: Likewise.
1458 * aoutf1.h: Likewise.
1459 * aoutx.h: Likewise.
1461 * coff-alpha.c: Likewise.
1462 * coff-h8300.c: Likewise.
1463 * coff-h8500.c: Likewise.
1464 * coff-i960.c: Likewise.
1465 * coff-ia64.c: Likewise.
1466 * coff-m88k.c: Likewise.
1467 * coff-mips.c: Likewise.
1468 * coff-ppc.c: Likewise.
1469 * coff-rs6000.c: Likewise.
1470 * coff-sh.c: Likewise.
1471 * coff-sparc.c: Likewise.
1472 * coff-stgo32.c: Likewise.
1473 * coff-tic30.c: Likewise.
1474 * coff-tic80.c: Likewise.
1475 * coff-w65.c: Likewise.
1476 * coff-z8k.c: Likewise.
1477 * coff64-rs6000.c: Likewise.
1478 * coffgen.c: Likewise.
1479 * cofflink.c: Likewise.
1480 * coffswap.h: Likewise.
1481 * ecoff.c: Likewise.
1482 * ecoffswap.h: Likewise.
1484 * elf32-mips.c: Likewise.
1485 * elf64-mips.c: Likewise.
1486 * hp300hpux.c: Likewise.
1487 * i386dynix.c: Likewise.
1488 * i386lynx.c: Likewise.
1489 * i386msdos.c: Likewise.
1490 * i386os9k.c: Likewise.
1491 * libpei.h: Likewise.
1492 * nlm32-alpha.c: Likewise.
1493 * nlm32-i386.c: Likewise.
1494 * nlm32-ppc.c: Likewise.
1495 * nlmcode.h: Likewise.
1496 * nlmswap.h: Likewise.
1497 * oasys.c: Likewise.
1498 * pdp11.c: Likewise.
1499 * pe-mips.c: Likewise.
1500 * peXXigen.c: Likewise.
1501 * peicode.h: Likewise.
1502 * riscix.c: Likewise.
1503 * sunos.c: Likewise.
1504 * xcofflink.c: Likewise.
1505 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1506 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1507 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1508 equivalent H_PUT_* macro instead.
1509 (GETWORD, GETHALF, GETBYTE): Similarly.
1510 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1511 (GETWORD, GETHALF, GETBYTE): Likewise.
1512 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1514 * bfd-in.h (struct orl): Change "pos" to a union.
1515 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1516 (bsd_write_armap): Here too.
1517 (coff_write_armap): And here.
1518 * coff-rs6000.c (xcoff_write_armap_old): And here.
1519 (xcoff_write_one_armap_big): And here.
1520 (xcoff_write_armap_big): And here.
1521 * ecoff.c (_bfd_ecoff_write_armap): And here.
1522 * elf64-mips.c (mips_elf64_write_armap): And here.
1524 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1525 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1526 * elf32-h8300.c (elf32_h8_mach): Likewise.
1527 * elf32-mips.c (elf_mips_mach): Likewise.
1528 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1530 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1532 (aix386_core_vec): Typo fix.
1534 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1535 etc. to avoid redefined macro warning.
1536 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1537 (MY(fix_pcrel_26)): Likewise.
1538 * aout-ns32k.c (MY(put_reloc)): Likewise.
1539 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1540 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1541 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1543 * aout-encap.c: Include "file", not <file> for binutils headers.
1544 (encap_object_p): Half baked attempt to fix compile errors in
1545 code dealing with "magic".
1547 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1548 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1549 bfd_vma's rather than longs.
1550 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1551 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1552 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1554 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1555 Use unsigned comparisons.
1556 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1557 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1558 (_bfd_do_ns32k_reloc_contents): Likewise.
1559 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1560 (_bfd_ns32k_get_immediate): Likewise.
1561 (_bfd_ns32k_put_displacement): Likewise.
1562 (_bfd_ns32k_put_immediate): Likewise.
1563 (bfd_reloc_status_type): Likewise.
1565 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1567 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1568 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1569 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1571 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1572 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1573 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1575 (_bfd_elfcore_strndup): Likewise for "dup".
1576 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1577 "name" to avoid shadowing.
1578 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1579 definition of "off".
1580 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1581 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1583 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1585 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1587 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1589 (elf_link_input_bfd): Likewise.
1590 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1591 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1592 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1594 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1595 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1596 (sunos_write_dynamic_symbol): Remove unused vars.
1597 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1598 innermost "directory_name" and "file_name" vars.
1599 * tekhex.c (first_phase): Rename local var "type" to "stype".
1600 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1601 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1602 doing comparison at caller.
1603 (vms_esecflag_by_name): Likewise.
1604 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1605 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1606 (xcoff_write_global_symbol): Rename "p" param to "inf".
1608 * cisco-core.c: Add missing prototypes.
1609 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1610 (cisco_core_file_failing_signal): Likewise.
1611 (cisco_core_file_matches_executable_p): Likewise.
1612 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1613 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1614 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1615 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1617 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1618 thumb_glue_size and arm_glue_size.
1619 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1621 * coff64-rs6000.c: Group prototypes together.
1623 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1624 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1626 * cpu-arc.c: Add missing prototypes.
1627 * cpu-h8500.c: Likewise.
1628 * cpu-i960.c: Likewise.
1629 * cpu-pj.c: Likewise.
1630 * cpu-sh.c: Likewise.
1631 * cpu-w65.c: Likewise.
1632 * cpu-z8k.c: Likewise.
1633 * elf32-fr30.c: Likewise.
1634 * elf32-h8300.c: Likewise.
1635 * elf32-i370.c: Likewise.
1636 * hpux-core.c: Likewise.
1637 * versados.c: Likewise.
1639 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
1640 * cpu-h8500.c: Likewise.
1641 * cpu-i960.c: Likewise.
1642 * cpu-z8k.c: Likewise.
1644 * cpu-ia64-opc.c: Correct comment.
1646 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
1648 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
1650 (bfd_elf32_write_out_phdrs): Likewise.
1651 (bfd_elf64_write_out_phdrs): Likewise.
1652 (elf_linker_section_pointers): Change addend to bfd_vma.
1653 (_bfd_elf_find_pointer_linker_section): Likewise.
1654 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
1655 filepos to unsigned file_ptr.
1656 (_bfd_elfcore_strndup): Change max param to size_t.
1657 * elf.c (_bfd_elfcore_make_pseudosection): As above.
1658 (_bfd_elfcore_strndup): Likewise.
1659 (_bfd_elf_find_pointer_linker_section): Likewise.
1661 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
1662 insn and sym_value to ints.
1664 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
1666 (elfcore_read_notes): Likewise.
1668 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
1669 param from unsigned char to int.
1670 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
1671 for info_to_howto call.
1672 (add_dynamic_entry): Define macro.
1673 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
1675 * elf32-cris.c (add_dynamic_entry): Define macro.
1676 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
1678 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
1679 (elf32_h8_object_p): Likewise.
1680 (elf32_h8_merge_private_bfd_data): Likewise.
1681 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
1683 * elf32-hppa.c (add_dynamic_entry): Define macro.
1684 (elf32_hppa_size_dynamic_sections): Use it.
1685 * elf32-i370.c (add_dynamic_entry): Define macro.
1686 (i370_elf_size_dynamic_sections): Use it.
1687 (i370_noop): Make static.
1688 * elf32-i386.c (add_dynamic_entry): Define macro.
1689 (elf_i386_size_dynamic_sections): Use it.
1690 * elf32-m68k.c (add_dynamic_entry): Define macro.
1691 (elf_m68k_size_dynamic_sections): Use it.
1692 * elf32-ppc.c (add_dynamic_entry): Define macro.
1693 (ppc_elf_size_dynamic_sections): Use it.
1694 * elf32-s390.c (add_dynamic_entry): Define macro.
1695 (elf_s390_size_dynamic_sections): Use it.
1696 * elf64-alpha.c (add_dynamic_entry): Define macro.
1697 (elf64_alpha_size_dynamic_sections): Use it.
1698 * elf64-hppa.c (add_dynamic_entry): Define macro.
1699 (elf64_hppa_size_dynamic_sections): Use it.
1700 * elf64-ppc.c (add_dynamic_entry): Define macro.
1701 (ppc64_elf_size_dynamic_sections): Use it.
1702 * elf64-s390.c (add_dynamic_entry): Define macro.
1703 (elf_s390_size_dynamic_sections): Use it.
1704 * elf64-sparc.c (add_dynamic_entry): Define macro.
1705 (sparc64_elf_size_dynamic_sections): Use it.
1706 * elf64-x86-64.c (add_dynamic_entry): Define macro.
1707 (elf64_x86_64_size_dynamic_sections): Use it.
1708 * elfxx-ia64.c (add_dynamic_entry): Define macro.
1709 (elfNN_ia64_size_dynamic_sections): Use it.
1711 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
1712 (v850_elf_perform_relocation): Make "r_type" param unsigned.
1714 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
1715 false if the first malloc fails rather than going via error_return.
1717 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
1719 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
1721 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
1723 * elfxx-ia64.c (global_sym_index): Return a long.
1725 * ieee.c (get_symbol): Use int rather than char param.
1726 (ieee_slurp_sections): Move "section" var to inner blocks.
1727 (copy_expression): Don't init "value" to zero or worry about
1728 clearing to zero after using.
1729 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
1732 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
1735 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
1736 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
1738 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
1740 * pc532-mach.c (MYNSX): Delete.
1741 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
1742 (write_object_contents): Correct prototype.
1744 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
1745 than unsigned short.
1747 * section.c (bfd_set_section_contents): Remove redundant
1748 "offset < 0" test. Check that "count" doesn't overflow size_t.
1749 (bfd_get_section_contents): Likewise.
1751 * som.c (som_fixup_formats): Add missing braces.
1752 (som_reloc_addend): Pass a bfd_vma for "addend".
1754 * srec.c (srec_write_record): Pass "type" as an unsigned int.
1755 (srec_write_symbols): Remove an unnecessary var.
1757 * targets.c (_bfd_target_vector): Sort entries. Sort externs
1759 * configure.in: Sort to match. Bump version number.
1760 * configure: Regenerate.
1762 * tekhex.c (move_section_contents): Assert offset == 0.
1764 * versados.c (new_symbol_string): Constify arg.
1765 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
1766 (versados_get_symbol_info): Make static.
1767 (versados_print_symbol): Likewise.
1768 (versados_get_reloc_upper_bound): Likewise.
1769 (versados_canonicalize_reloc): Likewise.
1771 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
1773 * elflink.h (elf_link_input_bfd): Fix typo in error message.
1775 2001-09-17 H.J. Lu <hjl@gnu.org>
1777 * dwarf1.c (parse_die): Take a new arg for the end of the
1778 section. Return false if die is beyond the section.
1779 (parse_functions_in_unit): Pass the end of the section to
1781 (_bfd_dwarf1_find_nearest_line): Likewise.
1783 2001-09-14 Michael Rauch <mrauch@netbsd.org>
1785 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1786 just like R_SPARC_32.
1788 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1790 * configure.bfd: Add arm-openbsd target.
1792 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1794 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1795 Add support for mips64.
1797 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
1799 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1801 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
1803 * elf.c (prep_headers): Get the machine code from the elf
1805 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
1806 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
1807 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
1808 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
1809 * elf-arc.c (arc_elf_final_write_processing): Don't override
1810 e_machine, it's now properly set in prep_headers.
1811 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
1813 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
1814 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
1815 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
1816 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
1817 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
1818 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
1819 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
1820 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
1821 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
1822 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
1823 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
1824 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
1826 2001-09-11 Richard Henderson <rth@redhat.com>
1828 * elf64-alpha.c (elf64_alpha_section_flags): New.
1829 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
1831 2001-09-11 Richard Henderson <rth@redhat.com>
1833 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
1834 apply HINT relocations against dynamic symbols.
1836 2001-09-11 H.J. Lu <hjl@gnu.org>
1838 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
1840 2001-09-09 Richard Henderson <rth@redhat.com>
1842 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
1844 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1845 following a call to a near function.
1847 2001-09-08 Richard Henderson <rth@redhat.com>
1849 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1850 relocation errors. Fail gp-relative relocations against
1853 2001-09-08 Alan Modra <amodra@bigpond.net.au>
1855 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1856 as well as DEF_DYNAMIC in test for avoided copy relocs.
1857 (allocate_plt_and_got_and_discard_relocs): Likewise.
1858 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1859 (allocate_plt_and_got_and_discard_relocs): Likewise.
1861 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1863 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1866 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1868 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1870 (mips_elf64_howto_table_rel): Likewise.
1872 2001-09-05 Tom Rix <trix@redhat.com>
1874 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1875 and syscall symbols.
1876 (write_global_symbol) : Same.
1877 (bfd_xcoff_export_symbol): Remove unused syscall param.
1878 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1879 bfd_xcoff_import_symbol.
1881 * bfd-in2.h : Regenerate.
1883 2001-09-04 Richard Henderson <rth@redhat.com>
1885 * elf64-alpha.c (SKIP_HOWTO): New.
1886 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1887 Fix sizes of 16-bit mem format relocs.
1888 (elf64_alpha_reloc_map): Update to match.
1889 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1890 (elf64_alpha_relax_without_lituse): Likewise.
1891 (elf64_alpha_check_relocs): Handle GPREL16.
1892 (elf64_alpha_relocate_section): Likewise.
1893 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1894 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1895 * bfd-in2.h, libbfd.h: Rebuild.
1897 2001-09-04 Jeff Law <law@redhat.com>
1899 * elf32-h8300.c (elf32_h8_relax_section): New function.
1900 (elf32_h8_relax_delete_bytes): Likewise.
1901 (elf32_h8_symbol_address_p): Likewise.
1902 (elf32_h8_get_relocated_section_contents): Likewise.
1903 (bfd_elf32_bfd_relax_section): Define.
1904 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1906 * elf32-h8300.c (special): New function.
1907 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1909 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1910 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1911 Fix minor problems with 8bit and 16bit PC relative relocations.
1913 2001-09-01 Andreas Jaeger <aj@suse.de>
1915 * vms-tir.c: Add missing prototypes.
1916 * vms-hdr.c: Likewise.
1917 * vms-gsd.c: Likewise.
1918 * vms-misc.c: Likewise.
1920 2001-08-31 H.J. Lu <hjl@gnu.org>
1922 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1923 with bad relocation.
1925 2001-08-31 Eric Christopher <echristo@redhat.com>
1926 Jason Eckhardt <jle@redhat.com>
1928 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1929 mips32_4k and mips64.
1930 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1931 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1932 * bfd/cpu-mips.c: Ditto.
1933 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1934 * bfd/bfd-in2.h: Regenerate.
1936 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1938 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1939 value into R_ALPHA_RELATIVE's addend.
1940 (elf64_alpha_finish_dynamic_symbol): Likewise.
1942 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1944 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1945 recomputed addend during relocatable link if not USE_REL.
1947 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1950 2001-08-30 H.J. Lu <hjl@gnu.org>
1952 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1954 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1955 relocations for weak definitions.
1957 2001-08-30 H.J. Lu <hjl@gnu.org>
1959 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1960 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1961 * Makefile.in: Rebuild.
1963 2001-08-30 H.J. Lu <hjl@gnu.org>
1965 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1966 dynamic relocation for undefined weak symbols when creating
1967 executables. Check h->root.root.type, instead of h->root.type.
1969 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1971 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1972 default from coff to elf.
1974 2001-08-29 Jeff Law <law@redhat.com>
1976 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1978 (h8_reloc_map): Similarly.
1979 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1980 Add support for PC relative relocations.
1982 * elf32-h8300.c: Put all prototypes together.
1983 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1984 (elf32_h8_final_link_relocate): New function for linker.
1985 (elf32_h8_relocate_section): Similarly.
1986 (elf_backend_relocate_section): Define.
1988 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1989 (h8300_scan): Handle architecture:machine encodings typically
1990 found in linker scripts.
1991 * elf.c (prep_headers): Do not try to do H8 machine recognition
1993 * elf32-h8300.c: Add some missing prototypes.
1994 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1995 (elf32_h8_object_p): Similarly.
1997 2001-08-29 Tom Rix <trix@redhat.com>
1999 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
2000 does not follow a XTY_SD.
2002 2001-08-29 Alan Modra <amodra@bigpond.net.au>
2004 * targmatch.sed: Delete case statements.
2005 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
2008 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
2010 * Makefile.am (elf32-h8300.lo): New target.
2011 * config.bfd (h8300*-*-elf): New case.
2012 * configure.in (bfd_elf32_h8300_vec): New case.
2013 * elf.c (prep_headers): Add case for bfd_arch_h8300.
2014 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
2015 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
2016 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
2017 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
2018 * elf32-h8300.c: New file.
2019 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
2021 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2023 * sparclynx.c: Add missing prototypes.
2024 * coff-mcore.c: Add missing prototypes.
2025 * elf32-pj.c: Add missing prototypes.
2026 * nlm32-sparc.c: Add missing prototypes.
2027 * oasys.c: Add missing prototypes.
2028 * pdp11.c: Add missing prototypes.
2029 * pe-mips.c: Add missing prototypes.
2030 * riscix.c: Add missing prototypes.
2032 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2034 * elf32-i386.c: Add missing prototypes.
2035 * elf32-ppc.c: Likewise.
2036 * elf32-sh-lin.c: Likewise.
2037 * elfarm-nabi.c: Likewise.
2039 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2041 * elf32-i386.c (elf_i386_grok_prstatus): New function.
2042 (elf_i386_grok_psinfo): New function.
2043 (elf_backend_grok_prstatus): Define.
2044 (elf_backend_grok_psinfo): Likewise.
2045 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
2046 (ppc_elf_grok_psinfo): New function.
2047 (elf_backend_grok_prstatus): Define.
2048 (elf_backend_grok_psinfo): Likewise.
2049 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
2050 (elf32_shlin_grok_psinfo): New function.
2051 (elf_backend_grok_prstatus): Define.
2052 (elf_backend_grok_psinfo): Likewise.
2053 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
2054 (elf32_arm_nabi_grok_psinfo): New function.
2055 (elf_backend_grok_prstatus): Define.
2056 (elf_backend_grok_psinfo): Likewise.
2058 2001-08-27 H.J. Lu <hjl@gnu.org>
2060 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
2062 (mips_elf_calculate_relocation): Create dynamic relocation for
2063 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
2066 2001-08-27 H.J. Lu <hjl@gnu.org>
2068 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
2069 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
2070 (_bfd_elf32_mips_grok_prstatus): Likewise.
2071 (_bfd_elf32_mips_grok_psinfo): Likewise.
2072 (_bfd_mips_elf_hide_symbol): Make it static and cast to
2073 `struct mips_elf_link_hash_entry *'.
2074 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
2076 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2078 * mipsbsd.c: Add missing prototypes.
2079 * hp300hpux.c: Add missing prototypes.
2080 * i386aout.c: Add missing prototypes.
2081 * i386lynx.c: Add missing prototypes.
2082 * i386mach3.c: Add missing prototypes.
2083 * i386msdos.c: Add missing prototypes.
2084 * i386os9k.c: Add missing prototypes.
2086 2001-08-27 Linus Nordberg <linus@swox.se>
2087 Torbjorn Granlund <tege@swox.com>
2088 Staffan Ulfberg <staffanu@swox.se>
2089 Alan Modra <amodra@bigpond.net.au>
2091 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
2092 targ64_selvecs for 32 bit powerpc targets.
2093 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
2094 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
2096 * Makefile.in: Regenerate.
2097 * configure.in: Add elf64_powerpc vecs.
2098 * configure: Regenerate.
2099 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
2100 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
2101 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
2102 * elf64-ppc.c: New file.
2103 * reloc.c: Add powerpc64 relocs.
2104 * libbfd.h: Regenerate.
2105 * bfd-in2.h: Regenerate.
2107 2001-08-27 Andreas Schwab <schwab@suse.de>
2109 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
2110 reloc is against read-only section.
2111 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
2112 looking up section names for DT_TEXTREL.
2113 (elf32_m68k_reloc_type_class): New function.
2114 (elf_backend_reloc_type_class): Define.
2116 2001-08-27 Andreas Jaeger <aj@suse.de>
2118 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2119 reloc is against read-only section.
2120 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2121 looking up section names for DT_TEXTREL.
2122 (elf_s390_reloc_type_class): New.
2123 (elf_backend_reloc_type_class): Define.
2125 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2126 reloc is against read-only section.
2127 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2128 looking up section names for DT_TEXTREL.
2129 (elf_s390_reloc_type_class): New.
2130 (elf_backend_reloc_type_class): Define.
2132 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
2133 is against read-only section.
2134 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2135 looking up section names for DT_TEXTREL.
2136 (ppc_elf_reloc_type_class): New.
2137 (elf_backend_reloc_type_class): Define.
2139 2001-08-26 Andreas Jaeger <aj@suse.de>
2141 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
2142 reloc is against read-only section.
2143 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
2144 looking up section names for DT_TEXTREL.
2145 (elf_cris_reloc_type_class): New.
2146 (elf_backend_reloc_type_class): Define.
2148 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
2149 against read-only section.
2150 (elf_backend_reloc_type_class): Define.
2151 (sh_elf_reloc_type_class): New.
2152 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2153 looking up section names for DT_TEXTREL.
2155 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
2156 reloc is against read-only section.
2157 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
2158 looking up section names for DT_TEXTREL.
2159 (elf32_arm_reloc_type_class): New.
2160 (elf_backend_reloc_type_class): Define.
2162 2001-08-25 Andreas Jaeger <aj@suse.de>
2164 * oasys.c: Add missing prototypes.
2166 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
2167 attribute for parameter.
2168 * elf.c (_bfd_elf_reloc_type_class): Likewise.
2170 * versados.c (get_4): Make static.
2171 (get_10): Make static.
2172 Add missing prototypes.
2173 (process_esd): Fix call to versados_new_symbol.
2175 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
2177 * coff-a29k.c: Add missing prototypes.
2178 * coff-apollo.c: Add missing prototypes.
2179 * coff-arm.c: Add missing prototypes.
2180 * coff-i860.c: Add missing prototypes.
2181 * coff-rs6000.c: Add missing prototypes.
2182 * coff-tic80.c: Add missing prototypes.
2183 * elf-m10200.c: Add missing prototypes.
2184 * elf-m10300.c: Add missing prototypes.
2185 * elf32-arm.h: Add missing prototypes.
2186 * elf32-d10v.c: Add missing prototypes.
2187 * elf32-m32r.c: Add missing prototypes.
2188 * elf32-mcore.c: Add missing prototypes.
2189 * elf32-openrisc.c: Add missing prototypes.
2190 * elf32-sh.c: Add missing prototypes.
2191 * elf32-sparc.c: Add missing prototypes.
2192 * elf32-v850.c: Add missing prototypes.
2193 * elfarm-nabi.c: Add missing prototypes.
2194 * elfarm-oabi.c: Add missing prototypes.
2196 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2198 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
2199 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
2201 2001-08-24 H.J. Lu <hjl@gnu.org>
2203 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
2206 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
2208 * elf-bfd.h (elf_hash_table): Revert definition.
2209 (is_elf_hash_table): New macro.
2210 * elflink.h (elf_link_add_object_symbols): Test
2211 is_elf_hash_table before accessing ELF only fields in hash
2213 (elf_link_create_dynamic_sections): Fail if not using an ELF
2215 (elf_add_dynamic_entry): Fail if not using an ELF hash
2217 (elf_link_record_local_dynamic_symbol): Fail if not using an
2219 (size_dynamic_sections): Fail if not using an ELF hash
2221 (elf_adjust_dynamic_symbol): Fail if not using an ELF
2223 (elf_bfd_final_link): Fail if not using an ELF hash
2226 2001-08-24 H.J. Lu <hjl@gnu.org>
2228 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
2229 table is not an ELF linker hash table.
2231 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
2232 table type to bfd_link_elf_hash_table.
2234 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
2237 * linker.c (_bfd_link_hash_table_init): Set the linker hash
2238 table type to bfd_link_generic_hash_table.
2240 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2242 * bfd.c (bfd_alt_mach_code): New function.
2243 * bfd-in2.h: Rebuilt.
2245 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2247 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
2248 `type' field in the hash entry when deciding whether to follow a
2251 2001-08-24 Jakub Jelinek <jakub@redhat.com>
2253 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
2255 (elf_link_sort_relocs): Adjust accordingly.
2257 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
2258 (elf64_alpha_check_relocs): Set it if section this reloc is against
2259 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
2261 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
2262 is is against read-only section.
2263 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
2264 check section names.
2265 (elf64_alpha_reloc_type_class): New.
2266 (elf_backend_reloc_type_class): Define.
2268 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2270 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
2273 2001-08-23 Andreas Jaeger <aj@suse.de>
2275 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
2276 the reloc is against read-only section.
2277 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
2278 of looking up section names for DT_TEXTREL.
2279 (elf64_x86_64_reloc_type_class): New.
2280 (elf_backend_reloc_type_class): Define.
2282 2001-08-23 H.J. Lu <hjl@gnu.org>
2284 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
2285 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
2287 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
2288 bfd_print_symbol_vandf.
2289 * coffgen.c (coff_print_symbol): Likewise.
2290 * elf.c (bfd_elf_print_symbol): Likewise.
2291 * ieee.c (ieee_print_symbol): Likewise.
2292 * nlmcode.h (nlm_print_symbol): Likewise.
2293 * oasys.c (oasys_print_symbol): Likewise.
2294 * pdp11.c (NAME(aout,print_symbol)): Likewise.
2295 * som.c (som_print_symbol): Likewise.
2296 * srec.c (srec_print_symbol): Likewise.
2297 * tekhex.c (tekhex_print_symbol): Likewise.
2298 * versados.c (versados_print_symbol): Likewise.
2299 * vms.c (vms_print_symbol): Likewise.
2301 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
2302 with bfd_fprintf_vma.
2303 (bfd_elf_print_symbol): Likewise.
2304 * syms.c (bfd_print_symbol_vandf): Likewise.
2306 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2308 * aoutf1.h (sunos_write_object_contents): Silence compile time
2310 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
2312 * bout.c: Add missing function prototypes. Fix formatting.
2313 * coff-z8k.c: Add missing function prototypes. Fix formatting.
2314 * coff-w65.c: Add missing function prototypes. Fix formatting.
2315 * coff-h8500.c: Add missing function prototypes. Fix formatting.
2316 * coff-h8300.c: Add missing function prototypes. Fix formatting.
2317 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
2318 * coff-tic30.c: Add missing function prototypes. Fix formatting.
2319 * coff-m68k.c: Add missing function prototypes. Fix formatting.
2320 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
2321 * coff-sh.c: Add missing function prototypes. Fix formatting.
2323 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2325 * elf-bfd.h (enum elf_reloc_type_class): New.
2326 (struct elf_backend_data): Add elf_backend_reloc_type_class.
2327 (_bfd_elf_reloc_type_class): New.
2328 * elfxx-target.h (elf_backend_reloc_type_class): Define.
2329 (elfNN_bed): Add elf_backend_reloc_type_class.
2330 * elf.c (_bfd_elf_reloc_type_class): New.
2331 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
2332 is against read-only section.
2333 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
2334 looking up section names for DT_TEXTREL.
2335 (elf_i386_reloc_type_class): New.
2336 (elf_backend_reloc_type_class): Define.
2337 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
2338 reloc is against read-only section.
2339 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
2340 looking up section names for DT_TEXTREL.
2341 (elf32_sparc_reloc_type_class): New.
2342 (elf_backend_reloc_type_class): Define.
2343 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
2344 reloc is against read-only section.
2345 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2346 looking up section names for DT_TEXTREL.
2347 (sparc64_elf_reloc_type_class): New.
2348 (elf_backend_reloc_type_class): Define.
2349 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
2350 (elfNN_ia64_hash_table_create): Clear ia64_info.
2351 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
2353 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
2354 instead of looking up section names for DT_TEXTREL.
2355 (elfNN_ia64_reloc_type_class): New.
2356 (elf_backend_reloc_type_class): Define.
2357 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
2358 (struct elf_link_sort_rela): New.
2359 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
2360 (elf_bfd_final_link): Call elf_link_sort_relocs.
2361 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
2364 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2366 * configure.in (x86-bsdi): No corefile support.
2367 * configure: Regenerate.
2369 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
2371 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
2374 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
2376 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
2377 the alignment of dwarf2 linkonce sections to 0.
2378 * coff-sto32.c: Likewise.
2380 2001-08-20 Andreas Jaeger <aj@suse.de>
2382 * coff-sparc.c: Add missing prototypes.
2383 * elf32-s390.c: Likewise.
2384 * elf32-i960.c: Likewise.
2385 * aout-target.h: Likewise.
2387 2001-08-20 H.J. Lu <hjl@gnu.org>
2389 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
2390 (elf_num_section_syms): New for num_section_syms.
2392 * elf.c (elf_map_symbols): Set num_section_syms.
2393 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
2394 the section symbol index.
2396 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
2398 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
2399 select the generic has table creator. All elf backends need elf
2400 specific fields in the hash table.
2402 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2404 * archive.c (offsetof): Remove define.
2407 * sysdep.h (offsetof): Define.
2409 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2411 * bfd.c (bfd_get_gp_size): Return an unsigned int.
2412 (bfd_set_gp_size): Make param unsigned.
2413 * bfd-in2.h: Regenerate.
2414 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
2415 than calling bfd_get_gp_size.
2416 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
2417 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2419 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2421 * linker.c (default_fill_link_order): Handle four byte fill value.
2423 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2425 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
2427 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
2429 * elf64-mips.c (UNUSED_RELOC): Define.
2430 (mips_elf64_howto_table_rel): Use it.
2431 (mips_elf64_howto_table_rela): Here too.
2432 (mips_elf64_write_relocs): Fix signed/unsigned warning.
2434 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
2436 * coffgen.c (coff_print_symbol): Fix warnings.
2437 (coff_find_nearest_line): Likewise.
2438 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2439 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
2440 * format.c (bfd_check_format_matches): Likewise.
2441 (bfd_set_format): Likewise.
2442 * coff-ia64.c: Add missing prototypes.
2443 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2444 signed to silence warnings.
2445 (elf64_alpha_relocate_section): Likewise.
2446 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2447 (elf64_alpha_add_symbol_hook): Likewise.
2448 (elf64_alpha_final_link): Likewise.
2449 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2450 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2451 (elf64_alpha_size_got_sections): Likewise.
2452 * elfxx-ia64.c: Add missing prototypes.
2453 (elfNN_ia64_relocate_section): Fix warning.
2454 (elfNN_ia64_unwind_entry_compare): Make params const.
2456 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2458 * config.bfd (targ64_selvecs): New.
2459 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2461 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2462 (BFD_DEFAULT_TARGET_SIZE): New.
2463 (BFD_ARCH_SIZE): Comment.
2464 * configure.in (target_size): New. Set instead of target64 in
2465 selvecs case statement. Set target64 from it.
2466 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2467 * bfd-in2.h: Regenerate.
2468 * configure: Regenerate.
2470 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2472 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2473 (bfd_errmsgs): Add corresponding message.
2474 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2475 finding an archive that contains different format object files.
2476 Return bfd_error_wrong_object_format for this case.
2477 * format.c: Formatting fixes. s/CONST/const/.
2478 (bfd_check_format_matches): Accept archives that give
2479 bfd_error_wrong_object_format if no full match is found. Tidy
2480 code handling matching_vector. Don't return a pointer to freed
2481 memory in `matching'. Handle ambiguous matches as for partial
2483 * bfd-in2.h: Regenerate.
2485 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2487 * libieee.h (common_header_type): Add last_byte field.
2489 * ieee.c: Add missing prototypes. Some format fixes.
2490 (struct output_buffer_struct): Move for availability to prototypes.
2491 (ieee_part_after): New function.
2492 (ieee_slurp_debug): Use it here.
2493 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2494 ieee_part_after to set last_byte to one past end of current part.
2496 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2498 (parse_expression): Don't go beyond the end of the current part.
2499 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2500 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2501 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2502 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2503 ieee_set_section_contents, ieee_write_object_contents,
2504 ieee_make_empty_symbol): Make static.
2505 (ieee_archive_p): Correct comments regarding bfd_read.
2506 (ieee_object_p): Similarly.
2507 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2508 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2509 input_bfd, output_bfd, output_buffer.
2510 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2511 do_with_relocs, ie. as a symbol for relocatable files.
2512 (ieee_vec): Add comments showing functions referenced by macros.
2514 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2516 * aout-tic30.c: Add missing prototypes. Fix formatting.
2517 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2518 * peXXigen.c: Add missining prototypes. Fix formatting.
2519 * aout-adobe.c: Add missining prototypes. Fix formatting.
2521 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2523 * elf32-v850.c: Add missing function prototypes.
2524 Fix some formatting.
2526 * cpu-v850.c: Add missing function prototype.
2527 Fix some formatting.
2529 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2531 * elf-bfd.h (struct elf_backend_data): Add new fields
2532 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2533 (bfd_elf_sprintf_vma): Rename function prototype to
2534 '_bfd_elf_sprintf_vma'.
2535 (bfd_elf_fprintf_vma): Rename function prototype to
2536 '_bfd_elf_fprintf_vma'.
2537 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2538 directly, instead indirect via the elf_backend_data structure.
2539 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2540 instead indirect via the elf_backend_data structure.
2541 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2542 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2543 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2545 (elf_backend_fprintf_vma): Initialise if not already defined.
2546 (struct elf_backend_data): Initialise the
2547 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2549 2001-08-10 Andreas Jaeger <aj@suse.de>
2551 * elf64-sparc.c: Add missing prototypes.
2552 * elf32-cris.c: Likewise.
2553 * elf32-i370.c: Likewise.
2554 * elf64-hppa.c: Likewise.
2555 * elf64-s390.c: Likewise.
2557 2001-08-10 Andreas Jaeger <aj@suse.de>
2559 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2560 Add prototypes where needed.
2562 2001-08-10 H.J. Lu <hjl@gnu.org>
2564 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2565 (bfd_fprintf_vma): Likewise.
2567 2001-08-10 H.J. Lu <hjl@gnu.org>
2569 * bfd.c (bfd_sprintf_vma): Don't return void.
2570 (bfd_fprintf_vma): Likewise.
2572 2001-08-10 Andreas Jaeger <aj@suse.de>
2574 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2576 * configure: Regenerate.
2578 2001-08-10 Alan Modra <amodra@bigpond.net.au>
2580 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2581 warning if not BFD64. Add braces so emacs auto format works.
2582 (bfd_elf_fprintf_vma): Likewise.
2584 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2586 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2587 param to agree with libxcoff.h.
2588 (xcoff_swap_ldhdr_out): Likewise.
2589 (xcoff_swap_ldsym_in): Likewise.
2590 (xcoff_swap_ldsym_out): Likewise.
2591 (xcoff_swap_ldrel_in): Likewise.
2592 (xcoff_swap_ldrel_out): Likewise.
2593 (xcoff_create_csect_from_smclas): Likewise.
2594 * coff64-rs6000.c: Add missing prototypes.
2595 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2597 (xcoff64_swap_ldhdr_out): Likewise.
2598 (xcoff64_swap_ldsym_in): Likewise.
2599 (xcoff64_swap_ldsym_out): Likewise.
2600 (xcoff64_swap_ldrel_in): Likewise.
2601 (xcoff64_swap_ldrel_out): Likewise.
2602 (xcoff64_ppc_relocate_section): Make static.
2603 (xcoff64_slurp_armap): Likewise.
2604 (xcoff64_archive_p): Likewise.
2605 (xcoff64_openr_next_archived_file): Likewise.
2606 (xcoff64_sizeof_headers): Likewise.
2607 (xcoff64_is_lineno_count_overflow): Likewise.
2608 (xcoff64_is_reloc_count_overflow): Likewise.
2609 (xcoff64_loader_symbol_offset): Likewise.
2610 (xcoff64_loader_reloc_offset): Likewise.
2611 * elf64-gen.c: Add missing prototypes.
2613 2001-08-09 H.J. Lu <hjl@gnu.org>
2615 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2616 (bfd_elf_fprintf_vma): Likewise.
2618 2001-08-09 H.J. Lu <hjl@gnu.org>
2620 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2623 * bfd-in2.h: Regenerated.
2625 2001-08-09 H.J. Lu <hjl@gnu.org>
2627 * bfd-in.h (bfd_sprintf_vma): New prototype.
2628 (bfd_fprintf_vma): Likewise.
2629 (bfd_elf_sprintf_vma): Likewise.
2630 (bfd_elf_fprintf_vma): Likewise.
2631 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2632 * bfd-in2.h: Regenerated.
2634 * bfd.c (bfd_sprintf_vma): New. Defined.
2635 (bfd_fprintf_vma): Likewise.
2637 * elf.c (bfd_elf_sprintf_vma): New. Defined.
2638 (bfd_elf_fprintf_vma): Likewise.
2640 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2642 * coff-rs6000.c: Add missing prototypes.
2643 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
2644 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
2645 xcoff_loader_reloc_offset): Make static.
2646 * dwarf1.c: Add missing prototypes.
2647 * dwarf2.c: Add missing prototypes.
2648 (struct abbrev_info): Move definition.
2649 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
2650 * elf.c: Add missing prototypes.
2651 * elf32-gen.c: Likewise.
2652 * elf32-i386.c: Likewise.
2653 * elf32-ppc.c: Likewise.
2654 (ppc_elf_sort_rela): Use PTR instead of "void *".
2655 * elflink.h: Add missing prototypes. Formatting fixes.
2656 * merge.c: Add missing prototypes.
2657 (last4_eq): Use PTR instead of "void *".
2658 (last_eq): Likewise.
2659 * syms.c: Add missing prototypes.
2661 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2663 * bfd.c: Fix formatting.
2664 * bfd-in2.h: Regenerate.
2666 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2668 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
2669 true (this target uses REL relocations) and 'pcrel_offset' to
2670 false (the PC is implied, not stored in the offset).
2672 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2674 1999-10-19 Linus Nordberg <linus@swox.se>
2675 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
2676 * elfxx-target.h (elf_backend_want_got_sym): Define.
2677 (elfNN_bed): Add elf_backend_want_got_sym.
2678 * elflink.c (_bfd_elf_create_got_section): Define
2679 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2681 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
2683 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
2684 (find_rela_addend): New function.
2685 (parse_comp_unit): Call it to find the abbrev offset addend.
2686 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
2687 members of dwarf2_debug as debugging information is read.
2689 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
2691 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
2692 targets as well as sh-pe.
2694 2001-08-03 Ben Harris <bjh21@netbsd.org>
2696 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
2697 reloc from start of section when computing value for R_ARM_REL32
2700 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2702 From H.J. Lu <hjl@gnu.org>
2703 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
2704 keep relocs for undefined syms if there are no dynamic sections in
2706 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
2708 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2710 * cofflink.c (coff_link_check_ar_symbols): also search for
2711 __imp__symbol as well as _symbol.
2712 * linker.c (_bfd_generic_link_add_archive_symbols): also
2713 search for __imp__symbol as well as _symbol.
2715 2001-08-01 Adam Nemet <anemet@lnxw.com>
2717 * elf.c (elf_sort_sections): Return zero only as the last step.
2719 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
2721 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
2723 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
2724 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
2727 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2729 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
2730 to match corresponding bfd_coff_backend data member.
2732 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2734 * Makefile.am: Update dependencies with "make dep-am".
2735 * Makefile.in: Regenerate
2737 2001-07-15 H.J. Lu <hjl@gnu.org>
2739 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
2740 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
2741 * Makefile.in: Regenerate.
2743 2001-07-11 H.J. Lu <hjl@gnu.org>
2745 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
2746 flags when creating the reloc section if the ALLOC flag in the
2747 source section is set.
2749 2001-07-11 Steve Ellcey <sje@cup.hp.com>
2751 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
2752 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
2753 * bfd-in2.h: Regenerate.
2754 * libbfd.h: Regenerate.
2755 * elfxx-ia64.c (ia64_howto_table): Define how to handle
2757 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
2758 (elfNN_ia64_check_relocs): Likewise.
2759 (elfNN_ia64_install_value): Likewise.
2760 (elfNN_ia64_relocate_section): Likewise.
2762 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2764 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
2766 (elf32_sparc_check_relocs): Likewise.
2767 Only create .rela section for alloced sections in shared libraries.
2768 (elf32_sparc_relocate_section): Likewise.
2769 Remove redundant check.
2770 Optimize unaligned reloc usage.
2771 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
2774 2001-07-11 H.J. Lu <hjl@gnu.org>
2776 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
2777 ALLOC|LOAD flags as the source section for debugging sections
2778 when creating the reloc section.
2780 2001-07-05 Jim Wilson <wilson@redhat.com>
2782 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2783 the section of the bigger symbol.
2785 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2787 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2789 * peicode.h (coff_swap_scnhdr_in): For sections containing
2790 uninitialised data, only set their size to s_paddr if this does
2791 not reset their size to zero. MS's latest compilers will set
2794 2001-07-04 H.J. Lu <hjl@gnu.org>
2796 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2797 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2800 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
2802 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
2804 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
2805 sections being discarded.
2807 2001-06-30 Alan Modra <amodra@bigpond.net.au>
2809 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
2810 instead of _bfd_elfcore_section_from_phdr.
2811 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
2812 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
2813 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
2814 (elfcore_grok_prstatus): Likewise.
2815 (elfcore_grok_lwpstatus): Likewise.
2816 (bfd_get_elf_phdr_upper_bound): Likewise.
2817 (elfcore_make_note_pseudosection): Formatting.
2818 (_bfd_elfcore_strndup): Formatting.
2819 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
2820 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
2822 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
2824 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
2825 and _bfd_elfcore_strndup.
2826 (struct elf_backend_data): Add elf_backend_grok_prstatus
2827 and elf_backend_grok_psinfo.
2828 * elf.c (_bfd_elfcore_make_pseudosection): New function.
2829 (elfcore_grok_prstatus): Use it.
2830 (elfcore_make_note_pseudosection): Likewise.
2831 (elfcore_strndup): Rename to...
2832 (_bfd_elfcore_strndup): Here, and make global.
2833 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
2834 (elfcore_grok_note): Call elf_backend_grok_prstatus
2835 and elf_backend_grok_psinfo if available.
2836 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
2837 (_bfd_elf32_mips_grok_psinfo): New function.
2838 (elf_backend_grok_prstatus): Define.
2839 (elf_backend_grok_psinfo): Define.
2840 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
2841 (elf_backend_grok_psinfo): Likewise.
2842 (elfNN_bed): Include elf_backend_grok_prstatus and
2843 elf_backend_grok_psinfo.
2845 2001-06-29 H.J. Lu <hjl@gnu.org>
2847 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2848 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2849 is NULL before filling PLT.
2851 2001-06-29 Alan Modra <amodra@bigpond.net.au>
2853 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2855 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2857 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2859 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2860 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2863 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2864 (IS_ABSOLUTE_RELOC): Define.
2865 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2866 (hppa_link_hash_newfunc): Always init it.
2867 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2868 create COPY relocs only when the reloc is in a read-only section.
2869 Instead, allocate space for a dynamic reloc to reference the
2870 library symbol directly. Keep track of space we allocate using
2872 (hppa_discard_copies): Delete, and move code to..
2873 (allocate_plt_and_got): ..here. Rename to
2874 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2875 relocs for non-shared link.
2876 (elf32_hppa_size_dynamic_sections): Update calls to above.
2877 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2878 in lieu of COPY relocs.
2880 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2882 (elf_i386_adjust_dynamic_symbol): ..nor here..
2883 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2885 (elf_i386_size_dynamic_sections): Fix a comment.
2886 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2887 involved in writing reloc out.
2889 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2891 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2892 Ensure syms are dynamic if we might be emitting a reloc.
2893 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2894 for undefweak or undefined syms..
2895 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2897 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2898 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2899 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2900 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2902 2001-06-24 H.J. Lu <hjl@gnu.org>
2904 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2905 strncasecmp/strcasecmp instead of strncmp/strcmp.
2907 2001-06-23 H.J. Lu <hjl@gnu.org>
2909 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2910 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2911 in the regular object file and treat the weak definition as
2914 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2916 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2917 unresolved_reloc test to exclude cases where we use "relocation"
2918 before setting it to point into the .got. Reinstate fudge for
2919 unresolved relocs in debugging sections.
2921 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2922 complicated tests for unresolvable relocs with a simple direct
2923 scheme using "unresolved_reloc" var.
2925 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2926 elf_i386_dyn_relocs. Update comment.
2927 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2929 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2931 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2933 (elf_i386_size_dynamic_sections): Likewise.
2934 (elf_i386_finish_dynamic_symbol): Likewise.
2935 (elf_i386_finish_dynamic_sections): Likewise.
2936 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2939 Avoid creating COPY relocs if possible.
2940 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2941 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2942 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2943 reloc is in a read-only section. Instead, allocate space for a
2944 dynamic reloc to reference the library symbol directly. Keep
2945 track of space we allocate using pcrel_relocs_copied.
2946 (discard_copies): Delete, and move code to ..
2947 (allocate_plt_and_got): ..here. Rename to
2948 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2949 relocs for non-shared link.
2950 (elf_i386_size_dynamic_sections): Update calls to above functions.
2951 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2952 more ugly logic to avoid "unresolvable relocation" error. Use
2953 htab shortcut in place of elf_hash_table macro.
2954 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2955 not always be created now.
2957 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2959 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2962 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2964 * configure.host (mips64-*-linux): Reformat.
2966 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2968 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2969 allocate local .got space. Use shortcuts from hash table for .got
2970 and .plt rather than comparing section names.
2971 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2972 adjusting index into local_got_refcounts to document what we are
2974 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2975 Tidy .got and .plt error checking.
2977 2001-06-20 Catherine Moore <clm@redhat.com>
2979 * elf-bfd.h (struct elf_backend_data):
2980 elf_backend_emit_relocs: New field: Function for emitting
2982 elf_backend_count_relocs: New field: Function for determining
2983 the number of relocs to be emitted.
2984 * elfxx-target.h: Provide default (NULL) values for
2985 elf_backend_emit_relocs and elf_backend_count_relocs.
2986 * elflink.h (elf_link_size_reloc_section): Make the hash table
2987 big enough to hold the relocs counted by either reloc_count or
2989 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2990 should be emitted, either because of a command line option
2991 stored in the info structure or because the target provides a
2992 special reloc emitting function.
2993 If the target provides a reloc counting function use it,
2994 unless performing a relocatable link or emitting all relocs.
2995 Also set the SEC_RELOC flag on any output section which will
2997 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2998 should be emitted, either because of a command line option
2999 stored in the info structure or because the target provides a
3000 special reloc emitting function.
3001 If the target provides a reloc emitting function, use it,
3002 unless performing a relocatable link or emitting all relocs.
3004 2001-06-20 H.J. Lu <hjl@gnu.org>
3006 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
3007 allocate local .got space.
3009 2001-06-19 Andreas Jaeger <aj@suse.de>
3011 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
3014 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3016 * elflink.h (struct elf_assign_sym_version_info): Remove member
3017 export_dynamic. All users changed to use info member.
3018 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
3019 export_dynamic, instead use member in parameter info.
3020 * bfd-in.h (bfd_elf32_size_dynamic_sections,
3021 bfd_elf64_size_dynamic_sections): Update prototype.
3022 * bfd-in2.h: Regenerate.
3024 2001-06-18 H.J. Lu <hjl@gnu.org>
3026 * elflink.h (elf_info_failed): Add a new field, verdefs.
3027 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
3029 (elf_export_symbol): Check eif->verdefs to decide if a symbol
3032 2001-06-17 H.J. Lu <hjl@gnu.org>
3034 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
3035 readonly_reloc, to record if a relocation in the .rel.dyn
3036 section is against a read-only section.
3037 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
3039 (_bfd_mips_elf_check_relocs): Record if there is a relocation
3040 in the .rel.dyn section against a read-only section by setting
3041 DF_TEXTREL or readonly_reloc.
3042 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
3044 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
3045 there is a relocation in the .rel.dyn section against a
3047 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
3050 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3052 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
3053 function. Move flagword result into parameter list. Remove
3054 comment about setting bfd_error_handler to intercept failure
3056 * coffgen.c (make_a_section_from_file): Examine result of
3057 calling bfd_coff_styp_to_sec_flags and pass a failure back to
3059 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
3060 function. Move flagword result into parameter list.
3061 * libcoff.h: Regenerate.
3062 * libecoff.h: Regenerate.
3064 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
3066 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
3067 section is going to follow it.
3069 2001-06-12 Catherine Moore <clm@redhat.com>
3071 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
3072 with the file_align entry from elf_backend_data.
3073 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3074 (elf_gc_record_vtentry): Likewise.
3076 2001-06-10 Alan Modra <amodra@bigpond.net.au>
3078 * elflink.h: Whitespace changes.
3079 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
3080 rather than "unsigned char".
3081 (elf_link_output_relocs): Likewise.
3082 (elf_link_input_bfd): Likewise.
3083 (elf_reloc_link_order): LIkewise.
3084 * elf.c: s/CONST/const/. Whitespace changes.
3085 * elf32-mips.c: Formatting fix.
3087 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
3088 * Makefile.in: Regenerate.
3089 * po/Make-in: Remove trailing tab.
3091 2001-06-09 Philip Blundell <philb@gnu.org>
3093 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
3095 (elf32_arm_plt_entry): Likewise.
3097 2001-06-08 H.J. Lu <hjl@gnu.org>
3099 * elf.c (swap_out_syms): Keep names for global section symbols.
3101 2001-06-07 H.J. Lu <hjl@gnu.org>
3103 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
3104 MIPS-based machines need it.
3106 2001-06-07 H.J. Lu <hjl@gnu.org>
3108 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
3111 * config.bfd: Remove ecoff from Linux/mips.
3113 2001-06-07 Andreas Jaeger <aj@suse.de>
3115 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
3117 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
3118 alignment of 8 for .rela sections; handle further relocations.
3120 2001-06-06 Christian Groessler <cpg@aladdin.de>
3122 * coff-z8k.c: Fix formatting.
3123 Fix howtos: howto->size was always 1.
3125 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3127 * configure.host (mips64*-*-linux*): Define.
3129 2001-06-05 Alan Modra <amodra@bigpond.net.au>
3131 * elf32-i386.c (elf_i386_discard_copies): Rename to
3132 discard_copies, and use elf_link_hash_entry arg rather than
3133 elf_i386_link_hash_entry.
3134 (elf_i386_link_hash_traverse): Delete.
3135 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
3136 Tidy sizing of dynamic sections.
3137 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
3138 possible .plt entries.
3139 (elf_i386_gc_sweep_hook): Likewise.
3140 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
3141 everything with plt.refcount <= 0.
3143 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
3145 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
3146 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
3148 (allocate_plt_and_got): ..instead do it all here. New function.
3149 (elf_i386_size_dynamic_sections): Allocate local .got space and
3150 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
3151 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
3152 rather than gc variety).
3153 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3154 (elf_i386_relocate_section): Use it here and correct handling of
3155 R_386_GOT32. Provide section and offset for "unresolvable
3156 relocation" error message.
3157 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
3159 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
3160 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
3161 (elf_i386_link_hash_table_create): Init them.
3162 (create_got_section): New function.
3163 (elf_i386_create_dynamic_sections): New function.
3164 (elf_backend_create_dynamic_sections): Set to above.
3165 (elf_i386_check_relocs): Use shortcuts from hash table rather than
3166 calling bfd_get_section_by_name.
3167 (elf_i386_gc_sweep_hook): Likewise.
3168 (elf_i386_adjust_dynamic_symbol): Likewise.
3169 (elf_i386_size_dynamic_sections): Likewise.
3170 (elf_i386_relocate_section): Likewise.
3171 (elf_i386_finish_dynamic_sections): Likewise.
3173 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
3175 2001-06-02 H.J. Lu <hjl@gnu.org>
3177 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
3179 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
3181 2001-06-02 H.J. Lu <hjl@gnu.org>
3183 * aout-cris.c (MACHTYPE_OK): New. Defined.
3185 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
3187 * section.c (_bfd_strip_section_from_output): Handle NULL
3190 2001-06-02 H.J. Lu <hjl@gnu.org>
3192 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
3193 rs6000coff64_vec only if BFD64 is defined.
3194 (powerpc64-*-aix*): Enable only if BFD64 is defined.
3196 2001-06-02 H.J. Lu <hjl@gnu.org>
3198 * coff-ia64.c (ia64coff_object_p): Rewrite with
3199 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
3201 2001-06-01 Andreas Jaeger <aj@suse.de>
3203 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
3204 relocation, small reformatting.
3206 2001-05-29 Andreas Jaeger <aj@suse.de>
3208 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
3209 (elf64_x86_64_relocate_section): Likewise.
3211 2001-05-30 Alan Modra <amodra@one.net.au>
3213 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
3214 millicode. Don't allocate .got and .rela.got space here..
3215 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
3216 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
3218 (hppa_handle_PIC_calls): ..nor here..
3219 (allocate_plt_and_got): ..instead do it all here. New function.
3220 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
3221 call allocate_plt_and_got. No need to zap .got if not dynamic.
3222 (elf32_hppa_final_link): Call regular bfd_final_link instead of
3223 gc_common_final_link.
3224 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3225 (elf32_hppa_relocate_section): Use it here.
3226 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
3227 dynamic_sections_created.
3228 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
3230 2001-05-28 Andreas Jaeger <aj@suse.de>
3232 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
3233 generic version since we want a hashsize of 4.
3234 (elf_backend_size_info): Likewise.
3236 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3238 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
3240 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
3241 (elf_link_input_bfd): Likewise.
3242 (elf_reloc_link_order): Likewise.
3243 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
3244 relocations correctly.
3246 2001-05-28 Nicolas Pitre <nico@cam.org>
3248 * elf32-arm.h: fix PLT generation for big endian ARM
3250 2001-05-28 Alan Modra <amodra@one.net.au>
3252 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
3253 for symbols forced local that need plabels.
3254 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
3255 .plt.rela for local syms if non-shared.
3256 (hppa_build_one_stub): Mask lsb of plt.offset.
3257 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
3258 (clobber_millicode_symbols): Correct comment.
3259 (elf32_hppa_relocate_section): Likewise.
3260 (elf32_hppa_finish_dynamic_symbol): Likewise.
3262 2001-05-28 Jeff Sturm <jsturm@one-point.com>
3264 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
3265 * bfd-in2.h: Regenerate.
3266 * libbfd.h: Regenerate.
3267 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
3268 and BFD_RELOC_SPARC_UA64 mapping
3269 * elf64-sparc.c: Likewise.
3271 2001-05-25 H.J. Lu <hjl@gnu.org>
3273 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
3274 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
3275 (coff-rs6000.lo): Remove the old dependency.
3276 * Makefile.in: Rebuild.
3278 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
3281 2001-05-25 H.J. Lu <hjl@gnu.org>
3283 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
3284 rs6000coff_core_file_matches_executable_p,
3285 rs6000coff_core_file_failing_command and
3286 rs6000coff_core_file_failing_signal only if AIX_CORE is
3288 (pmac_xcoff_vec): Likewise.
3289 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
3291 2001-05-25 Timothy Wall <twall@redhat.com>
3293 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
3294 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
3296 2001-05-25 H.J. Lu <hjl@gnu.org>
3298 * bfd-in2.h: Regenerated.
3299 * libcoff.h: Likewise.
3301 2001-05-25 Alan Modra <amodra@one.net.au>
3303 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
3304 undefined millicode syms in shared libs.
3305 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
3306 (elf32_hppa_check_relocs): Likewise.
3307 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3308 (elf32_hppa_size_dynamic_sections): Likewise.
3309 (elf32_hppa_relocate_section): Likewise.
3310 (elf32_hppa_finish_dynamic_symbol): Likewise.
3311 (elf32_hppa_finish_dynamic_sections): Likewise.
3313 2001-05-24 Tom Rix <trix@redhat.com>
3315 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
3316 xcoff-target.h not used to define rs6000 or ppc bfd.
3319 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
3322 * coff-rs6000.c : Many changes for 64 bit support. Move common
3323 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
3326 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
3327 linker now supported. Explictly define the rs6000coff64_vec.
3329 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
3330 (coff_print_aux) same
3331 (coff_write_object_contents) same
3332 (coff_slurp_line_table) same
3334 * coffgen.c : (coff_fix_symbol_name) formatting
3335 (coff_mangle_symbols) xcoff 64 bit support
3336 (coff_write_symbol) same
3337 (coff_write_alien_symbol) same
3338 (coff_write_native_symbol) same
3339 (coff_write_symbols) same
3340 (coff_get_symbol_info) same
3341 (bfd_coff_get_syment) same
3342 (coff_print_symbol) same
3344 * config.bfd : add powerpc64-*-aix* target
3346 * libcoff-in.h : formatting
3348 * libcoff.h : move xcoff extern declarations to libxcoff.h
3350 * libxcoff.h : New file
3352 * xcofflink.c : Many changes for xcoff64 support. Move common
3353 structures to include/coff/xcoff.h. Move specific structure to
3354 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
3355 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
3357 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
3360 (xcoff_build_ldsyms) : handle special __rtinit symbol.
3362 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3364 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
3367 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3369 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
3370 * libbfd.h: Regenerate.
3371 * bfd-in2.h: Regenerate.
3373 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
3374 * archures.c (bfd_mach_mips12000): Define.
3375 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
3376 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
3378 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
3379 * bfd-in2.h: Regenerate.
3380 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
3382 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
3384 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
3385 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
3386 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
3387 that is used by GCC.
3389 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3391 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
3392 of entries in a structured section.
3393 * elf.c: Use new macro.
3394 * elf32-i386.c: Use new macro.
3395 * elf32-mips.c: Use new macro.
3396 * elf64-alpha.c: Use new macro.
3397 * elf64-sparc.c: Use new macro.
3398 * elfcode.h: Use new macro.
3399 * elflink.h: Use new macro.
3401 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3403 * bfdint.texi: Replace -oformat with --oformat.
3405 2001-05-21 Andreas Jaeger <aj@suse.de>
3407 * dwarf2.c (decode_line_info): Fix error message.
3408 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
3409 adjust error message.
3411 2001-05-18 H.J. Lu <hjl@gnu.org>
3413 * elflink.h (elf_link_add_object_symbols): Revert the last
3416 2001-05-17 Alan Modra <amodra@one.net.au>
3418 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
3419 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
3420 (hppa_build_one_stub): Add an assert to check plt.offset.
3422 2001-05-17 H.J. Lu <hjl@gnu.org>
3424 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
3425 version definition to basename of the output filename.
3427 2001-05-17 H.J. Lu <hjl@gnu.org>
3429 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
3430 basename of the bfd filename.
3432 2001-05-16 Alan Modra <amodra@one.net.au>
3434 * section.c (asection): Add linker_has_input field.
3435 (STD_SECTION): Adjust initialization to suit.
3436 * ecoff.c (bfd_debug_section): Likewise.
3437 * bfd-in2.h: Regenerate.
3439 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
3441 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3442 negative 32-bit operands to 16 operands when the operand is
3443 going to be zero-extended by the modified opcode.
3445 2001-05-12 Peter Targett <peter.targett@arccores.com>
3447 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3448 name for 'arc5' core versions.
3449 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3451 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3453 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3455 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3457 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3459 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3460 to .gnu.linkonce.t.FOO text section.
3462 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3464 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3465 fields, change sec into secinfo.
3466 (struct sec_merge_info): Add chain, remove last fields.
3467 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3468 (sec_merge_hash_lookup): If lookup could not use a string only
3469 because it has bad alignment, mark the old string for deletion.
3470 (sec_merge_add): Add secinfo argument. Don't compute entry's
3471 position, instead record the section.
3472 (sec_merge_emit): Update for the sec into secinfo change in
3473 struct sec_merge_hash_entry.
3474 (_bfd_merge_section): Only record the section for merging, defer
3475 putting strings into the hash table.
3476 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3477 _bfd_merge_sections): New functions.
3478 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3480 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3481 (_bfd_nolink_bfd_merge_sections): Define.
3482 * libbfd.h: Likewise.
3483 (bfd_generic_merge_sections): Add prototype.
3484 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3485 (struct bfd_target): Likewise.
3486 * bfd.c (bfd_merge_sections): Define.
3487 * bfd-in2.h: Rebuilt.
3488 * elf.c (_bfd_elf_merge_sections): New function.
3489 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3490 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3491 * reloc.c (bfd_generic_merge_sections): New function.
3492 * vms.c (vms_bfd_merge_sections): New function.
3493 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3494 * aout-target.h (MY_bfd_merge_sections): Define.
3495 * aout-tic30.c (MY_bfd_merge_sections): Define.
3496 * binary.c (binary_bfd_merge_sections): Define.
3497 * bout.c (b_out_bfd_merge_sections): Define.
3498 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3499 * coffcode.c (coff_bfd_merge_sections): Define.
3500 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3501 * i386msdos.c (msdos_bfd_merge_sections): Define.
3502 * i386os9k.c (os9k_bfd_merge_sections): Define.
3503 * ieee.c (ieee_bfd_merge_sections): Define.
3504 * ihex.c (ihex_bfd_merge_sections): Define.
3505 * nlm-target.h (nlm_bfd_merge_sections): Define.
3506 * oasys.c (oasys_bfd_merge_sections): Define.
3507 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3508 * som.c (som_bfd_merge_sections): Define.
3509 * srec.c (srec_bfd_merge_sections): Define.
3510 * tekhex.c (tekhex_bfd_merge_sections): Define.
3511 * versados.c (versados_bfd_merge_sections): Define.
3512 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3514 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3516 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3517 to be unsigned long, in order to match its use.
3519 2001-05-10 H.J. Lu <hjl@gnu.org>
3521 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3524 2001-05-09 H.J. Lu <hjl@gnu.org>
3526 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3527 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3528 Remove the unused veriable `dynver'.
3530 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3532 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3533 NULL or is not COFF.
3534 (coff_i386_rtype_to_howto): Don't dump core if output section
3537 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3539 * ecoff.c (bfd_debug_section): Fix initialization.
3540 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3541 is always a positive integer. Cast away sign mismatch.
3542 * elf32-mips.c: Fix misleading comment and typo.
3543 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3545 * elflink.c: Fix typo.
3546 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3547 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3549 2001-05-04 Richard Henderson <rth@redhat.com>
3551 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3553 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3555 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3556 EF_ARM_HASENTRY if the start address is set.
3558 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3560 * targets.c (_bfd_target_vector_entries): Compute value based on
3561 the size of the _bfd_target_vector and not bfd_target_vector.
3563 2001-05-03 H.J. Lu <hjl@gnu.org>
3565 * elfcode.h: Include "libiberty.h".
3567 * elflink.h (elf_link_add_object_symbols): Set
3568 elf_dt_name (abfd) to basename of the bfd filename.
3569 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3570 of the bfd filename.
3572 2001-05-03 Andreas Jaeger <aj@suse.de>
3574 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3575 (elf_generic_info_to_howto_rel): Likewise.
3576 * coff-alpha.c (reloc_nil): Likewise.
3577 (alpha_ecoff_bad_format_hook): Likewise.
3578 (alpha_adjust_reloc_out): Likewise.
3579 (alpha_bfd_reloc_type_lookup): Likewise.
3580 (alpha_convert_external_reloc): Likewise.
3581 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3582 (elf64_alpha_reloc_bad): Likewise.
3583 (elf64_alpha_reloc_gpdisp): Likewise.
3584 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3585 (elf64_alpha_info_to_howto): Likewise.
3586 (elf64_alpha_add_symbol_hook): Likewise.
3587 (elf64_alpha_create_got_section): Likewise.
3588 (elf64_alpha_is_local_label_name): Likewise.
3589 (elf64_alpha_merge_ind_symbols): Likewise.
3590 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3591 (mips_elf64_get_reloc_upper_bound): Likewise.
3592 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3593 (nlm_alpha_get_public_offset): Likewise.
3595 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3597 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3598 about overflow in R_OPENRISC_LO_16_IN_INSN and
3599 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3601 2001-04-30 H.J. Lu <hjl@gnu.org>
3603 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3604 only for ELF_LINK_FORCED_LOCAL.
3605 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3606 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3607 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3609 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3610 if the symbol has hidden or internal visibility.
3612 2001-04-30 Alan Modra <amodra@one.net.au>
3614 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3615 calls to undefined weak symbols.
3617 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3619 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3620 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3622 2001-04-27 Andreas Jaeger <aj@suse.de>
3624 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3625 out handled entries.
3626 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3627 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3628 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3631 2001-04-27 Sean McNeil <sean@mcneil.com>
3633 * config.bfd: Add arm-vxworks target.
3634 * coff-arm (coff_arm_relocate_section): Add in symbol value to
3635 addend (fro VXworks targets).
3637 2001-04-26 H.J. Lu <hjl@gnu.org>
3639 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
3642 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3644 * bfd-in.h (bfd_cache_close): Declare newly exported function.
3645 * bfd-in2.h: Regenerated.
3647 2001-04-24 Jakub Jelinek <jakub@redhat.com>
3649 * merge.c (struct sec_merge_hash_entry): Add alignment field.
3650 (struct sec_merge_hash): Remove alignment_power.
3651 (sec_merge_hash_newfunc): Clear alignment.
3652 (sec_merge_hash_lookup): Pass alignment as argument.
3653 Use hashp->root.next, not hashp->next to walk the hash chain.
3654 If a string already in the hashtable does not have required
3655 alignment, create a new hashtable entry.
3656 (sec_merge_init): Remove alignment_power argument.
3657 (sec_merge_add): Add alignment argument.
3658 (sec_merge_emit): Alignment is now a per-entity thing, not per
3660 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
3661 for proper alignment.
3662 Pass alignment information to sec_merge_add.
3664 2001-04-24 Christian Groessler <cpg@aladdin.de>
3666 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
3667 and R_REL16 reloc types; accept odd values for R_REL16 type
3669 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
3671 * cpu-openrisc.c: New file.
3672 * elf32-openrisc.c: Likewise.
3674 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
3675 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
3676 (BFD32_BACKENDS): Add elf32-openrisc.lo.
3677 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
3678 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
3679 * Makefile.in: Regenerated.
3680 * config.bfd: (openrisc-*-elf): New target.
3681 * configure.in (bfd_elf32_openrisc_vec): New vector.
3682 * configure: Regenerated.
3683 * libbfd.h: Regenerated.
3684 * bfd-in2.h: Regenerated.
3685 * reloc.c: Add OpenRISC relocations.
3686 * targets.c (bfd_elf32_openrisc_vec): Declare.
3687 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
3688 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
3689 (bfd_openrisc_arch): Declare.
3690 (bfd_archures_list): Add bfd_openrisc_arch.
3691 * elf.c (prep_headers): Add bfd_arch_openrisc.
3693 2001-04-23 Bo Thorsen <bo@suse.de>
3695 * elf64-x86-64.c: Add c++ vtable hack.
3696 Small whitespace and comment changes.
3698 2001-04-19 Andreas Jaeger <aj@suse.de>
3700 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
3701 (elf64_x86_64_plt_entry): Likewise.
3702 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
3703 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
3705 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
3707 * elf32-cris.c: Tweak comments related to dynamic linking.
3708 (cris_elf_relocate_section): When not creating shared object, fill
3709 in the .got table for any symbol not in the dynamic symbol table.
3710 (elf_cris_finish_dynamic_symbol): When not creating shared object,
3711 only emit a .got.rela reloc if the symbol is in the dynamic symbol
3713 (cris_elf_check_relocs): Use variable r_type in all places rather
3714 than the original expression. Add default case in switch for
3716 (elf_cris_size_dynamic_sections): Iterate over
3717 elf_cris_discard_excess_program_dynamics when not creating shared
3719 (elf_cris_discard_excess_dso_dynamics): Renamed from
3720 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
3721 (elf_cris_discard_excess_program_dynamics): New.
3723 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
3725 * coffcode.h (coff_write_object_contents): Use
3726 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
3728 2001-04-14 H.J. Lu <hjl@gnu.org>
3730 * bfd-in2.h: Regenerate.
3732 2001-04-14 Jakub Jelinek <jakub@redhat.com>
3734 * section.c (STD_SECTION): Add entsize.
3736 2001-04-13 H.J. Lu <hjl@gnu.org>
3738 * section.c (SEC_MERGE): Define new flag for merging.
3739 (SEC_STRINGS): Likewise.
3740 (entsize): New field.
3742 2001-04-13 Roger Sayle <roger@metaphorics.com>
3744 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
3745 flag on pe-i386 targets.
3747 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3749 * libbfd-in.h (_bfd_merge_section): New.
3750 (_bfd_write_merged_section): New.
3751 (_bfd_merged_section_offset): New.
3752 * libbfd.h: Rebuilt.
3753 * linker.c (_bfd_generic_link_output_symbols): Handle
3755 * aoutx.h (aout_link_write_symbols): Likewise.
3756 * pdp11.c (aout_link_write_symbols): Likewise.
3757 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
3758 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
3760 (elf_link_sec_merge_syms): New.
3761 (elf_link_input_bfd): Call _bfd_merged_section_offset
3762 and _bfd_write_merged_section.
3763 Handle discard_sec_merge.
3764 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
3766 (struct bfd_elf_section_data): Likewise.
3767 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
3768 SEC_STRINGS section flags and entsize from their ELF counterparts.
3769 (_bfd_elf_link_hash_table_init): Initialize merge_info.
3770 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
3771 from their BFD counterparts.
3772 * merge.c: New file.
3773 * Makefile.am: Add strtab.lo.
3774 * Makefile.in: Rebuilt.
3776 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
3778 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
3779 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
3781 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3783 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3784 endian MIPS ELF target.
3785 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3788 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3789 64bit big endian MIPS ELF target.
3790 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3791 endian MIPS ELF target.
3792 * configure: Regenerated.
3794 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3795 little endian targets.
3796 (mips_elf_sym_is_global): Handle traditional targets.
3798 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3799 64bit big endian MIPS ELF target.
3800 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3801 endian MIPS ELF target.
3803 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
3804 and bfd_elf64_tradlittlemips_vec.
3806 2001-04-05 David Mosberger <davidm@hpl.hp.com>
3808 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
3809 ordinary "progbits" section.
3811 2001-04-04 Alan Modra <alan@linuxcare.com.au>
3813 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
3814 when -Bsymbolic causes a symbol to no longer need a .plt entry.
3816 2001-04-03 David Mosberger <davidm@hpl.hp.com>
3818 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
3820 2001-03-30 H.J. Lu <hjl@gnu.org>
3822 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
3823 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
3825 2001-03-26 H.J. Lu <hjl@gnu.org>
3827 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
3828 if there are any relocations for generic ELF.
3829 (bfd_elf32_bfd_link_add_symbols): Defined to
3830 elf32_generic_link_add_symbols.
3831 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
3832 if there are any relocations for generic ELF.
3833 (bfd_elf64_bfd_link_add_symbols): Defined to
3834 elf64_generic_link_add_symbols.
3836 2001-03-23 Nick Clifton <nickc@redhat.com>
3838 * Makefile.am (BUILD_CFILES): New variable: List of C source
3839 files created in build directory.
3840 (BUILD_HFILES): New variable: List of header files created in
3843 (po/POTFILES.in): Replace rule with empty entry.
3844 (po/SRC-POTFILES.in): New rule: Create a list of source files
3845 in the source directory.
3846 (po/BLD-POTFILES.in): New rule: Create a list of source files
3847 in the build directory.
3848 (MOSTLYCLEAN): Do not delete source files created in build
3850 * Makefile.in: Regenerate.
3851 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3853 * configure: Regenerate.
3855 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3857 Add .. to the search path when building bfd.pot.
3858 Delete POTFILES when performing distclean.
3859 Add comment describing why distclean is broken in maintainer mode.
3860 * po/POTFILES.in: Delete.
3861 * po/SRC-POTFILES.in: New file.
3862 * po/BLD-POTFILES.in: New file.
3863 * po/bfd.pot: Regenerate.
3865 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3867 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3868 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3869 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3870 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3871 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3872 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3874 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3875 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3876 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3877 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3878 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3879 New HOWTO members for new relocs.
3880 (cris_reloc_map): Map new relocs.
3881 (ELF_DYNAMIC_INTERPRETER): Define.
3882 (PLT_ENTRY_SIZE): Define.
3883 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3884 elf_cris_pic_plt_entry): New, PLT templates.
3885 (struct elf_cris_pcrel_relocs_copied, struct
3886 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3887 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3888 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3889 positive values. Adjust PCREL relocs to be relative to location
3891 (cris_elf_relocate_section): Handle relocations to dynamic
3892 objects. Handle new relocations. Call error handler when seeing
3893 non-PIC relocation for read-only sections while generating shared
3895 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3897 (bfd_elf32_bfd_link_hash_table_create,
3898 elf_backend_adjust_dynamic_symbol,
3899 elf_backend_size_dynamic_sections,
3900 elf_backend_finish_dynamic_symbol,
3901 elf_backend_finish_dynamic_sections,
3902 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3903 elf_backend_hide_symbol, elf_backend_want_got_plt,
3904 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3905 elf_backend_got_header_size, elf_backend_plt_header_size):
3908 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3909 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3910 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3911 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3912 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3913 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3914 * bfd-in2.h, libbfd.h: Regenerate.
3916 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3918 (_bfd_mips_elf_relocate_section): Give a better error message when
3919 a relocation is not recognized.
3921 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3923 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3924 non-NULL before attempting to dereference.
3926 2001-03-20 H.J. Lu <hjl@gnu.org>
3928 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3929 * configure: Rebuild.
3931 2001-03-20 Andreas Schwab <schwab@suse.de>
3933 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3934 relocation value when resolving a reference from a debugging
3937 2001-03-16 Scott Thomason <SThomaso@hii.com>
3939 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3940 (xcoff64_swap_sym_out): Fix syntax errors.
3942 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3944 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3946 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3948 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3949 (hppa_link_hash_newfunc): Init it.
3950 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3951 section appears to be non-PIC.
3952 (final_link_relocate): Likewise.
3953 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3954 possible candidate function, and set pic_call for those that will
3955 only have a .plt entry for the PIC call stub.
3956 (hppa_handle_PIC_calls): Set maybe_pic_call.
3958 2001-03-12 DJ Delorie <dj@redhat.com>
3960 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3961 R_SH_DIR8WP* relocs if they're against external symbols, else
3962 they're just for relaxing. Validate the reloc values.
3964 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3966 * binary.c (bfd_external_binary_architecture): Declare.
3967 (binary_object_p): If bfd_external_binary_architecture is defined,
3968 set the architecture to this string.
3970 2001-03-11 Philip Blundell <philb@gnu.org>
3972 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3973 entries that could serve as a definition for a weak symbol.
3975 2001-03-08 Nick Clifton <nickc@redhat.com>
3977 * Most files: Update copyright notices using Perl script created
3978 by Kevin Buettner <kevinb@redhat.com>.
3980 2001-03-07 Nick Clifton <nickc@redhat.com>
3982 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3983 prior patch on ! defined OLD_ARM_ABI.
3985 2001-03-07 Andreas Jaeger <aj@suse.de>
3987 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3988 some relocation values.
3990 2001-03-06 Nick Clifton <nickc@redhat.com>
3992 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3993 of offset in BLX(1) instruction.
3994 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3995 offset in BLX(1) instruction.
3998 2001-03-06 Nick Clifton <nickc@redhat.com>
4000 * coff-arm.c (coff_arm_reloc_type_lookup): Add
4001 BFD_RELOC_THUMB_PCREL_BLX.
4003 2001-03-06 Igor Shevlyakov <igor@windriver.com>
4005 * archures.c (bfd_default_scan): Add Coldfire CPUs.
4006 * bfd-in2.h: Regenerate.
4007 * cpu-m68k.c: Add Coldfire CPUs for arch table.
4008 * ieee.c (ieee_write_processor): Set proper id for
4011 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
4013 * configure.in: Add s390 target.
4014 * configure: Regenerate.
4016 2001-02-28 Andreas Jaeger <aj@suse.de>
4018 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
4021 2001-02-28 Philip Blundell <pb@futuretv.com>
4023 * elf32-arm.h: Update mentions of renamed EF_xx constants.
4024 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
4026 2001-02-27 H.J. Lu <hjl@gnu.org>
4028 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
4029 abfd->tdata.aout_data == NULL.
4031 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4033 * elf32-hppa.c: Correct field selector in stub comments.
4034 (clobber_millicode_symbols): Formatting fix.
4036 * configure.in: Bump version to 2.11.90.
4037 * configure: Regenerate.
4038 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
4039 (CFILES): $SOURCE_CFILES + generated C files.
4040 (POTFILES): Include $HFILES not $SOURCE_HFILES.
4042 * Makefile.in: Regenerate.
4043 * doc/Makefile.in: This too.
4045 2001-02-26 Timothy Wall <twall@cygnus.com>
4047 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
4050 2001-02-26 Nick Clifton <nickc@redhat.com>
4052 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
4053 up, replacing multiple if statements with a switch.
4054 (handle_COMDAT): New function.
4056 2001-02-26 H.J. Lu <hjl@gnu.org>
4058 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
4059 a warning for section flags we do not handle instead of
4062 2001-02-26 Andreas Jaeger <aj@suse.de>
4064 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
4066 2001-02-22 Timothy Wall <twall@cygnus.com>
4068 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
4069 * configure.in: Add objects for elf64_ia64_aix vectors.
4070 * configure: Regenerated.
4071 * configure.host: Recognize ia64-*-aix*.
4072 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
4073 for AIX. AIX5 requires most relocations to be dynamic (*all*
4074 binaries are somewhat similar to shared libraries).
4075 * targets.c: Add elf64_ia64_aix vectors.
4077 2001-02-21 David Mosberger <davidm@hpl.hp.com>
4079 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
4080 C8 said "1" instead of "8". Clarify error string for IMM22:
4081 "signed integer" instead of just "integer".
4083 2001-02-20 Andreas Jaeger <aj@suse.de>
4085 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
4086 PLT entries that could serve as a definition for a weak symbol.
4088 2001-02-19 Jakub Jelinek <jakub@redhat.com>
4090 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
4091 entries that could serve as a definition for a weak symbol.
4092 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
4094 2001-02-18 David O'Brien <obrien@FreeBSD>
4096 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
4097 FreeBSD/i386-CURRENT differently until I can figure out the needed
4099 * configure: Regenerate.
4100 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
4101 FreeBSD/PowerPC, and FreeBSD/sparc64.
4103 2001-02-18 lars brinkhoff <lars@nocrew.org>
4105 * Makefile.am: Add PDP-11 a.out target.
4106 * config.bfd: Likewise.
4107 * configure.in: Likewise.
4108 * targets.c: Likewise.
4109 * archures.c: Likewise.
4110 * bfd-in2.h: Likewise. Add PDP-11 relocations.
4111 * libbfd.h: Add PDP-11 relocations.
4112 * reloc.c: Likewise.
4113 * cpu-pdp11.c: New file.
4114 * pdp11.c: New file.
4116 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
4117 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4118 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4119 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
4120 (GET_MAGIC): New macro.
4121 (PUT_MAGIC): Likewise.
4122 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
4124 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
4126 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
4127 multiarch needs it).
4129 2001-02-18 H.J. Lu <hjl@gnu.org>
4131 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
4134 2001-02-18 Kazu Hirata <kazu@hxi.com>
4136 * vms-misc.c: Fix formatting.
4138 2001-02-16 Kazu Hirata <kazu@hxi.com>
4140 * vms.c: Fix formatting.
4142 2001-02-14 H.J. Lu <hjl@gnu.org>
4144 * elf.c (elf_find_function): New function.
4145 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
4146 the file name and function name.
4148 2001-02-14 Nick Clifton <nickc@redhat.com>
4150 * ecoff.c (bfd_debug_section): Update to initialise new fields in
4153 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
4154 (BFD64_BACKENDS): Add pepigen.c
4155 Add rules to create peigen.c and pepigen.c from peXXigen.c.
4157 * Makefile.in: Regenerate.
4158 * configure: Regenerate.
4159 * po/POTFILES.in: Regenerate.
4160 * po/bfd.pot: Regenerate.
4162 2001-02-14 H.J. Lu <hjl@gnu.org>
4164 * libcoff-in.h (pe_tdata): Add members target_subsystem and
4165 force_minimum_alignment.
4167 2001-02-14 Bo Thorsen <bo@suse.de>
4169 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
4170 (elf64_86_64_size_info): Struct added to fix a problem
4171 with the hashtable string entries.
4172 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
4173 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
4174 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
4175 remove the FIXME for this.
4176 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
4177 section. Also removed the FIXME for it.
4178 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
4179 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
4180 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
4182 2001-02-13 Richard Henderson <rth@redhat.com>
4184 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
4185 and not user provided.
4187 2001-02-13 Kazu Hirata <kazu@hxi.com>
4189 * vms.c (vms_print_symbol): Remove unreachable code.
4191 * rs6000-core.c: Fix formatting.
4193 2001-02-13 David Mosberger <davidm@hpl.hp.com>
4195 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
4196 as _bfd_XXi_only_swap_filehdr_out.
4197 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
4198 pe->force_minimum_alignment to TRUE.
4199 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
4200 PEI_TARGET_SUBSYSTEM.
4201 (pe_print_private_bfd_data): Call
4202 _bfd_XX_print_private_bfd_data_common() instead of
4203 _bfd_pe_print_private_bfd_data_common().
4204 (pe_bfd_copy_private_bfd_data): Call
4205 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
4206 _bfd_pe_bfd_copy_private_bfd_data_common().
4207 (coff_bfd_copy_private_section_data): Define as
4208 _bfd_XX_bfd_copy_private_section_data instead of
4209 _bfd_pe_bfd_copy_private_section_data.
4210 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
4211 of a _bfd_pe_get_symbol_info.
4215 * peXXigen.c: Renamed from peigen.c.
4216 (COFF_WITH_XX): Define this macro (will get expanded into
4217 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
4218 compiled as peigen.c or pepigen.c.
4219 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
4220 define the canonical PEP structures and definitions.
4221 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
4222 effect, enforce minimum file and section alignments. If
4223 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
4224 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
4225 so, by default, this is a no-op).
4227 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
4228 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
4229 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
4230 _bfd_pefoo if it's not defined. Use these macros to define
4233 * libcoff.h (pe_tdata): Add members target_subsystem and
4234 force_minimum_alignment.
4236 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
4238 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
4240 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
4243 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
4244 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
4247 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
4248 (BFD64_BACKENDS_CFILES): Mention pepigen.c
4249 (peigen.c): Add rule to generate from peXXigen.c.
4251 (pepigen.lo): List dependencies for pepigen.lo.
4253 2001-02-13 Alan Modra <alan@linuxcare.com.au>
4255 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
4256 $global$ referenced but not defined, set its value here.
4258 2001-02-09 Bo Thorsen <bo@suse.de>
4260 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
4262 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
4264 (elf64_x86_64_relocate_section): Fix formatting.
4265 (elf64_x86_64_relocate_section): Fix addend for relocation of
4266 R_X86_64_(8|16|32|PC8|PC16|PC32).
4268 2001-02-12 Jan Hubicka <jh@suse.cz>
4270 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
4272 2001-02-11 H.J. Lu <hjl@gnu.org>
4274 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
4277 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4279 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
4280 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
4281 relocations against dynsym symbols.
4283 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
4284 the R_MIPS_26 relocation.
4285 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
4286 the R_MIPS_26 relocation.
4287 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
4289 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
4290 the R_MIPS_26 relocation.
4291 (mips_elf64_howto_table_rela): Likewise.
4293 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
4294 member to mark symbols that have non-CALL relocations against
4296 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
4297 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
4299 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
4300 non-CALL relocation against it is encountered.
4301 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
4302 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
4303 no_fn_stub is not set.
4305 * elf32-mips.c (mips_elf_output_extsym): Get the output section
4306 information from the real symbol for indirect ones.
4307 Check no_fn_stub to find out if a symbol has a function stub
4310 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4312 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
4313 * Makefile.in: Regenerate.
4315 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4317 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
4318 true if section name is an unwind table section name.
4319 (elfNN_ia64_additional_program_headers): Count each unwind section
4321 (elfNN_ia64_modify_segment_map): Install one unwind program header
4322 for each unwind separate section. Note: normally the linker
4323 script merges the unwind sections that go into a single segment,
4324 so this still generates at most one unwind program header per
4327 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
4328 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
4329 (elfNN_ia64_fake_sections): Mark sections with names that start
4330 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
4333 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
4334 Use it to make sh_info in unwind section point to the text section
4337 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4339 * Makefile.am: Add linux target for S/390.
4340 * archures.c: Likewise.
4341 * bfd-in2.h: Likewise.
4342 * config.bfd: Likewise.
4343 * configure.in: Likewise.
4345 * libbfd.h: Likewise.
4346 * targets.c: Likewise.
4347 * cpu-s390.c: New file.
4348 * elf32-s390.c: New file.
4349 * elf64-s390.c: New file.
4351 2001-02-09 Nick Clifton <nickc@redhat.com>
4353 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
4354 ImageBase. This has already been done by coff_swap_hdr_in.
4356 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4358 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
4360 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4362 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
4363 (sparc64_elf_relocate_section): Likewise.
4365 2001-02-09 Mark Kettenis <kettenis@gnu.org>
4367 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
4368 similar to R_SPARC_32.
4369 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
4371 2001-02-08 H.J. Lu <hjl@gnu.org>
4373 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
4374 relocation entries for weak definitions when building DSO with
4377 2001-02-08 Richard Henderson <rth@redhat.com>
4379 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
4380 before visibility. Locally defined protected symbols are not
4383 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
4385 * config.bfd: Enable coff64 for rs6000-*. Patch from
4386 <hzoli@austin.ibm.com>.
4388 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
4390 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
4391 found, do not attempt to find dwarf2 info before returning.
4393 2001-02-07 Jakub Jelinek <jakub@redhat.com>
4395 * elflink.h (is_global_symbol_definition): Rename to
4396 is_global_data_symbol_definition and have it reject function
4398 (elf_link_is_defined_archive_symbol): Use renamed function.
4400 2001-02-07 Todd Vierling <tv@wasabisystems.com>
4402 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
4403 * libbfd.h (bfd_target_vector): Likewise.
4404 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
4405 make static; create pointer reference named bfd_target_vector.
4406 (_bfd_target_vector_entries): Calculate this based on the array
4407 typed _bfd_target_vector.
4409 2001-02-06 H.J. Lu <hjl@gnu.org>
4411 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
4412 internal symbols are not dynamic.
4413 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
4415 2001-02-06 Nick Clifton <nickc@redhat.com>
4417 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
4418 that it will not be pulled into the list of files that make up
4420 * Makefile.in: Regenerate.
4421 * po/bfd.pot: Regenerate.
4423 2001-02-06 H.J. Lu <hjl@gnu.org>
4425 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
4427 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
4428 external_PEI_IMAGE_hdr.
4430 2001-02-06 Kazu Hirata <kazu@hxi.com>
4432 * elf-m10200.c: Fix formatting.
4434 2001-02-04 Nick Clifton <nickc@redhat.com>
4436 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
4437 rel, it will be handled later on.
4439 2001-02-02 Fred Fish <fnf@ninemoons.com>
4441 * Makefile.in: Fix typo.
4443 2001-02-01 Kazu Hirata <kazu@hxi.com>
4445 * elf-m10300.c: Fix formatting.
4447 2001-01-30 Alan Modra <alan@linuxcare.com.au>
4449 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4450 (elf_backend_get_symbol_type): Define.
4451 (elf64_hppa_object_p): Set architecture and machine from elf
4454 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4456 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4459 2001-01-26 Richard Henderson <rth@redhat.com>
4461 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4462 for non-default visibility.
4463 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4464 delete ugly macro and replace with pretty function.
4466 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4468 * coff-go32.c: Update copyright.
4469 * coff-stgo32.c: Likewise.
4470 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4471 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4472 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4473 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4475 2001-01-25 Kazu Hirata <kazu@hxi.com>
4477 * bfd-in2.h: Rebuild.
4478 * libbfd.h: Likewise.
4480 2001-01-23 H.J. Lu <hjl@gnu.org>
4482 * bfd-in2.h: Rebuild.
4484 2001-01-23 H.J. Lu <hjl@gnu.org>
4486 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4487 is NULL or PRIV(vms_rec) is outside of the buffer.
4489 2001-01-23 Kazu Hirata <kazu@hxi.com>
4491 * coff64-rs6000.c: Fix formatting.
4492 * coff-arm.c: Likewise.
4493 * coffgen.c: Likewise.
4494 * cofflink.c: Likewise.
4495 * coff-mcore.c: Likewise.
4496 * coff-mips.c: Likewise.
4497 * coff-pmac.c: Likewise.
4498 * coff-ppc.c: Likewise.
4499 * coff-rs6000.c: Likewise.
4500 * elf32.c: Likewise.
4501 * elf32-fr30.c: Likewise.
4502 * elf32-i370.c: Likewise.
4503 * elf32-i860.c: Likewise.
4504 * elf32-m32r.c: Likewise.
4505 * elf32-m68k.c: Likewise.
4506 * elf32-mcore.c: Likewise.
4507 * elf32-ppc.c: Likewise.
4508 * elf32-sh.c: Likewise.
4509 * elf32-v850.c: Likewise.
4510 * elf64-alpha.c: Likewise.
4511 * elf64-sparc.c: Likewise.
4512 * elflink.c: Likewise.
4513 * elflink.h: Likewise.
4514 * elf-m10200.c: Likewise.
4515 * elf-m10300.c: Likewise.
4516 * elfxx-ia64.c: Likewise.
4518 * aoutx.h: Fix formatting.
4520 * bfd-in2.h: Likewise.
4521 * bfd-in.h: Likewise.
4522 * cpu-i386.c: Likewise.
4523 * cpu-m68hc11.c: Likewise.
4524 * dwarf2.c: Likewise.
4525 * elf64-x86-64.c: Likewise.
4526 * format.c: Likewise.
4527 * freebsd.h: Likewise.
4529 * hp300hpux.c: Likewise.
4530 * hppabsd-core.c: Likewise.
4531 * hpux-core.c: Likewise.
4533 2001-01-22 Bo Thorsen <bo@suse.de>
4535 * elf64-x86-64.c: Added PIC support for X86-64.
4536 (elf64_x86_64_link_hash_newfunc): Function added.
4537 (elf64_x86_64_link_hash_table_create): Likewise.
4538 (elf64_x86_64_check_relocs): Likewise.
4539 (elf64_x86_64_gc_mark_hook): Likewise.
4540 (elf64_x86_64_gc_sweep_hook): Likewise.
4541 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4542 (elf64_x86_64_size_dynamic_sections): Likewise.
4543 (elf64_x86_64_discard_copies): Likewise.
4544 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4545 (elf64_x86_64_finish_dynamic_sections): Likewise.
4546 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4548 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4550 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4551 * Makefile.in: Regenerate.
4553 2001-01-21 Kazu Hirata <kazu@hxi.com>
4555 * coff-a29k.c: Fix formatting.
4557 2001-01-19 H.J. Lu <hjl@gnu.org>
4559 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4560 relocation section names.
4561 (elf_i386_relocate_section): Report files with bad relocation
4562 section names and return false.
4564 2001-01-17 Bo Thorsen <bo@suse.de>
4566 * targets.c: Alphabetize list of xvecs.
4568 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4570 * config.bfd: Add linux target variant for elfxx-hppa.
4571 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4572 bfd_elf64_hppa_linux_vec.
4573 * configure: Regenerate.
4574 * elf64-hppa.c: Include elf64-target.h again to support linux
4576 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4577 * elf32-hppa.c: Include elf32-target.h again to support linux
4579 (elf32_hppa_post_process_headers): New function.
4580 (elf_backend_post_process_headers): Define.
4581 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4582 bfd_elf32_hppa_linux_vec.
4584 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4585 and data_segment_base fields.
4586 (elf32_hppa_link_hash_table_create ): Init them.
4587 (elf32_hppa_check_relocs): Update comments.
4588 (hppa_record_segment_addr): New function.
4589 (elf32_hppa_relocate_section): Call it.
4590 (final_link_relocate): Handle R_PARISC_SEGREL32.
4591 (elf32_hppa_final_link): New function.
4592 (bfd_elf32_bfd_final_link): Define to call it.
4593 (hppa_unwind_entry_compare): New function.
4594 * cache.c (bfd_open_file): Create files in write+read mode.
4596 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4597 SEGREL32 and numerous other relocs. Change duplicate
4598 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4600 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4603 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4604 .plt entries for DT_INIT and DT_FINI.
4605 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4606 DT_INIT and DT_FINI.
4608 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4609 offsets for stub .plt access if wide mode. Check offset in range.
4611 2001-01-13 Nick Clifton <nickc@redhat.com>
4613 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4616 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4619 2001-01-12 Alan Modra <alan@linuxcare.com.au>
4621 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4622 * configure: Regenerate.
4624 2001-01-11 Peter Targett <peter.targett@arccores.com>
4626 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4627 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4628 * cpu-arc.c (arch_info_struct): Add entries for variants.
4629 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4630 (arc_get_mach) Don't assume machine names prefixed arc- before
4632 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4634 (arc_elf_final_write_processing) Likewise.
4635 (ELF_MACHINE_CODE) Use EM_ARC.
4637 2001-01-10 Nick Clifton <nickc@redhat.com>
4639 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
4641 2001-01-07 Philip Blundell <philb@gnu.org>
4643 * README: Replace `bug-gnu-utils@gnu.org' with
4644 `bug-binutils@gnu.org'.
4646 2001-01-04 Kazu Hirata <kazu@hxi.com>
4648 * som.c: Fix formatting.
4650 2001-01-03 Kazu Hirata <kazu@hxi.com>
4652 * ecoffswap.h: Fix formatting.
4653 * elf-bfd.h: Likewise.
4654 * elfarm-nabi.c: Likewise.
4655 * elfarm-oabi.c: Likewise.
4656 * elfcode.h: Likewise.
4657 * elfcore.h: Likewise.
4658 * elflink.c: Likewise.
4659 * elflink.h: Likewise.
4660 * elfxx-ia64.c: Likewise.
4661 * elfxx-target.h: Likewise.
4662 * libbfd.c: Likewise
4663 * linker.c: Likewise.
4664 * lynx-core.c: Likewise.
4666 2001-01-02 Kazu Hirata <kazu@hxi.com>
4668 * pc532-mach.c: Fix formatting.
4669 * pe-arm.c: Likewise.
4670 * pe-i386.c: Likewise.
4671 * pe-mips.c: Likewise.
4672 * pe-ppc.c: Likewise.
4673 * pe-sh.c: Likewise.
4674 * pei-mips.c: Likewise.
4675 * pei-sh.c: Likewise.
4676 * peicode.h: Likewise.
4677 * ppcboot.c: Likewise.
4678 * ptrace-core.c: Likewise.
4680 2001-01-01 Kazu Hirata <kazu@hxi.com>
4682 * reloc.c: Fix formatting.
4683 * riscix.c: Likewise.
4684 * rs6000-core.c: Likewise.
4685 * xcoff-target.h: Likewise.
4687 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4689 * elfcode.h (elf_object_p): Also restore the bfd mach field on
4690 error, by calling bfd_default_set_arch_mach with incoming
4693 2000-12-26 Kazu Hirata <kazu@hxi.com>
4695 * vaxnetbsd.c: Fix formatting.
4696 * versados.c: Likewise.
4697 * vms-gsd.c: Likewise.
4698 * vms-hdr.c: Likewise.
4699 * vms-misc.c: Likewise.
4701 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
4703 * archive.c (coff_write_armap): Don't write more than symbol_count
4704 `archive_member_file_ptr's.
4706 2000-12-25 Kazu Hirata <kazu@hxi.com>
4708 * vms-tir.c: Fix formatting.
4710 2000-12-23 Kazu Hirata <kazu@hxi.com>
4712 * vms.c: Fix formatting.
4715 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
4717 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
4719 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
4721 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
4724 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
4726 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
4728 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
4730 * libbfd.c (bfd_get_bits): Added
4731 (bfd_put_bits): Likewise
4732 * bfd-in.h: Declared the above.
4733 * bfd-in2.h: Regenerated.
4735 2000-12-20 Kazu Hirata <kazu@hxi.com>
4737 * targets.c: Fix formatting.
4738 * tekhex.c: Likewise.
4739 * trad-core.c: Likewise.
4741 2000-12-19 Kazu Hirata <kazu@hxi.com>
4743 * sco5-core.c: Fix formatting.
4744 * section.c: Likewise.
4745 * sparclinux.c: Likewise.
4746 * sparclynx.c: Likewise.
4747 * sparcnetbsd.c: Likewise.
4749 * stabs.c: Likewise.
4750 * stab-syms.c: Likewise.
4751 * sunos.c: Likewise.
4753 * sysdep.h: Likewise.
4755 2000-12-18 Nick Clifton <nickc@redhat.com>
4757 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
4759 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
4760 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
4762 2000-12-18 Nick Clifton <nickc@redhat.com>
4764 * vms-misc.c (_bfd_vms_get_record): Add default case to
4767 2000-12-15 Miloslav Trmac <mitr@volny.cz>
4769 * elfcore.h (elf_core_file_p): Move to the start of the program
4770 headers before attempting to read them.
4772 2000-12-14 Kazu Hirata <kazu@hxi.com>
4774 * peigen.c: Fix formatting.
4778 2000-12-13 Kazu Hirata <kazu@hxi.com>
4780 * peigen.c: Fix formatting.
4782 2000-12-12 Jim Wilson <wilson@redhat.com>
4784 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4786 2000-12-08 Mark Salter <msalter@redhat.com>
4788 * binary.c (binary_set_section_contents): Ignore sections
4791 2000-12-12 Kazu Hirata <kazu@hxi.com>
4793 * m68klinux.c: Fix formatting.
4794 * m68knetbsd.c: Likewise.
4795 * mipsbsd.c: Likewise.
4796 * netbsd-core.c: Likewise.
4797 * netbsd.h: Likewise.
4798 * newsos3.c: Likewise.
4799 * nlm32-alpha.c: Likewise.
4800 * nlm32-i386.c: Likewise.
4801 * nlm32-ppc.c: Likewise.
4802 * nlm32-sparc.c: Likewise.
4803 * nlmcode.h: Likewise.
4804 * nlmswap.h: Likewise.
4805 * nlm-target.h: Likewise.
4806 * ns32knetbsd.c: Likewise.
4808 2000-12-10 Fred Fish <fnf@be.com>
4810 * elflink.h (elf_link_output_extsym): Don't complain about undefined
4811 symbols in shared objects if allow_shlib_undefined is true.
4813 2000-12-12 Nick Clifton <nickc@redhat.com>
4815 * cpu-sh.c: Fix formattng.
4816 * elf.c: Fix formattng.
4817 * elf32-mips.c: Fix formattng.
4818 * elf32-sh.c: Fix formattng.
4819 * elf64-alpha.c: Fix formattng.
4821 2000-12-09 Nick Clifton <nickc@redhat.com>
4823 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
4824 dwarf2_find_line_info as last parameter to invocation of
4825 _bfd_dwarf2_find_nearest_line.
4826 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
4827 dwarf2_find_line_info as last parameter to invocation of
4828 _bfd_dwarf2_find_nearest_line.
4830 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
4832 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
4833 (BFD_LIBS): ...to here.
4834 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
4835 (BFD_LIBS_CFILES): ...to here.
4836 * Makefile.in: Regenerate.
4837 * configure.in: Remove dwarf.lo from the elf shell variable.
4838 * configure: Regenerate.
4839 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
4840 * libcoff.h: Regenerate.
4841 * coffgen.c (coff_find_nearest_line): Call
4842 _bfd_dwarf2_find_nearest_line.
4843 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4845 (read_abbrevs): Likewise
4846 (decode_line_info): Likewise.
4847 (parse_comp_unit): Likewise.
4848 (comp_unit_find_nearest_line): Likewise.
4849 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4850 * libbfd.h: Regenerate.
4851 * elf.c (_bfd_elf_find_nearest_line): Update call.
4852 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4853 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4854 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4855 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4856 (styp_to_sec_flags): Handle DWARF2 sections.
4857 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4858 to _bfd_find_nearest_line.
4859 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4860 call to _bfd_find_nearest_line.
4862 2000-12-08 Kazu Hirata <kazu@hxi.com>
4864 * coffgen.c: Fix formatting.
4865 * elf-m10300.c: Likewise.
4866 * elf32-i386.c: Likewise.
4867 * elf32-i960.c: Likewise.
4868 * elf32-m68k.c: Likewise.
4869 * elf32-mcore.c: Likewise.
4870 * elf32-ppc.c: Likewise.
4871 * elf32-sh.c: Likewise.
4872 * elf32-sparc.c: Likewise.
4873 * elf32-v850.c: Likewise.
4874 * elf64-alpha.c: Likewise.
4875 * elf64-hppa.c: Likewise.
4876 * elf64-mips.c: Likewise.
4877 * elf64-sparc.c: Likewise.
4879 2000-12-07 Kazu Hirata <kazu@hxi.com>
4881 * elf32-ppc.c: Fix formatting.
4882 * elf64-x86-64.c: Likewise.
4884 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4886 From Ralf Baechle <ralf@gnu.org>
4888 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4889 BFDs containing no sections or empty .text, .data or .bss sections
4890 to be merged, regardless of their flags.
4892 2000-12-06 Kazu Hirata <kazu@hxi.com>
4894 * elf32-m32r.c: Fix formatting.
4895 * elf32-m68hc11.c: Likewise.
4896 * elf32-m68hc12.c: Likewise.
4897 * elf32-m68k.c: Likewise.
4898 * elf32-mcore.c: Likewise.
4899 * elf32-pj.c: Likewise.
4900 * elf32-ppc.c: Likewise.
4902 2000-12-05 Kazu Hirata <kazu@hxi.com>
4904 * elf32-fr30.c: Fix formatting.
4905 * elf32-hppa.c: Likewise.
4906 * elf32-i370.c: Likewise.
4907 * elf32-i386.c: Likewise.
4908 * elf32-i860.c: Likewise.
4909 * elf32-i960.c: Likewise.
4911 2000-12-03 Kazu Hirata <kazu@hxi.com>
4913 * elf32-arm.h: Fix formatting.
4914 * elf32-avr.c: Likewise.
4915 * elf32-cris.c: Likewise.
4916 * elf32-d10v.c: Likewise.
4917 * elf32-d30v.c: Likewise.
4918 * elf-hppa.h: Likewise.
4919 * elf-m10200.c: Likewise.
4920 * elf-m10300.c: Likewise.
4922 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4924 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4925 bfd_mach_mips32_4k. Update FIXME comment.
4926 * archures.c (bfd_mach_mips32): New constant.
4927 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4928 the latter, renumber it.
4929 * bfd-in2.h (bfd_mach_mips32): New constant.
4930 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4931 the latter, renumber it.
4932 * cpu-mips.c (I_mips32): New constant.
4933 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4934 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4935 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4936 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4937 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4938 with E_MIPS_MACH_MIPS32_4K.
4939 (_bfd_mips_elf_final_write_processing): Replace
4940 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4941 bfd_mach_mips32 case.
4942 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4943 comparison with support for MIPS32.
4944 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4947 * aoutx.h (NAME(aout,machine_type)): Add cases for
4948 bfd_mach_mips5 and bfd_mach_mips64.
4949 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4950 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4951 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4952 (arch_info_struct): Add entries for bfd_mach_mips5 and
4954 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4955 _bfd_mips_elf_print_private_bfd_data): Add cases for
4956 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4957 (_bfd_mips_elf_final_write_processing): Add cases for
4958 bfd_mach_mips5 and bfd_mach_mips64.
4960 * aoutx.h (NAME(aout,machine_type)): Add a
4961 bfd_mach_mips_sb1 case.
4962 * archures.c (bfd_mach_mips_sb1): New constant.
4963 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4964 * cpu-mips.c (I_sb1): New constant.
4965 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4966 * elf32-mips.c (elf_mips_mach): Add case for
4968 (_bfd_mips_elf_final_write_processing): Add case for
4971 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4973 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4974 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4975 (sparc*-*-rtems*): Switched from a.out to ELF.
4977 2000-11-30 Jan Hubicka <jh@suse.cz>
4979 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4980 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4981 (elf64-x86-64.lo): Add dependencies.
4982 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4983 bfd_mach_x86_64_intel_syntax.
4984 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4985 * config.bfd (x86_64): Add.
4986 * configure.in: Add support for bfd_elf64_x86_64_vec.
4987 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4988 (bfd_i386_arch, i8086_ar): Link in.
4989 * elf64-x86-64.c: New file.
4990 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4991 * targets.c (bfd_elf64_x86_64_vec): Add.
4992 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4994 2000-11-30 Kazu Hirata <kazu@hxi.com>
4996 * xcofflink.c: Fix formatting.
4998 2000-11-28 Kazu Hirata <kazu@hxi.com>
5000 * aoutx.h: Fix formatting.
5001 * bfd-in.h: Likewise.
5002 * bfd-in2.h: Likewise.
5003 * cache.c: Likewise.
5004 * cisco-core.c: Likewise.
5005 * coff64-rs6000.c: Likewise.
5006 * coffcode.h: Likewise.
5007 * coffswap.h: Likewise.
5008 * corefile.c: Likewise.
5009 * elf32-mips.c: Likewise.
5011 2000-11-27 Kazu Hirata <kazu@hxi.com>
5013 * aout-adobe.c: Fix formatting.
5014 * coff64-rs6000.c: Likewise.
5015 * coffgen.c: Likewise.
5016 * cofflink.c: Likewise.
5018 2000-11-27 Philip Blundell <pb@futuretv.com>
5020 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
5021 (obj_coff_strings_written): New accessor macro for above.
5022 * libcoff.h: Regenerate.
5023 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
5025 * coffcode.h (coff_write_object_contents): No need to write out
5026 the string table if it's already been done.
5028 2000-11-22 Philip Blundell <pb@futuretv.com>
5030 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
5031 weak undefined symbols.
5033 2000-11-24 Nick Clifton <nickc@redhat.com>
5035 * archures.c (bfd_mach_arm_5TE): Define.
5036 (bfd_mach_arm+XScale): Define.
5037 * bfd-in2.h: Regenerate.
5039 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
5040 BFD_RELOC_ARM_PCREL_BLX.
5042 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
5043 XScale machine numbers.
5045 * config.bfd (xscale-elf): Add target.
5046 (xscale-coff): Add target.
5048 * cpu-arm.c: Add xscale machine name.
5049 Add v5t, v5te and XScale machine numbers.
5051 2000-11-23 Kazu Hirata <kazu@hxi.com>
5053 * aix386-core.c: Fix formatting.
5055 2000-11-22 Jim Wilson <wilson@redhat.com>
5057 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
5058 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
5059 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
5060 (ins_imms_scaled): Initialize sign_bit at function entry.
5061 (elf64_ia64_operands): Add missing initializers.
5062 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
5063 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
5064 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
5065 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
5066 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
5068 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
5069 and free_extsyms at function entry.
5070 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
5071 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
5072 (get_got): Delete unused local srel.
5073 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
5074 (elfNN_ia64_relocate_section): Delete unused local dynindx.
5076 2000-11-21 Kazu Hirata <kazu@hxi.com>
5078 * coff-a29k.c: Fix formatting.
5079 * coff-h8500.c: Likewise.
5080 * coff-i960.c: Likewise.
5081 * coff-ppc.c: Likewise.
5082 * coff-rs6000.c: Likewise.
5083 * coff-stgo32.c: Likewise.
5084 * coff-tic54x.c: Likewise.
5085 * coff-w65.c: Likewise.
5086 * cpu-h8500.c: Likewise.
5087 * cpu-hppa.c: Likewise.
5088 * cpu-ns32k.c: Likewise.
5089 * ecoff.c: Likewise.
5090 * ecofflink.c: Likewise.
5092 2000-11-21 Nick Clifton <nickc@redhat.com>
5094 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
5095 remove possibility of infinite loop.
5097 2000-11-20 Kazu Hirata <kazu@hxi.com>
5099 * aix386-core.c: Fix formatting.
5100 * aout-adobe.c: Likewise.
5101 * aout-arm.c: Likewise.
5102 * aout-encap.c: Likewise.
5103 * aout-ns32k.c: Likewise.
5104 * aout-target.h: Likewise.
5105 * aout-tic30.c: Likewise.
5106 * aoutf1.h: Likewise.
5107 * aoutx.h: Likewise.
5108 * archive.c: Likewise.
5109 * bfd-in.h: Likewise.
5110 * bfd-in2.h: Likewise.
5114 2000-11-17 H.J. Lu <hjl@gnu.org>
5116 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
5117 pltoff entries for DT_INIT and DT_FINI.
5118 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
5119 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
5122 2000-11-16 Richard Henderson <rth@redhat.com>
5124 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
5125 (allocate_dynrel_entries): Likewise.
5126 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
5127 (set_pltoff_entry): Likewise.
5128 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
5129 (elfNN_ia64_reloc_type_lookup): Likewise.
5130 (elfNN_ia64_install_value): Likewise.
5131 (elfNN_ia64_relocate_section): Likewise.
5132 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
5133 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
5135 2000-11-16 Kazu Hirata <kazu@hxi.com>
5137 * cpu-a29k.c: Fix formatting.
5138 * cpu-alpha.c: Likewise.
5139 * cpu-arm.c: Likewise.
5140 * cpu-avr.c: Likewise.
5141 * cpu-d10v.c: Likewise.
5142 * cpu-h8500.c: Likewise.
5143 * cpu-hppa.c: Likewise.
5144 * cpu-i370.c: Likewise.
5145 * cpu-i386.c: Likewise.
5146 * cpu-i960.c: Likewise.
5147 * cpu-ia64-opc.c: Likewise.
5148 * cpu-ia64.c: Likewise.
5149 * cpu-m32r.c: Likewise.
5150 * cpu-m68hc11.c: Likewise.
5151 * cpu-m68hc12.c: Likewise.
5152 * cpu-m68k.c: Likewise.
5153 * cpu-m88k.c: Likewise.
5154 * cpu-mips.c: Likewise.
5155 * cpu-ns32k.c: Likewise.
5156 * cpu-pj.c: Likewise.
5157 * cpu-powerpc.c: Likewise.
5158 * cpu-sh.c: Likewise.
5159 * cpu-sparc.c: Likewise.
5160 * cpu-tic54x.c: Likewise.
5161 * cpu-v850.c: Likewise.
5162 * cpu-vax.c: Likewise.
5163 * cpu-w65.c: Likewise.
5164 * cpu-we32k.c: Likewise.
5165 * cpu-z8k.c: Likewise.
5166 * dwarf1.c: Likewise.
5167 * dwarf2.c: Likewise.
5169 2000-11-15 Kazu Hirata <kazu@hxi.com>
5171 * coff-arm.c: Fix formatting.
5172 * coff-ppc.c: Likewise.
5173 * coff-rs6000.c: Likewise.
5174 * coff-sh.c: Likewise.
5175 * coff-sparc.c: Likewise.
5176 * coff-tic30.c: Likewise.
5177 * coff-tic54x.c: Likewise.
5178 * coff-tic80.c: Likewise.
5179 * coff-w65.c: Likewise.
5180 * coff-we32k.c: Likewise.
5181 * coff-z8k.c: Likewise.
5183 2000-11-15 Richard Henderson <rth@redhat.com>
5185 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
5186 section with the same ALLOC|LOAD flags as the source section.
5188 2000-11-14 Jakub Jelinek <jakub@redhat.com>
5190 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
5191 by STO_ALPHA constants.
5193 2000-11-14 Kazu Hirata <kazu@hxi.com>
5195 * coff-pmac.c: Fix formatting.
5196 * coff-ppc.c: Likewise.
5198 2000-11-13 H.J. Lu <hjl@gnu.org>
5200 * elflink.h (elf_link_add_object_symbols): Also add indirect
5201 symbols for common symbols with the default version.
5203 2000-11-09 Philip Blundell <pb@futuretv.com>
5205 * section.c (STD_SECTION): Set gc_mark flag.
5207 2000-11-11 Kazu Hirata <kazu@hxi.com>
5209 * coff-i960.c: Likewise.
5210 * coff-m68k.c: Likewise.
5211 * coff-m88k.c: Likewise.
5212 * coff-mcore.c: Likewise.
5213 * coff-mips.c: Likewise.
5215 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
5217 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
5219 2000-11-10 Kazu Hirata <kazu@hxi.com>
5221 * coff-h8300.c: Fix formatting.
5222 * coff-h8500.c: Likewise.
5223 * coff-i386.c: Likewise.
5224 * coff-i860.c: Likewise.
5225 * coff-i960.c: Likewise.
5226 * coff-ia64.c: Likewise.
5228 2000-11-09 Kazu Hirata <kazu@hxi.com>
5230 * archive.c: Fix formatting.
5231 * archures.c: Likewise.
5233 2000-11-07 Richard Henderson <rth@redhat.com>
5235 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
5236 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
5237 * section.c (bfd_set_section_contents): Call memcpy if
5238 section->contents set and location not equal to contents plus offset.
5240 2000-11-08 Kazu Hirata <kazu@hxi.com>
5242 * bfd-in.h: Fix formatting.
5243 * bfd-in2.h: Likewise.
5245 * binary.c: Likewise.
5247 * coff-a29k.c: Likewise.
5248 * coff-alpha.c: Likewise.
5249 * coff-apollo.c: Likewise.
5250 * coff-aux.c: Likewise.
5252 2000-11-07 Kazu Hirata <kazu@hxi.com>
5254 * aix386-core.c: Fix formatting.
5255 * aoutf1.h: Likewise.
5256 * aoutx.h: Likewise.
5257 * archures.c: Likewise.
5258 * armnetbsd.c: Likewise.
5260 2000-11-07 Alan Modra <alan@linuxcare.com.au>
5262 * coff-h8300.c (special): Adjust reloc address.
5264 2000-11-06 Steve Ellcey <sje@cup.hp.com>
5266 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
5267 to differentiate elf32 and elf64 on ia64.
5268 * bfd-in2.h: Regenerate.
5269 * config.bfd: Add target for "ia64*-*-hpux*".
5270 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
5271 * configure: Regenerate.
5272 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
5273 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
5275 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
5276 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
5277 * Makefile.in: Regnerate.
5278 * elf64-ia64.c: Deleted.
5279 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
5281 2000-11-06 Kazu Hirata <kazu@hxi.com>
5283 * aout-adobe.c: Fix formatting.
5284 * aout-arm.c: Likewise.
5285 * aout-cris.c: Likewise.
5286 * aout-encap.c: Likewise.
5287 * aout-ns32k.c: Likewise.
5288 * aout-target.h: Likewise.
5289 * aout-tic30.c: Likewise.
5291 2000-11-05 Philip Blundell <philb@gnu.org>
5293 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
5294 BFDs containing no sections to be merged, regardless of their flags.
5296 2000-11-04 Philip Blundell <philb@gnu.org>
5298 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
5299 if a relocation for an undefined symbol also results in an
5302 2000-11-06 Christopher Faylor <cgf@cygnus.com>
5304 * config.bfd: Add support for Sun Chorus.
5306 2000-11-05 David O'Brien <obrien@FreeBSD.org>
5308 * configure.in: Recognize alpha-*-freebsd*.
5309 * configure: Regenerate.
5311 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
5313 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
5314 (Chunk): New global variable set by a parameter in objcopy.c.
5315 (S3Forced): New global variable set by a parameter in
5317 (srec_set_section_contents): If S3Forced is true, always generate
5319 (srec_write_section): Use 'Chunk' to limit maximum length of S
5322 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5324 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
5325 * Makefile.in: Regenerate.
5326 * bfd-in2.h: Regenerate.
5327 * po/bfd.pot: Regenerate.
5329 2000-10-31 Philip Blundell <philb@gnu.org>
5331 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
5332 EF_SOFT_FLOAT if it is defined.
5334 2000-10-27 Philip Blundell <philb@gnu.org>
5336 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
5337 attempts to mix PIC code with non-PIC, just mark the output as
5338 being position dependent.
5339 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
5340 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
5341 all mismatches, not just the first one.
5343 2000-10-25 Chris Demetriou <cgd@sibyte.com>
5345 * ieee.c (ieee_archive_p): Plug one of many possible
5346 memory leaks in error handling.
5348 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5350 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
5351 elf32_sparc_object_p, elf32_sparc_final_write_processing):
5353 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
5354 sparc64_elf_object_p): Support v9b.
5355 * archures.c: Declare v8plusb and v9b machines.
5357 * cpu-sparc.c: Ditto.
5359 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5361 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
5364 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
5365 (SYMBOL_CALLS_LOCAL): New macro.
5366 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
5367 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
5368 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
5369 (ppc_elf_relocate_section): Use flag variable to determine
5370 whether the relocation refers to a local symbol.
5371 Test whether a PLTREL24 reloc will produce a reloc by looking
5372 to see whether a PLT entry was made.
5374 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5376 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
5377 entries that could serve as a definition for a weak symbol.
5379 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
5381 From Ralf Baechle <ralf@gnu.org>
5383 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
5384 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
5385 against local symbols.
5386 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
5388 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5390 * section.c (struct sec): Add kept_section.
5391 (struct bfd_comdat_info): Remove sec, we can use above.
5392 (STD_SECTION): Add initializer.
5393 (bfd_make_section_anyway): Init here too.
5395 * bfd-in2.h: Regenerate.
5397 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
5399 (elf_link_input_bfd): Set all asection->symbol->value's here, and
5400 fudge values for discarded link-once section symbols.
5402 * elf64-hppa.c: Include alloca-conf.h
5404 2000-10-11 Alan Modra <alan@linuxcare.com.au>
5406 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
5408 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
5410 2000-10-10 Alan Modra <alan@linuxcare.com.au>
5412 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
5414 2000-10-10 Tom Rix <trix@redhat.com>
5416 * section.c (bfd_make_section_anyway): Release newsect ptr when
5417 newsect->symbol fails to alloc. Use bfd_release instead of free.
5419 2000-10-09 Richard Henderson <rth@cygnus.com
5421 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
5422 (elf64_ia64_unwind_entry_compare): New.
5423 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
5425 2000-10-07 Alan Modra <alan@linuxcare.com.au>
5427 * elflink.h (size_dynamic_sections): Don't create various tags if
5428 .dynstr is excluded from the link. Don't set first dynsym entry
5429 if dynsymcount is zero.
5430 (elf_bfd_final_link): Don't try to swap out dynamic syms if
5431 .dynsym excluded from the link. Don't try to write any dynamic
5432 sections excluded from the link.
5434 * elf.c (swap_out_syms): Handle global section symbols.
5436 2000-10-05 DJ Delorie <dj@redhat.com>
5438 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
5439 * coffcode.h (coff_set_alignment_hook): read extended reloc count
5440 (coff_write_relocs): write extended reloc count
5441 (coff_write_object_contents): account for extended relocs
5443 2000-10-05 Jim Wilson <wilson@cygnus.com>
5445 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5447 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5448 elf_backend_section_flags function.
5449 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5451 (elf64_ia64_section_flags): New function containing flag conversion
5453 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5454 * elfxx-target.h (elf_backend_section_flags): Define.
5455 (elfNN_bed): Initialize elf_backend_section_flags field.
5457 2000-10-02 Alan Modra <alan@linuxcare.com.au>
5459 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5460 _bfd_elf32_gc_record_vtable. Correct a comment.
5462 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5464 From Ralf Baechle <ralf@gnu.org>
5466 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5467 produces binaries with got[1] = 0x80000001 to differenciate them
5468 for the dynamic linker from the broken binaries produced by old
5471 2000-09-30 Petr Sorfa <petrs@sco.com>
5473 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5474 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5475 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5476 * configure: Regenerate.
5478 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5480 Define two bfd_targets for absence and presence of leading
5481 underscore on symbols. Make sure to only link same kind.
5482 * elf32-cris.c (cris_elf_object_p,
5483 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5484 cris_elf_merge_private_bfd_data): New.
5485 (elf_backend_object_p, elf_backend_final_write_processing,
5486 bfd_elf32_bfd_print_private_bfd_data,
5487 bfd_elf32_bfd_merge_private_bfd_data): Define.
5488 <Target vector definition>: Include elf32-target.h twice with
5489 different macro settings:
5490 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5491 bfd_elf32_us_cris_vec.
5492 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5493 (elf_symbol_leading_char): First as 0, then '_'.
5494 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5495 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5496 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5497 * configure: Regenerate.
5498 * targets.c: Declare bfd_elf32_us_cris_vec.
5499 * po/bfd.pot: Regenerate.
5501 2000-09-29 Momchil Velikov <velco@fadata.bg>
5503 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5504 R_ARM_THM_PC22 relocations.
5506 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5508 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5510 2000-09-29 Momchil Velikov <velco@fadata.bg>
5512 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5513 is has the SEC_HAS_CONTENTS flag set.
5515 2000-09-28 �Örjan Friberg <orjanf@axis.com>
5516 Hans-Peter Nilsson <hp@axis.com>
5518 * aout-cris.c (N_TXTADDR): Define.
5520 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5522 * som.c: Include alloca-conf.h.
5523 * Makefile.am: "make dep-am"
5524 * Makefile.in: Regenerate.
5526 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5528 * elf32-hppa.c (plt_stub): New.
5529 (PLT_STUB_ENTRY): Define.
5530 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5531 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5532 (elf32_hppa_link_hash_table_create): Init to suit.
5533 (elf32_hppa_check_relocs): Set has_12bit_branch and
5534 has_17bit_branch as appropriate.
5535 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5536 non-local functions.
5537 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5538 Add space for plt_stub as needed.
5539 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5540 functions at plt_stub.
5541 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5542 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5544 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5545 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5546 of fixed size, and if negative, disable handling of input sections
5547 before stub section. Set up default stub group size depending
5548 on detected branch relocs.
5549 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5550 ensure different offsets from sym_value aren't rounded to
5551 different 2k blocks. Use lrsel and rrsel for other stubs too for
5552 consistency rather than necessity.
5553 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
5554 (final_link_relocate): Likewise.
5555 (elf32_hppa_relocate_section): Likewise.
5557 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
5558 (_bfd_elf_hppa_gen_reloc_type): Generate them.
5559 (elf_hppa_final_link_relocate): Handle them.
5560 (elf_hppa_relocate_insn): Likewise.
5561 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
5563 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
5565 * elfcode.h (elf_object_p): Preserve and clear abfd section
5566 information. Restore at error.
5568 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5570 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
5571 is empty, make sure that its rva also 0. NT loader dislikes
5574 2000-09-26 Steve Ellcey <sje@cup.hp.com>
5576 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
5579 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5581 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
5582 currently unused RELATIVE_DYNAMIC_RELOCS code.
5583 (hppa_discard_copies): Likewise.
5584 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
5585 comments. Don't check non-code output sections for stub grouping.
5587 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5589 * section.c (bfd_get_unique_section_name): Return NULL if
5592 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5594 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
5595 instruction sequence to actually work.
5596 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
5599 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5601 * elf32-sh.c (sh_elf_relocate_section): Use
5602 _bfd_final_link_relocate to apply the relocation against a section
5603 symbol, when doing relocatable links.
5605 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5607 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
5609 (stub_hash_newfunc): Here too.
5610 (hppa_add_stub): And here.
5611 (elf32_hppa_link_hash_table): Remove stub_section_created,
5612 reloc_section_created, first_init_sec and first_fini_sec. Add
5614 (elf32_hppa_link_hash_table_create): Init to suit.
5615 (hppa_get_stub_entry): Add support for grouping stub sections.
5616 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
5617 section code. Index stub vars by section->id.
5618 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
5619 exit paths. Zap allocation of above removed vars. Refine
5622 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
5623 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
5624 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
5625 rather than pointer to bfd_link_info.
5626 (hppa_add_stub): Likewise.
5627 (final_link_relocate): Likewise.
5629 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
5631 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
5634 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
5636 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
5637 ld/emulparams/shelf.sh.
5639 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5641 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
5642 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
5643 * bfd-in2.h: Regenerate.
5645 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
5647 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
5648 LITUSE relocations incorrectly if -relax is specified on the ld
5649 command line and the displacement field of the load or store
5650 instruction is non-zero. (Patch by paul.winalski@compaq.com)
5652 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5654 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
5655 first_fini_sec here.
5656 (elf32_hppa_size_stubs): Instead correctly find the first .init
5657 and .fini section here.
5659 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
5661 * elf32-hppa.c (clobber_millicode_symbols): New function.
5662 (elf32_hppa_size_dynamic_sections): Call it.
5664 2000-09-14 Alan Modra <alan@linuxcare.com.au>
5666 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
5667 packed. Add plabel, plt_abs packed booleans.
5668 (hppa_link_hash_newfunc): Init new fields.
5669 (PLABEL_PLT_ENTRY_SIZE): Define.
5670 (hppa_stub_name): Use size_t len vars.
5671 (hppa_add_stub): Likewise.
5672 (elf32_hppa_build_stubs): Likewise.
5673 (hppa_build_one_stub): Kill some compiler warnings.
5674 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
5675 if dynamic linking. Munge the local plt offsets into
5676 local_got_refcounts. Set h->plabel for all global PLABELs. Use
5677 size_t len vars. Add assert for plabel addend.
5678 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
5679 (elf32_hppa_hide_symbol): New function.
5680 (elf_backend_hide_symbol): Define.
5681 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
5682 with h->plabel set. Don't make plt entries to have dynamic syms
5683 when they have been forced local. If plt entry is used by a
5684 plabel, make it PLABEL_PLT_ENTRY_SIZE.
5685 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
5686 Set up .plt offsets for local syms.
5687 (elf32_hppa_relocate_section): Initialise plt entries for local
5688 syms. Leave weak undefined plabels zero. Make global plabel
5689 relocs against function symbol, and leave the addend zero.
5690 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
5691 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
5692 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
5693 relocs instead of SEGREL32 for dynamic got relocs.
5694 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
5695 (elf_backend_got_header_size): Adjust.
5696 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
5698 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
5699 (hppa_type_of_stub): Use it instead of #if 0
5700 (hppa_discard_copies): Use it here too.
5701 (elf32_hppa_size_dynamic_sections): And here.
5703 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
5704 (elf32_hppa_link_hash_table_create): And here.
5705 (hppa_build_one_stub): And here. Instead keep track of stub
5706 offset using _raw_size.
5707 (elf32_hppa_size_stubs): Likewise.
5708 (elf32_hppa_build_stubs): Likewise.
5709 (hppa_size_one_stub): Likewise. Resize reloc section too.
5711 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
5712 first_fini_sec handling. Don't search for reloc section or set
5713 hplink->reloc_section_created here.
5714 (elf32_hppa_size_stubs): Instead search for reloc sections, and
5715 set reloc_section_created here.
5716 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
5717 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
5719 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
5721 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
5722 with `hplink->root.'.
5723 (elf32_hppa_check_relocs): Likewise.
5724 (elf32_hppa_gc_sweep_hook): Likewise.
5725 (elf32_hppa_adjust_dynamic_symbol): Likewise.
5726 (hppa_handle_PIC_calls): Likewise.
5727 (elf32_hppa_size_dynamic_sections): Likewise.
5728 (elf32_hppa_set_gp): Likewise.
5729 (elf32_hppa_relocate_section): Likewise.
5730 (elf32_hppa_finish_dynamic_symbol): Likewise.
5731 (elf32_hppa_finish_dynamic_sections): Likewise.
5733 From David Huggins-Daines <dhd@linuxcare.com>
5734 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
5735 defined weak symbols in shared links.
5736 (final_link_relocate): Calls to defined weak symbols in shared
5737 objects must go via import stubs, as the target might not be known
5740 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5742 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
5743 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
5744 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
5745 the original entries with EMPTY_HOWTOs, and added new ones to fill
5747 (sh_elf_info_to_howto): Make sure the new gap isn't used.
5748 (sh_elf_relocate_section): Likewise.
5750 2000-09-13 Anders Norlander <anorland@acc.umu.se>
5752 * cpu-mips.c (arch_info_struct): Add mips:4K
5753 * bfd-in2.h (bfd_mach_mips4K): New define.
5754 * archures.c: Add bfd_mach_mips4K to comment.
5755 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
5756 E_MIPS_ARCH_2 for bfd_mach_mips4K.
5758 2000-09-13 Marco Franzen <marcof@thyron.com>
5760 * som.c (som_write_symbol_strings): Do not used fixed buffers,
5761 use size_t as a counter.
5762 (som_write_space_strings): Similarly.
5764 2000-09-12 Jason Eckhardt <jle@cygnus.com>
5766 * elf32-i860.c (elf32_i860_relocate_pc26): New function
5768 (elf32_i860_relocate_section): Invoke new function from here.
5770 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5772 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
5775 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5777 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
5778 target section name instead of dumping core when the target symbol is
5781 2000-09-09 Kazu Hirata <kazu@hxi.com>
5783 * riscix.c: Remove DEFUN.
5785 2000-09-08 Nick Clifton <nickc@redhat.com>
5787 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
5788 initialise flags in output bfd if the input bfd is the default
5789 architecture with the default flags.
5791 2000-09-08 Kazu Hirata <kazu@hxi.com>
5793 * archive.c: Fix formatting.
5794 * coff-arm.c: Likewise.
5795 * doc/chew.c: Likewise.
5797 2000-09-08 Alan Modra <alan@linuxcare.com.au>
5799 * section.c (bfd_get_unique_section_name): Put a dot before the
5802 2000-09-07 Kazu Hirata <kazu@hxi.com>
5804 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
5805 * elf.c: Fix formatting.
5807 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
5809 * config.bfd (sh-*-linux*): Added.
5810 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
5811 * targets.c: Declare them.
5812 * elf32-sh-lin.c: New file.
5813 * Makefile.am: Compile it.
5814 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
5815 * configure, Makefile.in: Rebuilt.
5817 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
5819 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
5820 pseduo-section when determining where the TOC ends.
5822 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
5823 output x_tvndx as it is only two bytes wide.
5825 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
5826 reloc is 26 or 32 bits wide.
5828 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
5829 for relocs that don't change anything. Also look at the full
5832 2000-09-06 Philip Blundell <philb@gnu.org>
5834 * config.bfd (arm*-*-uclinux*): New target.
5836 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5838 * configure: Rebuilt with new libtool.m4.
5840 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5842 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
5843 word for variable name.
5844 * bfd-in2.h: Regenerate.
5846 2000-09-05 Nick Clifton <nickc@redhat.com>
5848 * config.in: Regenerate.
5849 * libbfd.h: Regenerate.
5850 * po/bfd.pot: Regenerate.
5851 * doc/bfdint.texi: Remove CVS date string - it foils compares with
5854 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
5856 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
5858 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5860 Shared library and PIC support.
5861 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5862 (GOT_ENTRY_SIZE): New.
5863 (ELF_DYNAMIC_INTERPRETER): New.
5864 (STUB_SUFFIX): Define.
5865 (LONG_BRANCH_PIC_IN_SHLIB): Define.
5866 (RELATIVE_DYNAMIC_RELOCS): Define.
5867 (enum elf32_hppa_stub_type): New.
5868 (struct elf32_hppa_stub_hash_entry): Rename offset to
5869 stub_offset. Add a number of new fields.
5870 (struct elf32_hppa_link_hash_entry): New.
5871 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
5873 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
5874 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
5875 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
5877 (hppa_link_hash_newfunc): New function.
5878 (elf32_hppa_link_hash_table_create): Use above function. Init new
5880 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
5881 instead of addend, and remove sym_name from args. Don't use
5882 symbol name for local syms, instead use sym index.
5883 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
5884 stub type rather than size. Pass in hash and handle import stub
5885 case. Also pass in reloc instead of offset so we can calculate
5886 PCREL22F and PCREL12F branches properly.
5887 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
5888 import and export stubs too.
5889 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5890 import and export stub sizing.
5891 (elf32_hppa_check_relocs): New function.
5892 (elf32_hppa_adjust_dynamic_symbol): New function.
5893 (hppa_discard_copies): New function.
5894 (elf32_hppa_size_dynamic_sections): New function.
5895 (elf_backend_size_dynamic_sections): Define.
5896 (elf32_hppa_finish_dynamic_symbol): New function.
5897 (elf_backend_finish_dynamic_symbol): Define.
5898 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5899 some local vars into the link hash table too. For shared links,
5900 trundle over function syms, generating export stubs. Handle
5901 PCREL22F branches. Break out stub creation code from here..
5902 (hppa_add_stub): .. to here. New function.
5903 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5904 call the bfd linker. Use elf_gp to record global pointer.
5905 Calculate a value from sections if $global$ is missing.
5906 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5907 (elf32_hppa_gc_mark_hook): New function.
5908 (elf_backend_gc_mark_hook): Define.
5909 (elf32_hppa_gc_sweep_hook): New function.
5910 (elf_backend_gc_sweep_hook): Define.
5911 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5912 Add rel to args, and remove howto, input_bfd, offset, addend,
5913 sym_name as we can recalculate these locally. Handle calls to
5914 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5915 handling of undefined weak syms. Check that stubs are in range.
5916 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5917 message on hitting a DPREL21L reloc that needs fixing. Subtract
5918 off PC for PCREL14F. Break out code that does a stub lookup from
5920 (hppa_get_stub_entry): ..to here. New function.
5921 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5922 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5924 (elf32_hppa_finish_dynamic_sections): New function.
5925 (elf_backend_finish_dynamic_sections): Define.
5926 (elf_backend_final_write_processing) Define.
5927 (hppa_handle_PIC_calls): New function.
5928 (elf32_hppa_build_stubs): Call it. Pass link_info to
5929 hppa_build_one_stub.
5930 (elf32_hppa_create_dynamic_sections): New function
5931 to create .plt and .got then set .plt flags correctly.
5932 (elf_backend_create_dynamic_sections): Define.
5933 (elf32_hppa_object_p): New function.
5934 (elf_backend_object_p): Define.
5935 (elf32_hppa_elf_get_symbol_type): New function.
5936 (elf_backend_get_symbol_type): Define.
5937 (elf_backend_can_gc_sections): Define.
5938 (elf_backend_want_got_plt): Define.
5939 (elf_backend_plt_alignment): Set to 2.
5940 (elf_backend_plt_readonly): Define.
5941 (elf_backend_want_plt_sym): Define.
5942 (elf_backend_got_header_size): Reserve one entry.
5944 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5945 (elf32_hppa_size_stubs): Pass in multi_subspace.
5946 (elf32_hppa_set_gp): Declare.
5948 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5949 (bfd_get_unique_section_name): New function.
5950 * bfd-in2.h: Regenerate.
5952 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5953 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5956 From David Huggins-Daines <dhd@linuxcare.com>
5957 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5958 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5959 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5960 been updated in finish_dynamic_symbol before modifying function
5963 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5964 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5965 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5966 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5967 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5968 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5969 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5970 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5972 From David Huggins-Daines <dhd@linuxcare.com>
5973 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5974 style of local labels as well.
5976 2000-09-03 Philip Blundell <philb@gnu.org>
5978 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5979 references to undefined symbols in debugging sections.
5981 2000-09-02 H.J. Lu <hjl@gnu.org>
5983 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5984 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5985 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5988 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5990 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5991 (elf32_i860_is_local_label_name): New function and prototype.
5993 2000-09-02 Nick Clifton <nickc@redhat.com>
5995 * configure.in: Increase version number to 2.10.91.
5996 * configure: Regenerate.
5997 * aclocal.m4: Regenerate.
5998 * config.in: Regenerate.
5999 * po/bfd.pot: Regenerate.
6001 2000-09-02 Daniel Berlin <dberlin@redhat.com>
6003 * elf.c (_bfd_elf_make_section_from_shdr): Add
6004 .gnu.linkobce.wi. to the list of debug section names.
6006 2000-09-02 Nick Clifton <nickc@redhat.com>
6008 * dwarf2.c (find_debug_info): New function: Locate a section
6009 containing dwarf2 debug information.
6010 (bfd_dwarf2_find_nearest_line): Find all sections containing
6011 debug information and include them in the stash.
6013 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
6015 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
6016 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
6017 (sh_reloc_map): Add new relocs.
6018 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
6019 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
6020 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
6021 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
6023 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
6024 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
6025 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
6026 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
6027 New array constants.
6028 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
6030 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
6031 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
6032 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
6033 elf_sh_plt_reloc_offset): Define.
6034 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
6035 elf_sh_link_hash_table): New structs.
6036 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
6037 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
6039 (elf_backend_create_dynamic_sections,
6040 bfd_elf32_bfd_link_hash_table_create,
6041 elf_backend_adjust_dynamic_symbol,
6042 elf_backend_size_dynamic_sections,
6043 elf_backend_finish_dynamic_symbol,
6044 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
6045 elf_backend_plt_readonly, elf_backend_want_plt_sym,
6046 elf_backend_got_header_size, elf_backend_plt_header_size):
6048 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
6049 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
6051 * bfd-in2.h, libbfd.h: Rebuilt.
6053 2000-09-01 Alan Modra <alan@linuxcare.com.au>
6055 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
6058 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
6060 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
6061 not initialized, set them to indicate the SH1 instruction set.
6063 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
6065 * acinclude.m4: Include libtool and gettext macros from the
6067 * aclocal.m4, configure: Rebuilt.
6069 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
6071 * elf.c: Eliminate references to __sparcv9 macro; replace with
6072 autoconf variables HAVE_PSINFO32_T etc.
6073 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
6074 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
6076 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
6077 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
6078 * aclocal.m4: Ditto.
6079 * configure: Regenerate.
6081 2000-08-27 Alan Modra <alan@linuxcare.com.au>
6083 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
6084 for any shared link, not just shared -Bsymbolic.
6085 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
6086 any shared link, and pass link info to it.
6087 (elf_i386_size_dynamic_sections): Update comment.
6088 (elf_i386_discard_copies): Modify to discard relocs for symbols
6089 that have been forced local.
6090 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
6091 that have been forced local.
6093 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
6095 * elflink.h (elf_link_add_object_symbols): Allow common
6096 symbols to have an alignment of 1 if explicitly requested, and
6097 not overridden by other definitions.
6099 2000-08-22 Doug Kwan <dkwan@transmeta.com>
6101 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
6102 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
6104 2000-08-22 H.J. Lu <hjl@gnu.org>
6106 * elf-bfd.h (elf_link_hash_table): Add runpath.
6108 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
6109 * bfd-in2.h: Rebuilt.
6111 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
6112 "runpath" field to NULL.
6113 (bfd_elf_get_runpath_list): New function.
6115 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
6118 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
6120 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
6121 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
6122 explicitly. Improve validation of r_type.
6124 2000-08-21 H.J. Lu <hjl@gnu.org>
6126 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
6127 dynamic allocated content space. Add a comment to remind us that
6128 one day this ought to be fixed.
6129 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6130 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6131 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6133 2000-08-21 Jason Eckhardt <jle@cygnus.com>
6135 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
6136 field with the newly relocated value instead of adding it to the
6137 existing immediate field.
6138 (elf32_i860_relocate_splitn): Likewise.
6139 (elf32_i860_relocate_highadj): Likewise.
6141 2000-08-16 Jason Eckhardt <jle@cygnus.com>
6143 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
6144 was previously just a stub).
6146 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
6148 * elflink.c (_bfd_elf_create_got_section): Don't abort().
6150 (_bfd_elf_create_dynamic_sections): Likewise.
6152 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
6154 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
6155 for undefined symbols to be the beginning of the section.
6157 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
6158 four extra entries at the beginning of the .rela.plt section.
6159 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
6160 section to account for the four reserved entries in the .plt section.
6162 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
6164 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
6165 to the list of NOPs we recognize after a branch-and-link.
6166 Use the ori NOP when one is needed.
6168 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
6171 2000-08-14 Jim Wilson <wilson@cygnus.com>
6173 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
6174 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
6175 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
6178 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
6180 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
6182 2000-08-10 Jason Eckhardt <jle@cygnus.com>
6184 * elf32-i860.c (elf32_i860_relocate_section): New function.
6185 (i860_final_link_relocate): New function.
6186 (elf32_i860_relocate_splitn): New function.
6187 (elf32_i860_relocate_pc16): New function.
6188 (elf32_i860_relocate_highadj): New function.
6189 (elf32_i860_howto): Minor adjustments to some relocations.
6190 (elf_info_to_howto_rel): Define.
6191 (elf_backend_relocate_section): Define.
6193 2000-08-10 Nick Clifton <nickc@cygnus.com>
6195 * elf32-arm.h: Fix formatting.
6197 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
6199 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
6201 2000-08-08 Jason Eckhardt <jle@cygnus.com>
6203 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
6205 2000-08-07 Kazu Hirata <kazu@hxi.com>
6207 * ieee.c (ieee_write_debug_part): Rewrite a comment.
6208 * elf64-ia64.c: Fix a typo.
6210 2000-08-05 Jason Eckhardt <jle@cygnus.com>
6212 * elf32-i860.c (elf32_i860_howto_table): New structure.
6213 (lookup_howto): New function.
6214 (elf32_i860_reloc_type_lookup): New function.
6215 (elf32_i860_info_to_howto_rela): New function.
6216 (elf_code_to_howto_index): New structure.
6217 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
6218 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
6219 elf32_i860_reloc_type_lookup.
6221 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
6223 * som.c (struct fixup_format): Constify `format'.
6224 (som_hppa_howto_table): Use SOM_HOWTO macro.
6225 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
6226 (som_bfd_reloc_type_lookup): Likewise.
6227 (compare_subspaces): Remove unused `count1', `count2'.
6228 (som_begin_writing): Remove unused `total_reloc_size'.
6229 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
6230 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
6231 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
6232 (som_find_nearest_line): Decorate unused parameter(s).
6233 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
6234 (som_bfd_link_split_section): Likewise.
6236 2000-08-03 Nick Clifton <nickc@cygnus.com>
6238 * section.c: Restore backed out code.
6239 * elf.c: Restore backed out code.
6240 (copy_private_bfd_data): Fix bug preventing stipped dynamic
6241 binaries from working.
6242 * bfd-in2.h: Regenerate.
6244 2000-08-03 H.J. Lu <hjl@gnu.org>
6246 * section.c: Back out the change made by Nick Clifton
6247 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
6249 * bfd-in2.h: Likewise.
6252 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
6254 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
6256 2000-07-31 Jason Eckhardt <jle@cygnus.com>
6258 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
6259 * bfd-in2.h, libbfd.h: Regenerate.
6261 2000-07-31 Nick Clifton <nickc@cygnus.com>
6263 * section.c (struct sec): Add new boolean field 'segment_mark'.
6264 (STD_SECTION): Initialise new field to zero.
6266 * bfd-in2.h: Regenerate.
6268 * elf.c (copy_private_bfd_data): Reorganise section to segment
6269 mapping to cope with moved sections requiring new segments,
6270 and overlapping segments.
6271 (SEGMENT_END): New macro: Return the end address of a segment.
6272 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
6273 contains a section by comparing their VMA addresses.
6274 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
6275 contains a section by comparing their LMA addresses.
6276 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
6277 section should be included in a segment.
6278 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
6279 follows another in memory.
6280 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
6283 2000-07-22 Jason Eckhardt <jle@cygnus.com>
6285 * cpu-i860.c: Added comments.
6287 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
6288 bfd_elf32_i860_little_vec.
6289 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
6290 (ELF_MAXPAGESIZE): Changed to 4096.
6292 * targets.c (bfd_elf32_i860_little_vec): Declaration of
6294 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
6296 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
6297 config for little endian elf32 i860.
6298 (targ_defvec): Define for the new config above
6299 as "bfd_elf32_i860_little_vec".
6300 (targ_selvecs): Define for the new config above
6301 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
6303 * configure.in (bfd_elf32_i860_little_vec): Added recognition
6306 * configure: Regenerated.
6308 2000-07-27 H.J. Lu <hjl@gnu.org>
6310 * elflink.h (elf_merge_symbol): Take one more argument,
6311 dt_needed, to indicate if the symbol comes from a DT_NEEDED
6312 entry. Don't overide the existing weak definition if dt_needed
6314 (elf_link_add_object_symbols): Pass dt_needed to
6315 elf_merge_symbol ().
6317 2000-07-27 Nick Clifton <nickc@cygnus.com>
6319 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
6322 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
6324 * configure.host (*-*-aix*): AIX has 'long long' always.
6326 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
6327 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
6328 (xcoff_write_archive_contents_big): Don't update the offset
6329 of the symbol table, xcoff_write_armap will do it.
6331 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
6333 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
6334 of dynobj for SGI_COMPAT checks.
6336 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6338 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
6339 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
6340 * bfd-in2.h: Regenerate.
6342 2000-07-21 Nick Clifton <nickc@cygnus.com>
6344 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
6345 range symbol indices in relocs and issue an error message.
6347 2000-07-20 H.J. Lu <hjl@gnu.org>
6349 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
6350 info->new_dtags when setting DT_FLAGS_1. It will only be set
6351 by the new linker options. It shouldn't break anything.
6353 2000-07-20 H.J. Lu <hjl@gnu.org>
6355 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
6356 only if info->new_dtags is true.
6358 2000-07-20 H.J. Lu <hjl@gnu.org>
6360 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
6361 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
6363 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
6365 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
6366 (ALL_MACHINES_CFILES): Add cpu-cris.c.
6367 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
6368 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
6369 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
6370 * Makefile.in: Rebuild.
6371 * aclocal.m4: Rebuild.
6372 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
6373 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
6374 (bfd_cris_arch): Declare.
6375 (bfd_archures_list): Add bfd_cris_arch.
6376 * bfd-in2.h: Rebuild.
6377 * config.bfd: (cris-*-*): New target.
6378 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
6379 * configure: Rebuild.
6380 * elf.c (prep_headers): Add bfd_arch_cris.
6381 * libbfd.h: Rebuild.
6382 * libaout.h (enum machine_type): Add M_CRIS.
6383 * reloc.c: Add CRIS relocations.
6384 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
6385 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
6386 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
6387 * po/POTFILES.in, po/bfd.pot: Regenerate.
6389 2000-07-19 H.J. Lu <hjl@gnu.org>
6391 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
6392 DF_TEXTREL if DT_TEXTREL is set.
6393 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
6394 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
6395 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6396 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
6397 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
6398 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6399 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
6400 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6401 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
6402 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
6404 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
6405 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
6407 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
6409 2000-07-19 H.J. Lu <hjl@gnu.org>
6411 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
6412 * bfd-in2.h: Rebuild.
6414 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
6415 (elf_dt_soname): New.
6417 * elf.c (bfd_elf_set_dt_needed_soname): New.
6419 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
6420 entry if the shared object loaded by DT_NEEDED is used to
6421 resolve the reference in a regular object.
6423 2000-07-19 H.J. Lu <hjl@gnu.org>
6425 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
6426 DT_DEPAUDIT and DT_AUDIT as strings.
6428 2000-07-19 Nick Clifton <nickc@cygnus.com>
6430 * format.c: Fix formatting.
6432 2000-07-19 H.J. Lu <hjl@gnu.org>
6434 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
6436 2000-07-19 H.J. Lu <hjl@gnu.org>
6438 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
6439 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
6440 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
6441 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
6442 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
6443 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
6444 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
6446 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
6448 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
6449 renamed functions from here...
6450 (assign_section_numbers): Use renamed functions.
6451 (prep_headers): Use renamed functions.
6453 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
6454 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
6455 * bfd-in2.h: Regenerate.
6457 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
6459 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
6460 parenthesis in if statement.
6462 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
6464 Enable the support for Traditional MIPS.
6465 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
6466 return ict_none appropriately for traditional mips targets.
6467 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
6468 (STUB_MOVE): Conditionalize for traditonal mips.
6469 (STUB_LI16): Likewise.
6470 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6471 room for RTPROC header.
6472 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6473 the permission for the PT_DYNAMIC as read, write and execute.
6474 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6475 for traditonal mips.
6476 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6477 _DYNAMIC_LINKING for traditonal mips.
6478 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6479 in case of traditonal mips.
6480 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6481 entry is required. For a function if PLT is not required then set the
6482 corresponding hash table entry to 0.
6483 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6485 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6486 shared object set the value to 0.
6487 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6488 _DYNAMIC_LINKING for traditonal mips.
6489 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6490 for traditonal mips.
6492 2000-07-15 H.J. Lu <hjl@gnu.org>
6494 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6496 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6498 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6499 out a structure that is BFD_IN_MEMORY.
6501 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6503 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6504 bfd pointer. Print section id instead of bfd pointer for local
6505 syms. Prefix addend with `+' for global syms as well as local.
6506 Correct calculation of name component lengths.
6507 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6509 From David Huggins-Daines <dhd@linuxcare.com>
6510 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6511 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6512 (elf64_hppa_modify_segment_map): Likewise.
6514 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6516 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6517 addresses to be "naturally" sign extended. Return -1 if unknown.
6518 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6519 * bfd-in2.h: Regenerate.
6521 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6523 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6524 and ECOF_SIGNED_64 to list ways to extract an offset.
6525 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6526 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6528 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6529 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6531 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6533 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6534 bfd_get_start_address.
6535 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6536 (elf_swap_ehdr_out): Ditto.
6538 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6540 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6541 compatibility with older binutils.
6543 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6545 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6546 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6548 From Ryan Bradetich <rbradetich@uswest.net>
6549 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6550 (parse_line_table): Ditto.
6551 (_bfd_dwarf1_find_nearest_line): Ditto.
6552 * syms.c (cmpindexentry): Remove extra `*' from params.
6554 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
6556 * elf32-mips.c (sort_dynamic_relocs): New Function.
6557 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
6558 via qsort to sort the dynamic relocations in increasing r_symndx
6561 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6563 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
6564 ATTRIBUTE_UNUSED to unused args.
6565 (get_opd): Likewise.
6566 (get_plt): Likewise.
6567 (get_dlt): Likewise.
6568 (get_stub): Likewise.
6569 (elf64_hppa_adjust_dynamic_symbol): Likewise.
6570 (elf64_hppa_link_output_symbol_hook): Likewise.
6571 (elf64_hppa_check_relocs): Delete unused var.
6572 (elf64_hppa_size_dynamic_sections): Likewise.
6573 (elf64_hppa_finalize_opd): Likewise.
6574 (elf64_hppa_finalize_dynreloc): Likewise.
6575 (elf64_hppa_modify_segment_map): Likewise.
6576 (elf64_hppa_finish_dynamic_sections): Likewise.
6578 * elf-hppa.h (elf_hppa_final_write_processing): Add
6579 ATTRIBUTE_UNUSED to unused args.
6580 (elf_hppa_final_link_relocate): Likewise.
6581 (elf_hppa_record_segment_addrs): Add paretheses.
6582 (elf_hppa_relocate_section): Constify dyn_name.
6584 From David Huggins-Daines <dhd@linuxcare.com>
6585 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
6586 rearrange case statement so that it gets preferred to 32-bit ones.
6588 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
6589 asection->id instead of address of asection structure.
6590 (elf32_hppa_size_stubs): Likewise.
6592 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
6593 for .init* and .fini*.
6595 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
6596 and addends used in stub names to 32 bits.
6597 (elf32_hppa_size_stubs): Likewise.
6599 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
6600 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
6601 not bfd_put_64. Fix minor comment typo and formatting.
6603 Changes to create multiple linker stubs, positioned immediately
6604 before the section where they are required.
6605 * elf32-hppa.c: Don't include hppa_stubs.h.
6606 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
6607 (elf32_hppa_stub_hash_table): Delete.
6608 (elf32_hppa_link_hash_entry): Delete.
6609 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
6610 stub_hash_table, and store the struct here rather than a pointer.
6611 Delete output_symbol_count. Add offset array. Change
6612 global_value to a bfd_vma.
6613 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
6614 (elf32_hppa_stub_hash_traverse): Delete.
6615 (elf32_hppa_name_of_stub): Delete.
6616 (elf32_hppa_link_hash_lookup): Delete.
6617 (elf32_hppa_link_hash_traverse): Delete.
6618 (elf32_hppa_stub_hash_table_init): Delete.
6619 (elf32_hppa_size_of_stub): Pass input section and offset rather
6620 than location and calculate location here. Don't pass name as all
6621 stubs are now the same size.
6622 (elf32_hppa_stub_hash_newfunc): Init new fields.
6623 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
6625 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
6626 comparing against ints. Rewrite stub handling code.
6627 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
6628 Case enums to int before comparing against ints. Remove
6629 bfd_reloc_dangerous case.
6630 (elf32_hppa_build_one_stub): Rewrite.
6631 (elf32_hppa_size_one_stub): New function.
6632 (elf32_hppa_build_stubs): Rewrite.
6633 (elf32_hppa_size_stubs): Pass in linker call-back functions.
6634 Rewrite stub-handling specific code.
6636 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
6638 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
6640 * hppa_stubs.h: Delete.
6641 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
6642 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
6643 * Makefile.in: Regenerate.
6645 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
6648 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
6650 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
6651 and section name for bfd_reloc_notsupported error message.
6652 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
6653 bfd_reloc_notsupported.
6654 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
6656 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
6657 undefined weak symbols for all relocs.
6658 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
6659 offsets are relative to one past the delay slot.
6660 (elf32_hppa_size_stubs): Account for reloc addend when calculating
6661 branch destination. Put addend into stub name too.
6662 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
6663 adjust by 8 when deciding whether a linker stub is needed. Put
6664 addend into stub name as for above.
6666 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
6667 various args and vars.
6668 (elf32_hppa_bfd_final_link_relocate): Here too.
6669 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
6670 inner block var to avoid shadowing.
6672 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
6674 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
6675 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
6676 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
6678 * libhppa.h: Change practically all unsigned ints to plain ints.
6679 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
6682 From Ryan Bradetich <rbradetich@uswest.net>
6683 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
6684 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
6686 From David Huggins-Daines <dhd@linuxcare.com>
6687 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
6688 to the new OP_* ones.
6690 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
6691 error exit. Bail out earlier on plabel relocs that we aren't
6692 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
6693 string, and then don't free our copy.
6694 (elf32_hppa_build_one_stub): Make insn unsigned int.
6696 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
6697 available with BL, not BE and BLE.
6699 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
6700 code for elf arg relocs.
6701 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
6702 argument with elf_link_hash_entry h. Handle undefined weak
6703 symbols. Move $global$ lookup from here...
6704 (elf32_hppa_relocate_section): ...to here. Return correct error
6705 message for non-handled relocs.
6706 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
6707 wrong test was -0x3ffff to +0x40000.
6709 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
6710 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
6711 Handle them as such.
6712 (elf_hppa_relocate_insn): Fix a typo.
6714 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
6715 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6716 assemble_17, assemble_21): Delete.
6717 Supply defines for all 64 possible opcodes.
6718 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
6719 formats. Handle COMICLR.
6720 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
6723 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
6724 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
6725 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
6727 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
6728 the local syms - did this code get deleted accidentally? Ignore
6729 undefined and undefweak syms.
6731 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
6732 block. Use it instead of elf64_hppa_hash_table (info).
6733 (elf_hppa_final_link_relocate): Use hppa_info instead of
6734 elf64_hppa_hash_table (info).
6736 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6737 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6738 (hppa_rebuild_insn): Mask immediate bits here instead.
6739 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6741 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6743 * section.c (struct sec): Add id field. Tidy comment formatting.
6744 (bfd_make_section_anyway): Set id.
6745 (STD_SECTION): Init id too.
6746 Change CONST to const throughout.
6747 * archures.c (bfd_arch_info): Tidy comment.
6748 (bfd_arch_list): Change a CONST to const.
6749 * libbfd-in.h: Tidy comments and replace CONST with const.
6750 * elf-bfd.h: Likewise.
6751 * libbfd.h: Regenerate.
6752 * bfd-in2.h: Regenerate.
6753 * libcoff.h: Regenerate.
6755 2000-07-07 DJ Delorie <dj@redhat.com>
6757 * archive.c (_bfd_write_archive_contents): Add an informative
6760 2000-07-06 Kazu Hirata <kazu@hxi.com>
6762 * srec.c: Fix formatting.
6764 2000-06-05 DJ Delorie <dj@redhat.com>
6768 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
6770 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
6771 value of PC-relative offsets.
6773 2000-07-03 Jim Wilson <wilson@cygnus.com>
6775 * elf64-alpha.c (alpha_elf_size_info): New.
6776 (elf_backend_size_info): Define to alpha_elf_size_info.
6777 * elfcode.h (elf_size_info): Change hash bucket size to 4.
6779 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
6781 * elf32-mips.c: Include elf32-target.h again for the traditional
6784 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
6786 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
6787 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
6788 (avr_info_to_howto_rela): Likewise.
6789 (elf32_avr_gc_mark_hook): Likewise.
6790 (elf32_avr_gc_sweep_hook): Likewise.
6791 (elf32_avr_relocate_section): Likewise.
6793 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
6795 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
6796 an external symbol for a non-shared, non-relocatable link.
6798 2000-07-03 Nick Clifton <nickc@redhat.com>
6800 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
6801 is an external symbol.
6802 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
6805 2000-07-03 Kazu Hirata <kazu@hxi.com>
6807 * reloc16.c: Fix formatting.
6809 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6811 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
6812 to add a new target for traditional mips i.e
6813 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
6814 * configure.in: Likewise.
6815 * configure: Rebuild.
6816 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
6818 (bfd_elf32_tradlittlemips_vec): Likewise.
6819 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
6820 to see that elfNN_bed does not get redefined even if the target file
6821 is included twice for a chip. See elf32-mips.c.
6823 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6825 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6826 (CLEANFILES): Add DEPA.
6827 * Makefile.in: Regenerate.
6829 2000-06-30 DJ Delorie <dj@cygnus.com>
6831 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
6832 can't assume the PE header is at 0x80.
6834 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
6836 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
6838 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
6840 * go32stub.h: Update stub.
6842 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6844 * archures.c (bfd_mach_avr5): Define.
6845 * bfd-in2.h (bfd_mach_avr5): Define.
6846 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
6847 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
6848 (compatible): Update comment. Add missing test.
6849 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
6850 for avr2 and avr4. Simplify 8K wrap code.
6851 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
6852 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
6854 2000-06-26 Kazu Hirata <kazu@hxi.com>
6856 * coff-h8300.c: Fix formatting.
6857 * cpu-h8300.c: Likewise.
6859 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
6861 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
6862 for local symbols whose names are unknown.
6864 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6866 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6868 * Makefile.in: Regenerate.
6869 * doc/Makefile.in: Regenerate.
6871 2000-06-20 H.J. Lu <hjl@gnu.org>
6873 * Makefile.am: Rebuild dependency.
6874 * Makefile.in: Rebuild.
6876 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6878 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
6879 (elf_backend_copy_indirect_symbol): Map to the new function.
6881 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6883 * archive.c (normalize): Correct pointer comparison when checking
6885 (bfd_bsd_truncate_arname): Likewise.
6886 (bfd_gnu_truncate_arname): Likewise.
6888 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6890 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6891 sections elf_{text,data}_{section,symbol}.
6892 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6893 (_bfd_mips_elf_hide_symbol): New function.
6894 (elf_backend_hide_symbol): Map to the new function.
6895 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6896 definitions of mips_elf_{text,data}_{section,symbol}.
6897 (mips_elf_local_relocation_p): Try to find the direct symbol
6898 based on new check_forced argument.
6899 (mips_elf_calculate_relocation): Use new version of
6900 mips_elf_local_relocation_p.
6901 (mips_elf_relocate_section): Likewise.
6902 (_bfd_mips_elf_relocate_section): Likewise.
6903 (mips_elf_sort_hash_table): Only assert that have enough GOT
6905 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6906 entry if the relocation based on the new external argument.
6907 (mips_elf_create_dynamic_relocation): Assert that we have a
6908 section contents allocated where we can swap out the dynamic
6910 (mips_elf_calculate_relocation): Find the real hash-table entry
6911 correctly by using h->root.root.type. Only create a dynamic
6912 relocation entry if the symbol is defined in a shared library.
6913 Create an external GOT entry for the GOT16 relocation if the
6914 symbol was forced local.
6915 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6916 dynamic index if the symbol was forced local.
6918 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6920 * elf32-mips.c: Fix typos in comments.
6922 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6924 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6927 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6929 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6930 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6931 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6932 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6933 (bfd_elf32_m68hc11_vec): Likewise.
6934 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6935 Supports 68hc11 & 68hc12 at the same time.
6936 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6938 (bfd_elf32_m68hc11_vec): Likewise.
6939 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6940 * archures.c (bfd_m68hc12_arch): Define and register in global list
6941 (bfd_m68hc11_arch): Likewise.
6942 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6943 BFD_RELOC_M68HC11_3B): Define.
6944 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6945 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6947 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6949 * elf_bfd.h (struct elf_backend_data): Add info argument to
6950 elf_backend_hide_symbol.
6951 (_bfd_elf_link_hash_hide_symbol): Likewise.
6952 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6953 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6954 * elflink.h (elf_link_add_object_symbols): Likewise.
6955 (elf_link_assign_sym_version): Likewise.
6957 2000-06-18 H.J. Lu <hjl@gnu.org>
6959 * coff-i386.c (coff_i386_reloc): Don't return in case of
6960 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6961 Compensate PE relocations when linking with non-PE object
6962 files to generate a non-PE executable.
6964 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6966 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6967 GOT entries if we're doing a static link or -Bsymbolic link.
6969 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6971 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6972 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6974 (elf_link_output_relocs): Likewise.
6975 (elf_reloc_link_order): Likewise.
6977 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6979 * archures.c (enum bfd_architecture): #define constants for
6980 PowerPc and RS6000 machine numbers.
6981 * bfd-in2.h: Regenerate.
6982 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6983 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6984 and RS6000 machine numbers using #defined constants from
6986 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6987 machine numbers using #defined constants from archures.c. Add
6988 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6989 64-bit words in 620 entry.
6990 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6992 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6994 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6996 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6997 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6998 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
7000 2000-06-16 Nicholas Duffek <nsd@redhat.com>
7002 * bfd-in.h (bfd_family_coff): Define.
7003 * bfd-in2.h: Regenerate.
7004 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
7005 coff_find_nearest_line): Check COFFness using bfd_family_coff()
7006 instead of bfd_target_coff_flavour.
7007 * cofflink.c (_bfd_coff_final_link): Likewise.
7008 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
7009 exclude XCOFF files.
7010 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7012 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
7013 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
7014 * xcofflink.c (XCOFF_XVECP): Delete.
7015 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
7016 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
7017 bfd_xcoff_record_link_assignment,
7018 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
7019 check for bfd_target_xcoff_flavour.
7021 2000-06-16 Nicholas Duffek <nsd@redhat.com>
7023 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
7025 (read_hdr): New function.
7026 (rs6000coff_core_p): Store mstsave or __context64 struct instead
7027 of trying to extract individual registers. Set abfd->arch_info
7028 to match the architecture that created the core file.
7029 (rs6000coff_get_section_contents): Delete.
7030 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
7032 2000-06-14 H.J. Lu <hjl@gnu.org>
7034 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
7037 2000-06-13 H.J. Lu <hjl@gnu.org>
7039 * configure: Regenerate.
7041 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
7043 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
7046 2000-06-08 David O'Brien <obrien@FreeBSD.org>
7048 * configure.in (VERSION): Update to show this is the CVS mainline.
7050 2000-06-07 Alan Modra <alan@linuxcare.com.au>
7052 * elf32-d10v.c: Include elf/d10v.h
7053 (enum reloc_type): Delete.
7054 * elf32-d30v.c: Include elf/d30v.h
7055 (enum reloc_type): Delete.
7057 * Makefile.am: Run "make dep-am" to regenerate dependencies.
7058 * Makefile.in: Regenerate.
7060 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
7061 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
7062 move HOWTOs into elf_howto_table.
7063 (R_386_standard, R_386_ext_offset): Define.
7064 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
7065 (elf_i386_reloc_type_lookup): Modify calculation of index into
7066 elf_howto_table since we've removed the padding.
7067 (elf_i386_info_to_howto_rel): Likewise.
7068 (elf_i386_relocate_section): Likewise.
7070 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
7072 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
7074 2000-06-05 H.J. Lu <hjl@gnu.org>
7076 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
7077 an error when seeing an undefined symbol with hidden/internal
7078 attribute. It is handled in *_relocate_section ().
7080 2000-06-05 H.J. Lu <hjl@gnu.org>
7082 * elflink.h (elf_fix_symbol_flags): Follow the link for the
7083 indirect symbol for the ELF_LINK_NON_ELF bit.
7084 (elf_link_output_extsym): Don't output the indirect symbol even
7085 if the ELF_LINK_NON_ELF bit is set.
7087 2000-06-01 J.T. Conklin <jtc@redback.com>
7089 * config.bfd (i[3456]86-*-netbsdelf*): New target.
7090 (i[3456]86-*-netbsdaout*): New target.
7091 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
7092 (i[3456]86-*-openbsd*): Likewise.
7094 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
7096 * trad-core.c: From hpux-core.c, include <dirent.h> or
7097 <sys/ndir.h> when possible.
7099 2000-05-31 Ulrich Drepper <drepper@redhat.com>
7101 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
7102 definitions. We must not assume they are sorted in the file
7103 according to their index numbers.
7105 2000-05-31 Alan Modra <alan@linuxcare.com.au>
7107 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
7108 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
7109 R_PARISC_DIR17F are for absolute branches; Handle them as such.
7111 2000-05-30 Nick Clifton <nickc@cygnus.com>
7113 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
7114 80960CA, 80960MC as valid machine names.
7116 2000-05-30 H.J. Lu <hjl@gnu.org>
7118 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
7119 visibility bits if the symbol is undefined. Correctly handle
7120 weak undefined symbols with hidden and internal attributes.
7122 * elflink.h (elf_link_add_object_symbols): Always turn the
7123 symbol into local if it has the hidden or internal attribute.
7125 2000-05-29 Philip Blundell <philb@gnu.org>
7127 * ppcboot.c: Add packed attribute if compiling with GCC.
7129 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
7131 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
7133 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
7135 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
7136 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
7137 corefile on a 64-bit (Sparc Solaris) host. Also clean up
7140 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7142 * Makefile.am: Update dependencies with "make dep-am"
7143 * Makefile.in: Regenerate.
7145 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
7146 bindtextdomain): Replace defines with those from intl/libgettext.h
7147 to quieten gcc warnings.
7149 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
7151 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
7153 * archive.c (normalize, bfd_bsd_truncate_arname,
7154 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
7155 file names with backslashes.
7157 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
7160 * sysdep.h: Include filenames.h.
7162 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7164 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
7166 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7168 * elf64-sparc.c (sparc64_elf_relax_section): New.
7169 (sparc64_elf_relocate_section): Optimize tail call into branch always
7171 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7172 (elf32_sparc_relax_section): New.
7174 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7176 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
7177 Remove unusued variables.
7178 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
7179 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
7180 previous fix, so that shared libs really don't influence targets
7181 extension mask and memory model.
7183 2000-05-23 H.J. Lu <hjl@gnu.org>
7185 * elf64-alpha.c (elf64_alpha_relocate_section): Check
7186 h->root.other not h->other.
7187 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7189 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
7191 2000-05-23 H.J. Lu <hjl@gnu.org>
7193 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
7194 undefined symbol with the non-default visibility attributes.
7195 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
7196 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7197 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7198 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7199 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7200 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7201 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7202 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7203 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7204 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
7205 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7207 2000-05-22 Richard Henderson <rth@cygnus.com>
7209 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
7210 PCREL22, PCREL64I. Zero size of special relocs.
7211 (elf64_ia64_reloc_type_lookup): Likewise.
7212 (USE_BRL, oor_brl, oor_ip): New.
7213 (elf64_ia64_relax_section): New.
7214 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
7215 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
7216 (elf64_ia64_relocate_section): Likewise.
7217 (bfd_elf64_bfd_relax_section): New.
7218 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
7219 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
7220 * bfd-in2.h, libbfd.h: Regenerate.
7222 2000-05-22 Nick Clifton <nickc@cygnus.com>
7224 * configure.in : Add peigen.lo to MIPS PE targets.
7225 * configure: Regenerate.
7227 2000-05-22 Momchil Velikov <velco@fadata.bg>
7229 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
7230 only if it is known for both input and output bfds. Separate
7231 error message strings as in some languages, it may be necessary
7232 to change more than one place in the string to change between
7235 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
7236 endianess checks, call _bfd_generic_verify_endian_match() instead.
7238 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
7240 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
7242 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
7243 endianess before checking bfd flavours.
7245 2000-05-22 H.J. Lu <hjl@gnu.org>
7247 * elflink.h (elf_link_output_extsym): Clear the visibility
7248 field for symbols not defined locally.
7250 2000-05-18 Alan Modra <alan@linuxcare.com.au>
7252 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
7253 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
7254 (hppa_rebuild_insn): Mask immediate bits here instead.
7255 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
7257 2000-05-18 Momchil Velikov <velco@fadata.bg>
7259 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
7260 relocs for an executable, ensure that they are virtual addresses.
7262 2000-05-18 Jeffrey A Law (law@cygnus.com)
7264 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
7266 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
7267 Rick Gorton <gorton@scrugs.lkg.dec.com>
7269 * elflink.h: Add emitrelocations support: when enabled, relocation
7270 information and relocation sections are put into final output
7271 executables. If the emitrelocations flag is set, do the following:
7272 (elf_bfd_final_link): Emit relocation sections.
7273 (elf_link_input_bfd): Compute relocation section contents.
7274 (elf_gc_sections): Don't clean relocation sections.
7276 2000-05-16 Catherine Moore <clm@cygnus.com>
7278 * som.c (som_decode_symclass): Recognize weak symbols.
7280 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
7282 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
7283 read idata section only from dataoff.
7284 (pe_print_edata): Correctly check for valid eat_member.
7286 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7288 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
7290 2000-05-14 Philip Blundell <philb@gnu.org>
7292 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
7294 2000-05-12 Alan Modra <alan@linuxcare.com.au>
7296 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
7298 * peigen.c (pe_print_idata): Look for .idata section and print
7299 info even if data directory has zero entries. Read idata section
7300 starting from dataoff, and adjust all data offsets to suit. Cast
7301 all bfd_vma vars to unsigned long before passing to fprintf.
7302 * peigen.c (pe_print_edata): Similarly, look for .edata section
7303 and print info even if data directory has zero entries. Cast
7304 all bfd_vma vars to unsigned long before passing to fprintf.
7306 From Szabolcs Szakacsits <szaka@F-Secure.com>
7307 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
7308 directory size which may be bogus.
7309 * peigen.c (pe_print_edata): Similarly.
7311 2000-05-09 Alan Modra <alan@linuxcare.com.au>
7313 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
7315 (copy_private_bfd_data): Allow for space possibly taken up by elf
7316 headers when calculating segment physical address from lma.
7318 2000-05-08 Alan Modra <alan@linuxcare.com.au>
7320 * versados.c (versados_scan): Init stringlen and pass_2_done.
7322 * trad-core.c (trad_unix_core_file_p): Return
7323 bfd_error_wrong_format rather than bfd_error_file_truncated.
7325 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
7326 add_data_entry. DataDirectory virtual address is relative.
7327 (pe_print_idata): Account for relative DataDirectory virtual
7328 addresses. Don't trash datasize inside POWERPC_LE_PE code.
7329 (pe_print_edata): Similarly.
7331 From Szabolcs Szakacsits <szaka@F-Secure.com>
7332 * peigen.c (dir_names): Add Delay Import Directory.
7333 (pe_print_idata): Always search for bfd section containing
7334 idata address rather than looking up section name. Print this
7335 section name rather than .idata.
7336 (pe_print_edata): Similarly. Also print some fields as %08lx.
7337 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
7340 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7342 * xcoff.h: Rename to xcoff-target.h
7343 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
7344 * coff-rs6000.c: Ditto.
7345 * coff64-rs6000.c: Ditto.
7346 * coff-pmac.c: Ditto.
7347 * Makefile.in: Regenerate.
7349 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7351 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
7352 Change U802TOC64MAGIC to U803XTOCMAGIC.
7354 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
7356 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
7357 * bfd-in.h: Prototype bfd_elf_get_arch_size.
7358 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
7360 2000-05-04 Alan Modra <alan@linuxcare.com.au>
7362 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
7364 2000-05-03 Martin v. L�öwis <loewis@informatik.hu-berlin.de>
7366 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
7367 hidden and internal symbols.
7368 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
7370 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
7371 assign a PLT or GOT entry to symbols with hidden and
7372 internal visibility.
7374 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
7376 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
7378 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
7380 2000-05-02 H.J. Lu <hjl@gnu.org>
7382 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
7385 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7387 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
7388 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
7390 * Makefile.in: Regenerate.
7392 2000-05-01 Jim Wilson <wilson@cygnus.com>
7394 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
7395 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
7396 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
7397 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
7398 * Makefile.in: Rebuild.
7400 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7402 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
7403 doesn't work very well.
7405 * elf-hppa.h (elf_hppa_internal_shdr): Define.
7406 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
7407 Set hdr->s_type to 1 if ARCH_SIZE == 32.
7408 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
7409 (elf_hppa_info_to_howto): Likewise.
7410 (elf_hppa_info_to_howto_rel): Likewise.
7411 (elf_hppa_reloc_type_lookup): Likewise.
7412 (elf_hppa_is_local_label_name): Likewise.
7413 (elf_hppa_fake_sections): Likewise.
7414 (elf_hppa_final_write_processing): Likewise.
7415 (elf_hppa_howto_table): Fully initialise all entries.
7416 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
7417 (elf_hppa_info_to_howto): Likewise.
7418 (elf_hppa_info_to_howto_rel): Likewise.
7419 (elf_hppa_reloc_type_lookup): Likewise.
7420 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
7421 elf_hppa_unmark_useless_dynamic_symbols,
7422 elf_hppa_remark_useless_dynamic_symbols,
7423 elf_hppa_record_segment_addrs, elf_hppa_final_link,
7424 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
7425 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
7426 elf32-hppa.c mess is cleaned up.
7427 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
7428 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
7429 r_field then call hppa_field_adjust inline func with variable
7430 r_field arg, instead call hppa_field_adjust with fixed arg.
7431 In case R_PARISC_PCREL22F, don't set r_field.
7432 (elf_hppa_relocate_insn): Change args and return type to unsigned
7433 int. Call re_assemble_* funcs to do the work.
7435 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
7438 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
7440 (sign_extend): Mask first before sign extending.
7441 (low_sign_extend): Rewrite without condition expression.
7442 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
7443 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
7444 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7445 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
7446 result as function return value rather than through pointer arg.
7447 Accept unsigned int args, and return unsigned int.
7448 (re_assemble_3): New. Combines function of dis_assemble_3 with
7449 re-assembly of opcode and immediate.
7450 (re_assemble_12): Likewise.
7451 (re_assemble_16): Likewise.
7452 (re_assemble_17): Likewise.
7453 (re_assemble_21): Likewise.
7454 (re_assemble_22): Likewise.
7455 (hppa_field_adjust): Rewrite and document, paying attention to
7456 size of types and signed/unsigned issues.
7457 (get_opcode): Shift before masking.
7458 (FDLW): Rename to FLDW.
7459 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
7460 (hppa_rebuild_insn): Change args and return value to unsigned
7461 int. Make use of re_assemble_*. Correct case 11.
7463 * dep-in.sed: Handle ../opcodes/.
7464 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
7465 elf64-hppa.h, hppa_stubs.h, xcoff.h.
7466 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
7467 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
7468 elfarm-nabi.lo dependencies outside of auto-dependency area.
7469 Regenerate dependencies.
7470 * Makefile.in: Regenerate.
7472 * configure.in (TRAD_HEADER): Test non-null before
7474 * configure: Regenerate.
7476 * reloc.c: Fix mis-spelling in comment.
7478 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7480 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7481 * vms.c (vms_openr_next_archived_file): Return NULL.
7483 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7485 * coffcode.h Copy changes mistakenly done to libcoff.h in
7488 2000-04-29 Andreas Jaeger <aj@suse.de>
7490 * libbfd-in.h: Correctly check GCC version.
7491 * bfd-in.h: Likewise.
7492 * libhppa.h: Likewise.
7493 * libbfd.h: Regenerate.
7494 * bfd-in2.h: Regenerate.
7496 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7498 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7499 coffdu-rs6000.{lo,c}.
7500 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7502 * Makefile.in: Regenerate.
7503 * xcoff.h: New file.
7504 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7505 * coff-rs6000.c: Move all declarations and defines that are
7506 common to the xcoff backends into xcoff.h
7507 * coff64-rs6000.c: Ditto,
7509 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7511 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7512 _bfd_coff_force_symnames in strings and
7513 _bfd_coff_debug_string_prefix_length to their default values.
7514 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7516 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7518 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7519 _bfd_coff_force_symnames in strings and
7520 _bfd_coff_debug_string_prefix_length to their default values.
7522 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7524 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7525 Check local_got_refcounts before dereferencing.
7527 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7528 before deciding we don't need R_PPC_PLT32 relocation.
7529 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7532 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7534 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7536 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7537 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7538 (elf_i386_relocate_section): Allow for .plt to go missing.
7539 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7540 can use a relative reloc for got as elf_i386_relocate_section.
7541 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7543 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7545 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7547 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7549 * Makefile.am (coff64-rs6000.lo): New rule.
7550 * Makefile.in: Regenerate.
7551 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
7552 xcoff_is_local_label_name, xcoff_rtype2howto,
7553 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
7554 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
7555 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
7556 (NO_COFF_SYMBOLS): Define.
7557 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
7558 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
7560 (MINUS_ONE): New macro.
7561 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7563 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7564 coff_SWAP_aux_out): Map to the new functions.
7565 * coff64-rs6000.c: New file.
7566 * libcoff.h (bfd_coff_backend_data): Add new fields
7567 _bfd_coff_force_symnames_in_strings and
7568 _bfd_coff_debug_string_prefix_length.
7569 (bfd_coff_force_symnames_in_strings,
7570 bfd_coff_debug_string_prefix_length): New macros for above fields.
7571 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
7572 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7573 of using coff_swap_sym_in directly.
7574 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
7575 (coff_set_flags) Set magic for XCOFF64.
7576 (coff_compute_section_file_positions): Add symbol name length to
7577 string section length if bfd_coff_debug_string_prefix_length is
7579 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
7580 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
7581 using coff_swap_lineno_in directly.
7582 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
7583 and _bfd_coff_debug_string_prefix_length fields.
7584 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
7585 symbol names into strings table when
7586 bfd_coff_force_symnames_in_strings is true.
7587 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
7588 SET_RELOC_VADDR): New macros.
7589 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7590 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
7592 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
7593 changes within RS6000COFF_C specific code.
7594 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7595 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
7596 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7597 Extend existing hack on target name.
7598 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
7600 * coff-tic54x.c (ticof): Keep up to date with new fields
7601 in bfd_coff_backend_data.
7602 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
7603 targ_selvecs to include rs6000coff64_vec for rs6000.
7604 * configure.in: Add rs6000coff64_vec case.
7605 * cpu-powerpc.c: New bfd_arch_info_type.
7607 2000-04-24 Jeffrey A Law (law@cygnus.com)
7609 * config.bfd: Only disable elf32-hppa vectors, not all of the
7610 BSD and OSF configuration support. Provide (disabled) clauses
7612 * configure.in: Add clause for PA64 support.
7613 * configure: Rebuilt.
7615 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
7616 (bfd_elf64_hppa_vec): Declare.
7618 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
7619 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
7620 (elf64-hppa.lo): Add dependencies.
7621 * Makefile.in: Rebuilt.
7623 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
7625 2000-04-24 Jason Eckhardt <jle@cygnus.com>
7627 * libhppa.h (dis_assemble_16): New function.
7628 (pa_arch): Added pa20w element.
7630 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
7632 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
7633 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
7634 bfd_elf64_slurp_reloc_table.
7636 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
7637 definitions to get external names.
7638 (elf_write_relocs): Renamed from write_relocs and make global.
7639 (elf_slurp_reloc_table): Make global.
7640 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
7642 * archive.c (hpux_uid_gid_encode): New function.
7643 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
7644 defined and the ID is greater than 99999.
7645 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
7646 special uid/gid fields into 32 bit values.
7648 2000-04-21 Matthew Green <mrg@cygnus.com>
7650 * config.bfd: Add NetBSD/sparc64 support.
7652 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
7653 David Mosberger <davidm@hpl.hp.com>
7654 Timothy Wall <twall@cygnus.com>
7655 Jim Wilson <wilson@cygnus.com>
7657 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
7658 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
7659 (BFD64_BACKENDS): Add elf64-ia64.lo.
7660 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
7661 (cpu-ia64.lo, elf64-ia64.lo): New rules.
7662 * Makefile.in: Rebuild.
7663 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
7664 (bfd_ia64_arch): Declare.
7665 (bfd_archures_list): Add bfd_ia64_arch.
7666 * bfd-in2.h: Rebuild.
7667 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
7668 * configure: Rebuild.
7669 * configure.host: (ia64-*-linux*): New host.
7670 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
7671 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
7672 * elf.c (prep_headers): Add bfd_arch_ia64.
7673 * libbfd.h: Rebuild.
7674 * reloc.c: Add IA-64 relocations.
7675 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
7677 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
7678 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
7680 2000-04-21 Richard Henderson <rth@cygnus.com>
7682 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
7683 contents when performing a partial link.
7684 (bfd_elf_d30v_reloc_21): Likewise.
7686 2000-04-20 H.J. Lu <hjl@gnu.org>
7688 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
7689 patch to symbols defined by a shared object.
7690 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
7692 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7695 * dwarf2.c (concat_filename): Avoid string literal concatenation.
7696 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
7698 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
7700 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
7701 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
7702 (coff-ia64.lo): Add dependency.
7703 * Makefile.in: Regenerate.
7704 * coff-ia64.c: New file.
7705 * efi-app-ia32.c: Ditto.
7706 * efi-app-ia64.c: Ditto.
7707 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
7708 (coff_set_flags): Ditto.
7709 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
7710 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
7711 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
7712 * configure: Regenerate.
7713 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
7714 (PUT_OPTHDR_IMAGE_BASE): Ditto.
7715 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7716 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7717 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7718 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7719 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7720 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7721 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7722 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7723 (GET_PDATA_ENTRY): Ditto.
7724 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
7725 data_start. Use above macros to read fields that are 64 bit wide for
7726 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
7727 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
7728 FileAlignment and SectionAlignment to minimum alignment if they
7730 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
7731 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
7732 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
7733 Use above macros to write fields that are 64 bit wide for
7735 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
7736 5*4 otherwise. This should be right for IA-32 and IA-64, but may
7737 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
7738 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
7739 begin address, end address, and unwind info address only. Use
7740 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
7742 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
7743 HIGH3ADJ relocation names.
7744 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
7745 * targets.c: Declare bfd_efi_app_ia32_vec and
7746 bfd_efi_app_ia64_vec.
7747 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
7748 bfd_efi_app_ia64_vec.
7750 2000-04-17 Timothy Wall <twall@cygnus.com>
7752 * bfd-in2.h: Add prototypes for tic54x load page access.
7753 * bfd-in.h: Regenerate.
7754 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
7755 in customized _set_arch_mach function.
7756 * coffcode.h (coff_set_alignment_hook): Set section load page if
7757 the appropriate macro is defined.
7758 (write_object_contents): Read section load page.
7760 2000-04-13 Alan Modra <alan@linuxcare.com.au>
7762 * elf32-hppa.h: Update copyright date.
7764 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
7765 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
7767 * elf32-d30v.c (MAX32): Don't use LL suffix.
7768 (MIN32): Define in terms of MAX32.
7769 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
7771 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
7774 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
7776 2000-04-12 Alan Modra <alan@linuxcare.com.au>
7778 * dep-in.sed: Match space before file name, not after.
7779 * Makefile.am: Regenerate dependencies.
7780 * Makefile.in: Regenerate.
7782 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
7783 case, allow address wrap-around stupidly removed 2000-03-17. Sign
7784 extend without an if statement.
7786 2000-04-11 Alan Modra <alan@linuxcare.com.au>
7788 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
7790 * elf32-mips.c (gprel16_with_gp): Likewise.
7791 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
7792 here using -0x40000, not (int)0xfffc0000.
7793 (elf32_hppa_size_of_stub): Likewise.
7795 2000-04-11 Timothy Wall <twall@cygnus.com>
7797 * coff-tic54x.c: Now builds with all targets.
7798 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
7799 * Makefile.in: Regenerate.
7800 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
7801 unitialized variable.
7803 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
7805 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
7806 --enable-build-warnings option.
7807 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
7808 * Makefile.in, configure: Re-generate.
7810 2000-04-07 Nick Clifton <nickc@cygnus.com>
7812 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
7813 BFD_RELOC_THUMB_PCREL_BLX.
7815 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7816 R_ARM_XPC25 and R_ARM_THM_PC22.
7818 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
7819 R_ARM_XPC25 and R_ARM_THM_XPC22.
7820 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
7821 R_ARM_[XPC25|THM_XPC22].
7823 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
7824 elf/arm-oabi.h to elf/arm.h
7826 * Makefile.am: Fix dependency for elfarm-oabi.c
7827 * Makefile.in: Regenerate.
7829 * bfd-in2.h: Regenerate.
7830 * libbfd.h: Regenerate.
7832 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7834 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
7835 and restore it on failure. Release newly allocated tdata on
7838 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
7840 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
7841 (decode_line_info): Set it. Report error if unit->line_offset is
7842 equal to or larger than it.
7844 2000-04-07 Timothy Wall <twall@cygnus.com>
7846 * targets.c: Added vecs for tic54x.
7847 * reloc.c: Added relocs for tic54x.
7848 * libbfd.h: Regenerated.
7849 * configure: Add TI COFF vecs for tic54x.
7850 * configure.in: Ditto.
7851 * config.bfd (targ_cpu): Recognize new tic54x target.
7852 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
7853 * bfd-in2.h: Add tic54x target and relocations.
7854 * Makefile.am, Makefile.in: Add tic54x target.
7855 * archures.c (bfd_archures_list): Add tic54x target.
7856 * coff-tic54x.c: New.
7857 * cpu-tic54x.c: New.
7859 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7861 * elfcore.h (elf_core_file_p): call backend_object_p which
7862 thereby gets an opportunity to update the arch/machine type.
7864 2000-04-06 Timothy Wall <twall@cygnus.com>
7866 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
7867 class. Handle SEC_CLINK and SEC_BLOCK flags.
7868 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
7869 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
7871 2000-04-06 Nick Clifton <nickc@cygnus.com>
7873 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
7874 EF_INTERWORK if this is an unknown EABI.
7875 (elf32_arm_merge_private_bfd_data): Check EABI version
7876 numbers. Only check EF_xxx flags if the EABI version number
7878 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
7879 if the EABI version number is unknown.
7880 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
7881 if the EABI version number is unknown.
7883 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7885 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
7886 BFD_RELOC_SH_LOOP_END.
7887 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
7888 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7889 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7890 (sh_elf_reloc_loop): New function.
7891 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7893 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7894 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7895 * bfd-in2.h, libbfd.h: Regenerate.
7897 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7899 * po/bfd.pot: Regenerate.
7901 * Makefile.am: Remove extraneous mkdep comment.
7902 (MKDEP): Use gcc -MM rather than mkdep.
7903 (DEP): Quote when passing vars to sub-make. Add warning
7905 (DEP1): Rewrite for "gcc -MM".
7906 (CLEANFILES): Add DEP2.
7907 Update dependencies.
7908 * Makefile.in: Regenerate.
7910 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7912 * configure.in: Added corefile support for AIX 4.3. In particular,
7913 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7914 compiling rs6000-core.c.
7915 * configure: Regenerated.
7917 2000-04-03 H.J. Lu <hjl@gnu.org>
7919 * cache.c (bfd_open_file): Unlink the output file only if
7920 it has non-zero size.
7922 2000-04-01 Ken Block USG <block@zk3.dec.com>
7924 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7925 relative relocations for non-loaded sections in shared objects.
7926 (elf64_alpha_check_relocs): Similarly.
7928 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7930 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7931 BFD_RELOC_16 to switch for extended relocs.
7932 (MY_swap_ext_reloc_in): New.
7933 (MY_swap_ext_reloc_out): New.
7934 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7935 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7936 (NAME(aout,squirt_out_relocs)): Similarly use
7937 MY_swap_ext_reloc_out.
7938 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7940 2000-04-03 Kazu Hirata <kazu@hxi.com>
7942 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7943 the R_PCRWORD_B case.
7945 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7947 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7951 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7953 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7954 HOWTO references to bfd_elf_generic_reloc, that have
7955 partial_inplace == true, now use the new function. The function
7956 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7957 extends its fixes to the R_M32R_{16,24,32} relocs.
7958 The new logic in m32r_elf_lo16_reloc() has been removed, and
7959 it instead calls the new routine to obtain that functionality.
7961 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7963 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7964 elf32_avr_check_relocs, avr_final_link_relocate,
7965 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7966 elf32_avr_object_p): Add prototypes.
7967 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7968 (bfd_elf_avr_final_write_processing): Make static.
7970 2000-03-27 Denis Chertykov <denisc@overta.ru>
7972 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7973 * archures.c (bfd_architecture): Add AVR architecture.
7974 (bfd_archures_list): Add reference to AVR architecture info.
7975 * elf.c (prep_headers): Handle bfd_arch_avr.
7976 * reloc.c: Add various AVR relocation enums.
7977 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7979 * Makefile.am: Add support for AVR elf.
7980 * configure.in: Likewise.
7981 * config.bfd: Likewise.
7982 * Makefile.in: Regenerate.
7983 * configure: This too.
7984 * bfd-in2.h: And this.
7985 * libbfd.h: And this.
7987 2000-03-24 H.J. Lu <hjl@gnu.org>
7989 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7990 (elf64_alpha_find_reloc_at_ofs): Likewise.
7992 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7994 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7995 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7996 allowable range used to be -2**(n-1) to 2**n-1.
7997 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7998 "boolean overflow" with "bfd_reloc_status_type flag".
8000 2000-03-14 Doug Evans <dje@casey.transmeta.com>
8002 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
8004 2000-03-14 Kazu Hirata <kazu@hxi.com>
8006 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
8007 of shrinks properly, including the last reloc.
8009 2000-03-13 Kazu Hirata <kazu@hxi.com>
8011 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
8014 2000-03-11 Alan Modra <alan@linuxcare.com.au>
8016 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
8017 a format mismatch rather than an "error" from bfd_read such as
8018 bfd_error_file_truncated.
8020 2000-03-10 Geoff Keating <geoffk@cygnus.com>
8022 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
8023 sign-extension and big-endian compensation for
8024 R_MIPS_64 even in ld -r.
8026 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
8028 * elf32-mips.c (mips_elf_next_relocation): Rename from
8029 mips_elf_next_lo16_relocation, and generalize to look
8030 for any relocation type.
8031 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
8032 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
8033 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
8034 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
8035 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
8036 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
8037 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
8038 (mips_rtype_to_howto): Likewise.
8039 (mips_elf_calculate_relocation): Handle new relocs.
8040 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
8041 are paired. The addend for R_MIPS_GNU_REL16_S2
8042 is shifted right two bits.
8044 2000-03-10 Alan Modra <alan@linuxcare.com.au>
8046 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
8047 comment, and ensure it doesn't happen again.
8048 (bfd_install_relocation): Same here.
8049 (_bfd_relocate_contents): Don't bother assigning unused signmask
8050 shift result. Fix typos in comments.
8051 Remove trailing whitespace throughout file.
8053 2000-03-07 Doug Evans <dje@casey.transmeta.com>
8055 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
8056 * bfd-in2.h: Rebuild.
8058 2000-03-06 Nick Clifton <nickc@cygnus.com>
8060 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
8062 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
8063 (SIZEOF_ILF_STRINGS): Redefine.
8064 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
8065 relative reloc, as opposed to a section relative reloc.
8066 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
8068 Add length of symbol's prefix to string pointer.
8069 Store a pointer to the symbol in the symbol pointer table.
8070 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
8071 Initialise the symbol pointer table.
8072 Store the hint in the Hint/Name table.
8073 Make the jump reloc be symbol realtive, not section relative.
8074 Create an import symbol for imported code.
8076 2000-03-06 Catherine Moore <clm@cygnus.com>
8078 * elf.c (swap_out_syms): Check for null type_ptr.
8080 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
8082 * aout-target.h (MY(write_object_contents)): Remove unused
8083 and unusable "#if CHOOSE_RELOC_SIZE".
8084 * pc532-mach.c (MY(write_object_contents)): Ditto.
8085 * netbsd.h (MY(write_object_contents)): Ditto.
8086 * hp300hpux.c (MY(write_object_contents)): Ditto.
8087 * freebsd.h (MY(write_object_contents)): Ditto.
8088 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
8090 2000-02-29 H.J. Lu <hjl@gnu.org>
8092 * peicode.h (jtab): Make it static.
8094 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
8095 defined and COFF_IMAGE_WITH_PE is not defined.
8096 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
8097 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
8099 2000-03-01 Nick Clifton <nickc@cygnus.com>
8101 * coff-arm.c (bfd_arm_process_before_allocation): Make
8102 'symndx' signed to prevent compile time warning.
8104 * coff-mcore.c: Remove unused prototype for pe_object_p.
8106 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
8107 functions that are not used when COFF_IMAGE_WITH_PE is
8109 (struct sh_opcode): Change type of 'flags' field to unsigned
8110 long so that it can hold the USESAS flag.
8112 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
8114 * elf-m10300.c (mn10300_elf_relax_section): Initialise
8117 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
8119 Remove unusued variables and code.
8120 (elf_backend_add_symbol_hook): Fix prototype.
8122 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
8125 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
8128 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
8130 Remove unusued variables and code.
8131 (elf_backend_add_symbol_hook): Fix prototype.
8133 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
8135 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
8136 to unused function parameter.
8138 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
8140 Use EMPTY_HOWTO to initialise empty howto slots.
8141 Remove unused variables.
8143 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
8145 2000-03-01 H.J. Lu <hjl@gnu.org>
8147 * aoutx.h (aout_link_input_section_std): Pass "true" to
8148 the undefined_symbol callback.
8149 (aout_link_input_section_ext): Likewise.
8150 * bout.c (get_value): Likewise.
8151 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
8152 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
8154 (alpha_relocate_section): Likewise.
8155 * coff-arm.c (coff_arm_relocate_section): Likewise.
8156 * coff-i960.c (coff_i960_relocate_section): Likewise.
8157 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
8158 * coff-mips.c (mips_relocate_section): Likewise.
8159 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
8160 * coff-sh.c (sh_relocate_section): Likewise.
8161 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
8162 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
8163 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
8164 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
8165 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
8166 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
8167 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
8168 * elf32-i370.c (i370_elf_relocate_section): Likewise.
8169 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
8170 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
8171 * elf32-sh.c (sh_elf_relocate_section): Likewise.
8172 * elf32-v850.c (v850_elf_relocate_section): Likewise.
8173 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
8174 * elflink.h (elf_link_output_extsym): Likewise.
8175 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
8176 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
8177 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
8179 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
8180 undefined_symbol callback when building shared library with
8181 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
8183 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
8184 * elf32-i386.c (elf_i386_relocate_section): Likewise.
8185 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
8186 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
8187 (elf32_mips_get_relocated_section_content): Likewise.
8188 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
8189 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
8190 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
8191 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
8193 2000-02-28 Nick Clifton <nickc@cygnus.com>
8195 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
8196 * Makefile.in: Regenerate.
8198 * configure.in: Add support for mips and sh pe vectors.
8199 * configure: regenerate.
8201 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
8204 * targets.c: Add mips and sh pe vectors.
8206 * libpei.h (coff_final_link_postscript): Only define if not
8209 * coffcode.h: Add support for WinCE magic numbers.
8211 * peigen.c (pe_print_reloc): Update comment and rearrange
8212 appending of newline character.
8214 * peicode.h: Add support for Image Library Format.
8215 (pe_ILF_vars): Structure containing data used by ILF code.
8216 (pe_ILF_make_a_section): New function. Create a section based
8218 (pe_ILF_make_a_reloc): New function. Create a reloc based on
8220 (pe_ILF_make_a_symbol): New function. Create a symbol based
8222 (pe_ILF_save_relocs): New function. Store the relocs created
8223 by pe_ILF_make_a_reloc in a section.
8224 (pe_ILF_build_a_bfd): New function. Create a BFD describing
8226 (pe_ILF_object_p): New function. Return a bfd_target pointer
8228 (pe_bfd_object_p): If an ILF object is detected call
8229 pe_ILF_object_p on it.
8231 * coff-arm.c: Add support for WinCE relocs which are different
8232 from normal ARM COFF relocs.
8233 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
8235 * coff-sh.c: Add support for sh-pe target.
8236 * pe-sh.c: New file. Support code for sh-pe target.
8237 * pei-sh.c: New file. Support code for sh-pe target.
8239 * pe-mips.c: New file. Support code for mips-pe target.
8240 * pei-mips.c: New file. Support code for mips-pe target.
8242 2000-02-27 Jakub Jelinek <jakub@redhat.com>
8244 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
8245 architecture if the object causing the bump is dynamic.
8246 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
8247 and also don't it for memory ordering.
8248 (sparc64_elf_write_relocs): Take src_rela out of the loop.
8250 2000-02-27 Ian Lance Taylor <ian@zembu.com>
8252 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
8253 calling bfd_get_section_size_before_reloc.
8254 (decode_line_info): Likewise.
8255 (_bfd_dwarf2_find_nearest_line): Likewise.
8257 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
8259 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
8260 name of the libtool directory.
8261 * Makefile.in: Rebuild.
8263 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
8265 * som.c (SOM_HOWTO): Define.
8266 (som_hppa_howto_table): Use it.
8268 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8270 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
8272 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
8274 2000-02-24 Catherine Moore <clm@cygnus.com>
8276 * som.c (som_misc_symbol_info): Add field
8278 (som_bfd_derive_misc_symbol_info): Initialize
8280 (som_build_and_write_symbol_table): Keep track
8281 of secondary_def field.
8282 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
8283 if secondary_def field is set.
8284 (som_bfd_ar_write_symbol_stuff): Initialize
8287 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
8289 * dwarf2.c (read_address): Read 16-bits addresses.
8290 (parse_comp_unit): Accept addr_size == 2.
8292 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
8294 * bfd-in.h: Update copyright date.
8296 2000-02-23 Linas Vepstas <linas@linas.org>
8298 * cpu-i370.c: New file.
8299 * elf32-i370.c: New file.
8300 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
8301 (bfd_i370_arch): New.
8302 (bfd_archures_list): Add bfd_i370_arch.
8303 * elf.c (prep_headers): Add bfd_arch_i370.
8304 * Makefile.am: Add support for IBM 370 elf.
8305 * config.bfd: Likewise.
8306 * configure.in: Likewise.
8307 * libbfd.h (bfd_reloc_code_real_names): Likewise.
8308 * reloc.c (bfd_reloc_code_type): Likewise.
8309 * targets.c: Likewise.
8311 * Makefile.in: Regenerate.
8312 * configure: Regenerate.
8313 * bfd-in2.h: Regenerate.
8315 2000-02-22 Ian Lance Taylor <ian@zembu.com>
8317 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
8318 invalid relocation types, and change them to R_386_NONE.
8320 2000-02-22 H.J. Lu <hjl@gnu.org>
8322 * elflink.h (elf_link_add_object_symbols): If a version symbol is
8323 not defined, don't add a second ELF_VER_CHR.
8325 * elflink.h (elf_bfd_final_link): Call output_extsym for global
8326 symbols converted to local symbols even when stripping all
8328 (elf_link_output_extsym): Process global symbols converted to
8329 local symbols even if they are being stripped.
8331 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
8333 * archures.c (bfd_octets_per_byte): Return unsigned int.
8334 (bfd_arch_mach_octets_per_byte): Ditto.
8335 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
8337 * section.c (bfd_get_section_size_before_reloc): Quell signed
8338 vs. unsigned comparison warning.
8339 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
8340 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
8341 change. What was I thinking?
8342 * bfd-in2.h: Regenerate.
8344 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
8345 (elf_gc_sections): Same here.
8346 (elf_gc_common_finalize_got_offsets): And here.
8348 2000-02-21 Ian Lance Taylor <ian@zembu.com>
8350 ELF HPPA doesn't work at present; remove it until it does.
8351 * config.bfd: Comment out setting targ_defvec to
8353 * Makefile.am: Rebuild dependencies.
8354 (BFD32_BACKENDS): Remove elf32-hppa.lo.
8355 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
8356 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
8357 * Makefile.in: Rebuild.
8358 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
8360 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8362 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
8363 is no bfd_free(). Revert bfd_free part of previous change.
8365 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8367 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
8369 (coff_compute_section_file_positions): Use bfd_free to pair
8371 (coff_write_object_contents): Likewise.
8373 * coff-rs6000.c (xcoff_howto_table_16): New variable.
8374 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
8376 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
8378 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
8379 (xcoff_ar_file_hdr_big): New structure.
8380 (SIZEOF_AR_FILE_HDR_BIG): New macro.
8381 (xcoff_ar_hdr_big): New structure.
8382 (SIZEOF_AR_HDR_BIG): New macro.
8383 (xcoff_big_format_p): New macro.
8384 (xcoff_ardata_big): New macro.
8385 (arch_xhdr_big): New macro.
8386 (xcoff_slurp_armap): Handle large archives.
8387 (xcoff_archive_p): Detect large archives.
8388 (xcoff_read_ar_hdr): Handle large archives.
8389 (xcoff_openr_next_archived_file): Handle large archives.
8390 (xcoff_generic_stat_arch_elt): Handle large archives.
8391 (xcoff_write_armap_old): Rename from xcoff_write_armap.
8392 (xcoff_write_armap_big): New function.
8393 (xcoff_write_armap): New function, dispatch to _old or _big.
8394 (xcoff_write_archive_contents_old): Rename from
8395 xcoff_write_archive_contents.
8396 (xcoff_write_archive_contents_big): New function.
8397 (xcoff_write_archive_contents): New function, dispatch to _old or
8400 2000-02-18 Richard Henderson <rth@cygnus.com>
8402 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
8403 and hide_symbol members.
8404 (elf_link_hash_copy_indirect): Remove.
8405 (elf_link_hash_hide_symbol): Remove.
8406 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
8407 and elf_backend_hide_symbol.
8408 (_bfd_elf_link_hash_copy_indirect): Declare.
8409 (_bfd_elf_link_hash_hide_symbol): Declare.
8410 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
8411 (_bfd_elf_link_hash_hide_symbol): Likewise.
8412 (_bfd_elf_link_hash_table_init): Don't init killed members.
8413 * elflink.h (elf_link_add_object_symbols): Use the bed function
8414 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
8415 (elf_link_assign_sym_version): Likewise.
8416 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
8417 (elf_backend_hide_symbol): Likewise.
8418 (elfNN_bed): Update for new members.
8420 2000-02-17 Kevin Buettner <kevinb@redhat.com>
8422 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
8423 STACK_END_ADDR): Define for new core file format.
8424 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
8425 for handling the vagaries of the various core file structures used
8426 by AIX over the years.
8427 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
8428 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
8429 core_dumpx structure.
8431 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8433 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
8434 (bfd_mach_sh3_dsp): Likewise.
8435 (bfd_mach_sh4): Reinstate.
8436 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
8437 * bfd-in2.h: Regenerate.
8438 * coff-sh.c (struct sh_opcode): flags is no longer short.
8439 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
8440 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
8441 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
8442 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
8443 (sh_opcodes): No longer const.
8444 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
8445 (sh_insn_uses_reg): Check for USESAS and USESR8.
8446 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
8447 (_bfd_sh_align_load_span): Return early for SH4.
8448 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
8449 Take into account that field b of a parallel processing insn
8450 could be mistaken for a separate insn.
8451 * cpu-sh.c (arch_info_struct): New array elements for
8452 sh2, sh-dsp and sh3-dsp.
8453 Reinstate element for sh4.
8454 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
8455 (SH4_NEXT): Reinstate.
8456 (SH3_NEXT, SH3E_NEXT): Adjust.
8457 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
8458 * elf32-sh.c (sh_elf_set_private_flags): New function.
8459 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
8460 (sh_elf_merge_private_data): New function.
8461 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
8462 (bfd_elf32_bfd_copy_private_bfd_data): Define.
8463 (bfd_elf32_bfd_merge_private_bfd_data): Change to
8464 sh_elf_merge_private_data.
8466 2000-02-13 Richard Henderson <rth@cygnus.com>
8468 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8469 hide_symbol members.
8470 (elf_link_hash_copy_indirect): New.
8471 (elf_link_hash_hide_symbol): New.
8472 * elflink.h (elf_link_add_object_symbols): Break out copy from
8473 indirect new new symbol to elf.c.
8474 (elf_link_assign_sym_version): Break out privatization of
8475 non-exported symbol to elf.c.
8476 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8477 (_bfd_elf_link_hash_hide_symbol): New.
8478 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8480 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8482 * section.c (_bfd_strip_section_from_output): Add info parameter.
8483 If it passed as non-NULL, use it to check whether any input BFD
8484 has an input section which uses this output section. Change all
8486 * bfd-in2.h: Rebuild.
8488 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8489 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8491 * bfd-in2.h: Rebuild.
8493 2000-02-10 Timothy Wall <twall@cygnus.com>
8495 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8496 allow final modifications of swapped-in symbol.
8497 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8498 * coffcode.h (coff_write_relocs): Use macro
8499 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8500 symbol index should be set to -1.
8502 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
8504 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8505 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8506 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8507 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8508 sh_insns_uses_or_sets_freg): New functions.
8509 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8510 * (sh_insns_conflict): Use new functions and new macros to
8511 detect conflicts when two instructions both set same integer registers,
8512 both set same fp register, and both set special register.
8514 2000-02-09 Timothy Wall <twall@cygnus.com>
8516 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8517 swapping in sections, so that the swapping routines have access to
8520 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8522 * coff-go32.c: Update comment. Update copyright.
8524 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8526 * syms.c (bfd_decode_symclass)
8527 Two new class characters were added - 'V' and 'v'. The
8528 meaning of 'W' is now restricted to just weak non-object
8529 symbols. This allows differentiation between, for example,
8530 weak functions vs weak objects. nm for example now dumps:
8532 'w' = weak unresolved
8533 'V' = weak global object
8534 'v' = weak unresolved object
8536 (bfd_is_undefined_symclass): New function. Return true if the
8537 given symbol class represents and undefined/unresolved symbol.
8539 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8542 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8544 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8545 STT_ARM_16BIT flag set, but it is not attached to a data object
8546 return STT_ARM_16BIT so that it will be treated as code by the
8549 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
8551 * coff-i386.c (i3coff_object_p): Remove prototype.
8554 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
8555 to name. Update copyright.
8557 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
8558 assignment to avoid warning. Update copyright.
8560 2000-01-24 Robert Lipe (robertl@sco.com)
8562 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
8563 instead of using GNU C extension.
8565 2000-01-21 Nick Clifton <nickc@cygnus.com>
8567 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
8568 amount from a bfd_in_memory structure.
8569 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
8572 2000-01-14 Nick Clifton <nickc@cygnus.com>
8574 * linker.c (default_indirect_link_order): oops - fix incorrectly
8575 applied patch from Tim Wall.
8577 2000-01-13 Timothy Wall (twall@tiac.net>
8579 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
8580 = scnhsz, filhsz, relsz, aoutsz, etc)
8582 * coffswap.h: Ditto.
8584 2000-01-13 Nick Clifton <nickc@cygnus.com>
8586 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
8587 interwork thumb to arm stub.
8589 2000-01-13 Timothy Wall (twall@tiac.net>
8591 * archures.c (bfd_octets_per_byte): New function: Return
8593 (bfd_arch_mach_octets_per_byte): New function: Return target
8596 * section.c: Distinguish between octets and bytes for usage of
8597 _cooked_size, _raw_size, and output_offset. Clarify
8598 description of bfd_set_section_contents.
8600 * bfd-in2.h: Regenerate.
8602 * coffgen.c: Indicate that the offset parameter is in bytes, not
8605 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
8606 where appropriate to get the octet offset when calling
8607 bfd_set_section_contents.
8608 (bfd_coff_reloc_link_order): Ditto.
8610 * linker.c (bfd_generic_reloc_link_order): Ditto.
8611 (_bfd_default_link_order): Ditto.
8613 * reloc.c (bfd_perform_relocation): Distinguish between octets
8614 and bytes. Use octets when indexing into octet data; use bytes
8615 when calculating target addresses.
8616 (bfd_install_relocation): Ditto.
8618 * srec.c (srec_write_section): Ditto.
8620 2000-01-13 Nick Clifton <nickc@cygnus.com>
8622 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
8623 3 to 2. This allows 4 byte sized sections, which is necessary for
8624 dlltool to build functioning DLLs.
8626 2000-01-10 Philip Blundell <pb@futuretv.com>
8628 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
8629 (arm*-*-conix*): New target.
8631 2000-01-10 Egor Duda <deo@logos-m.ru>
8633 * config.bfd: Include elf32_i386 vector to target list for cygwin
8636 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
8637 * configure.in: Test for structure win32_pstatus_t in
8639 * configure: Regenerate.
8641 * elf.c (elfcore_grok_win32pstatus): New function: process
8642 win32_pstatus_t notes in elf core file.
8643 (elfcore_grok_note): Detect win32_pstatus notes.
8645 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
8647 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
8649 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
8650 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
8652 For older changes see ChangeLog-9899
8658 version-control: never