1 2001-11-12 Orjan Friberg <orjanf@axis.com>
3 * elf32-cris.c (cris_elf_grok_prstatus): Adjust values to match new
6 2001-11-11 H.J. Lu <hjl@gnu.org>
8 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Call
9 _bfd_elf_strtab_size instead of _bfd_stringtab_size.
11 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Change
12 dynstr type to `struct elf_strtab_hash *'.
14 2001-11-11 Hans-Peter Nilsson <hp@bitrange.com>
16 * elf-strtab.c (_bfd_elf_strtab_finalize): Make first variable i
17 size_t. Rename second i to j.
19 Sat Nov 10 08:56:02 2001 Jeffrey A Law (law@cygnus.com)
21 * binary.c: Include safe-ctype.h after bfd.h and sysdep.h.
23 2001-11-10 Alan Modra <amodra@bigpond.net.au>
25 * elf32-arm.h (elf32_arm_final_link_relocate): Don't copy STN_UNDEF
26 relocs into shared libs.
27 * elf32-cris.c (cris_elf_relocate_section): Likewise.
28 * elf32-i370.c (i370_elf_relocate_section): Likewise.
29 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
30 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
31 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
32 * elf32-sh.c (sh_elf_relocate_section): Likewise.
33 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
34 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
35 * elf64-s390.c (elf_s390_relocate_section): Likewise.
36 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
37 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
38 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
40 * elf.c (bfd_section_from_r_symndx): New function.
41 * elf-bfd.h (LOCAL_SYM_CACHE_SIZE): Define.
42 (struct sym_sec_cache): New.
43 (bfd_section_from_r_symndx): Declare.
44 (struct bfd_elf_section_data): Change local_dynrel type to PTR.
45 * elflink.h (elf_link_input_bfd): Don't test for removed linkonce
46 relocs when relocatable. Don't zero entire reloc, just zero the
48 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add sym_sec.
49 (elf32_hppa_link_hash_table_create): Init it.
50 (elf32_hppa_check_relocs): Track dynamic relocs needed for local
51 syms on a per-section basis as we do for globals.
52 (elf32_hppa_gc_sweep_hook): Update for local_dynrel change.
53 (allocate_dynrelocs): Warning fix.
54 (elf32_hppa_size_dynamic_sections): Don't allocate relocs when
55 section has been discarded.
56 (elf32_hppa_relocate_section): Don't copy STN_UNDEF relocs
58 * elf32-i386.c (struct elf_i386_link_hash_table): Add sym_sec.
59 (elf_i386_link_hash_table_create): Init it.
60 (elf_i386_check_relocs): Track dynamic relocs needed for local
61 syms on a per-section basis as we do for globals.
62 (elf_i386_gc_sweep_hook): Update for local_dynrel change.
64 (allocate_dynrelocs): Warning fix.
65 (elf_i386_size_dynamic_sections): Don't allocate relocs when
66 section has been discarded.
67 (elf_i386_relocate_section): Don't copy STN_UNDEF relocs
69 * elf32-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
70 (elf_s390_link_hash_table_create): Init it.
71 (elf_s390_check_relocs): Track dynamic relocs needed for local
72 syms on a per-section basis as we do for globals.
73 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
75 (allocate_dynrelocs): Warning fix.
76 (elf_s390_size_dynamic_sections): Don't allocate relocs when
77 section has been discarded.
78 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
80 * elf64-ppc.c (struct ppc_link_hash_table): Add sym_sec.
81 (ppc64_link_hash_table_create): Init it.
82 (ppc64_elf_check_relocs): Track dynamic relocs needed for local
83 syms on a per-section basis as we do for globals.
84 (ppc64_elf_gc_sweep_hook): Update for local_dynrel change.
85 (allocate_dynrelocs): Call the correct record_dynamic_dymbol
86 function. Warning fix.
87 (ppc64_elf_size_dynamic_sections): Don't allocate relocs when
88 section has been discarded.
89 (ppc64_elf_relocate_section): Don't copy STN_UNDEF relocs
91 * elf64-s390.c (struct elf_s390_link_hash_table): Add sym_sec.
92 (elf_s390_link_hash_table_create): Init it.
93 (elf_s390_check_relocs): Track dynamic relocs needed for local
94 syms on a per-section basis as we do for globals.
95 (elf_s390_gc_sweep_hook): Update for local_dynrel change.
97 (allocate_dynrelocs): Warning fix.
98 (elf_s390_size_dynamic_sections): Don't allocate relocs when
99 section has been discarded.
100 (elf_s390_relocate_section): Don't copy STN_UNDEF relocs
103 2001-11-08 Martin Schwidefsky <schwidefsky@de.ibm.com>
105 * elf32-s390: Major rework that introduces all recent changes to
106 the s390 backends. Get a closer match to elf32-i386.
107 (elf_s390_relocate_section): Make use of dynamic section short-cuts.
108 Localise vars, and delay setting. Better error reporting, replace
109 BFD_ASSERT with abort. Check ELF_LINK_HASH_DEF_DYNAMIC to see if a
110 symbol is not defined in the regular object file and tread the weak
111 definition as the normal one. Don't discard relocs for undefweak or
112 undefined symbols and check !DEF_REGULAR as well as DEF_DYNAMIC in
113 test for avoided copy relocs. Reinstate fudge for unresolved relocs
114 in debugging sections.
115 (elf32_s390_adjust_dynamic_symbol): Handle nocopyreloc. Don't do copy
116 reloc processing for weakdefs. Remove redundant casts and aborts.
117 Delay setting of vars until needed. Move creation of dynamic symbols
118 and allocation of .plt and .rela.plt to allocate_dynrelocs. Replace
119 BFD_ASSERT with abort. Discard .plt entries for everything with
121 (elf_s390_check_relocs): Don't allocate space for dynamic relocs,
122 .got or .relgot here but do it in allocate_dynrelocs. Reference count
123 possible .plt and .got entries. Don't test input section SEC_READONLY
124 here to try to avoid copy relocs, and keep dyn_relocs regardless of
125 ELF_LINK_NON_GOT_REF. Don't set DF_TEXTREL here. Delay setting of
126 variables until needed. Remove separate switch stmt for creating .got
127 section. Initialise local_got_refcounts to 0. Cache pointer to
128 "sreloc" section in elf_section_data. Tweak condition under which .got
129 created. Report files with bad relocation section names.
130 (elf_s390_finish_dynamic_symbol): Don't copy relocs for symbols that
131 have been forced local. Use same test to decide if we can use a
132 relative reloc for got as elf_s390_relocate_section. Expand SHN_UNDEF
133 comment. Move expressions out of function calls. Replace BFD_ASSERT
135 (elf_s390_finish_dynamic_sections): Migrate common code out of switch
136 statement. Replace BFD_ASSERT with abort.
137 (elf_s390_size_dynamic_sections): Call readonly_dynrelocs. Rename "i"
138 to "ibfd". Allocate space for local dyn relocs. Use DF_TEXTREL flag
139 instead of looking up section names for DT_TEXTREL. Replace
140 BFD_ASSERT with abort. Zero out the dynamic allocated content space.
141 Add a comment to remind us that one day this ought to be fixed.
142 (struct elf_s390_link_hash_entry): Rename "root" to "elf".
143 (struct elf_s390_link_hash_table): Likewise.
144 (elf_s390_link_hash_newfunc): Rename to link_hash_newfunc and get
145 rid of unnecessary casts.
146 (struct elf_s390_dyn_relocs): Add "sec", and "pc_count" fields.
147 Remove "section" field.
148 (elf_s390_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
149 Reference count possible .plt entries. Don't deallocate .got and
151 (struct elf_s390_pcrel_relocs_copied): Rename to elf_s390_dyn_relocs.
153 (struct elf_s390_link_hash_entry): Rename pcrel_relocs_copied to
155 (elf_s390_discard_copies): Delete.
156 (elf_s390_link_hash_traverse): Delete.
157 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
158 rather than gc variety).
159 (struct elf_s390_link_hash_table): Add sgot, sgotplt, srelgot, splt,
160 srelplt, sdynbss, srelbss fields.
161 (elf_s390_link_hash_table_create): Init them.
162 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
163 (allocate_dynrelocs): New function.
164 (create_got_section): New function.
165 (elf_backend_can_refcount): Define.
166 (elf_backend_copy_indirect_symbol): Define.
167 (elf_s390_copy_indirect_symbol): New function.
168 (elf_s390_create_dynamic_sections): New function.
169 (readonly_dynrelocs): New function.
170 * elf64-s390.c: Likewise.
172 2001-11-07 Jakub Jelinek <jakub@redhat.com>
174 * Makefile.am (BFD32_BACKENDS): Add elf-strtab.lo.
175 (BFD32_BACKENDS_CFILES): Add elf-strtab.c.
176 (elf-strtab.lo): Add rule.
177 * Makefile.in: Rebuilt.
178 * configure.in (elf): Add elf-strtab.lo.
179 * configure: Rebuilt.
180 * elf-bfd.h (elf_strtab_hash): Forward declare.
181 (struct elf_link_hash_table): Change dynstr type to
182 struct elf_strtab_hash *.
183 (struct elf_obj_tdata): Change strtab_ptr type to
184 struct elf_strtab_hash *.
185 (_bfd_elf_strtab_init, _bfd_elf_strtab_free, _bfd_elf_strtab_add,
186 _bfd_elf_strtab_addref, _bfd_elf_strtab_delref,
187 _bfd_elf_strtab_clear_all_refs, _bfd_elf_strtab_size,
188 _bfd_elf_strtab_offset, _bfd_elf_strtab_emit,
189 _bfd_elf_strtab_finalize): New prototypes.
190 * elf-strtab.c: New file.
191 * elflink.h (elf_link_add_object_symbols): Use _bfd_elf_strtab_add
192 and _bfd_elf_strtab_size instead of _bfd_stringtab calls.
193 Call _bfd_elf_strtab_delref if DT_NEEDED entry is not needed or
194 when forcing dynamic symbol to local.
195 (elf_link_create_dynamic_sections): Call
196 _bfd_elf_strtab_init instead of elf_stringtab_init.
197 (elf_link_record_local_dynamic_symbol): Likewise, change
198 dynstr type. Use _bfd_elf_strtab functions instead of
199 _bfd_stringtab calls.
200 (size_dynamic_sections): Use _bfd_elf_strtab functions instead of
201 _bfd_stringtab calls. For DT_RUNPATH and Verdaux vda_name fields,
202 call _bfd_elf_strtab_addref. Call elf_finalize_dynstr.
203 (elf_adjust_dynstr_offsets, elf_finalize_dynstr): New functions.
204 (elf_fix_symbol_flags): Call _bfd_elf_strtab_delref when forcing
205 dynamic symbol to local.
206 (elf_link_assign_sym_version): Likewise.
207 (elf_bfd_final_link): Call _bfd_elf_strtab_emit instead of
209 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Change dynstr
210 type. Call _bfd_elf_strtab functions instead of
211 _bfd_stringtab functions.
212 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
213 * elf.c (_bfd_elf_init_reloc_shdr): Likewise.
214 (elf_fake_sections): Likewise.
215 (assign_section_numbers): Call _bfd_elf_strtab_clear_all_refs
216 on shstrtab hash table, call _bfd_elf_strtab_addref on each section
217 name in the output. Call _bfd_elf_strtab_finalize and
218 use _bfd_elf_strtab_offset to finalize sh_name section header fields.
219 (_bfd_elf_compute_section_file_positions): Use _bfd_elf_strtab_size
220 instead of _bfd_stringtab_size.
221 (prep_headers): Change shstrtab type.
222 Use _bfd_elf_strtab calls instead of _bfd_stringtab calls.
224 2001-11-07 Alan Modra <amodra@bigpond.net.au>
226 * elflink.h (elf_link_input_bfd <removed linkonce relocs>): Fix
227 bad symtab segfault. Formatting and warning fixes. Improve
228 error message for internationalisation.
230 2001-11-06 H.J. Lu (hjl@gnu.org)
232 * elflink.h (elf_link_input_bfd): Complain about relocs against
235 2001-11-03 Alan Modra <amodra@bigpond.net.au>
237 * elfxx-target.h (elfNN_bed): Correct want_got_sym, want_dynbss order.
239 2001-11-02 H.J. Lu <hjl@gnu.org>
241 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
242 dynamic relocation for symbols defined in regular objects when
243 creating executables.
245 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
247 * configure.in (ALL_LINGUAS): Add "fr".
248 * configure: Regenerate.
249 * po/fr.po: New file.
251 * coffgen.c (coff_object_p): Add comment to H.J.'s recent patch.
253 2001-11-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
255 * som.c (setup_sections): Initialize subspace_sections.
257 2001-11-02 H.J. Lu (hjl@gnu.org)
259 * coffgen.c (coff_object_p): Return 0 if the header is too big.
261 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
263 * elfcore.h (elf_core_file_p): Preserve and clear abfd section
264 information. Save bfd arch and mach values. Restore on error.
266 2001-11-02 Alan Modra <amodra@bigpond.net.au>
268 * elf32-hppa.c (hppa_handle_PIC_calls): Rename to mark_PIC_calls.
269 (allocate_PIC_calls): New function.
270 (allocate_dynrelocs): Don't allocate pic_call plt entries here.
271 (elf32_hppa_size_dynamic_sections): Call allocate_PIC_calls.
272 (elf32_hppa_finish_dynamic_symbol): Remove dead code.
274 2001-11-02 Hans-Peter Nilsson <hp@axis.com>
276 * elf32-cris.c (cris_elf_grok_prstatus): New function.
277 (cris_elf_grok_psinfo): New function.
278 (elf_backend_grok_prstatus): Define.
279 (elf_backend_grok_psinfo): Define.
281 2001-11-01 Alan Modra <amodra@bigpond.net.au>
283 * elf64-ppc.c (ppc64_elf_relocate_section): Correct branch
286 2001-10-31 Chris Demetriou <cgd@demetriou.com>
288 * elf32-mips.c (_bfd_mips_elf_hi16_reloc): Handle PC-relative
289 relocations properly.
291 2001-10-31 H.J. Lu <hjl@gnu.org>
293 * elflink.h (elf_link_output_extsym): Don't clear the visibility
294 field for relocateable.
296 2001-11-01 Alan Modra <amodra@bigpond.net.au>
298 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Don't count
299 .plt relocs in DT_RELASZ.
301 2001-10-29 NIIBE Yutaka <gniibe@m17n.org>
303 * config.bfd: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
306 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
308 * targets.c: Fix typo: bfd_mmo_mmix_vec => bfd_mmo_vec.
310 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
312 * Makefile.am (ALL_MACHINES): Add cpu-mmix.lo.
313 (BFD64_BACKENDS): Add elf64-mmix.lo and mmo.lo.
314 (BFD64_BACKENDS_CFILES): Add elf64-mmix.c and mmo.c.
315 Regenerate dependencies.
316 * configure.in (bfd_elf64_mmix_vec, bfd_mmo_vec): New vectors.
317 * config.bfd: [BFD64] (mmix-*-*): New case.
318 * cpu-mmix.c, mmo.c, elf64-mmix.c: New files.
319 * archures.c (enum bfd_architecture): Add bfd_arch_mmix.
320 (bfd_mmix_arch): Declare.
321 (bfd_archures_list): Add bfd_mmix_arch.
322 * targets.c (enum bfd_flavour): Add bfd_target_mmo_flavour.
323 (bfd_elf64_mmix_vec, bfd_mmo_vec): Declare.
324 (bfd_target_vect) [BFD64]: Add bfd_elf64_mmix_vec and
326 * reloc.c: Add MMIX relocations.
327 * bfd.c (struct _bfd, tdata): Add mmo_data.
328 * Makefile.in: Regenerate.
329 * configure: Regenerate.
330 * libbfd.h: Regenerate.
331 * bfd-in2.h: Regenerate.
332 * configure: Rebuild.
334 2001-10-30 Richard Earnshaw (rearnsha@arm.com)
336 * elf.c (_bfd_elf_make_section_from_shdr): Set the LMA based on the
337 p_paddr of the segment that contains it.
338 (copy_private_bfd_data): If the LMA for a segment is known, use it
339 for matching sections to segments.
340 (assign_file_positions_for_segments): Use the LMA when adjusting
341 for inter-section alignment padding.
343 2001-10-29 Kazu Hirata <kazu@hxi.com>
345 * README: Fix a typo.
347 2001-10-24 Richard Henderson <rth@redhat.com>
349 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Copy
350 timestamp to time_t for ctime.
352 2001-10-24 Hans-Peter Nilsson <hp@axis.com>
354 * elf32-cris.c (cris_reloc_type_lookup): Change loop to use
355 unsigned, increasing index.
357 2001-10-23 H.J. Lu <hjl@gnu.org>
359 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Check
360 m != NULL before accessing it.
362 2001-10-23 Alan Modra <amodra@bigpond.net.au>
364 * elflink.h (elf_link_input_bfd): Zero the reloc instead of doing
365 bfd_reloc_type_lookup (bfd, BFD_RELOC_NONE) as bfd_reloc_type_lookup
366 doesn't accept BFD_RELOC_* on some targets, eg. hppa.
368 * elf32-hppa.c (elf32_hppa_link_hash_entry): Remove plt_abs.
369 (hppa_link_hash_newfunc): Likewise.
370 (elf32_hppa_finish_dynamic_symbol): Likewise.
371 (allocate_dynrelocs): Always allocate .got relocs if shared.
372 (elf32_hppa_relocate_section): Output them too. Similarly
373 consolidate .plt reloc code, and no longer initialise .plt
374 when a reloc is output.
375 (elf32_hppa_finish_dynamic_symbol): Only initialise .plt entries
376 when no reloc is output.
378 From Herbert Xu <herbert@gondor.apana.org.au>
379 * elf32-hppa.c (final_link_relocate): Call bfd_set_error for
380 unreachable branches.
382 2001-10-22 H.J. Lu <hjl@gnu.org>
384 * configure.in (WIN32LIBADD): Use -L../libiberty for
386 * configure: Rebuild.
388 2001-10-21 H.J. Lu <hjl@gnu.org>
390 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
391 if shared library is enabled only for Linux hosts.
392 * configure: Rebuild.
394 2001-10-21 H.J. Lu <hjl@gnu.org>
396 * configure.in (WIN32LIBADD): Check if PICFLAG is defined in
397 ../libiberty/Makefile instead of $enable_shared.
398 * configure: Rebuild.
400 2001-10-21 H.J. Lu <hjl@gnu.org>
402 * elf32-cris.c (cris_reloc_type_lookup): Use int for index. Cover
405 2001-10-20 H.J. Lu <hjl@gnu.org>
407 * configure.in (WIN32LIBADD): Include -L../libiberty/pic -liberty
408 if shared library is enabled.
409 * configure: Rebuild.
411 2001-10-20 H.J. Lu <hjl@gnu.org>
413 * elf32-cris.c (cris_reloc_type_lookup): Allow index 0.
415 2001-10-19 H.J. Lu <hjl@gnu.org>
417 * elfcode.h (elf_object_p): Don't clear D_PAGED if the section
420 2001-10-18 H.J. Lu <hjl@gnu.org>
422 * elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
423 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
425 2001-10-18 Jakub Jelinek <jakub@redhat.com>
427 * section.c (_bfd_strip_section_from_output): Don't count
428 SEC_EXCLUDE sections as references. Set SEC_EXCLUDE.
430 2001-10-17 Alan Modra <amodra@bigpond.net.au>
432 * elf-m10200.c (mn10200_elf_relax_section): Cast assignment to
433 Elf_Internal_Shdr.contents now that it's no longer a PTR.
434 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
435 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
436 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
437 * elf32-sh.c (sh_elf_relax_section): Likewise.
438 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
439 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
440 * elf.c (setup_group): Warning fixes.
441 * elflink.h (elf_link_sort_relocs): Likewise.
442 * pdp11.c (slurp_reloc_table): Likewise.
444 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
446 * elflink.h (elf_link_sort_relocs): Remove unnecessary pointer
449 2001-10-15 H.J. Lu <hjl@gnu.org>
451 * elflink.h (elf_link_input_bfd): Set type to BFD_RELOC_NONE
452 for relocations against discarded link-once section.
454 2001-10-15 Alan Modra <amodra@bigpond.net.au>
456 * elf32-i386.c (elf_i386_relocate_section): Report some detail on
457 bfd_reloc_outofrange and similar errors.
459 * elf.c (_bfd_elf_link_hash_copy_indirect): Test ind->root.type
460 rather than ind->weakdef.
461 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
462 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
463 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
464 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
465 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
467 2001-10-15 Alan Modra <amodra@bigpond.net.au>
468 H.J. Lu <hjl@gnu.org>
470 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Merge dyn_reloc
471 counts for aliases instead of aborting.
472 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
473 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
475 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Set plt.offset
476 to -1 for non-function symbols.
477 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
478 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
479 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
480 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
481 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
482 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Refer to
483 plt.offset instead of plt.refcount when setting to -1.
485 2001-10-12 Nick Clifton <nickc@cambridge.redhat.com>
487 * elf32-arm.h (elf32_arm_relocate_section): Treat R_ARM_THM_PC22
488 like R_ARM_PC24. Include reloc number in error message about
491 2001-10-10 Jakub Jelinek <jakub@redhat.com>
493 * elflink.h (elf_link_sort_cmp2): Don't mix PLT and non-PLT
494 relocations against the same symbol in .rel{,a}.dyn section.
496 2001-10-10 Kazu Hirata <kazu@hxi.com>
498 * aout-encap.c: Fix comment typos.
500 * archive.c: Likewise.
502 * coff64-rs6000.c: Likewise.
503 * coffcode.h: Likewise.
504 * coffgen.c: Likewise.
505 * cofflink.c: Likewise.
506 * coff-mips.c: Likewise.
508 * elf32-m32r.c: Likewise.
509 * libcoff-in.h: Likewise.
510 * libecoff.h: Likewise.
511 * libxcoff.h: Likewise.
512 * nlm32-i386.c: Likewise.
514 * section.c: Likewise.
517 * bfd-in2.h: Regenerate.
518 * libcoff.h: Likewise.
520 2001-10-10 Alan Modra <amodra@bigpond.net.au>
522 * elf.c (elf_map_symbols): Don't create new section symbols; Use
523 existing section syms. Update comments.
524 (copy_private_bfd_data): Formatting fixes.
525 (elfcore_grok_win32pstatus): Likewise.
526 (swap_out_syms): Likewise. Remove unnecessary level of braces.
528 2001-10-09 Alan Modra <amodra@bigpond.net.au>
530 * elf-bfd.h (struct bfd_elf_section_data): Rename "group" to
532 (elf_group_name): Define.
533 (elf_next_in_group): Define.
534 * elf.c: Make use of elf_group_name and elf_next_in_group throughout.
535 (setup_group): Don't use sec->lineno for SHT_GROUP section to store
536 first member section; Instead use elf_next_in_group.
537 (bfd_section_from_shdr): Likewise.
538 (set_group_contents): Likewise. Use elf_section_syms, not sec->symbol.
540 2001-10-09 Alan Modra <amodra@bigpond.net.au>
542 * elf-bfd.h (struct bfd_elf_section_data): Add "group" and
543 "next_in_group". Fix gp and gp_size comments.
544 * elf.c (union elf_internal_group): New.
545 (setup_group): New function.
546 (_bfd_elf_make_section_from_shdr): Set BFD flags for SHT_GROUP.
547 Call setup_group for SHF_GROUP sections.
548 (bfd_section_from_shdr): Build a BFD section for SHT_GROUP.
549 (elf_fake_sections): Set header type for SEC_GROUP, and header
550 flags for sections in a group.
551 (set_group_contents): New function.
552 (_bfd_elf_compute_section_file_positions): Call it.
553 (assign_section_numbers): Set sh_link for SHT_GROUP.
555 * elflink.h (gc_mark_hook): Handle section groups.
556 * elfxx-target.h: Add SEC_GROUP to applicable_flags.
557 * section.c (SEC_GROUP): Define.
558 (struct sec): Comment fixes.
559 * bfd-in2.h: Regenerate.
561 * elf.c (bfd_elf_print_symbol): Formatting fix; migrate expression
562 out of function args.
563 (_bfd_elf_canonicalize_reloc): Similarly.
564 (_bfd_elf_get_symtab): Here too.
565 (_bfd_elf_canonicalize_dynamic_symtab): And here.
566 * elfcode.h (elf_slurp_symbol_table): Don't recalculate size for
567 bfd_bread, and remove unnecessary cast.
569 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
571 * bfd/config.bfd (targ_cpu): Add arm9e-*-elf.
573 2001-10-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
575 * dwarf2.c (comp_unit_find_nearest_line): Check for end of
578 2001-10-06 Alan Modra <amodra@bigpond.net.au>
580 * bfd.c (bfd_assert): Report bfd version.
581 (_bfd_abort): Likewise.
583 * elflink.h (elf_link_input_bfd): Don't zero discarded link-once
584 section sym values. Instead replace any relocs against them with
585 relocs against STN_UNDEF, which has a zero value.
587 * elf32-arc.c (elf_arc_howto_table): Set partial_inplace for all
590 2001-10-05 Jeff Law <law@redhat.com>
592 * som.h (som_exec_data): New field "version_id".
593 * som.c (som_object_setup): Record the version_id if it
595 (som_prep_headers): Do not initialize version_id here.
596 (som_finish_writing): Initialize version_id here.
598 2000-10-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
600 * elf32-mips.c (elf_mips_howto_table): Fix some relocation howtos
601 according to the MIPS/SGI ELF64 ABI Draft.
602 (mips_elf_sort_hash_table): Typo.
604 2001-10-04 Alan Modra <amodra@bigpond.net.au>
606 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Comment typo.
608 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): Bail out after
609 copying flags if this is a weakdef.
611 2001-10-04 Alan Modra <amodra@bigpond.net.au>
613 * elf-bfd.h (struct elf_link_hash_entry): Reorganise for better
616 * elf32-mips.c (mips_elf_record_global_got_symbol): Set got.offset
617 to 1 rather than 0 to avoid confusing copy_indirect_symbol.
618 (mips_elf_sort_hash_table_f): Compare got.offset against 1.
620 * Makefile.am (BFD_H_DEPS): Add symcat.h. Ensure everything
621 depends on $(BFD_H) $(BFD_H_DEPS) $(LOCAL_H_DEPS), not just those
622 backends we configure. Run "make dep-am".
623 (install-data-local): Install symcat.h.
624 * dep-in.sed: Remove symcat.h from dependencies.
625 * Makefile.in: Regenerate.
627 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
629 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Handle nocopyreloc.
631 2001-10-03 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
633 * elf64-mips.c (elf_backend_may_use_rela_p): New define.
634 (elf_backend_default_use_rela_p): New define.
636 2001-10-03 Alan Modra <amodra@bigpond.net.au>
638 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Fix typos in last
641 * configure.in (AC_OUTPUT <bfd-in3.h>): Remove version.h.
642 * configure: Regenerate.
643 * Makefile.am (BFD_H_FILES): Add version.h.
644 * Makefile.in: Regenerate.
645 * po/SRC-POTFILES.in: Regenerate.
647 * elflink.h (elf_fix_symbol_flags): Copy flags to weakdef using
648 elf_backend_copy_indirect_symbol so that backend has a chance to
649 copy other necessary fields.
650 * elf-bfd.h (struct elf_backend_data): Update description of
651 elf_backend_copy_indirect_symbol.
652 * elf.c (_bfd_elf_link_hash_copy_indirect): Bail out after
653 copying flags if this is a weakdef.
654 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
655 (elfNN_ia64_aix_add_symbol_hook): Use elf_link_hash_lookup rather
656 than bfd_link_hash_lookup.
657 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't do copy
658 reloc processing for weakdefs.
659 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
660 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
662 2001-10-02 Alan Modra <amodra@bigpond.net.au>
664 * elf64-ppc.c (ppc64_elf_check_relocs): Use a local var and cast
665 result of ELF64_R_TYPE to enum before using in a switch.
666 (ppc64_elf_gc_mark_hook): Likewise.
667 (ppc64_elf_gc_sweep_hook): Likewise.
668 (ppc64_elf_reloc_type_class): Likewise.
670 2001-10-02 Alan Modra <amodra@bigpond.net.au>
672 * version.h: New file.
673 * bfd-in.h: (BFD_VERSION): Substitute bfd_version.
674 (BFD_VERSION_DATE): Define.
675 (BFD_VERSION_STRING): Define.
676 * configure.in: AC_SUBST bfd_version, bfd_version_date and
678 (AC_OUTPUT <bfd-in3.h>): Depend on version.h.
679 * bfd-in2.h: Regenerate.
680 * configure: Regenerate.
681 * Makefile.am: Run "make dep-am".
682 * Makefile.in: Regenerate.
684 * bfd-in.h: Include "symcat.h".
685 (CONCAT4): Redefine as for old CAT4.
686 * aout-arm.c: Use equivalent CONCAT* macro in place of CAT* macros.
687 Add warning regarding whitespace.
688 * aout-cris.c: Likewise.
689 * aout-ns32k.c: Likewise.
690 * aout-sparcle.c: Likewise.
691 * aout-tic30.c: Likewise.
693 * armnetbsd.c: Likewise.
694 * demo64.c: Likewise.
695 * elf-bfd.h: Likewise.
696 * gen-aout.c: Likewise.
697 * host-aout.c: Likewise.
698 * hp300bsd.c: Likewise.
699 * hp300hpux.c: Likewise.
700 * i386aout.c: Likewise.
701 * i386bsd.c: Likewise.
702 * i386dynix.c: Likewise.
703 * i386freebsd.c: Likewise.
704 * i386linux.c: Likewise.
705 * i386lynx.c: Likewise.
706 * i386mach3.c: Likewise.
707 * i386netbsd.c: Likewise.
708 * libaout.h: Likewise.
709 * m68k4knetbsd.c: Likewise.
710 * m68klinux.c: Likewise.
711 * m68klynx.c: Likewise.
712 * m68knetbsd.c: Likewise.
713 * m88kmach3.c: Likewise.
714 * mipsbsd.c: Likewise.
715 * newsos3.c: Likewise.
716 * ns32knetbsd.c: Likewise.
717 * pc532-mach.c: Likewise.
719 * riscix.c: Likewise.
720 * sparclinux.c: Likewise.
721 * sparclynx.c: Likewise.
722 * sparcnetbsd.c: Likewise.
724 * targets.c: Likewise.
725 * vaxnetbsd.c: Likewise.
726 * vms-hdr.c: Likewise.
728 2001-10-01 Alan Modra <amodra@bigpond.net.au>
730 * bfd-in.h: Remove comments regarding generated files.
731 * libbfd-in.h: Likewise.
732 * libcoff-in.h: Likewise.
733 * bfd-in2.h: Regenerate.
734 * libbfd.h: Likewise.
735 * libcoff.h: Likewise.
737 2001-09-30 kaz Kojima <kkojima@rr.iij4u.or.jp>
738 Hans-Peter Nilsson <hp@bitrange.com>
740 * elf32-sh.c (sh_elf_howto_table, R_SH_REL32): Make
741 partial_inplace, matching assembler output. Set src_mask to
743 (sh_elf_relocate_section): Delete misplaced comment.
744 For relocatable linking against section symbol, call
745 _bfd_relocate_contents for partial_inplace relocs and adjust
746 rel->r_addend for others.
747 <case R_SH_DIR32, R_SH_REL32>: Fetch partial_inplace addend with
748 bfd_get_32, not at rel->r_addend.
750 2001-09-30 Alan Modra <amodra@bigpond.net.au>
752 * elf.c (_bfd_elf_link_hash_copy_indirect): Set ind refcounts to
753 the old dir refcount, so we indirectly set them to init_refcount.
754 Short-circuit asserts when we've just verified they are true.
756 2001-09-29 Alan Modra <amodra@bigpond.net.au>
758 * section.c (struct sec): Remove kept_section.
759 (STD_SECTION): Remove kept_section initialisation.
760 (bfd_make_section_anyway): Here too.
761 * ecoff.c (bfd_debug_section): Remove kept_section initialisation.
762 * cofflink.c (_bfd_coff_link_input_bfd): Don't test kept_section.
763 * elflink.h (elf_link_input_bfd): Set discarded link-once section
764 symbols to zero, and remove all code involved with kept_section
765 and tracking section symbol values.
766 * bfd-in2.h: Regenerate.
767 * configure.in: Bump version number.
768 * configure: Regenerate.
770 2001-09-29 Alan Modra <amodra@bigpond.net.au>
772 * elf64-ppc.c (struct ppc_dyn_relocs): New.
773 (IS_ABSOLUTE_RELOC): Define.
774 (struct ppc_link_hash_entry): New.
775 (struct ppc_link_hash_table): New.
776 (ppc_hash_table): Define.
777 (link_hash_newfunc): New function.
778 (ppc64_elf_link_hash_table_create): New function.
779 (create_got_section): New function.
780 (ppc64_elf_create_dynamic_sections): Call create_got_section. Stash
781 pointers to our dynamic sections in hash table.
782 (ppc64_elf_copy_indirect_symbol): New function.
783 (ppc64_elf_check_relocs): Remove DEBUG code. Use short-cuts to
784 dynamic sections. Localise vars. Modify code for refcounts
785 starting from zero. Don't allocate here, or force symbols dynamic.
786 Don't copy all relocs if shared, select ones we need. Add code
787 to track possible copy relocs for non-shared link.
788 (ppc64_elf_gc_mark_hook): Update comment.
789 (ppc64_elf_gc_sweep_hook): Sweep dynrelocs too.
790 (ppc64_elf_adjust_dynamic_symbol): Remove DEBUG code. Rewrite .plt
791 code for reference counting garbage collection. Don't create .plt
792 entries for functions that don't comply with ABI naming convention,
793 and don't allocate .plt space here. Use short-cuts to dynamic
794 sections. If possible, keep dynamic relocations instead of using
795 copy relocs. Remove confused comments.
796 (ppc_adjust_dynindx): Delete.
797 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
798 (allocate_dynrelocs): New function.
799 (readonly_dynrelocs): New function.
800 (ppc64_elf_size_dynamic_sections): Rewrite. Allocate local .got
801 space here, and call allocate_dynrelocs to allocate space for
802 global .plt, .got and reloc sections. Use short-cuts to dynamic
803 sections. Call readonly_dynrelocs to determine whether we need
804 DT_TEXTREL. Don't generate section symbols here, the generic
805 ELF linker code does it for us.
806 (ppc64_elf_final_link): Call regular ELF backend linker rather than
807 gc variety, since we do our own .got handling.
808 (ppc64_elf_relocate_section): Remove DEBUG code. Make use of
809 dynamic section short-cuts. Localise vars, and delay setting.
810 Handle unknown relocs in main switch statement. Replace ugly
811 complicated tests for unresolvable relocs with a simple direct
812 scheme using "unresolved_reloc" var. Test ELF_ST_VISIBILITY
813 before allowing an undefined sym in a shared lib. Do R_*_DS tests
814 after main switch, when we've set addend. Do non-addend insn
815 tweaks before main swithc. Ignore input_section->vma when
816 calculating reloc offsets as it's always zero. Rewrite dynamic
817 reloc handling. Consolidate R_*_HA handling. Handle more relocs.
818 (ppc64_elf_finish_dynamic_symbol): Remove DEBUG code. Make use
819 of dynamic section short-cuts. Reorganise .plt handling code.
820 Remove confused comments. Take note of ELF_LINK_FORCED_LOCAL.
821 Move expressions out of swap_reloca_out function calls.
822 (ppc64_elf_reloc_type_class): New function.
823 (ppc64_elf_info_to_howto): Move common expression to local var.
824 (ppc64_elf_finish_dynamic_sections): Remove DEBUG code. Make use
825 of dynamic section short-cuts. Don't fiddle with section syms
826 here as the ELF linker does it for us.
827 (elf_backend_can_refcount): Define.
828 (bfd_elf64_bfd_link_hash_table_create): Define.
829 (elf_backend_copy_indirect_symbol): Define.
830 (elf_backend_reloc_type_class): Define.
831 (elf_backend_*, bfd_elf64_bfd_* defines): Sort.
833 2001-09-29 Alan Modra <amodra@bigpond.net.au>
835 * elf-bfd.h (struct elf_link_local_dynamic_entry): Add init_refcount.
836 (struct elf_backend_data): Add can_refcount.
837 * elf.c (_bfd_elf_link_hash_newfunc): Get rid of a few casts. Set
838 got.refcount and plt.refcount from init_refcount.
839 (_bfd_elf_link_hash_table_init): Set up init_refcount.
840 (_bfd_elf_link_hash_copy_indirect): Reference got/plt.refcount
841 rather than got/plt.offset, and test for <= 0 rather than -1.
842 * elflink.h (size_dynamic_sections): Set init_refcount to -1.
843 * elfxx-target.h (elf_backend_can_refcount): Define.
844 (elfNN_bed): Init can_refcount.
845 * linker.c (_bfd_link_hash_newfunc): Get rid of a few casts.
846 (_bfd_generic_link_hash_newfunc): Likewise.
847 * elf32-cris.c (cris_elf_check_relocs): Modify for refcounts
849 (elf_backend_can_refcount): Define.
850 * elf32-hppa.c (elf32_hppa_check_relocs): Modify for refcounts
852 (elf32_hppa_copy_indirect_symbol): Make static to agree with
854 (elf_backend_can_refcount): Define.
855 * elf32-i386.c (elf_i386_check_relocs): Modify for refcounts
857 (allocate_dynrelocs): Set plt/got.offset rather than *.refcount.
858 (elf_i386_finish_dynamic_symbol): Expand SHN_UNDEF comment.
859 (elf_i386_finish_dynamic_sections): Use local var so line < 80 chars.
860 (elf_backend_can_refcount): Define.
861 (elf_i386_copy_indirect_symbol): Make static to agree with
862 prototype. Formatting fix.
863 * elf32-m68k.c (elf_m68k_check_relocs): Modify for refcounts
865 (elf_backend_can_refcount): Define.
866 * elf32-ppc.c (ppc_elf_check_relocs): Modify for refcounts
868 (elf_backend_can_refcount): Define.
869 * elf32-s390.c (elf_s390_check_relocs): Modify for refcounts
871 (elf_backend_can_refcount): Define.
872 * elf64-s390.c (elf_s390_check_relocs): Modify for refcounts
874 (elf_backend_can_refcount): Define.
875 * elf64-x86-64.c (elf64_x86_64_check_relocs): Modify for refcounts
877 (elf_backend_can_refcount): Define.
879 * som.c (som_write_symbol_strings): Cast current_offset in
880 bfd_seek call to match param type.
882 2001-09-28 J. Brobecker <brobecker@gnat.com>
884 * som.c (som_write_symbol_strings): Fix incorrect type of
885 current_offset to match the function definition. Fixes a build
886 failure on HPUX-11.00.
888 2001-09-28 Richard Henderson <rth@redhat.com>
890 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
891 SEC_MERGE, SEC_STRINGS.
893 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
894 * bfd-in2.h: Rebuild.
896 2001-09-28 Alan Modra <amodra@bigpond.net.au>
898 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
899 reloc code using x86_64_reloc_map.
901 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
902 no longer allocate here. Localise some vars to blocks where they
904 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
905 setting of vars until needed.
906 (allocate_dynrelocs): Don't create a .plt entry without a reloc
907 when symbol visibilty makes a function local.
908 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
909 swap_reloca_out function calls.
910 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
911 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
914 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
915 no longer allocate here. Localise some vars to blocks where they
916 are used. Remove separate switch stmt for creating .got sec.
917 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
918 redundant casts and aborts. Delay setting of vars until needed.
919 (allocate_dynrelocs): Remove redundant casts and aborts.
920 (elf_i386_size_dynamic_sections): Move comment.
921 (elf_i386_finish_dynamic_symbol): Move expressions out of function
923 (elf_i386_relocate_section): Likewise. Comment typo fix.
924 (elf_i386_finish_dynamic_sections): Migrate common code out of
926 (elf_backend_* defines): Sort.
928 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
929 without a reloc when symbol visibilty makes a function local.
931 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
933 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
934 conflicting float flags.
936 2001-09-26 Alan Modra <amodra@bigpond.net.au>
938 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
939 (elf_backend_copy_indirect_symbol): Define.
940 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
941 (struct elf_i386_link_hash_table): Likewise.
942 (link_hash_newfunc): Get rid of unnecessary casts.
943 (elf_i386_link_hash_table_create): Likewise.
944 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
945 Don't test input section SEC_READONLY here to try to avoid copy
946 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
947 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
948 here to properly test whether we need copy relocs. Do so for weak
951 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
952 (elf_backend_copy_indirect_symbol): Define.
953 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
954 (stub_hash_newfunc): Get rid of unnecessary casts.
955 (hppa_link_hash_newfunc): Likewise.
956 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
957 Don't test input section SEC_READONLY here to try to avoid copy
958 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
959 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
960 here to properly test whether we need copy relocs. Do so for weak
963 2001-09-26 Alan Modra <amodra@bigpond.net.au>
965 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
966 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
967 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
969 2001-09-25 Jakub Jelinek <jakub@redhat.com>
971 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
974 2001-09-25 H.J. Lu <hjl@gnu.org>
976 * bfd-in2.h: Regenerated.
978 2001-09-25 Alan Modra <amodra@bigpond.net.au>
980 * elf32-i386.c: Add comment re linker function names and ordering.
981 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
982 (elf_i386_grok_prstatus): Move before linker functions.
983 (elf_i386_grok_psinfo): Likewise.
984 (elf_i386_fake_sections): Move so that functions are ordered.
985 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
987 2001-09-25 Alan Modra <amodra@bigpond.net.au>
989 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
992 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
993 code handling this option.
994 (LONG_BRANCH_VIA_PLT): Likewise.
995 (RELATIVE_DYNRELOCS): Define as zero.
996 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
997 "pc_count" fields. Remove "section" field.
998 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
999 (elf32_hppa_check_relocs): Don't allocate space for dynamic
1000 relocs here. Instead, record all needed dynamic relocs via
1001 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
1002 in elf_section_data.
1003 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1004 (allocate_plt_and_got_and_discard_relocs): Rename to
1005 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
1006 (readonly_dynrelocs): New function.
1007 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
1008 Call readonly_dynrelocs to determine need for DT_TEXTREL.
1009 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1010 (elf32_hppa_relocate_section): Make use of cached sreloc.
1011 (elf32_hppa_reloc_type_class): New function.
1012 (elf_backend_reloc_type_class): Define.
1014 2001-09-25 Alan Modra <amodra@bigpond.net.au>
1016 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
1017 and "sreloc" fields.
1018 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
1019 "pc_count" fields. Remove "section" field.
1020 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
1021 allocate space for dynamic relocs here. Instead, record all
1022 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
1023 pointer to "sreloc" section in elf_section_data.
1024 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
1025 (allocate_plt_and_got_and_discard_relocs): Rename to
1026 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
1027 (readonly_dynrelocs): New function.
1028 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
1029 Rename "i" to "ibfd". Allocate space for local dyn relocs.
1030 (elf_i386_relocate_section): Make use of cached sreloc.
1032 2001-09-24 Alan Modra <amodra@bigpond.net.au>
1034 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
1035 reloc rather than just the type.
1036 (_bfd_elf_reloc_type_class): Likewise.
1037 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1038 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
1039 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
1040 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
1041 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
1042 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
1043 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
1044 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
1045 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
1046 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
1047 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
1048 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
1049 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
1050 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
1051 * elflink.h: Formatting fixes.
1052 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
1053 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
1054 o->contents to PTR. Update call to elf_backend_reloc_type_class.
1056 2001-09-22 John Reiser <jreiser@BitWagon.com>
1058 * elfcode.h (elf_object_p): Allow for no section header at all in
1059 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
1061 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
1063 * elfxx-ia64.c: Fix compile time warning messages.
1064 * coff-mcore.c: Fix compile time warning messages.
1065 * coff-ppc.c: Fix compile time warning messages.
1066 * coffcode.h: Fix compile time warning messages.
1067 * elf32-mips.c: Fix compile time warning messages.
1068 * elf64-alpha.c: Fix compile time warning messages.
1069 * libbfd.c: Fix compile time warning messages.
1070 * bfd-in2.h: Regenerate.
1072 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1074 * Makefile.am: Run "make dep-am".
1075 * Makefile.in: Regenerate.
1077 * aoutx.h: Formatting fixes.
1078 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
1080 * linker.c: Replace bfd_get_filename with bfd_archive_filename
1083 2001-09-21 Alan Modra <amodra@bigpond.net.au>
1085 * bfd.c (bfd_archive_filename): New function.
1086 * bfd-in2.h: Regenerate.
1087 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
1088 in error messages where the bfd is an input bfd.
1089 * aout-cris.c: Likewise.
1090 * coff-arm.c: Likewise.
1091 * coff-mcore.c: Likewise.
1092 * coff-ppc.c: Likewise.
1093 * coff-rs6000.c: Likewise.
1094 * coff-sh.c: Likewise.
1095 * coff-tic54x.c: Likewise.
1096 * coff-tic80.c: Likewise.
1097 * coff64-rs6000.c: Likewise.
1098 * coffcode.h: Likewise.
1099 * coffgen.c: Likewise.
1100 * cofflink.c: Likewise.
1101 * ecofflink.c: Likewise.
1102 * elf-hppa.h: Likewise.
1104 * elf32-arm.h: Likewise.
1105 * elf32-cris.c: Likewise.
1106 * elf32-gen.c: Likewise.
1107 * elf32-hppa.c: Likewise.
1108 * elf32-i370.c: Likewise.
1109 * elf32-i386.c: Likewise.
1110 * elf32-m32r.c: Likewise.
1111 * elf32-mcore.c: Likewise.
1112 * elf32-mips.c: Likewise.
1113 * elf32-ppc.c: Likewise.
1114 * elf32-s390.c: Likewise.
1115 * elf32-sh.c: Likewise.
1116 * elf32-sparc.c: Likewise.
1117 * elf32-v850.c: Likewise.
1118 * elf64-alpha.c: Likewise.
1119 * elf64-gen.c: Likewise.
1120 * elf64-ppc.c: Likewise.
1121 * elf64-s390.c: Likewise.
1122 * elf64-sparc.c: Likewise.
1123 * elf64-x86-64.c: Likewise.
1124 * elflink.h: Likewise.
1125 * elfxx-ia64.c: Likewise.
1128 * libbfd.c: Likewise.
1129 * pdp11.c: Likewise.
1130 * pe-mips.c: Likewise.
1131 * peicode.h: Likewise.
1133 * xcofflink.c: Likewise.
1135 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
1137 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
1140 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
1143 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
1144 Consolidate error messages, and split long messages to two lines.
1146 2001-09-20 John Reiser <jreiser@BitWagon.com>
1148 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
1149 and info->allow_shlib_undefined.
1150 * elf32-cris.c: Likewise.
1151 * elf32-hppa.c: Likewise.
1152 * elf32-m68k.c: Likewise.
1153 * elf32-mips.c: Likewise.
1154 * elf32-ppc.c: Likewise.
1155 * elf32-s390.c: Likewise.
1156 * elf32-sh.c: Likewise.
1157 * elf32-sparc.c: Likewise.
1158 * elf64-alpha.c: Likewise.
1159 * elf64-hppa.c: Likewise.
1160 * elf64-ppc.c: Likewise.
1161 * elf64-s390.c: Likewise.
1162 * elf64-sparc.c: Likewise.
1163 * elf64-x86-64.c: Likewise.
1164 * elfxx-ia64.c: Likewise.
1166 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1168 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
1169 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1170 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
1171 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
1172 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
1173 (bfd_default_scan): Use ISDIGIT instead of isdigit.
1174 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
1175 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
1176 isxdigit/isdigit/islower.
1177 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
1178 (mangle_name): Use ISALNUM instead of isalnum.
1179 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
1180 (scan): Use ISDIGIT instead of isdigit.
1181 * hosts/alphavms.h: Don't include <ctype.h>.
1182 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
1183 (ieee_object_p): Use TOUPPER instead of toupper.
1184 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
1185 (ihex_bad_byte): Use ISPRINT instead of isprint.
1186 * merge.c: Don't include <ctype.h>.
1187 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
1188 (oasys_write_sections): Use ISDIGIT instead of isdigit.
1189 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
1190 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
1191 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
1192 (mangle_name): Use ISALNUM instead of isalnum.
1193 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
1194 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
1195 isupper/islower/isdigit.
1196 (som_decode_symclass): Use TOUPPER instead of toupper.
1197 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
1198 (srec_bad_byte): Use ISPRINT instead of isprint.
1199 (srec_scan): Use ISSPACE instead of isspace.
1200 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
1201 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
1202 * syms.c: Include "safe-ctype.h"
1203 (islower, toupper): Remove macro definitions.
1204 (bfd_decode_symclass): Use TOUPPER instead of toupper.
1205 * vms-gsd.c: Don't include <ctype.h>.
1206 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
1207 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
1209 * vms-tir.c: Don't include <ctype.h>.
1211 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1213 * libbfd.c (bfd_bread): New function replacing bfd_read without
1214 redundant params. Allow reads up to (size_t) -2 in length.
1215 (bfd_bwrite): Similarly for bfd_write.
1216 (real_read): Return a size_t.
1217 (bfd_read): Call bfd_bread.
1218 (bfd_write): Call bfd_bwrite.
1219 (warn_deprecated): New function to annoy everybody.
1220 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
1221 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
1222 (bfd_read, bfd_write): Define as macro.
1223 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
1224 likewise for bfd_write. Ensure function args are correct size by
1225 using casts or local vars. In some cases, remove unnecessary
1226 casts. Formatting fixes, in some cases removing a large expression
1227 from function args by using a local var. Replace CONST with const.
1228 Modify variable types to avoid warings. Use casts to avoid
1229 warnings when using negative numbers in unsigned expressions.
1230 * aout-adobe.c: Likewise.
1231 * aout-arm.c: Likewise.
1232 * aout-cris.c: Likewise.
1233 * aout-encap.c: Likewise.
1234 * aout-ns32k.c: Likewise.
1235 * aout-target.h: Likewise.
1236 * aout-tic30.c: Likewise.
1237 * aoutf1.h: Likewise.
1238 * aoutx.h: Likewise.
1239 * archive.c: Likewise.
1240 * archures.c: Likewise.
1241 * bfd-in.h: Likewise.
1243 * binary.c: Likewise.
1245 * cache.c: Likewise.
1246 * cisco-core.c: Likewise.
1247 * coff-a29k.c: Likewise.
1248 * coff-alpha.c: Likewise.
1249 * coff-arm.c: Likewise.
1250 * coff-h8300.c: Likewise.
1251 * coff-h8500.c: Likewise.
1252 * coff-i386.c: Likewise.
1253 * coff-i860.c: Likewise.
1254 * coff-i960.c: Likewise.
1255 * coff-ia64.c: Likewise.
1256 * coff-m68k.c: Likewise.
1257 * coff-m88k.c: Likewise.
1258 * coff-mcore.c: Likewise.
1259 * coff-mips.c: Likewise.
1260 * coff-ppc.c: Likewise.
1261 * coff-rs6000.c: Likewise.
1262 * coff-sh.c: Likewise.
1263 * coff-sparc.c: Likewise.
1264 * coff-stgo32.c: Likewise.
1265 * coff-tic30.c: Likewise.
1266 * coff-tic54x.c: Likewise.
1267 * coff-tic80.c: Likewise.
1268 * coff-w65.c: Likewise.
1269 * coff-z8k.c: Likewise.
1270 * coff64-rs6000.c: Likewise.
1271 * coffcode.h: Likewise.
1272 * coffgen.c: Likewise.
1273 * cofflink.c: Likewise.
1274 * coffswap.h: Likewise.
1275 * corefile.c: Likewise.
1276 * cpu-arc.c: Likewise.
1277 * cpu-h8300.c: Likewise.
1278 * cpu-h8500.c: Likewise.
1279 * cpu-i960.c: Likewise.
1280 * cpu-ia64-opc.c: Likewise.
1281 * cpu-ns32k.c: Likewise.
1282 * cpu-pdp11.c: Likewise.
1283 * cpu-pj.c: Likewise.
1284 * cpu-sh.c: Likewise.
1285 * cpu-w65.c: Likewise.
1286 * cpu-z8k.c: Likewise.
1287 * dwarf1.c: Likewise.
1288 * dwarf2.c: Likewise.
1289 * ecoff.c: Likewise.
1290 * ecofflink.c: Likewise.
1291 * ecoffswap.h: Likewise.
1292 * elf-bfd.h: Likewise.
1293 * elf-hppa.h: Likewise.
1294 * elf-m10200.c: Likewise.
1295 * elf-m10300.c: Likewise.
1297 * elf32-arc.c: Likewise.
1298 * elf32-arm.h: Likewise.
1299 * elf32-avr.c: Likewise.
1300 * elf32-cris.c: Likewise.
1301 * elf32-fr30.c: Likewise.
1302 * elf32-gen.c: Likewise.
1303 * elf32-h8300.c: Likewise.
1304 * elf32-hppa.c: Likewise.
1305 * elf32-i370.c: Likewise.
1306 * elf32-i386.c: Likewise.
1307 * elf32-i860.c: Likewise.
1308 * elf32-m32r.c: Likewise.
1309 * elf32-m68k.c: Likewise.
1310 * elf32-mcore.c: Likewise.
1311 * elf32-mips.c: Likewise.
1312 * elf32-openrisc.c: Likewise.
1313 * elf32-pj.c: Likewise.
1314 * elf32-ppc.c: Likewise.
1315 * elf32-s390.c: Likewise.
1316 * elf32-sh-lin.c: Likewise.
1317 * elf32-sh.c: Likewise.
1318 * elf32-sparc.c: Likewise.
1319 * elf32-v850.c: Likewise.
1320 * elf64-alpha.c: Likewise.
1321 * elf64-hppa.c: Likewise.
1322 * elf64-mips.c: Likewise.
1323 * elf64-ppc.c: Likewise.
1324 * elf64-s390.c: Likewise.
1325 * elf64-sparc.c: Likewise.
1326 * elf64-x86-64.c: Likewise.
1327 * elfarm-nabi.c: Likewise.
1328 * elfcode.h: Likewise.
1329 * elfcore.h: Likewise.
1330 * elflink.c: Likewise.
1331 * elflink.h: Likewise.
1332 * elfxx-ia64.c: Likewise.
1333 * elfxx-target.h: Likewise.
1334 * format.c: Likewise.
1336 * hp300hpux.c: Likewise.
1337 * hppabsd-core.c: Likewise.
1338 * hpux-core.c: Likewise.
1339 * i386aout.c: Likewise.
1340 * i386dynix.c: Likewise.
1341 * i386linux.c: Likewise.
1342 * i386lynx.c: Likewise.
1343 * i386mach3.c: Likewise.
1344 * i386msdos.c: Likewise.
1345 * i386os9k.c: Likewise.
1348 * irix-core.c: Likewise.
1349 * libaout.h: Likewise.
1350 * libbfd-in.h: Likewise.
1351 * libbfd.c: Likewise.
1352 * libcoff-in.h: Likewise.
1353 * libecoff.h: Likewise.
1354 * libieee.h: Likewise.
1355 * libnlm.h: Likewise.
1356 * libpei.h: Likewise.
1357 * libxcoff.h: Likewise.
1358 * linker.c: Likewise.
1359 * lynx-core.c: Likewise.
1360 * m68klinux.c: Likewise.
1361 * merge.c: Likewise.
1362 * mipsbsd.c: Likewise.
1363 * netbsd-core.c: Likewise.
1365 * nlm32-alpha.c: Likewise.
1366 * nlm32-i386.c: Likewise.
1367 * nlm32-ppc.c: Likewise.
1368 * nlm32-sparc.c: Likewise.
1369 * nlmcode.h: Likewise.
1370 * nlmswap.h: Likewise.
1371 * ns32k.h: Likewise.
1372 * oasys.c: Likewise.
1373 * opncls.c: Likewise.
1374 * osf-core.c: Likewise.
1375 * pc532-mach.c: Likewise.
1376 * pdp11.c: Likewise.
1377 * pe-mips.c: Likewise.
1378 * peXXigen.c: Likewise.
1379 * peicode.h: Likewise.
1380 * ppcboot.c: Likewise.
1381 * ptrace-core.c: Likewise.
1382 * reloc.c: Likewise.
1383 * reloc16.c: Likewise.
1384 * riscix.c: Likewise.
1385 * rs6000-core.c: Likewise.
1386 * sco5-core.c: Likewise.
1387 * section.c: Likewise.
1389 * sparclinux.c: Likewise.
1390 * sparclynx.c: Likewise.
1392 * stabs.c: Likewise.
1393 * sunos.c: Likewise.
1395 * targets.c: Likewise.
1396 * tekhex.c: Likewise.
1397 * trad-core.c: Likewise.
1398 * versados.c: Likewise.
1399 * vms-gsd.c: Likewise.
1400 * vms-hdr.c: Likewise.
1401 * vms-misc.c: Likewise.
1402 * vms-tir.c: Likewise.
1405 * xcofflink.c: Likewise.
1406 * bfd-in2.h: Regenerate.
1407 * libbfd.h: Regenerate.
1408 * libcoff.h: Regenerate.
1410 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
1411 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
1412 (ufile_ptr): Define.
1413 (bfd_tell): Return a ufile_ptr.
1414 * libbfd.c (bfd_tell): Likewise.
1415 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
1417 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
1418 * aoutf1.h: Likewise.
1420 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
1421 larger than unsigned long can represent.
1423 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
1424 size overflows size_t.
1425 (bfd_realloc): Likewise.
1426 (bfd_zmalloc): Likewise.
1427 * opncls.c (bfd_alloc): Likewise.
1428 (bfd_zalloc): Likewise.
1429 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
1430 (bfd_alloc, bfd_zalloc): Update.
1432 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
1434 (bfd_get_signed_8): Likewise.
1435 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
1436 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
1437 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
1438 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
1439 * libaout.h: Likewise define and use here.
1440 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
1441 * aout-arm.c: Likewise.
1442 * aout-encap.c: Likewise.
1443 * aout-ns32k.c: Likewise.
1444 * aout-tic30.c: Likewise.
1445 * aoutf1.h: Likewise.
1446 * aoutx.h: Likewise.
1448 * coff-alpha.c: Likewise.
1449 * coff-h8300.c: Likewise.
1450 * coff-h8500.c: Likewise.
1451 * coff-i960.c: Likewise.
1452 * coff-ia64.c: Likewise.
1453 * coff-m88k.c: Likewise.
1454 * coff-mips.c: Likewise.
1455 * coff-ppc.c: Likewise.
1456 * coff-rs6000.c: Likewise.
1457 * coff-sh.c: Likewise.
1458 * coff-sparc.c: Likewise.
1459 * coff-stgo32.c: Likewise.
1460 * coff-tic30.c: Likewise.
1461 * coff-tic80.c: Likewise.
1462 * coff-w65.c: Likewise.
1463 * coff-z8k.c: Likewise.
1464 * coff64-rs6000.c: Likewise.
1465 * coffgen.c: Likewise.
1466 * cofflink.c: Likewise.
1467 * coffswap.h: Likewise.
1468 * ecoff.c: Likewise.
1469 * ecoffswap.h: Likewise.
1471 * elf32-mips.c: Likewise.
1472 * elf64-mips.c: Likewise.
1473 * hp300hpux.c: Likewise.
1474 * i386dynix.c: Likewise.
1475 * i386lynx.c: Likewise.
1476 * i386msdos.c: Likewise.
1477 * i386os9k.c: Likewise.
1478 * libpei.h: Likewise.
1479 * nlm32-alpha.c: Likewise.
1480 * nlm32-i386.c: Likewise.
1481 * nlm32-ppc.c: Likewise.
1482 * nlmcode.h: Likewise.
1483 * nlmswap.h: Likewise.
1484 * oasys.c: Likewise.
1485 * pdp11.c: Likewise.
1486 * pe-mips.c: Likewise.
1487 * peXXigen.c: Likewise.
1488 * peicode.h: Likewise.
1489 * riscix.c: Likewise.
1490 * sunos.c: Likewise.
1491 * xcofflink.c: Likewise.
1492 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
1493 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
1494 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
1495 equivalent H_PUT_* macro instead.
1496 (GETWORD, GETHALF, GETBYTE): Similarly.
1497 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1498 (GETWORD, GETHALF, GETBYTE): Likewise.
1499 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
1501 * bfd-in.h (struct orl): Change "pos" to a union.
1502 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
1503 (bsd_write_armap): Here too.
1504 (coff_write_armap): And here.
1505 * coff-rs6000.c (xcoff_write_armap_old): And here.
1506 (xcoff_write_one_armap_big): And here.
1507 (xcoff_write_armap_big): And here.
1508 * ecoff.c (_bfd_ecoff_write_armap): And here.
1509 * elf64-mips.c (mips_elf64_write_armap): And here.
1511 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
1512 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
1513 * elf32-h8300.c (elf32_h8_mach): Likewise.
1514 * elf32-mips.c (elf_mips_mach): Likewise.
1515 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
1517 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
1519 (aix386_core_vec): Typo fix.
1521 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
1522 etc. to avoid redefined macro warning.
1523 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
1524 (MY(fix_pcrel_26)): Likewise.
1525 * aout-ns32k.c (MY(put_reloc)): Likewise.
1526 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
1527 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
1528 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
1530 * aout-encap.c: Include "file", not <file> for binutils headers.
1531 (encap_object_p): Half baked attempt to fix compile errors in
1532 code dealing with "magic".
1534 * aout-ns32k.c: Include "file", not <file> for binutils headers.
1535 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
1536 bfd_vma's rather than longs.
1537 * cpu-ns32k.c (ns32k_sign_extend): Delete.
1538 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
1539 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
1541 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
1542 Use unsigned comparisons.
1543 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
1544 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
1545 (_bfd_do_ns32k_reloc_contents): Likewise.
1546 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
1547 (_bfd_ns32k_get_immediate): Likewise.
1548 (_bfd_ns32k_put_displacement): Likewise.
1549 (_bfd_ns32k_put_immediate): Likewise.
1550 (bfd_reloc_status_type): Likewise.
1552 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
1554 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
1555 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
1556 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
1558 (record_toc): Use a bfd_signed_vma for our_toc_offset.
1559 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
1560 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
1562 (_bfd_elfcore_strndup): Likewise for "dup".
1563 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
1564 "name" to avoid shadowing.
1565 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
1566 definition of "off".
1567 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1568 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
1570 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
1572 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
1574 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
1576 (elf_link_input_bfd): Likewise.
1577 (elf_bfd_final_link): Remove duplicate innermost "off" var.
1578 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
1579 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
1581 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
1582 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
1583 (sunos_write_dynamic_symbol): Remove unused vars.
1584 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
1585 innermost "directory_name" and "file_name" vars.
1586 * tekhex.c (first_phase): Rename local var "type" to "stype".
1587 (tekhex_write_object_contents): Rename innermost "s" to "sym".
1588 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
1589 doing comparison at caller.
1590 (vms_esecflag_by_name): Likewise.
1591 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
1592 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
1593 (xcoff_write_global_symbol): Rename "p" param to "inf".
1595 * cisco-core.c: Add missing prototypes.
1596 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
1597 (cisco_core_file_failing_signal): Likewise.
1598 (cisco_core_file_matches_executable_p): Likewise.
1599 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
1600 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
1601 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
1602 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
1604 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
1605 thumb_glue_size and arm_glue_size.
1606 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
1608 * coff64-rs6000.c: Group prototypes together.
1610 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
1611 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
1613 * cpu-arc.c: Add missing prototypes.
1614 * cpu-h8500.c: Likewise.
1615 * cpu-i960.c: Likewise.
1616 * cpu-pj.c: Likewise.
1617 * cpu-sh.c: Likewise.
1618 * cpu-w65.c: Likewise.
1619 * cpu-z8k.c: Likewise.
1620 * elf32-fr30.c: Likewise.
1621 * elf32-h8300.c: Likewise.
1622 * elf32-i370.c: Likewise.
1623 * hpux-core.c: Likewise.
1624 * versados.c: Likewise.
1626 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
1627 * cpu-h8500.c: Likewise.
1628 * cpu-i960.c: Likewise.
1629 * cpu-z8k.c: Likewise.
1631 * cpu-ia64-opc.c: Correct comment.
1633 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
1635 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
1637 (bfd_elf32_write_out_phdrs): Likewise.
1638 (bfd_elf64_write_out_phdrs): Likewise.
1639 (elf_linker_section_pointers): Change addend to bfd_vma.
1640 (_bfd_elf_find_pointer_linker_section): Likewise.
1641 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
1642 filepos to unsigned file_ptr.
1643 (_bfd_elfcore_strndup): Change max param to size_t.
1644 * elf.c (_bfd_elfcore_make_pseudosection): As above.
1645 (_bfd_elfcore_strndup): Likewise.
1646 (_bfd_elf_find_pointer_linker_section): Likewise.
1648 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
1649 insn and sym_value to ints.
1651 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
1653 (elfcore_read_notes): Likewise.
1655 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
1656 param from unsigned char to int.
1657 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
1658 for info_to_howto call.
1659 (add_dynamic_entry): Define macro.
1660 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
1662 * elf32-cris.c (add_dynamic_entry): Define macro.
1663 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
1665 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
1666 (elf32_h8_object_p): Likewise.
1667 (elf32_h8_merge_private_bfd_data): Likewise.
1668 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
1670 * elf32-hppa.c (add_dynamic_entry): Define macro.
1671 (elf32_hppa_size_dynamic_sections): Use it.
1672 * elf32-i370.c (add_dynamic_entry): Define macro.
1673 (i370_elf_size_dynamic_sections): Use it.
1674 (i370_noop): Make static.
1675 * elf32-i386.c (add_dynamic_entry): Define macro.
1676 (elf_i386_size_dynamic_sections): Use it.
1677 * elf32-m68k.c (add_dynamic_entry): Define macro.
1678 (elf_m68k_size_dynamic_sections): Use it.
1679 * elf32-ppc.c (add_dynamic_entry): Define macro.
1680 (ppc_elf_size_dynamic_sections): Use it.
1681 * elf32-s390.c (add_dynamic_entry): Define macro.
1682 (elf_s390_size_dynamic_sections): Use it.
1683 * elf64-alpha.c (add_dynamic_entry): Define macro.
1684 (elf64_alpha_size_dynamic_sections): Use it.
1685 * elf64-hppa.c (add_dynamic_entry): Define macro.
1686 (elf64_hppa_size_dynamic_sections): Use it.
1687 * elf64-ppc.c (add_dynamic_entry): Define macro.
1688 (ppc64_elf_size_dynamic_sections): Use it.
1689 * elf64-s390.c (add_dynamic_entry): Define macro.
1690 (elf_s390_size_dynamic_sections): Use it.
1691 * elf64-sparc.c (add_dynamic_entry): Define macro.
1692 (sparc64_elf_size_dynamic_sections): Use it.
1693 * elf64-x86-64.c (add_dynamic_entry): Define macro.
1694 (elf64_x86_64_size_dynamic_sections): Use it.
1695 * elfxx-ia64.c (add_dynamic_entry): Define macro.
1696 (elfNN_ia64_size_dynamic_sections): Use it.
1698 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
1699 (v850_elf_perform_relocation): Make "r_type" param unsigned.
1701 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
1702 false if the first malloc fails rather than going via error_return.
1704 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
1706 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
1708 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
1710 * elfxx-ia64.c (global_sym_index): Return a long.
1712 * ieee.c (get_symbol): Use int rather than char param.
1713 (ieee_slurp_sections): Move "section" var to inner blocks.
1714 (copy_expression): Don't init "value" to zero or worry about
1715 clearing to zero after using.
1716 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
1719 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
1722 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
1723 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
1725 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
1727 * pc532-mach.c (MYNSX): Delete.
1728 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
1729 (write_object_contents): Correct prototype.
1731 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
1732 than unsigned short.
1734 * section.c (bfd_set_section_contents): Remove redundant
1735 "offset < 0" test. Check that "count" doesn't overflow size_t.
1736 (bfd_get_section_contents): Likewise.
1738 * som.c (som_fixup_formats): Add missing braces.
1739 (som_reloc_addend): Pass a bfd_vma for "addend".
1741 * srec.c (srec_write_record): Pass "type" as an unsigned int.
1742 (srec_write_symbols): Remove an unnecessary var.
1744 * targets.c (_bfd_target_vector): Sort entries. Sort externs
1746 * configure.in: Sort to match. Bump version number.
1747 * configure: Regenerate.
1749 * tekhex.c (move_section_contents): Assert offset == 0.
1751 * versados.c (new_symbol_string): Constify arg.
1752 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
1753 (versados_get_symbol_info): Make static.
1754 (versados_print_symbol): Likewise.
1755 (versados_get_reloc_upper_bound): Likewise.
1756 (versados_canonicalize_reloc): Likewise.
1758 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
1760 * elflink.h (elf_link_input_bfd): Fix typo in error message.
1762 2001-09-17 H.J. Lu <hjl@gnu.org>
1764 * dwarf1.c (parse_die): Take a new arg for the end of the
1765 section. Return false if die is beyond the section.
1766 (parse_functions_in_unit): Pass the end of the section to
1768 (_bfd_dwarf1_find_nearest_line): Likewise.
1770 2001-09-14 Michael Rauch <mrauch@netbsd.org>
1772 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
1773 just like R_SPARC_32.
1775 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1777 * configure.bfd: Add arm-openbsd target.
1779 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1781 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
1782 Add support for mips64.
1784 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
1786 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
1788 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
1790 * elf.c (prep_headers): Get the machine code from the elf
1792 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
1793 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
1794 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
1795 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
1796 * elf-arc.c (arc_elf_final_write_processing): Don't override
1797 e_machine, it's now properly set in prep_headers.
1798 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
1800 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
1801 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
1802 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
1803 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
1804 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
1805 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
1806 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
1807 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
1808 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
1809 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
1810 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
1811 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
1813 2001-09-11 Richard Henderson <rth@redhat.com>
1815 * elf64-alpha.c (elf64_alpha_section_flags): New.
1816 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
1818 2001-09-11 Richard Henderson <rth@redhat.com>
1820 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
1821 apply HINT relocations against dynamic symbols.
1823 2001-09-11 H.J. Lu <hjl@gnu.org>
1825 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
1827 2001-09-09 Richard Henderson <rth@redhat.com>
1829 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
1831 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
1832 following a call to a near function.
1834 2001-09-08 Richard Henderson <rth@redhat.com>
1836 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
1837 relocation errors. Fail gp-relative relocations against
1840 2001-09-08 Alan Modra <amodra@bigpond.net.au>
1842 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
1843 as well as DEF_DYNAMIC in test for avoided copy relocs.
1844 (allocate_plt_and_got_and_discard_relocs): Likewise.
1845 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
1846 (allocate_plt_and_got_and_discard_relocs): Likewise.
1848 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1850 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
1853 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1855 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
1857 (mips_elf64_howto_table_rel): Likewise.
1859 2001-09-05 Tom Rix <trix@redhat.com>
1861 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
1862 and syscall symbols.
1863 (write_global_symbol) : Same.
1864 (bfd_xcoff_export_symbol): Remove unused syscall param.
1865 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
1866 bfd_xcoff_import_symbol.
1868 * bfd-in2.h : Regenerate.
1870 2001-09-04 Richard Henderson <rth@redhat.com>
1872 * elf64-alpha.c (SKIP_HOWTO): New.
1873 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
1874 Fix sizes of 16-bit mem format relocs.
1875 (elf64_alpha_reloc_map): Update to match.
1876 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1877 (elf64_alpha_relax_without_lituse): Likewise.
1878 (elf64_alpha_check_relocs): Handle GPREL16.
1879 (elf64_alpha_relocate_section): Likewise.
1880 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1881 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1882 * bfd-in2.h, libbfd.h: Rebuild.
1884 2001-09-04 Jeff Law <law@redhat.com>
1886 * elf32-h8300.c (elf32_h8_relax_section): New function.
1887 (elf32_h8_relax_delete_bytes): Likewise.
1888 (elf32_h8_symbol_address_p): Likewise.
1889 (elf32_h8_get_relocated_section_contents): Likewise.
1890 (bfd_elf32_bfd_relax_section): Define.
1891 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1893 * elf32-h8300.c (special): New function.
1894 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1896 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1897 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1898 Fix minor problems with 8bit and 16bit PC relative relocations.
1900 2001-09-01 Andreas Jaeger <aj@suse.de>
1902 * vms-tir.c: Add missing prototypes.
1903 * vms-hdr.c: Likewise.
1904 * vms-gsd.c: Likewise.
1905 * vms-misc.c: Likewise.
1907 2001-08-31 H.J. Lu <hjl@gnu.org>
1909 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1910 with bad relocation.
1912 2001-08-31 Eric Christopher <echristo@redhat.com>
1913 Jason Eckhardt <jle@redhat.com>
1915 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1916 mips32_4k and mips64.
1917 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1918 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1919 * bfd/cpu-mips.c: Ditto.
1920 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1921 * bfd/bfd-in2.h: Regenerate.
1923 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1925 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1926 value into R_ALPHA_RELATIVE's addend.
1927 (elf64_alpha_finish_dynamic_symbol): Likewise.
1929 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1931 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1932 recomputed addend during relocatable link if not USE_REL.
1934 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1937 2001-08-30 H.J. Lu <hjl@gnu.org>
1939 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1941 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1942 relocations for weak definitions.
1944 2001-08-30 H.J. Lu <hjl@gnu.org>
1946 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1947 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1948 * Makefile.in: Rebuild.
1950 2001-08-30 H.J. Lu <hjl@gnu.org>
1952 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1953 dynamic relocation for undefined weak symbols when creating
1954 executables. Check h->root.root.type, instead of h->root.type.
1956 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1958 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1959 default from coff to elf.
1961 2001-08-29 Jeff Law <law@redhat.com>
1963 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1965 (h8_reloc_map): Similarly.
1966 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1967 Add support for PC relative relocations.
1969 * elf32-h8300.c: Put all prototypes together.
1970 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1971 (elf32_h8_final_link_relocate): New function for linker.
1972 (elf32_h8_relocate_section): Similarly.
1973 (elf_backend_relocate_section): Define.
1975 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1976 (h8300_scan): Handle architecture:machine encodings typically
1977 found in linker scripts.
1978 * elf.c (prep_headers): Do not try to do H8 machine recognition
1980 * elf32-h8300.c: Add some missing prototypes.
1981 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1982 (elf32_h8_object_p): Similarly.
1984 2001-08-29 Tom Rix <trix@redhat.com>
1986 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1987 does not follow a XTY_SD.
1989 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1991 * targmatch.sed: Delete case statements.
1992 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1995 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1997 * Makefile.am (elf32-h8300.lo): New target.
1998 * config.bfd (h8300*-*-elf): New case.
1999 * configure.in (bfd_elf32_h8300_vec): New case.
2000 * elf.c (prep_headers): Add case for bfd_arch_h8300.
2001 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
2002 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
2003 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
2004 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
2005 * elf32-h8300.c: New file.
2006 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
2008 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2010 * sparclynx.c: Add missing prototypes.
2011 * coff-mcore.c: Add missing prototypes.
2012 * elf32-pj.c: Add missing prototypes.
2013 * nlm32-sparc.c: Add missing prototypes.
2014 * oasys.c: Add missing prototypes.
2015 * pdp11.c: Add missing prototypes.
2016 * pe-mips.c: Add missing prototypes.
2017 * riscix.c: Add missing prototypes.
2019 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2021 * elf32-i386.c: Add missing prototypes.
2022 * elf32-ppc.c: Likewise.
2023 * elf32-sh-lin.c: Likewise.
2024 * elfarm-nabi.c: Likewise.
2026 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
2028 * elf32-i386.c (elf_i386_grok_prstatus): New function.
2029 (elf_i386_grok_psinfo): New function.
2030 (elf_backend_grok_prstatus): Define.
2031 (elf_backend_grok_psinfo): Likewise.
2032 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
2033 (ppc_elf_grok_psinfo): New function.
2034 (elf_backend_grok_prstatus): Define.
2035 (elf_backend_grok_psinfo): Likewise.
2036 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
2037 (elf32_shlin_grok_psinfo): New function.
2038 (elf_backend_grok_prstatus): Define.
2039 (elf_backend_grok_psinfo): Likewise.
2040 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
2041 (elf32_arm_nabi_grok_psinfo): New function.
2042 (elf_backend_grok_prstatus): Define.
2043 (elf_backend_grok_psinfo): Likewise.
2045 2001-08-27 H.J. Lu <hjl@gnu.org>
2047 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
2049 (mips_elf_calculate_relocation): Create dynamic relocation for
2050 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
2053 2001-08-27 H.J. Lu <hjl@gnu.org>
2055 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
2056 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
2057 (_bfd_elf32_mips_grok_prstatus): Likewise.
2058 (_bfd_elf32_mips_grok_psinfo): Likewise.
2059 (_bfd_mips_elf_hide_symbol): Make it static and cast to
2060 `struct mips_elf_link_hash_entry *'.
2061 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
2063 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2065 * mipsbsd.c: Add missing prototypes.
2066 * hp300hpux.c: Add missing prototypes.
2067 * i386aout.c: Add missing prototypes.
2068 * i386lynx.c: Add missing prototypes.
2069 * i386mach3.c: Add missing prototypes.
2070 * i386msdos.c: Add missing prototypes.
2071 * i386os9k.c: Add missing prototypes.
2073 2001-08-27 Linus Nordberg <linus@swox.se>
2074 Torbjorn Granlund <tege@swox.com>
2075 Staffan Ulfberg <staffanu@swox.se>
2076 Alan Modra <amodra@bigpond.net.au>
2078 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
2079 targ64_selvecs for 32 bit powerpc targets.
2080 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
2081 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
2083 * Makefile.in: Regenerate.
2084 * configure.in: Add elf64_powerpc vecs.
2085 * configure: Regenerate.
2086 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
2087 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
2088 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
2089 * elf64-ppc.c: New file.
2090 * reloc.c: Add powerpc64 relocs.
2091 * libbfd.h: Regenerate.
2092 * bfd-in2.h: Regenerate.
2094 2001-08-27 Andreas Schwab <schwab@suse.de>
2096 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
2097 reloc is against read-only section.
2098 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
2099 looking up section names for DT_TEXTREL.
2100 (elf32_m68k_reloc_type_class): New function.
2101 (elf_backend_reloc_type_class): Define.
2103 2001-08-27 Andreas Jaeger <aj@suse.de>
2105 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2106 reloc is against read-only section.
2107 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2108 looking up section names for DT_TEXTREL.
2109 (elf_s390_reloc_type_class): New.
2110 (elf_backend_reloc_type_class): Define.
2112 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
2113 reloc is against read-only section.
2114 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
2115 looking up section names for DT_TEXTREL.
2116 (elf_s390_reloc_type_class): New.
2117 (elf_backend_reloc_type_class): Define.
2119 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
2120 is against read-only section.
2121 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2122 looking up section names for DT_TEXTREL.
2123 (ppc_elf_reloc_type_class): New.
2124 (elf_backend_reloc_type_class): Define.
2126 2001-08-26 Andreas Jaeger <aj@suse.de>
2128 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
2129 reloc is against read-only section.
2130 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
2131 looking up section names for DT_TEXTREL.
2132 (elf_cris_reloc_type_class): New.
2133 (elf_backend_reloc_type_class): Define.
2135 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
2136 against read-only section.
2137 (elf_backend_reloc_type_class): Define.
2138 (sh_elf_reloc_type_class): New.
2139 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2140 looking up section names for DT_TEXTREL.
2142 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
2143 reloc is against read-only section.
2144 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
2145 looking up section names for DT_TEXTREL.
2146 (elf32_arm_reloc_type_class): New.
2147 (elf_backend_reloc_type_class): Define.
2149 2001-08-25 Andreas Jaeger <aj@suse.de>
2151 * oasys.c: Add missing prototypes.
2153 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
2154 attribute for parameter.
2155 * elf.c (_bfd_elf_reloc_type_class): Likewise.
2157 * versados.c (get_4): Make static.
2158 (get_10): Make static.
2159 Add missing prototypes.
2160 (process_esd): Fix call to versados_new_symbol.
2162 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
2164 * coff-a29k.c: Add missing prototypes.
2165 * coff-apollo.c: Add missing prototypes.
2166 * coff-arm.c: Add missing prototypes.
2167 * coff-i860.c: Add missing prototypes.
2168 * coff-rs6000.c: Add missing prototypes.
2169 * coff-tic80.c: Add missing prototypes.
2170 * elf-m10200.c: Add missing prototypes.
2171 * elf-m10300.c: Add missing prototypes.
2172 * elf32-arm.h: Add missing prototypes.
2173 * elf32-d10v.c: Add missing prototypes.
2174 * elf32-m32r.c: Add missing prototypes.
2175 * elf32-mcore.c: Add missing prototypes.
2176 * elf32-openrisc.c: Add missing prototypes.
2177 * elf32-sh.c: Add missing prototypes.
2178 * elf32-sparc.c: Add missing prototypes.
2179 * elf32-v850.c: Add missing prototypes.
2180 * elfarm-nabi.c: Add missing prototypes.
2181 * elfarm-oabi.c: Add missing prototypes.
2183 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2185 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
2186 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
2188 2001-08-24 H.J. Lu <hjl@gnu.org>
2190 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
2193 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
2195 * elf-bfd.h (elf_hash_table): Revert definition.
2196 (is_elf_hash_table): New macro.
2197 * elflink.h (elf_link_add_object_symbols): Test
2198 is_elf_hash_table before accessing ELF only fields in hash
2200 (elf_link_create_dynamic_sections): Fail if not using an ELF
2202 (elf_add_dynamic_entry): Fail if not using an ELF hash
2204 (elf_link_record_local_dynamic_symbol): Fail if not using an
2206 (size_dynamic_sections): Fail if not using an ELF hash
2208 (elf_adjust_dynamic_symbol): Fail if not using an ELF
2210 (elf_bfd_final_link): Fail if not using an ELF hash
2213 2001-08-24 H.J. Lu <hjl@gnu.org>
2215 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
2216 table is not an ELF linker hash table.
2218 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
2219 table type to bfd_link_elf_hash_table.
2221 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
2224 * linker.c (_bfd_link_hash_table_init): Set the linker hash
2225 table type to bfd_link_generic_hash_table.
2227 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2229 * bfd.c (bfd_alt_mach_code): New function.
2230 * bfd-in2.h: Rebuilt.
2232 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
2234 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
2235 `type' field in the hash entry when deciding whether to follow a
2238 2001-08-24 Jakub Jelinek <jakub@redhat.com>
2240 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
2242 (elf_link_sort_relocs): Adjust accordingly.
2244 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
2245 (elf64_alpha_check_relocs): Set it if section this reloc is against
2246 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
2248 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
2249 is is against read-only section.
2250 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
2251 check section names.
2252 (elf64_alpha_reloc_type_class): New.
2253 (elf_backend_reloc_type_class): Define.
2255 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2257 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
2260 2001-08-23 Andreas Jaeger <aj@suse.de>
2262 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
2263 the reloc is against read-only section.
2264 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
2265 of looking up section names for DT_TEXTREL.
2266 (elf64_x86_64_reloc_type_class): New.
2267 (elf_backend_reloc_type_class): Define.
2269 2001-08-23 H.J. Lu <hjl@gnu.org>
2271 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
2272 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
2274 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
2275 bfd_print_symbol_vandf.
2276 * coffgen.c (coff_print_symbol): Likewise.
2277 * elf.c (bfd_elf_print_symbol): Likewise.
2278 * ieee.c (ieee_print_symbol): Likewise.
2279 * nlmcode.h (nlm_print_symbol): Likewise.
2280 * oasys.c (oasys_print_symbol): Likewise.
2281 * pdp11.c (NAME(aout,print_symbol)): Likewise.
2282 * som.c (som_print_symbol): Likewise.
2283 * srec.c (srec_print_symbol): Likewise.
2284 * tekhex.c (tekhex_print_symbol): Likewise.
2285 * versados.c (versados_print_symbol): Likewise.
2286 * vms.c (vms_print_symbol): Likewise.
2288 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
2289 with bfd_fprintf_vma.
2290 (bfd_elf_print_symbol): Likewise.
2291 * syms.c (bfd_print_symbol_vandf): Likewise.
2293 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2295 * aoutf1.h (sunos_write_object_contents): Silence compile time
2297 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
2299 * bout.c: Add missing function prototypes. Fix formatting.
2300 * coff-z8k.c: Add missing function prototypes. Fix formatting.
2301 * coff-w65.c: Add missing function prototypes. Fix formatting.
2302 * coff-h8500.c: Add missing function prototypes. Fix formatting.
2303 * coff-h8300.c: Add missing function prototypes. Fix formatting.
2304 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
2305 * coff-tic30.c: Add missing function prototypes. Fix formatting.
2306 * coff-m68k.c: Add missing function prototypes. Fix formatting.
2307 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
2308 * coff-sh.c: Add missing function prototypes. Fix formatting.
2310 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2312 * elf-bfd.h (enum elf_reloc_type_class): New.
2313 (struct elf_backend_data): Add elf_backend_reloc_type_class.
2314 (_bfd_elf_reloc_type_class): New.
2315 * elfxx-target.h (elf_backend_reloc_type_class): Define.
2316 (elfNN_bed): Add elf_backend_reloc_type_class.
2317 * elf.c (_bfd_elf_reloc_type_class): New.
2318 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
2319 is against read-only section.
2320 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
2321 looking up section names for DT_TEXTREL.
2322 (elf_i386_reloc_type_class): New.
2323 (elf_backend_reloc_type_class): Define.
2324 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
2325 reloc is against read-only section.
2326 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
2327 looking up section names for DT_TEXTREL.
2328 (elf32_sparc_reloc_type_class): New.
2329 (elf_backend_reloc_type_class): Define.
2330 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
2331 reloc is against read-only section.
2332 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
2333 looking up section names for DT_TEXTREL.
2334 (sparc64_elf_reloc_type_class): New.
2335 (elf_backend_reloc_type_class): Define.
2336 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
2337 (elfNN_ia64_hash_table_create): Clear ia64_info.
2338 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
2340 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
2341 instead of looking up section names for DT_TEXTREL.
2342 (elfNN_ia64_reloc_type_class): New.
2343 (elf_backend_reloc_type_class): Define.
2344 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
2345 (struct elf_link_sort_rela): New.
2346 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
2347 (elf_bfd_final_link): Call elf_link_sort_relocs.
2348 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
2351 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
2353 * configure.in (x86-bsdi): No corefile support.
2354 * configure: Regenerate.
2356 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
2358 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
2361 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
2363 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
2364 the alignment of dwarf2 linkonce sections to 0.
2365 * coff-sto32.c: Likewise.
2367 2001-08-20 Andreas Jaeger <aj@suse.de>
2369 * coff-sparc.c: Add missing prototypes.
2370 * elf32-s390.c: Likewise.
2371 * elf32-i960.c: Likewise.
2372 * aout-target.h: Likewise.
2374 2001-08-20 H.J. Lu <hjl@gnu.org>
2376 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
2377 (elf_num_section_syms): New for num_section_syms.
2379 * elf.c (elf_map_symbols): Set num_section_syms.
2380 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
2381 the section symbol index.
2383 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
2385 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
2386 select the generic has table creator. All elf backends need elf
2387 specific fields in the hash table.
2389 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2391 * archive.c (offsetof): Remove define.
2394 * sysdep.h (offsetof): Define.
2396 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2398 * bfd.c (bfd_get_gp_size): Return an unsigned int.
2399 (bfd_set_gp_size): Make param unsigned.
2400 * bfd-in2.h: Regenerate.
2401 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
2402 than calling bfd_get_gp_size.
2403 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
2404 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2406 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2408 * linker.c (default_fill_link_order): Handle four byte fill value.
2410 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2412 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
2414 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
2416 * elf64-mips.c (UNUSED_RELOC): Define.
2417 (mips_elf64_howto_table_rel): Use it.
2418 (mips_elf64_howto_table_rela): Here too.
2419 (mips_elf64_write_relocs): Fix signed/unsigned warning.
2421 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
2423 * coffgen.c (coff_print_symbol): Fix warnings.
2424 (coff_find_nearest_line): Likewise.
2425 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
2426 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
2427 * format.c (bfd_check_format_matches): Likewise.
2428 (bfd_set_format): Likewise.
2429 * coff-ia64.c: Add missing prototypes.
2430 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
2431 signed to silence warnings.
2432 (elf64_alpha_relocate_section): Likewise.
2433 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
2434 (elf64_alpha_add_symbol_hook): Likewise.
2435 (elf64_alpha_final_link): Likewise.
2436 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
2437 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
2438 (elf64_alpha_size_got_sections): Likewise.
2439 * elfxx-ia64.c: Add missing prototypes.
2440 (elfNN_ia64_relocate_section): Fix warning.
2441 (elfNN_ia64_unwind_entry_compare): Make params const.
2443 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2445 * config.bfd (targ64_selvecs): New.
2446 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
2448 * bfd-in.h (BFD_VERSION): Remove wrong comment.
2449 (BFD_DEFAULT_TARGET_SIZE): New.
2450 (BFD_ARCH_SIZE): Comment.
2451 * configure.in (target_size): New. Set instead of target64 in
2452 selvecs case statement. Set target64 from it.
2453 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
2454 * bfd-in2.h: Regenerate.
2455 * configure: Regenerate.
2457 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2459 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
2460 (bfd_errmsgs): Add corresponding message.
2461 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
2462 finding an archive that contains different format object files.
2463 Return bfd_error_wrong_object_format for this case.
2464 * format.c: Formatting fixes. s/CONST/const/.
2465 (bfd_check_format_matches): Accept archives that give
2466 bfd_error_wrong_object_format if no full match is found. Tidy
2467 code handling matching_vector. Don't return a pointer to freed
2468 memory in `matching'. Handle ambiguous matches as for partial
2470 * bfd-in2.h: Regenerate.
2472 2001-08-15 Alan Modra <amodra@bigpond.net.au>
2474 * libieee.h (common_header_type): Add last_byte field.
2476 * ieee.c: Add missing prototypes. Some format fixes.
2477 (struct output_buffer_struct): Move for availability to prototypes.
2478 (ieee_part_after): New function.
2479 (ieee_slurp_debug): Use it here.
2480 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
2481 ieee_part_after to set last_byte to one past end of current part.
2483 (ieee_pos): Pass in ieee_data_struct rather than bfd.
2485 (parse_expression): Don't go beyond the end of the current part.
2486 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
2487 (ieee_get_symtab_upper_bound, ieee_get_symtab,
2488 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
2489 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
2490 ieee_set_section_contents, ieee_write_object_contents,
2491 ieee_make_empty_symbol): Make static.
2492 (ieee_archive_p): Correct comments regarding bfd_read.
2493 (ieee_object_p): Similarly.
2494 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
2495 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
2496 input_bfd, output_bfd, output_buffer.
2497 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
2498 do_with_relocs, ie. as a symbol for relocatable files.
2499 (ieee_vec): Add comments showing functions referenced by macros.
2501 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
2503 * aout-tic30.c: Add missing prototypes. Fix formatting.
2504 * aout-ns32k.c: Add missing prototypes. Fix formatting.
2505 * peXXigen.c: Add missining prototypes. Fix formatting.
2506 * aout-adobe.c: Add missining prototypes. Fix formatting.
2508 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
2510 * elf32-v850.c: Add missing function prototypes.
2511 Fix some formatting.
2513 * cpu-v850.c: Add missing function prototype.
2514 Fix some formatting.
2516 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
2518 * elf-bfd.h (struct elf_backend_data): Add new fields
2519 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
2520 (bfd_elf_sprintf_vma): Rename function prototype to
2521 '_bfd_elf_sprintf_vma'.
2522 (bfd_elf_fprintf_vma): Rename function prototype to
2523 '_bfd_elf_fprintf_vma'.
2524 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
2525 directly, instead indirect via the elf_backend_data structure.
2526 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
2527 instead indirect via the elf_backend_data structure.
2528 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
2529 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
2530 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
2532 (elf_backend_fprintf_vma): Initialise if not already defined.
2533 (struct elf_backend_data): Initialise the
2534 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
2536 2001-08-10 Andreas Jaeger <aj@suse.de>
2538 * elf64-sparc.c: Add missing prototypes.
2539 * elf32-cris.c: Likewise.
2540 * elf32-i370.c: Likewise.
2541 * elf64-hppa.c: Likewise.
2542 * elf64-s390.c: Likewise.
2544 2001-08-10 Andreas Jaeger <aj@suse.de>
2546 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
2547 Add prototypes where needed.
2549 2001-08-10 H.J. Lu <hjl@gnu.org>
2551 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
2552 (bfd_fprintf_vma): Likewise.
2554 2001-08-10 H.J. Lu <hjl@gnu.org>
2556 * bfd.c (bfd_sprintf_vma): Don't return void.
2557 (bfd_fprintf_vma): Likewise.
2559 2001-08-10 Andreas Jaeger <aj@suse.de>
2561 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2563 * configure: Regenerate.
2565 2001-08-10 Alan Modra <amodra@bigpond.net.au>
2567 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
2568 warning if not BFD64. Add braces so emacs auto format works.
2569 (bfd_elf_fprintf_vma): Likewise.
2571 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
2573 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
2574 param to agree with libxcoff.h.
2575 (xcoff_swap_ldhdr_out): Likewise.
2576 (xcoff_swap_ldsym_in): Likewise.
2577 (xcoff_swap_ldsym_out): Likewise.
2578 (xcoff_swap_ldrel_in): Likewise.
2579 (xcoff_swap_ldrel_out): Likewise.
2580 (xcoff_create_csect_from_smclas): Likewise.
2581 * coff64-rs6000.c: Add missing prototypes.
2582 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
2584 (xcoff64_swap_ldhdr_out): Likewise.
2585 (xcoff64_swap_ldsym_in): Likewise.
2586 (xcoff64_swap_ldsym_out): Likewise.
2587 (xcoff64_swap_ldrel_in): Likewise.
2588 (xcoff64_swap_ldrel_out): Likewise.
2589 (xcoff64_ppc_relocate_section): Make static.
2590 (xcoff64_slurp_armap): Likewise.
2591 (xcoff64_archive_p): Likewise.
2592 (xcoff64_openr_next_archived_file): Likewise.
2593 (xcoff64_sizeof_headers): Likewise.
2594 (xcoff64_is_lineno_count_overflow): Likewise.
2595 (xcoff64_is_reloc_count_overflow): Likewise.
2596 (xcoff64_loader_symbol_offset): Likewise.
2597 (xcoff64_loader_reloc_offset): Likewise.
2598 * elf64-gen.c: Add missing prototypes.
2600 2001-08-09 H.J. Lu <hjl@gnu.org>
2602 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
2603 (bfd_elf_fprintf_vma): Likewise.
2605 2001-08-09 H.J. Lu <hjl@gnu.org>
2607 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
2610 * bfd-in2.h: Regenerated.
2612 2001-08-09 H.J. Lu <hjl@gnu.org>
2614 * bfd-in.h (bfd_sprintf_vma): New prototype.
2615 (bfd_fprintf_vma): Likewise.
2616 (bfd_elf_sprintf_vma): Likewise.
2617 (bfd_elf_fprintf_vma): Likewise.
2618 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
2619 * bfd-in2.h: Regenerated.
2621 * bfd.c (bfd_sprintf_vma): New. Defined.
2622 (bfd_fprintf_vma): Likewise.
2624 * elf.c (bfd_elf_sprintf_vma): New. Defined.
2625 (bfd_elf_fprintf_vma): Likewise.
2627 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2629 * coff-rs6000.c: Add missing prototypes.
2630 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
2631 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
2632 xcoff_loader_reloc_offset): Make static.
2633 * dwarf1.c: Add missing prototypes.
2634 * dwarf2.c: Add missing prototypes.
2635 (struct abbrev_info): Move definition.
2636 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
2637 * elf.c: Add missing prototypes.
2638 * elf32-gen.c: Likewise.
2639 * elf32-i386.c: Likewise.
2640 * elf32-ppc.c: Likewise.
2641 (ppc_elf_sort_rela): Use PTR instead of "void *".
2642 * elflink.h: Add missing prototypes. Formatting fixes.
2643 * merge.c: Add missing prototypes.
2644 (last4_eq): Use PTR instead of "void *".
2645 (last_eq): Likewise.
2646 * syms.c: Add missing prototypes.
2648 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2650 * bfd.c: Fix formatting.
2651 * bfd-in2.h: Regenerate.
2653 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
2655 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
2656 true (this target uses REL relocations) and 'pcrel_offset' to
2657 false (the PC is implied, not stored in the offset).
2659 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2661 1999-10-19 Linus Nordberg <linus@swox.se>
2662 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
2663 * elfxx-target.h (elf_backend_want_got_sym): Define.
2664 (elfNN_bed): Add elf_backend_want_got_sym.
2665 * elflink.c (_bfd_elf_create_got_section): Define
2666 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
2668 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
2670 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
2671 (find_rela_addend): New function.
2672 (parse_comp_unit): Call it to find the abbrev offset addend.
2673 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
2674 members of dwarf2_debug as debugging information is read.
2676 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
2678 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
2679 targets as well as sh-pe.
2681 2001-08-03 Ben Harris <bjh21@netbsd.org>
2683 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
2684 reloc from start of section when computing value for R_ARM_REL32
2687 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2689 From H.J. Lu <hjl@gnu.org>
2690 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
2691 keep relocs for undefined syms if there are no dynamic sections in
2693 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
2695 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2697 * cofflink.c (coff_link_check_ar_symbols): also search for
2698 __imp__symbol as well as _symbol.
2699 * linker.c (_bfd_generic_link_add_archive_symbols): also
2700 search for __imp__symbol as well as _symbol.
2702 2001-08-01 Adam Nemet <anemet@lnxw.com>
2704 * elf.c (elf_sort_sections): Return zero only as the last step.
2706 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
2708 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
2710 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
2711 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
2714 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2716 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
2717 to match corresponding bfd_coff_backend data member.
2719 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2721 * Makefile.am: Update dependencies with "make dep-am".
2722 * Makefile.in: Regenerate
2724 2001-07-15 H.J. Lu <hjl@gnu.org>
2726 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
2727 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
2728 * Makefile.in: Regenerate.
2730 2001-07-11 H.J. Lu <hjl@gnu.org>
2732 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
2733 flags when creating the reloc section if the ALLOC flag in the
2734 source section is set.
2736 2001-07-11 Steve Ellcey <sje@cup.hp.com>
2738 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
2739 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
2740 * bfd-in2.h: Regenerate.
2741 * libbfd.h: Regenerate.
2742 * elfxx-ia64.c (ia64_howto_table): Define how to handle
2744 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
2745 (elfNN_ia64_check_relocs): Likewise.
2746 (elfNN_ia64_install_value): Likewise.
2747 (elfNN_ia64_relocate_section): Likewise.
2749 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2751 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
2753 (elf32_sparc_check_relocs): Likewise.
2754 Only create .rela section for alloced sections in shared libraries.
2755 (elf32_sparc_relocate_section): Likewise.
2756 Remove redundant check.
2757 Optimize unaligned reloc usage.
2758 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
2761 2001-07-11 H.J. Lu <hjl@gnu.org>
2763 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
2764 ALLOC|LOAD flags as the source section for debugging sections
2765 when creating the reloc section.
2767 2001-07-05 Jim Wilson <wilson@redhat.com>
2769 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
2770 the section of the bigger symbol.
2772 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
2774 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
2776 * peicode.h (coff_swap_scnhdr_in): For sections containing
2777 uninitialised data, only set their size to s_paddr if this does
2778 not reset their size to zero. MS's latest compilers will set
2781 2001-07-04 H.J. Lu <hjl@gnu.org>
2783 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
2784 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
2787 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
2789 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
2791 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
2792 sections being discarded.
2794 2001-06-30 Alan Modra <amodra@bigpond.net.au>
2796 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
2797 instead of _bfd_elfcore_section_from_phdr.
2798 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
2799 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
2800 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
2801 (elfcore_grok_prstatus): Likewise.
2802 (elfcore_grok_lwpstatus): Likewise.
2803 (bfd_get_elf_phdr_upper_bound): Likewise.
2804 (elfcore_make_note_pseudosection): Formatting.
2805 (_bfd_elfcore_strndup): Formatting.
2806 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
2807 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
2809 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
2811 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
2812 and _bfd_elfcore_strndup.
2813 (struct elf_backend_data): Add elf_backend_grok_prstatus
2814 and elf_backend_grok_psinfo.
2815 * elf.c (_bfd_elfcore_make_pseudosection): New function.
2816 (elfcore_grok_prstatus): Use it.
2817 (elfcore_make_note_pseudosection): Likewise.
2818 (elfcore_strndup): Rename to...
2819 (_bfd_elfcore_strndup): Here, and make global.
2820 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
2821 (elfcore_grok_note): Call elf_backend_grok_prstatus
2822 and elf_backend_grok_psinfo if available.
2823 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
2824 (_bfd_elf32_mips_grok_psinfo): New function.
2825 (elf_backend_grok_prstatus): Define.
2826 (elf_backend_grok_psinfo): Define.
2827 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
2828 (elf_backend_grok_psinfo): Likewise.
2829 (elfNN_bed): Include elf_backend_grok_prstatus and
2830 elf_backend_grok_psinfo.
2832 2001-06-29 H.J. Lu <hjl@gnu.org>
2834 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
2835 hplink->sgot is NULL before filling GOT. Check if hplink->splt
2836 is NULL before filling PLT.
2838 2001-06-29 Alan Modra <amodra@bigpond.net.au>
2840 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
2842 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2844 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
2846 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
2847 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2850 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
2851 (IS_ABSOLUTE_RELOC): Define.
2852 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
2853 (hppa_link_hash_newfunc): Always init it.
2854 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
2855 create COPY relocs only when the reloc is in a read-only section.
2856 Instead, allocate space for a dynamic reloc to reference the
2857 library symbol directly. Keep track of space we allocate using
2859 (hppa_discard_copies): Delete, and move code to..
2860 (allocate_plt_and_got): ..here. Rename to
2861 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2862 relocs for non-shared link.
2863 (elf32_hppa_size_dynamic_sections): Update calls to above.
2864 (elf32_hppa_relocate_section): Write out the dynamic relocs used
2865 in lieu of COPY relocs.
2867 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
2869 (elf_i386_adjust_dynamic_symbol): ..nor here..
2870 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
2872 (elf_i386_size_dynamic_sections): Fix a comment.
2873 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
2874 involved in writing reloc out.
2876 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2878 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2879 Ensure syms are dynamic if we might be emitting a reloc.
2880 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2881 for undefweak or undefined syms..
2882 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2884 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2885 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2886 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2887 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2889 2001-06-24 H.J. Lu <hjl@gnu.org>
2891 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2892 strncasecmp/strcasecmp instead of strncmp/strcmp.
2894 2001-06-23 H.J. Lu <hjl@gnu.org>
2896 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2897 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2898 in the regular object file and treat the weak definition as
2901 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2903 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2904 unresolved_reloc test to exclude cases where we use "relocation"
2905 before setting it to point into the .got. Reinstate fudge for
2906 unresolved relocs in debugging sections.
2908 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2909 complicated tests for unresolvable relocs with a simple direct
2910 scheme using "unresolved_reloc" var.
2912 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2913 elf_i386_dyn_relocs. Update comment.
2914 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2916 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2918 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2920 (elf_i386_size_dynamic_sections): Likewise.
2921 (elf_i386_finish_dynamic_symbol): Likewise.
2922 (elf_i386_finish_dynamic_sections): Likewise.
2923 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2926 Avoid creating COPY relocs if possible.
2927 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2928 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2929 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2930 reloc is in a read-only section. Instead, allocate space for a
2931 dynamic reloc to reference the library symbol directly. Keep
2932 track of space we allocate using pcrel_relocs_copied.
2933 (discard_copies): Delete, and move code to ..
2934 (allocate_plt_and_got): ..here. Rename to
2935 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2936 relocs for non-shared link.
2937 (elf_i386_size_dynamic_sections): Update calls to above functions.
2938 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2939 more ugly logic to avoid "unresolvable relocation" error. Use
2940 htab shortcut in place of elf_hash_table macro.
2941 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2942 not always be created now.
2944 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2946 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2949 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2951 * configure.host (mips64-*-linux): Reformat.
2953 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2955 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2956 allocate local .got space. Use shortcuts from hash table for .got
2957 and .plt rather than comparing section names.
2958 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2959 adjusting index into local_got_refcounts to document what we are
2961 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2962 Tidy .got and .plt error checking.
2964 2001-06-20 Catherine Moore <clm@redhat.com>
2966 * elf-bfd.h (struct elf_backend_data):
2967 elf_backend_emit_relocs: New field: Function for emitting
2969 elf_backend_count_relocs: New field: Function for determining
2970 the number of relocs to be emitted.
2971 * elfxx-target.h: Provide default (NULL) values for
2972 elf_backend_emit_relocs and elf_backend_count_relocs.
2973 * elflink.h (elf_link_size_reloc_section): Make the hash table
2974 big enough to hold the relocs counted by either reloc_count or
2976 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2977 should be emitted, either because of a command line option
2978 stored in the info structure or because the target provides a
2979 special reloc emitting function.
2980 If the target provides a reloc counting function use it,
2981 unless performing a relocatable link or emitting all relocs.
2982 Also set the SEC_RELOC flag on any output section which will
2984 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2985 should be emitted, either because of a command line option
2986 stored in the info structure or because the target provides a
2987 special reloc emitting function.
2988 If the target provides a reloc emitting function, use it,
2989 unless performing a relocatable link or emitting all relocs.
2991 2001-06-20 H.J. Lu <hjl@gnu.org>
2993 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2994 allocate local .got space.
2996 2001-06-19 Andreas Jaeger <aj@suse.de>
2998 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
3001 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3003 * elflink.h (struct elf_assign_sym_version_info): Remove member
3004 export_dynamic. All users changed to use info member.
3005 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
3006 export_dynamic, instead use member in parameter info.
3007 * bfd-in.h (bfd_elf32_size_dynamic_sections,
3008 bfd_elf64_size_dynamic_sections): Update prototype.
3009 * bfd-in2.h: Regenerate.
3011 2001-06-18 H.J. Lu <hjl@gnu.org>
3013 * elflink.h (elf_info_failed): Add a new field, verdefs.
3014 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
3016 (elf_export_symbol): Check eif->verdefs to decide if a symbol
3019 2001-06-17 H.J. Lu <hjl@gnu.org>
3021 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
3022 readonly_reloc, to record if a relocation in the .rel.dyn
3023 section is against a read-only section.
3024 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
3026 (_bfd_mips_elf_check_relocs): Record if there is a relocation
3027 in the .rel.dyn section against a read-only section by setting
3028 DF_TEXTREL or readonly_reloc.
3029 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
3031 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
3032 there is a relocation in the .rel.dyn section against a
3034 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
3037 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3039 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
3040 function. Move flagword result into parameter list. Remove
3041 comment about setting bfd_error_handler to intercept failure
3043 * coffgen.c (make_a_section_from_file): Examine result of
3044 calling bfd_coff_styp_to_sec_flags and pass a failure back to
3046 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
3047 function. Move flagword result into parameter list.
3048 * libcoff.h: Regenerate.
3049 * libecoff.h: Regenerate.
3051 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
3053 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
3054 section is going to follow it.
3056 2001-06-12 Catherine Moore <clm@redhat.com>
3058 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
3059 with the file_align entry from elf_backend_data.
3060 (elf_gc_smash_unused_vtentry_relocs): Likewise.
3061 (elf_gc_record_vtentry): Likewise.
3063 2001-06-10 Alan Modra <amodra@bigpond.net.au>
3065 * elflink.h: Whitespace changes.
3066 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
3067 rather than "unsigned char".
3068 (elf_link_output_relocs): Likewise.
3069 (elf_link_input_bfd): Likewise.
3070 (elf_reloc_link_order): LIkewise.
3071 * elf.c: s/CONST/const/. Whitespace changes.
3072 * elf32-mips.c: Formatting fix.
3074 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
3075 * Makefile.in: Regenerate.
3076 * po/Make-in: Remove trailing tab.
3078 2001-06-09 Philip Blundell <philb@gnu.org>
3080 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
3082 (elf32_arm_plt_entry): Likewise.
3084 2001-06-08 H.J. Lu <hjl@gnu.org>
3086 * elf.c (swap_out_syms): Keep names for global section symbols.
3088 2001-06-07 H.J. Lu <hjl@gnu.org>
3090 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
3091 MIPS-based machines need it.
3093 2001-06-07 H.J. Lu <hjl@gnu.org>
3095 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
3098 * config.bfd: Remove ecoff from Linux/mips.
3100 2001-06-07 Andreas Jaeger <aj@suse.de>
3102 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
3104 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
3105 alignment of 8 for .rela sections; handle further relocations.
3107 2001-06-06 Christian Groessler <cpg@aladdin.de>
3109 * coff-z8k.c: Fix formatting.
3110 Fix howtos: howto->size was always 1.
3112 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3114 * configure.host (mips64*-*-linux*): Define.
3116 2001-06-05 Alan Modra <amodra@bigpond.net.au>
3118 * elf32-i386.c (elf_i386_discard_copies): Rename to
3119 discard_copies, and use elf_link_hash_entry arg rather than
3120 elf_i386_link_hash_entry.
3121 (elf_i386_link_hash_traverse): Delete.
3122 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
3123 Tidy sizing of dynamic sections.
3124 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
3125 possible .plt entries.
3126 (elf_i386_gc_sweep_hook): Likewise.
3127 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
3128 everything with plt.refcount <= 0.
3130 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
3132 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
3133 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
3135 (allocate_plt_and_got): ..instead do it all here. New function.
3136 (elf_i386_size_dynamic_sections): Allocate local .got space and
3137 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
3138 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
3139 rather than gc variety).
3140 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3141 (elf_i386_relocate_section): Use it here and correct handling of
3142 R_386_GOT32. Provide section and offset for "unresolvable
3143 relocation" error message.
3144 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
3146 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
3147 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
3148 (elf_i386_link_hash_table_create): Init them.
3149 (create_got_section): New function.
3150 (elf_i386_create_dynamic_sections): New function.
3151 (elf_backend_create_dynamic_sections): Set to above.
3152 (elf_i386_check_relocs): Use shortcuts from hash table rather than
3153 calling bfd_get_section_by_name.
3154 (elf_i386_gc_sweep_hook): Likewise.
3155 (elf_i386_adjust_dynamic_symbol): Likewise.
3156 (elf_i386_size_dynamic_sections): Likewise.
3157 (elf_i386_relocate_section): Likewise.
3158 (elf_i386_finish_dynamic_sections): Likewise.
3160 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
3162 2001-06-02 H.J. Lu <hjl@gnu.org>
3164 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
3166 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
3168 2001-06-02 H.J. Lu <hjl@gnu.org>
3170 * aout-cris.c (MACHTYPE_OK): New. Defined.
3172 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
3174 * section.c (_bfd_strip_section_from_output): Handle NULL
3177 2001-06-02 H.J. Lu <hjl@gnu.org>
3179 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
3180 rs6000coff64_vec only if BFD64 is defined.
3181 (powerpc64-*-aix*): Enable only if BFD64 is defined.
3183 2001-06-02 H.J. Lu <hjl@gnu.org>
3185 * coff-ia64.c (ia64coff_object_p): Rewrite with
3186 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
3188 2001-06-01 Andreas Jaeger <aj@suse.de>
3190 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
3191 relocation, small reformatting.
3193 2001-05-29 Andreas Jaeger <aj@suse.de>
3195 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
3196 (elf64_x86_64_relocate_section): Likewise.
3198 2001-05-30 Alan Modra <amodra@one.net.au>
3200 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
3201 millicode. Don't allocate .got and .rela.got space here..
3202 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
3203 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
3205 (hppa_handle_PIC_calls): ..nor here..
3206 (allocate_plt_and_got): ..instead do it all here. New function.
3207 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
3208 call allocate_plt_and_got. No need to zap .got if not dynamic.
3209 (elf32_hppa_final_link): Call regular bfd_final_link instead of
3210 gc_common_final_link.
3211 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
3212 (elf32_hppa_relocate_section): Use it here.
3213 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
3214 dynamic_sections_created.
3215 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
3217 2001-05-28 Andreas Jaeger <aj@suse.de>
3219 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
3220 generic version since we want a hashsize of 4.
3221 (elf_backend_size_info): Likewise.
3223 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3225 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
3227 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
3228 (elf_link_input_bfd): Likewise.
3229 (elf_reloc_link_order): Likewise.
3230 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
3231 relocations correctly.
3233 2001-05-28 Nicolas Pitre <nico@cam.org>
3235 * elf32-arm.h: fix PLT generation for big endian ARM
3237 2001-05-28 Alan Modra <amodra@one.net.au>
3239 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
3240 for symbols forced local that need plabels.
3241 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
3242 .plt.rela for local syms if non-shared.
3243 (hppa_build_one_stub): Mask lsb of plt.offset.
3244 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
3245 (clobber_millicode_symbols): Correct comment.
3246 (elf32_hppa_relocate_section): Likewise.
3247 (elf32_hppa_finish_dynamic_symbol): Likewise.
3249 2001-05-28 Jeff Sturm <jsturm@one-point.com>
3251 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
3252 * bfd-in2.h: Regenerate.
3253 * libbfd.h: Regenerate.
3254 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
3255 and BFD_RELOC_SPARC_UA64 mapping
3256 * elf64-sparc.c: Likewise.
3258 2001-05-25 H.J. Lu <hjl@gnu.org>
3260 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
3261 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
3262 (coff-rs6000.lo): Remove the old dependency.
3263 * Makefile.in: Rebuild.
3265 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
3268 2001-05-25 H.J. Lu <hjl@gnu.org>
3270 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
3271 rs6000coff_core_file_matches_executable_p,
3272 rs6000coff_core_file_failing_command and
3273 rs6000coff_core_file_failing_signal only if AIX_CORE is
3275 (pmac_xcoff_vec): Likewise.
3276 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
3278 2001-05-25 Timothy Wall <twall@redhat.com>
3280 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
3281 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
3283 2001-05-25 H.J. Lu <hjl@gnu.org>
3285 * bfd-in2.h: Regenerated.
3286 * libcoff.h: Likewise.
3288 2001-05-25 Alan Modra <amodra@one.net.au>
3290 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
3291 undefined millicode syms in shared libs.
3292 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
3293 (elf32_hppa_check_relocs): Likewise.
3294 (elf32_hppa_adjust_dynamic_symbol): Likewise.
3295 (elf32_hppa_size_dynamic_sections): Likewise.
3296 (elf32_hppa_relocate_section): Likewise.
3297 (elf32_hppa_finish_dynamic_symbol): Likewise.
3298 (elf32_hppa_finish_dynamic_sections): Likewise.
3300 2001-05-24 Tom Rix <trix@redhat.com>
3302 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
3303 xcoff-target.h not used to define rs6000 or ppc bfd.
3306 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
3309 * coff-rs6000.c : Many changes for 64 bit support. Move common
3310 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
3313 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
3314 linker now supported. Explictly define the rs6000coff64_vec.
3316 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
3317 (coff_print_aux) same
3318 (coff_write_object_contents) same
3319 (coff_slurp_line_table) same
3321 * coffgen.c : (coff_fix_symbol_name) formatting
3322 (coff_mangle_symbols) xcoff 64 bit support
3323 (coff_write_symbol) same
3324 (coff_write_alien_symbol) same
3325 (coff_write_native_symbol) same
3326 (coff_write_symbols) same
3327 (coff_get_symbol_info) same
3328 (bfd_coff_get_syment) same
3329 (coff_print_symbol) same
3331 * config.bfd : add powerpc64-*-aix* target
3333 * libcoff-in.h : formatting
3335 * libcoff.h : move xcoff extern declarations to libxcoff.h
3337 * libxcoff.h : New file
3339 * xcofflink.c : Many changes for xcoff64 support. Move common
3340 structures to include/coff/xcoff.h. Move specific structure to
3341 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
3342 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
3344 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
3347 (xcoff_build_ldsyms) : handle special __rtinit symbol.
3349 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3351 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
3354 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3356 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
3357 * libbfd.h: Regenerate.
3358 * bfd-in2.h: Regenerate.
3360 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
3361 * archures.c (bfd_mach_mips12000): Define.
3362 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
3363 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
3365 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
3366 * bfd-in2.h: Regenerate.
3367 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
3369 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
3371 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
3372 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
3373 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
3374 that is used by GCC.
3376 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3378 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
3379 of entries in a structured section.
3380 * elf.c: Use new macro.
3381 * elf32-i386.c: Use new macro.
3382 * elf32-mips.c: Use new macro.
3383 * elf64-alpha.c: Use new macro.
3384 * elf64-sparc.c: Use new macro.
3385 * elfcode.h: Use new macro.
3386 * elflink.h: Use new macro.
3388 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3390 * bfdint.texi: Replace -oformat with --oformat.
3392 2001-05-21 Andreas Jaeger <aj@suse.de>
3394 * dwarf2.c (decode_line_info): Fix error message.
3395 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
3396 adjust error message.
3398 2001-05-18 H.J. Lu <hjl@gnu.org>
3400 * elflink.h (elf_link_add_object_symbols): Revert the last
3403 2001-05-17 Alan Modra <amodra@one.net.au>
3405 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
3406 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
3407 (hppa_build_one_stub): Add an assert to check plt.offset.
3409 2001-05-17 H.J. Lu <hjl@gnu.org>
3411 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
3412 version definition to basename of the output filename.
3414 2001-05-17 H.J. Lu <hjl@gnu.org>
3416 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
3417 basename of the bfd filename.
3419 2001-05-16 Alan Modra <amodra@one.net.au>
3421 * section.c (asection): Add linker_has_input field.
3422 (STD_SECTION): Adjust initialization to suit.
3423 * ecoff.c (bfd_debug_section): Likewise.
3424 * bfd-in2.h: Regenerate.
3426 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
3428 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
3429 negative 32-bit operands to 16 operands when the operand is
3430 going to be zero-extended by the modified opcode.
3432 2001-05-12 Peter Targett <peter.targett@arccores.com>
3434 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
3435 name for 'arc5' core versions.
3436 (bfd_arc_arch): Make bfd_mach_arc_6 default.
3438 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
3440 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
3442 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3444 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
3446 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
3447 to .gnu.linkonce.t.FOO text section.
3449 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3451 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
3452 fields, change sec into secinfo.
3453 (struct sec_merge_info): Add chain, remove last fields.
3454 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
3455 (sec_merge_hash_lookup): If lookup could not use a string only
3456 because it has bad alignment, mark the old string for deletion.
3457 (sec_merge_add): Add secinfo argument. Don't compute entry's
3458 position, instead record the section.
3459 (sec_merge_emit): Update for the sec into secinfo change in
3460 struct sec_merge_hash_entry.
3461 (_bfd_merge_section): Only record the section for merging, defer
3462 putting strings into the hash table.
3463 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
3464 _bfd_merge_sections): New functions.
3465 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
3467 * libbfd-in.h (_bfd_merge_sections): Add prototype.
3468 (_bfd_nolink_bfd_merge_sections): Define.
3469 * libbfd.h: Likewise.
3470 (bfd_generic_merge_sections): Add prototype.
3471 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
3472 (struct bfd_target): Likewise.
3473 * bfd.c (bfd_merge_sections): Define.
3474 * bfd-in2.h: Rebuilt.
3475 * elf.c (_bfd_elf_merge_sections): New function.
3476 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
3477 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
3478 * reloc.c (bfd_generic_merge_sections): New function.
3479 * vms.c (vms_bfd_merge_sections): New function.
3480 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
3481 * aout-target.h (MY_bfd_merge_sections): Define.
3482 * aout-tic30.c (MY_bfd_merge_sections): Define.
3483 * binary.c (binary_bfd_merge_sections): Define.
3484 * bout.c (b_out_bfd_merge_sections): Define.
3485 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
3486 * coffcode.c (coff_bfd_merge_sections): Define.
3487 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
3488 * i386msdos.c (msdos_bfd_merge_sections): Define.
3489 * i386os9k.c (os9k_bfd_merge_sections): Define.
3490 * ieee.c (ieee_bfd_merge_sections): Define.
3491 * ihex.c (ihex_bfd_merge_sections): Define.
3492 * nlm-target.h (nlm_bfd_merge_sections): Define.
3493 * oasys.c (oasys_bfd_merge_sections): Define.
3494 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
3495 * som.c (som_bfd_merge_sections): Define.
3496 * srec.c (srec_bfd_merge_sections): Define.
3497 * tekhex.c (tekhex_bfd_merge_sections): Define.
3498 * versados.c (versados_bfd_merge_sections): Define.
3499 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
3501 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
3503 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
3504 to be unsigned long, in order to match its use.
3506 2001-05-10 H.J. Lu <hjl@gnu.org>
3508 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
3511 2001-05-09 H.J. Lu <hjl@gnu.org>
3513 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
3514 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
3515 Remove the unused veriable `dynver'.
3517 2001-05-08 Ian Lance Taylor <ian@zembu.com>
3519 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
3520 NULL or is not COFF.
3521 (coff_i386_rtype_to_howto): Don't dump core if output section
3524 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3526 * ecoff.c (bfd_debug_section): Fix initialization.
3527 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
3528 is always a positive integer. Cast away sign mismatch.
3529 * elf32-mips.c: Fix misleading comment and typo.
3530 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
3532 * elflink.c: Fix typo.
3533 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
3534 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
3536 2001-05-04 Richard Henderson <rth@redhat.com>
3538 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
3540 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
3542 * elf32-arm.h (elf32_arm_final_link_relocate): Set
3543 EF_ARM_HASENTRY if the start address is set.
3545 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
3547 * targets.c (_bfd_target_vector_entries): Compute value based on
3548 the size of the _bfd_target_vector and not bfd_target_vector.
3550 2001-05-03 H.J. Lu <hjl@gnu.org>
3552 * elfcode.h: Include "libiberty.h".
3554 * elflink.h (elf_link_add_object_symbols): Set
3555 elf_dt_name (abfd) to basename of the bfd filename.
3556 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
3557 of the bfd filename.
3559 2001-05-03 Andreas Jaeger <aj@suse.de>
3561 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
3562 (elf_generic_info_to_howto_rel): Likewise.
3563 * coff-alpha.c (reloc_nil): Likewise.
3564 (alpha_ecoff_bad_format_hook): Likewise.
3565 (alpha_adjust_reloc_out): Likewise.
3566 (alpha_bfd_reloc_type_lookup): Likewise.
3567 (alpha_convert_external_reloc): Likewise.
3568 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
3569 (elf64_alpha_reloc_bad): Likewise.
3570 (elf64_alpha_reloc_gpdisp): Likewise.
3571 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
3572 (elf64_alpha_info_to_howto): Likewise.
3573 (elf64_alpha_add_symbol_hook): Likewise.
3574 (elf64_alpha_create_got_section): Likewise.
3575 (elf64_alpha_is_local_label_name): Likewise.
3576 (elf64_alpha_merge_ind_symbols): Likewise.
3577 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
3578 (mips_elf64_get_reloc_upper_bound): Likewise.
3579 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
3580 (nlm_alpha_get_public_offset): Likewise.
3582 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3584 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
3585 about overflow in R_OPENRISC_LO_16_IN_INSN and
3586 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
3588 2001-04-30 H.J. Lu <hjl@gnu.org>
3590 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
3591 only for ELF_LINK_FORCED_LOCAL.
3592 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3593 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
3594 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3596 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
3597 if the symbol has hidden or internal visibility.
3599 2001-04-30 Alan Modra <amodra@one.net.au>
3601 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
3602 calls to undefined weak symbols.
3604 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
3606 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
3607 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
3609 2001-04-27 Andreas Jaeger <aj@suse.de>
3611 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
3612 out handled entries.
3613 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
3614 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
3615 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
3618 2001-04-27 Sean McNeil <sean@mcneil.com>
3620 * config.bfd: Add arm-vxworks target.
3621 * coff-arm (coff_arm_relocate_section): Add in symbol value to
3622 addend (fro VXworks targets).
3624 2001-04-26 H.J. Lu <hjl@gnu.org>
3626 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
3629 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
3631 * bfd-in.h (bfd_cache_close): Declare newly exported function.
3632 * bfd-in2.h: Regenerated.
3634 2001-04-24 Jakub Jelinek <jakub@redhat.com>
3636 * merge.c (struct sec_merge_hash_entry): Add alignment field.
3637 (struct sec_merge_hash): Remove alignment_power.
3638 (sec_merge_hash_newfunc): Clear alignment.
3639 (sec_merge_hash_lookup): Pass alignment as argument.
3640 Use hashp->root.next, not hashp->next to walk the hash chain.
3641 If a string already in the hashtable does not have required
3642 alignment, create a new hashtable entry.
3643 (sec_merge_init): Remove alignment_power argument.
3644 (sec_merge_add): Add alignment argument.
3645 (sec_merge_emit): Alignment is now a per-entity thing, not per
3647 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
3648 for proper alignment.
3649 Pass alignment information to sec_merge_add.
3651 2001-04-24 Christian Groessler <cpg@aladdin.de>
3653 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
3654 and R_REL16 reloc types; accept odd values for R_REL16 type
3656 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
3658 * cpu-openrisc.c: New file.
3659 * elf32-openrisc.c: Likewise.
3661 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
3662 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
3663 (BFD32_BACKENDS): Add elf32-openrisc.lo.
3664 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
3665 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
3666 * Makefile.in: Regenerated.
3667 * config.bfd: (openrisc-*-elf): New target.
3668 * configure.in (bfd_elf32_openrisc_vec): New vector.
3669 * configure: Regenerated.
3670 * libbfd.h: Regenerated.
3671 * bfd-in2.h: Regenerated.
3672 * reloc.c: Add OpenRISC relocations.
3673 * targets.c (bfd_elf32_openrisc_vec): Declare.
3674 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
3675 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
3676 (bfd_openrisc_arch): Declare.
3677 (bfd_archures_list): Add bfd_openrisc_arch.
3678 * elf.c (prep_headers): Add bfd_arch_openrisc.
3680 2001-04-23 Bo Thorsen <bo@suse.de>
3682 * elf64-x86-64.c: Add c++ vtable hack.
3683 Small whitespace and comment changes.
3685 2001-04-19 Andreas Jaeger <aj@suse.de>
3687 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
3688 (elf64_x86_64_plt_entry): Likewise.
3689 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
3690 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
3692 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
3694 * elf32-cris.c: Tweak comments related to dynamic linking.
3695 (cris_elf_relocate_section): When not creating shared object, fill
3696 in the .got table for any symbol not in the dynamic symbol table.
3697 (elf_cris_finish_dynamic_symbol): When not creating shared object,
3698 only emit a .got.rela reloc if the symbol is in the dynamic symbol
3700 (cris_elf_check_relocs): Use variable r_type in all places rather
3701 than the original expression. Add default case in switch for
3703 (elf_cris_size_dynamic_sections): Iterate over
3704 elf_cris_discard_excess_program_dynamics when not creating shared
3706 (elf_cris_discard_excess_dso_dynamics): Renamed from
3707 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
3708 (elf_cris_discard_excess_program_dynamics): New.
3710 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
3712 * coffcode.h (coff_write_object_contents): Use
3713 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
3715 2001-04-14 H.J. Lu <hjl@gnu.org>
3717 * bfd-in2.h: Regenerate.
3719 2001-04-14 Jakub Jelinek <jakub@redhat.com>
3721 * section.c (STD_SECTION): Add entsize.
3723 2001-04-13 H.J. Lu <hjl@gnu.org>
3725 * section.c (SEC_MERGE): Define new flag for merging.
3726 (SEC_STRINGS): Likewise.
3727 (entsize): New field.
3729 2001-04-13 Roger Sayle <roger@metaphorics.com>
3731 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
3732 flag on pe-i386 targets.
3734 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3736 * libbfd-in.h (_bfd_merge_section): New.
3737 (_bfd_write_merged_section): New.
3738 (_bfd_merged_section_offset): New.
3739 * libbfd.h: Rebuilt.
3740 * linker.c (_bfd_generic_link_output_symbols): Handle
3742 * aoutx.h (aout_link_write_symbols): Likewise.
3743 * pdp11.c (aout_link_write_symbols): Likewise.
3744 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
3745 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
3747 (elf_link_sec_merge_syms): New.
3748 (elf_link_input_bfd): Call _bfd_merged_section_offset
3749 and _bfd_write_merged_section.
3750 Handle discard_sec_merge.
3751 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
3753 (struct bfd_elf_section_data): Likewise.
3754 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
3755 SEC_STRINGS section flags and entsize from their ELF counterparts.
3756 (_bfd_elf_link_hash_table_init): Initialize merge_info.
3757 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
3758 from their BFD counterparts.
3759 * merge.c: New file.
3760 * Makefile.am: Add strtab.lo.
3761 * Makefile.in: Rebuilt.
3763 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
3765 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
3766 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
3768 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3770 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
3771 endian MIPS ELF target.
3772 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
3775 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
3776 64bit big endian MIPS ELF target.
3777 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3778 endian MIPS ELF target.
3779 * configure: Regenerated.
3781 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
3782 little endian targets.
3783 (mips_elf_sym_is_global): Handle traditional targets.
3785 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
3786 64bit big endian MIPS ELF target.
3787 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
3788 endian MIPS ELF target.
3790 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
3791 and bfd_elf64_tradlittlemips_vec.
3793 2001-04-05 David Mosberger <davidm@hpl.hp.com>
3795 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
3796 ordinary "progbits" section.
3798 2001-04-04 Alan Modra <alan@linuxcare.com.au>
3800 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
3801 when -Bsymbolic causes a symbol to no longer need a .plt entry.
3803 2001-04-03 David Mosberger <davidm@hpl.hp.com>
3805 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
3807 2001-03-30 H.J. Lu <hjl@gnu.org>
3809 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
3810 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
3812 2001-03-26 H.J. Lu <hjl@gnu.org>
3814 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
3815 if there are any relocations for generic ELF.
3816 (bfd_elf32_bfd_link_add_symbols): Defined to
3817 elf32_generic_link_add_symbols.
3818 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
3819 if there are any relocations for generic ELF.
3820 (bfd_elf64_bfd_link_add_symbols): Defined to
3821 elf64_generic_link_add_symbols.
3823 2001-03-23 Nick Clifton <nickc@redhat.com>
3825 * Makefile.am (BUILD_CFILES): New variable: List of C source
3826 files created in build directory.
3827 (BUILD_HFILES): New variable: List of header files created in
3830 (po/POTFILES.in): Replace rule with empty entry.
3831 (po/SRC-POTFILES.in): New rule: Create a list of source files
3832 in the source directory.
3833 (po/BLD-POTFILES.in): New rule: Create a list of source files
3834 in the build directory.
3835 (MOSTLYCLEAN): Do not delete source files created in build
3837 * Makefile.in: Regenerate.
3838 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
3840 * configure: Regenerate.
3842 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
3844 Add .. to the search path when building bfd.pot.
3845 Delete POTFILES when performing distclean.
3846 Add comment describing why distclean is broken in maintainer mode.
3847 * po/POTFILES.in: Delete.
3848 * po/SRC-POTFILES.in: New file.
3849 * po/BLD-POTFILES.in: New file.
3850 * po/bfd.pot: Regenerate.
3852 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
3854 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
3855 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
3856 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
3857 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
3858 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
3859 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
3861 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
3862 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
3863 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
3864 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
3865 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
3866 New HOWTO members for new relocs.
3867 (cris_reloc_map): Map new relocs.
3868 (ELF_DYNAMIC_INTERPRETER): Define.
3869 (PLT_ENTRY_SIZE): Define.
3870 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
3871 elf_cris_pic_plt_entry): New, PLT templates.
3872 (struct elf_cris_pcrel_relocs_copied, struct
3873 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
3874 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
3875 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3876 positive values. Adjust PCREL relocs to be relative to location
3878 (cris_elf_relocate_section): Handle relocations to dynamic
3879 objects. Handle new relocations. Call error handler when seeing
3880 non-PIC relocation for read-only sections while generating shared
3882 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3884 (bfd_elf32_bfd_link_hash_table_create,
3885 elf_backend_adjust_dynamic_symbol,
3886 elf_backend_size_dynamic_sections,
3887 elf_backend_finish_dynamic_symbol,
3888 elf_backend_finish_dynamic_sections,
3889 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3890 elf_backend_hide_symbol, elf_backend_want_got_plt,
3891 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3892 elf_backend_got_header_size, elf_backend_plt_header_size):
3895 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3896 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3897 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3898 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3899 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3900 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3901 * bfd-in2.h, libbfd.h: Regenerate.
3903 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3905 (_bfd_mips_elf_relocate_section): Give a better error message when
3906 a relocation is not recognized.
3908 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3910 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3911 non-NULL before attempting to dereference.
3913 2001-03-20 H.J. Lu <hjl@gnu.org>
3915 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3916 * configure: Rebuild.
3918 2001-03-20 Andreas Schwab <schwab@suse.de>
3920 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3921 relocation value when resolving a reference from a debugging
3924 2001-03-16 Scott Thomason <SThomaso@hii.com>
3926 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3927 (xcoff64_swap_sym_out): Fix syntax errors.
3929 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3931 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3933 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3935 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3936 (hppa_link_hash_newfunc): Init it.
3937 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3938 section appears to be non-PIC.
3939 (final_link_relocate): Likewise.
3940 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3941 possible candidate function, and set pic_call for those that will
3942 only have a .plt entry for the PIC call stub.
3943 (hppa_handle_PIC_calls): Set maybe_pic_call.
3945 2001-03-12 DJ Delorie <dj@redhat.com>
3947 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3948 R_SH_DIR8WP* relocs if they're against external symbols, else
3949 they're just for relaxing. Validate the reloc values.
3951 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3953 * binary.c (bfd_external_binary_architecture): Declare.
3954 (binary_object_p): If bfd_external_binary_architecture is defined,
3955 set the architecture to this string.
3957 2001-03-11 Philip Blundell <philb@gnu.org>
3959 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3960 entries that could serve as a definition for a weak symbol.
3962 2001-03-08 Nick Clifton <nickc@redhat.com>
3964 * Most files: Update copyright notices using Perl script created
3965 by Kevin Buettner <kevinb@redhat.com>.
3967 2001-03-07 Nick Clifton <nickc@redhat.com>
3969 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3970 prior patch on ! defined OLD_ARM_ABI.
3972 2001-03-07 Andreas Jaeger <aj@suse.de>
3974 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3975 some relocation values.
3977 2001-03-06 Nick Clifton <nickc@redhat.com>
3979 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3980 of offset in BLX(1) instruction.
3981 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3982 offset in BLX(1) instruction.
3985 2001-03-06 Nick Clifton <nickc@redhat.com>
3987 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3988 BFD_RELOC_THUMB_PCREL_BLX.
3990 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3992 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3993 * bfd-in2.h: Regenerate.
3994 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3995 * ieee.c (ieee_write_processor): Set proper id for
3998 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
4000 * configure.in: Add s390 target.
4001 * configure: Regenerate.
4003 2001-02-28 Andreas Jaeger <aj@suse.de>
4005 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
4008 2001-02-28 Philip Blundell <pb@futuretv.com>
4010 * elf32-arm.h: Update mentions of renamed EF_xx constants.
4011 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
4013 2001-02-27 H.J. Lu <hjl@gnu.org>
4015 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
4016 abfd->tdata.aout_data == NULL.
4018 2001-02-27 Alan Modra <alan@linuxcare.com.au>
4020 * elf32-hppa.c: Correct field selector in stub comments.
4021 (clobber_millicode_symbols): Formatting fix.
4023 * configure.in: Bump version to 2.11.90.
4024 * configure: Regenerate.
4025 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
4026 (CFILES): $SOURCE_CFILES + generated C files.
4027 (POTFILES): Include $HFILES not $SOURCE_HFILES.
4029 * Makefile.in: Regenerate.
4030 * doc/Makefile.in: This too.
4032 2001-02-26 Timothy Wall <twall@cygnus.com>
4034 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
4037 2001-02-26 Nick Clifton <nickc@redhat.com>
4039 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
4040 up, replacing multiple if statements with a switch.
4041 (handle_COMDAT): New function.
4043 2001-02-26 H.J. Lu <hjl@gnu.org>
4045 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
4046 a warning for section flags we do not handle instead of
4049 2001-02-26 Andreas Jaeger <aj@suse.de>
4051 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
4053 2001-02-22 Timothy Wall <twall@cygnus.com>
4055 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
4056 * configure.in: Add objects for elf64_ia64_aix vectors.
4057 * configure: Regenerated.
4058 * configure.host: Recognize ia64-*-aix*.
4059 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
4060 for AIX. AIX5 requires most relocations to be dynamic (*all*
4061 binaries are somewhat similar to shared libraries).
4062 * targets.c: Add elf64_ia64_aix vectors.
4064 2001-02-21 David Mosberger <davidm@hpl.hp.com>
4066 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
4067 C8 said "1" instead of "8". Clarify error string for IMM22:
4068 "signed integer" instead of just "integer".
4070 2001-02-20 Andreas Jaeger <aj@suse.de>
4072 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
4073 PLT entries that could serve as a definition for a weak symbol.
4075 2001-02-19 Jakub Jelinek <jakub@redhat.com>
4077 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
4078 entries that could serve as a definition for a weak symbol.
4079 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
4081 2001-02-18 David O'Brien <obrien@FreeBSD>
4083 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
4084 FreeBSD/i386-CURRENT differently until I can figure out the needed
4086 * configure: Regenerate.
4087 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
4088 FreeBSD/PowerPC, and FreeBSD/sparc64.
4090 2001-02-18 lars brinkhoff <lars@nocrew.org>
4092 * Makefile.am: Add PDP-11 a.out target.
4093 * config.bfd: Likewise.
4094 * configure.in: Likewise.
4095 * targets.c: Likewise.
4096 * archures.c: Likewise.
4097 * bfd-in2.h: Likewise. Add PDP-11 relocations.
4098 * libbfd.h: Add PDP-11 relocations.
4099 * reloc.c: Likewise.
4100 * cpu-pdp11.c: New file.
4101 * pdp11.c: New file.
4103 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
4104 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4105 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
4106 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
4107 (GET_MAGIC): New macro.
4108 (PUT_MAGIC): Likewise.
4109 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
4111 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
4113 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
4114 multiarch needs it).
4116 2001-02-18 H.J. Lu <hjl@gnu.org>
4118 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
4121 2001-02-18 Kazu Hirata <kazu@hxi.com>
4123 * vms-misc.c: Fix formatting.
4125 2001-02-16 Kazu Hirata <kazu@hxi.com>
4127 * vms.c: Fix formatting.
4129 2001-02-14 H.J. Lu <hjl@gnu.org>
4131 * elf.c (elf_find_function): New function.
4132 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
4133 the file name and function name.
4135 2001-02-14 Nick Clifton <nickc@redhat.com>
4137 * ecoff.c (bfd_debug_section): Update to initialise new fields in
4140 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
4141 (BFD64_BACKENDS): Add pepigen.c
4142 Add rules to create peigen.c and pepigen.c from peXXigen.c.
4144 * Makefile.in: Regenerate.
4145 * configure: Regenerate.
4146 * po/POTFILES.in: Regenerate.
4147 * po/bfd.pot: Regenerate.
4149 2001-02-14 H.J. Lu <hjl@gnu.org>
4151 * libcoff-in.h (pe_tdata): Add members target_subsystem and
4152 force_minimum_alignment.
4154 2001-02-14 Bo Thorsen <bo@suse.de>
4156 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
4157 (elf64_86_64_size_info): Struct added to fix a problem
4158 with the hashtable string entries.
4159 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
4160 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
4161 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
4162 remove the FIXME for this.
4163 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
4164 section. Also removed the FIXME for it.
4165 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
4166 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
4167 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
4169 2001-02-13 Richard Henderson <rth@redhat.com>
4171 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
4172 and not user provided.
4174 2001-02-13 Kazu Hirata <kazu@hxi.com>
4176 * vms.c (vms_print_symbol): Remove unreachable code.
4178 * rs6000-core.c: Fix formatting.
4180 2001-02-13 David Mosberger <davidm@hpl.hp.com>
4182 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
4183 as _bfd_XXi_only_swap_filehdr_out.
4184 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
4185 pe->force_minimum_alignment to TRUE.
4186 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
4187 PEI_TARGET_SUBSYSTEM.
4188 (pe_print_private_bfd_data): Call
4189 _bfd_XX_print_private_bfd_data_common() instead of
4190 _bfd_pe_print_private_bfd_data_common().
4191 (pe_bfd_copy_private_bfd_data): Call
4192 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
4193 _bfd_pe_bfd_copy_private_bfd_data_common().
4194 (coff_bfd_copy_private_section_data): Define as
4195 _bfd_XX_bfd_copy_private_section_data instead of
4196 _bfd_pe_bfd_copy_private_section_data.
4197 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
4198 of a _bfd_pe_get_symbol_info.
4202 * peXXigen.c: Renamed from peigen.c.
4203 (COFF_WITH_XX): Define this macro (will get expanded into
4204 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
4205 compiled as peigen.c or pepigen.c.
4206 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
4207 define the canonical PEP structures and definitions.
4208 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
4209 effect, enforce minimum file and section alignments. If
4210 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
4211 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
4212 so, by default, this is a no-op).
4214 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
4215 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
4216 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
4217 _bfd_pefoo if it's not defined. Use these macros to define
4220 * libcoff.h (pe_tdata): Add members target_subsystem and
4221 force_minimum_alignment.
4223 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
4225 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
4227 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
4230 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
4231 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
4234 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
4235 (BFD64_BACKENDS_CFILES): Mention pepigen.c
4236 (peigen.c): Add rule to generate from peXXigen.c.
4238 (pepigen.lo): List dependencies for pepigen.lo.
4240 2001-02-13 Alan Modra <alan@linuxcare.com.au>
4242 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
4243 $global$ referenced but not defined, set its value here.
4245 2001-02-09 Bo Thorsen <bo@suse.de>
4247 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
4249 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
4251 (elf64_x86_64_relocate_section): Fix formatting.
4252 (elf64_x86_64_relocate_section): Fix addend for relocation of
4253 R_X86_64_(8|16|32|PC8|PC16|PC32).
4255 2001-02-12 Jan Hubicka <jh@suse.cz>
4257 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
4259 2001-02-11 H.J. Lu <hjl@gnu.org>
4261 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
4264 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4266 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
4267 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
4268 relocations against dynsym symbols.
4270 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
4271 the R_MIPS_26 relocation.
4272 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
4273 the R_MIPS_26 relocation.
4274 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
4276 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
4277 the R_MIPS_26 relocation.
4278 (mips_elf64_howto_table_rela): Likewise.
4280 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
4281 member to mark symbols that have non-CALL relocations against
4283 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
4284 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
4286 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
4287 non-CALL relocation against it is encountered.
4288 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
4289 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
4290 no_fn_stub is not set.
4292 * elf32-mips.c (mips_elf_output_extsym): Get the output section
4293 information from the real symbol for indirect ones.
4294 Check no_fn_stub to find out if a symbol has a function stub
4297 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4299 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
4300 * Makefile.in: Regenerate.
4302 2001-02-09 David Mosberger <davidm@hpl.hp.com>
4304 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
4305 true if section name is an unwind table section name.
4306 (elfNN_ia64_additional_program_headers): Count each unwind section
4308 (elfNN_ia64_modify_segment_map): Install one unwind program header
4309 for each unwind separate section. Note: normally the linker
4310 script merges the unwind sections that go into a single segment,
4311 so this still generates at most one unwind program header per
4314 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
4315 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
4316 (elfNN_ia64_fake_sections): Mark sections with names that start
4317 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
4320 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
4321 Use it to make sh_info in unwind section point to the text section
4324 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
4326 * Makefile.am: Add linux target for S/390.
4327 * archures.c: Likewise.
4328 * bfd-in2.h: Likewise.
4329 * config.bfd: Likewise.
4330 * configure.in: Likewise.
4332 * libbfd.h: Likewise.
4333 * targets.c: Likewise.
4334 * cpu-s390.c: New file.
4335 * elf32-s390.c: New file.
4336 * elf64-s390.c: New file.
4338 2001-02-09 Nick Clifton <nickc@redhat.com>
4340 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
4341 ImageBase. This has already been done by coff_swap_hdr_in.
4343 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4345 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
4347 2001-02-09 Jakub Jelinek <jakub@redhat.com>
4349 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
4350 (sparc64_elf_relocate_section): Likewise.
4352 2001-02-09 Mark Kettenis <kettenis@gnu.org>
4354 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
4355 similar to R_SPARC_32.
4356 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
4358 2001-02-08 H.J. Lu <hjl@gnu.org>
4360 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
4361 relocation entries for weak definitions when building DSO with
4364 2001-02-08 Richard Henderson <rth@redhat.com>
4366 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
4367 before visibility. Locally defined protected symbols are not
4370 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
4372 * config.bfd: Enable coff64 for rs6000-*. Patch from
4373 <hzoli@austin.ibm.com>.
4375 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
4377 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
4378 found, do not attempt to find dwarf2 info before returning.
4380 2001-02-07 Jakub Jelinek <jakub@redhat.com>
4382 * elflink.h (is_global_symbol_definition): Rename to
4383 is_global_data_symbol_definition and have it reject function
4385 (elf_link_is_defined_archive_symbol): Use renamed function.
4387 2001-02-07 Todd Vierling <tv@wasabisystems.com>
4389 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
4390 * libbfd.h (bfd_target_vector): Likewise.
4391 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
4392 make static; create pointer reference named bfd_target_vector.
4393 (_bfd_target_vector_entries): Calculate this based on the array
4394 typed _bfd_target_vector.
4396 2001-02-06 H.J. Lu <hjl@gnu.org>
4398 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
4399 internal symbols are not dynamic.
4400 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
4402 2001-02-06 Nick Clifton <nickc@redhat.com>
4404 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
4405 that it will not be pulled into the list of files that make up
4407 * Makefile.in: Regenerate.
4408 * po/bfd.pot: Regenerate.
4410 2001-02-06 H.J. Lu <hjl@gnu.org>
4412 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
4414 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
4415 external_PEI_IMAGE_hdr.
4417 2001-02-06 Kazu Hirata <kazu@hxi.com>
4419 * elf-m10200.c: Fix formatting.
4421 2001-02-04 Nick Clifton <nickc@redhat.com>
4423 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
4424 rel, it will be handled later on.
4426 2001-02-02 Fred Fish <fnf@ninemoons.com>
4428 * Makefile.in: Fix typo.
4430 2001-02-01 Kazu Hirata <kazu@hxi.com>
4432 * elf-m10300.c: Fix formatting.
4434 2001-01-30 Alan Modra <alan@linuxcare.com.au>
4436 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
4437 (elf_backend_get_symbol_type): Define.
4438 (elf64_hppa_object_p): Set architecture and machine from elf
4441 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
4443 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
4446 2001-01-26 Richard Henderson <rth@redhat.com>
4448 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
4449 for non-default visibility.
4450 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
4451 delete ugly macro and replace with pretty function.
4453 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
4455 * coff-go32.c: Update copyright.
4456 * coff-stgo32.c: Likewise.
4457 * coff-go32.c (COFF_LONG_FILENAMES): Define.
4458 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
4459 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
4460 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
4462 2001-01-25 Kazu Hirata <kazu@hxi.com>
4464 * bfd-in2.h: Rebuild.
4465 * libbfd.h: Likewise.
4467 2001-01-23 H.J. Lu <hjl@gnu.org>
4469 * bfd-in2.h: Rebuild.
4471 2001-01-23 H.J. Lu <hjl@gnu.org>
4473 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
4474 is NULL or PRIV(vms_rec) is outside of the buffer.
4476 2001-01-23 Kazu Hirata <kazu@hxi.com>
4478 * coff64-rs6000.c: Fix formatting.
4479 * coff-arm.c: Likewise.
4480 * coffgen.c: Likewise.
4481 * cofflink.c: Likewise.
4482 * coff-mcore.c: Likewise.
4483 * coff-mips.c: Likewise.
4484 * coff-pmac.c: Likewise.
4485 * coff-ppc.c: Likewise.
4486 * coff-rs6000.c: Likewise.
4487 * elf32.c: Likewise.
4488 * elf32-fr30.c: Likewise.
4489 * elf32-i370.c: Likewise.
4490 * elf32-i860.c: Likewise.
4491 * elf32-m32r.c: Likewise.
4492 * elf32-m68k.c: Likewise.
4493 * elf32-mcore.c: Likewise.
4494 * elf32-ppc.c: Likewise.
4495 * elf32-sh.c: Likewise.
4496 * elf32-v850.c: Likewise.
4497 * elf64-alpha.c: Likewise.
4498 * elf64-sparc.c: Likewise.
4499 * elflink.c: Likewise.
4500 * elflink.h: Likewise.
4501 * elf-m10200.c: Likewise.
4502 * elf-m10300.c: Likewise.
4503 * elfxx-ia64.c: Likewise.
4505 * aoutx.h: Fix formatting.
4507 * bfd-in2.h: Likewise.
4508 * bfd-in.h: Likewise.
4509 * cpu-i386.c: Likewise.
4510 * cpu-m68hc11.c: Likewise.
4511 * dwarf2.c: Likewise.
4512 * elf64-x86-64.c: Likewise.
4513 * format.c: Likewise.
4514 * freebsd.h: Likewise.
4516 * hp300hpux.c: Likewise.
4517 * hppabsd-core.c: Likewise.
4518 * hpux-core.c: Likewise.
4520 2001-01-22 Bo Thorsen <bo@suse.de>
4522 * elf64-x86-64.c: Added PIC support for X86-64.
4523 (elf64_x86_64_link_hash_newfunc): Function added.
4524 (elf64_x86_64_link_hash_table_create): Likewise.
4525 (elf64_x86_64_check_relocs): Likewise.
4526 (elf64_x86_64_gc_mark_hook): Likewise.
4527 (elf64_x86_64_gc_sweep_hook): Likewise.
4528 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
4529 (elf64_x86_64_size_dynamic_sections): Likewise.
4530 (elf64_x86_64_discard_copies): Likewise.
4531 (elf64_x86_64_finish_dynamic_symbol): Likewise.
4532 (elf64_x86_64_finish_dynamic_sections): Likewise.
4533 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
4535 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4537 * Makefile.am (install-data-local): Make use of $(DESTDIR).
4538 * Makefile.in: Regenerate.
4540 2001-01-21 Kazu Hirata <kazu@hxi.com>
4542 * coff-a29k.c: Fix formatting.
4544 2001-01-19 H.J. Lu <hjl@gnu.org>
4546 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
4547 relocation section names.
4548 (elf_i386_relocate_section): Report files with bad relocation
4549 section names and return false.
4551 2001-01-17 Bo Thorsen <bo@suse.de>
4553 * targets.c: Alphabetize list of xvecs.
4555 2001-01-14 Alan Modra <alan@linuxcare.com.au>
4557 * config.bfd: Add linux target variant for elfxx-hppa.
4558 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
4559 bfd_elf64_hppa_linux_vec.
4560 * configure: Regenerate.
4561 * elf64-hppa.c: Include elf64-target.h again to support linux
4563 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
4564 * elf32-hppa.c: Include elf32-target.h again to support linux
4566 (elf32_hppa_post_process_headers): New function.
4567 (elf_backend_post_process_headers): Define.
4568 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
4569 bfd_elf32_hppa_linux_vec.
4571 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
4572 and data_segment_base fields.
4573 (elf32_hppa_link_hash_table_create ): Init them.
4574 (elf32_hppa_check_relocs): Update comments.
4575 (hppa_record_segment_addr): New function.
4576 (elf32_hppa_relocate_section): Call it.
4577 (final_link_relocate): Handle R_PARISC_SEGREL32.
4578 (elf32_hppa_final_link): New function.
4579 (bfd_elf32_bfd_final_link): Define to call it.
4580 (hppa_unwind_entry_compare): New function.
4581 * cache.c (bfd_open_file): Create files in write+read mode.
4583 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
4584 SEGREL32 and numerous other relocs. Change duplicate
4585 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
4587 * opncls.c (bfd_fdopenr): Add parens like the comment says around
4590 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
4591 .plt entries for DT_INIT and DT_FINI.
4592 (elf32_hppa_finish_dynamic_sections): Remove special handling of
4593 DT_INIT and DT_FINI.
4595 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
4596 offsets for stub .plt access if wide mode. Check offset in range.
4598 2001-01-13 Nick Clifton <nickc@redhat.com>
4600 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
4603 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
4606 2001-01-12 Alan Modra <alan@linuxcare.com.au>
4608 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
4609 * configure: Regenerate.
4611 2001-01-11 Peter Targett <peter.targett@arccores.com>
4613 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
4614 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
4615 * cpu-arc.c (arch_info_struct): Add entries for variants.
4616 (bfd_arc_arch) Set default to bfd_mach_arc_5.
4617 (arc_get_mach) Don't assume machine names prefixed arc- before
4619 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
4621 (arc_elf_final_write_processing) Likewise.
4622 (ELF_MACHINE_CODE) Use EM_ARC.
4624 2001-01-10 Nick Clifton <nickc@redhat.com>
4626 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
4628 2001-01-07 Philip Blundell <philb@gnu.org>
4630 * README: Replace `bug-gnu-utils@gnu.org' with
4631 `bug-binutils@gnu.org'.
4633 2001-01-04 Kazu Hirata <kazu@hxi.com>
4635 * som.c: Fix formatting.
4637 2001-01-03 Kazu Hirata <kazu@hxi.com>
4639 * ecoffswap.h: Fix formatting.
4640 * elf-bfd.h: Likewise.
4641 * elfarm-nabi.c: Likewise.
4642 * elfarm-oabi.c: Likewise.
4643 * elfcode.h: Likewise.
4644 * elfcore.h: Likewise.
4645 * elflink.c: Likewise.
4646 * elflink.h: Likewise.
4647 * elfxx-ia64.c: Likewise.
4648 * elfxx-target.h: Likewise.
4649 * libbfd.c: Likewise
4650 * linker.c: Likewise.
4651 * lynx-core.c: Likewise.
4653 2001-01-02 Kazu Hirata <kazu@hxi.com>
4655 * pc532-mach.c: Fix formatting.
4656 * pe-arm.c: Likewise.
4657 * pe-i386.c: Likewise.
4658 * pe-mips.c: Likewise.
4659 * pe-ppc.c: Likewise.
4660 * pe-sh.c: Likewise.
4661 * pei-mips.c: Likewise.
4662 * pei-sh.c: Likewise.
4663 * peicode.h: Likewise.
4664 * ppcboot.c: Likewise.
4665 * ptrace-core.c: Likewise.
4667 2001-01-01 Kazu Hirata <kazu@hxi.com>
4669 * reloc.c: Fix formatting.
4670 * riscix.c: Likewise.
4671 * rs6000-core.c: Likewise.
4672 * xcoff-target.h: Likewise.
4674 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
4676 * elfcode.h (elf_object_p): Also restore the bfd mach field on
4677 error, by calling bfd_default_set_arch_mach with incoming
4680 2000-12-26 Kazu Hirata <kazu@hxi.com>
4682 * vaxnetbsd.c: Fix formatting.
4683 * versados.c: Likewise.
4684 * vms-gsd.c: Likewise.
4685 * vms-hdr.c: Likewise.
4686 * vms-misc.c: Likewise.
4688 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
4690 * archive.c (coff_write_armap): Don't write more than symbol_count
4691 `archive_member_file_ptr's.
4693 2000-12-25 Kazu Hirata <kazu@hxi.com>
4695 * vms-tir.c: Fix formatting.
4697 2000-12-23 Kazu Hirata <kazu@hxi.com>
4699 * vms.c: Fix formatting.
4702 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
4704 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
4706 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
4708 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
4711 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
4713 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
4715 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
4717 * libbfd.c (bfd_get_bits): Added
4718 (bfd_put_bits): Likewise
4719 * bfd-in.h: Declared the above.
4720 * bfd-in2.h: Regenerated.
4722 2000-12-20 Kazu Hirata <kazu@hxi.com>
4724 * targets.c: Fix formatting.
4725 * tekhex.c: Likewise.
4726 * trad-core.c: Likewise.
4728 2000-12-19 Kazu Hirata <kazu@hxi.com>
4730 * sco5-core.c: Fix formatting.
4731 * section.c: Likewise.
4732 * sparclinux.c: Likewise.
4733 * sparclynx.c: Likewise.
4734 * sparcnetbsd.c: Likewise.
4736 * stabs.c: Likewise.
4737 * stab-syms.c: Likewise.
4738 * sunos.c: Likewise.
4740 * sysdep.h: Likewise.
4742 2000-12-18 Nick Clifton <nickc@redhat.com>
4744 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
4746 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
4747 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
4749 2000-12-18 Nick Clifton <nickc@redhat.com>
4751 * vms-misc.c (_bfd_vms_get_record): Add default case to
4754 2000-12-15 Miloslav Trmac <mitr@volny.cz>
4756 * elfcore.h (elf_core_file_p): Move to the start of the program
4757 headers before attempting to read them.
4759 2000-12-14 Kazu Hirata <kazu@hxi.com>
4761 * peigen.c: Fix formatting.
4765 2000-12-13 Kazu Hirata <kazu@hxi.com>
4767 * peigen.c: Fix formatting.
4769 2000-12-12 Jim Wilson <wilson@redhat.com>
4771 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
4773 2000-12-08 Mark Salter <msalter@redhat.com>
4775 * binary.c (binary_set_section_contents): Ignore sections
4778 2000-12-12 Kazu Hirata <kazu@hxi.com>
4780 * m68klinux.c: Fix formatting.
4781 * m68knetbsd.c: Likewise.
4782 * mipsbsd.c: Likewise.
4783 * netbsd-core.c: Likewise.
4784 * netbsd.h: Likewise.
4785 * newsos3.c: Likewise.
4786 * nlm32-alpha.c: Likewise.
4787 * nlm32-i386.c: Likewise.
4788 * nlm32-ppc.c: Likewise.
4789 * nlm32-sparc.c: Likewise.
4790 * nlmcode.h: Likewise.
4791 * nlmswap.h: Likewise.
4792 * nlm-target.h: Likewise.
4793 * ns32knetbsd.c: Likewise.
4795 2000-12-10 Fred Fish <fnf@be.com>
4797 * elflink.h (elf_link_output_extsym): Don't complain about undefined
4798 symbols in shared objects if allow_shlib_undefined is true.
4800 2000-12-12 Nick Clifton <nickc@redhat.com>
4802 * cpu-sh.c: Fix formattng.
4803 * elf.c: Fix formattng.
4804 * elf32-mips.c: Fix formattng.
4805 * elf32-sh.c: Fix formattng.
4806 * elf64-alpha.c: Fix formattng.
4808 2000-12-09 Nick Clifton <nickc@redhat.com>
4810 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
4811 dwarf2_find_line_info as last parameter to invocation of
4812 _bfd_dwarf2_find_nearest_line.
4813 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
4814 dwarf2_find_line_info as last parameter to invocation of
4815 _bfd_dwarf2_find_nearest_line.
4817 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
4819 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
4820 (BFD_LIBS): ...to here.
4821 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
4822 (BFD_LIBS_CFILES): ...to here.
4823 * Makefile.in: Regenerate.
4824 * configure.in: Remove dwarf.lo from the elf shell variable.
4825 * configure: Regenerate.
4826 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
4827 * libcoff.h: Regenerate.
4828 * coffgen.c (coff_find_nearest_line): Call
4829 _bfd_dwarf2_find_nearest_line.
4830 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
4832 (read_abbrevs): Likewise
4833 (decode_line_info): Likewise.
4834 (parse_comp_unit): Likewise.
4835 (comp_unit_find_nearest_line): Likewise.
4836 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
4837 * libbfd.h: Regenerate.
4838 * elf.c (_bfd_elf_find_nearest_line): Update call.
4839 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
4840 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
4841 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
4842 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
4843 (styp_to_sec_flags): Handle DWARF2 sections.
4844 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
4845 to _bfd_find_nearest_line.
4846 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
4847 call to _bfd_find_nearest_line.
4849 2000-12-08 Kazu Hirata <kazu@hxi.com>
4851 * coffgen.c: Fix formatting.
4852 * elf-m10300.c: Likewise.
4853 * elf32-i386.c: Likewise.
4854 * elf32-i960.c: Likewise.
4855 * elf32-m68k.c: Likewise.
4856 * elf32-mcore.c: Likewise.
4857 * elf32-ppc.c: Likewise.
4858 * elf32-sh.c: Likewise.
4859 * elf32-sparc.c: Likewise.
4860 * elf32-v850.c: Likewise.
4861 * elf64-alpha.c: Likewise.
4862 * elf64-hppa.c: Likewise.
4863 * elf64-mips.c: Likewise.
4864 * elf64-sparc.c: Likewise.
4866 2000-12-07 Kazu Hirata <kazu@hxi.com>
4868 * elf32-ppc.c: Fix formatting.
4869 * elf64-x86-64.c: Likewise.
4871 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
4873 From Ralf Baechle <ralf@gnu.org>
4875 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4876 BFDs containing no sections or empty .text, .data or .bss sections
4877 to be merged, regardless of their flags.
4879 2000-12-06 Kazu Hirata <kazu@hxi.com>
4881 * elf32-m32r.c: Fix formatting.
4882 * elf32-m68hc11.c: Likewise.
4883 * elf32-m68hc12.c: Likewise.
4884 * elf32-m68k.c: Likewise.
4885 * elf32-mcore.c: Likewise.
4886 * elf32-pj.c: Likewise.
4887 * elf32-ppc.c: Likewise.
4889 2000-12-05 Kazu Hirata <kazu@hxi.com>
4891 * elf32-fr30.c: Fix formatting.
4892 * elf32-hppa.c: Likewise.
4893 * elf32-i370.c: Likewise.
4894 * elf32-i386.c: Likewise.
4895 * elf32-i860.c: Likewise.
4896 * elf32-i960.c: Likewise.
4898 2000-12-03 Kazu Hirata <kazu@hxi.com>
4900 * elf32-arm.h: Fix formatting.
4901 * elf32-avr.c: Likewise.
4902 * elf32-cris.c: Likewise.
4903 * elf32-d10v.c: Likewise.
4904 * elf32-d30v.c: Likewise.
4905 * elf-hppa.h: Likewise.
4906 * elf-m10200.c: Likewise.
4907 * elf-m10300.c: Likewise.
4909 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4911 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4912 bfd_mach_mips32_4k. Update FIXME comment.
4913 * archures.c (bfd_mach_mips32): New constant.
4914 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4915 the latter, renumber it.
4916 * bfd-in2.h (bfd_mach_mips32): New constant.
4917 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4918 the latter, renumber it.
4919 * cpu-mips.c (I_mips32): New constant.
4920 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4921 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4922 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4923 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4924 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4925 with E_MIPS_MACH_MIPS32_4K.
4926 (_bfd_mips_elf_final_write_processing): Replace
4927 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4928 bfd_mach_mips32 case.
4929 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4930 comparison with support for MIPS32.
4931 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4934 * aoutx.h (NAME(aout,machine_type)): Add cases for
4935 bfd_mach_mips5 and bfd_mach_mips64.
4936 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4937 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4938 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4939 (arch_info_struct): Add entries for bfd_mach_mips5 and
4941 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4942 _bfd_mips_elf_print_private_bfd_data): Add cases for
4943 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4944 (_bfd_mips_elf_final_write_processing): Add cases for
4945 bfd_mach_mips5 and bfd_mach_mips64.
4947 * aoutx.h (NAME(aout,machine_type)): Add a
4948 bfd_mach_mips_sb1 case.
4949 * archures.c (bfd_mach_mips_sb1): New constant.
4950 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4951 * cpu-mips.c (I_sb1): New constant.
4952 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4953 * elf32-mips.c (elf_mips_mach): Add case for
4955 (_bfd_mips_elf_final_write_processing): Add case for
4958 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4960 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4961 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4962 (sparc*-*-rtems*): Switched from a.out to ELF.
4964 2000-11-30 Jan Hubicka <jh@suse.cz>
4966 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4967 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4968 (elf64-x86-64.lo): Add dependencies.
4969 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4970 bfd_mach_x86_64_intel_syntax.
4971 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4972 * config.bfd (x86_64): Add.
4973 * configure.in: Add support for bfd_elf64_x86_64_vec.
4974 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4975 (bfd_i386_arch, i8086_ar): Link in.
4976 * elf64-x86-64.c: New file.
4977 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4978 * targets.c (bfd_elf64_x86_64_vec): Add.
4979 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4981 2000-11-30 Kazu Hirata <kazu@hxi.com>
4983 * xcofflink.c: Fix formatting.
4985 2000-11-28 Kazu Hirata <kazu@hxi.com>
4987 * aoutx.h: Fix formatting.
4988 * bfd-in.h: Likewise.
4989 * bfd-in2.h: Likewise.
4990 * cache.c: Likewise.
4991 * cisco-core.c: Likewise.
4992 * coff64-rs6000.c: Likewise.
4993 * coffcode.h: Likewise.
4994 * coffswap.h: Likewise.
4995 * corefile.c: Likewise.
4996 * elf32-mips.c: Likewise.
4998 2000-11-27 Kazu Hirata <kazu@hxi.com>
5000 * aout-adobe.c: Fix formatting.
5001 * coff64-rs6000.c: Likewise.
5002 * coffgen.c: Likewise.
5003 * cofflink.c: Likewise.
5005 2000-11-27 Philip Blundell <pb@futuretv.com>
5007 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
5008 (obj_coff_strings_written): New accessor macro for above.
5009 * libcoff.h: Regenerate.
5010 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
5012 * coffcode.h (coff_write_object_contents): No need to write out
5013 the string table if it's already been done.
5015 2000-11-22 Philip Blundell <pb@futuretv.com>
5017 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
5018 weak undefined symbols.
5020 2000-11-24 Nick Clifton <nickc@redhat.com>
5022 * archures.c (bfd_mach_arm_5TE): Define.
5023 (bfd_mach_arm+XScale): Define.
5024 * bfd-in2.h: Regenerate.
5026 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
5027 BFD_RELOC_ARM_PCREL_BLX.
5029 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
5030 XScale machine numbers.
5032 * config.bfd (xscale-elf): Add target.
5033 (xscale-coff): Add target.
5035 * cpu-arm.c: Add xscale machine name.
5036 Add v5t, v5te and XScale machine numbers.
5038 2000-11-23 Kazu Hirata <kazu@hxi.com>
5040 * aix386-core.c: Fix formatting.
5042 2000-11-22 Jim Wilson <wilson@redhat.com>
5044 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
5045 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
5046 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
5047 (ins_imms_scaled): Initialize sign_bit at function entry.
5048 (elf64_ia64_operands): Add missing initializers.
5049 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
5050 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
5051 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
5052 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
5053 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
5055 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
5056 and free_extsyms at function entry.
5057 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
5058 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
5059 (get_got): Delete unused local srel.
5060 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
5061 (elfNN_ia64_relocate_section): Delete unused local dynindx.
5063 2000-11-21 Kazu Hirata <kazu@hxi.com>
5065 * coff-a29k.c: Fix formatting.
5066 * coff-h8500.c: Likewise.
5067 * coff-i960.c: Likewise.
5068 * coff-ppc.c: Likewise.
5069 * coff-rs6000.c: Likewise.
5070 * coff-stgo32.c: Likewise.
5071 * coff-tic54x.c: Likewise.
5072 * coff-w65.c: Likewise.
5073 * cpu-h8500.c: Likewise.
5074 * cpu-hppa.c: Likewise.
5075 * cpu-ns32k.c: Likewise.
5076 * ecoff.c: Likewise.
5077 * ecofflink.c: Likewise.
5079 2000-11-21 Nick Clifton <nickc@redhat.com>
5081 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
5082 remove possibility of infinite loop.
5084 2000-11-20 Kazu Hirata <kazu@hxi.com>
5086 * aix386-core.c: Fix formatting.
5087 * aout-adobe.c: Likewise.
5088 * aout-arm.c: Likewise.
5089 * aout-encap.c: Likewise.
5090 * aout-ns32k.c: Likewise.
5091 * aout-target.h: Likewise.
5092 * aout-tic30.c: Likewise.
5093 * aoutf1.h: Likewise.
5094 * aoutx.h: Likewise.
5095 * archive.c: Likewise.
5096 * bfd-in.h: Likewise.
5097 * bfd-in2.h: Likewise.
5101 2000-11-17 H.J. Lu <hjl@gnu.org>
5103 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
5104 pltoff entries for DT_INIT and DT_FINI.
5105 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
5106 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
5109 2000-11-16 Richard Henderson <rth@redhat.com>
5111 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
5112 (allocate_dynrel_entries): Likewise.
5113 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
5114 (set_pltoff_entry): Likewise.
5115 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
5116 (elfNN_ia64_reloc_type_lookup): Likewise.
5117 (elfNN_ia64_install_value): Likewise.
5118 (elfNN_ia64_relocate_section): Likewise.
5119 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
5120 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
5122 2000-11-16 Kazu Hirata <kazu@hxi.com>
5124 * cpu-a29k.c: Fix formatting.
5125 * cpu-alpha.c: Likewise.
5126 * cpu-arm.c: Likewise.
5127 * cpu-avr.c: Likewise.
5128 * cpu-d10v.c: Likewise.
5129 * cpu-h8500.c: Likewise.
5130 * cpu-hppa.c: Likewise.
5131 * cpu-i370.c: Likewise.
5132 * cpu-i386.c: Likewise.
5133 * cpu-i960.c: Likewise.
5134 * cpu-ia64-opc.c: Likewise.
5135 * cpu-ia64.c: Likewise.
5136 * cpu-m32r.c: Likewise.
5137 * cpu-m68hc11.c: Likewise.
5138 * cpu-m68hc12.c: Likewise.
5139 * cpu-m68k.c: Likewise.
5140 * cpu-m88k.c: Likewise.
5141 * cpu-mips.c: Likewise.
5142 * cpu-ns32k.c: Likewise.
5143 * cpu-pj.c: Likewise.
5144 * cpu-powerpc.c: Likewise.
5145 * cpu-sh.c: Likewise.
5146 * cpu-sparc.c: Likewise.
5147 * cpu-tic54x.c: Likewise.
5148 * cpu-v850.c: Likewise.
5149 * cpu-vax.c: Likewise.
5150 * cpu-w65.c: Likewise.
5151 * cpu-we32k.c: Likewise.
5152 * cpu-z8k.c: Likewise.
5153 * dwarf1.c: Likewise.
5154 * dwarf2.c: Likewise.
5156 2000-11-15 Kazu Hirata <kazu@hxi.com>
5158 * coff-arm.c: Fix formatting.
5159 * coff-ppc.c: Likewise.
5160 * coff-rs6000.c: Likewise.
5161 * coff-sh.c: Likewise.
5162 * coff-sparc.c: Likewise.
5163 * coff-tic30.c: Likewise.
5164 * coff-tic54x.c: Likewise.
5165 * coff-tic80.c: Likewise.
5166 * coff-w65.c: Likewise.
5167 * coff-we32k.c: Likewise.
5168 * coff-z8k.c: Likewise.
5170 2000-11-15 Richard Henderson <rth@redhat.com>
5172 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
5173 section with the same ALLOC|LOAD flags as the source section.
5175 2000-11-14 Jakub Jelinek <jakub@redhat.com>
5177 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
5178 by STO_ALPHA constants.
5180 2000-11-14 Kazu Hirata <kazu@hxi.com>
5182 * coff-pmac.c: Fix formatting.
5183 * coff-ppc.c: Likewise.
5185 2000-11-13 H.J. Lu <hjl@gnu.org>
5187 * elflink.h (elf_link_add_object_symbols): Also add indirect
5188 symbols for common symbols with the default version.
5190 2000-11-09 Philip Blundell <pb@futuretv.com>
5192 * section.c (STD_SECTION): Set gc_mark flag.
5194 2000-11-11 Kazu Hirata <kazu@hxi.com>
5196 * coff-i960.c: Likewise.
5197 * coff-m68k.c: Likewise.
5198 * coff-m88k.c: Likewise.
5199 * coff-mcore.c: Likewise.
5200 * coff-mips.c: Likewise.
5202 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
5204 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
5206 2000-11-10 Kazu Hirata <kazu@hxi.com>
5208 * coff-h8300.c: Fix formatting.
5209 * coff-h8500.c: Likewise.
5210 * coff-i386.c: Likewise.
5211 * coff-i860.c: Likewise.
5212 * coff-i960.c: Likewise.
5213 * coff-ia64.c: Likewise.
5215 2000-11-09 Kazu Hirata <kazu@hxi.com>
5217 * archive.c: Fix formatting.
5218 * archures.c: Likewise.
5220 2000-11-07 Richard Henderson <rth@redhat.com>
5222 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
5223 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
5224 * section.c (bfd_set_section_contents): Call memcpy if
5225 section->contents set and location not equal to contents plus offset.
5227 2000-11-08 Kazu Hirata <kazu@hxi.com>
5229 * bfd-in.h: Fix formatting.
5230 * bfd-in2.h: Likewise.
5232 * binary.c: Likewise.
5234 * coff-a29k.c: Likewise.
5235 * coff-alpha.c: Likewise.
5236 * coff-apollo.c: Likewise.
5237 * coff-aux.c: Likewise.
5239 2000-11-07 Kazu Hirata <kazu@hxi.com>
5241 * aix386-core.c: Fix formatting.
5242 * aoutf1.h: Likewise.
5243 * aoutx.h: Likewise.
5244 * archures.c: Likewise.
5245 * armnetbsd.c: Likewise.
5247 2000-11-07 Alan Modra <alan@linuxcare.com.au>
5249 * coff-h8300.c (special): Adjust reloc address.
5251 2000-11-06 Steve Ellcey <sje@cup.hp.com>
5253 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
5254 to differentiate elf32 and elf64 on ia64.
5255 * bfd-in2.h: Regenerate.
5256 * config.bfd: Add target for "ia64*-*-hpux*".
5257 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
5258 * configure: Regenerate.
5259 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
5260 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
5262 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
5263 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
5264 * Makefile.in: Regnerate.
5265 * elf64-ia64.c: Deleted.
5266 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
5268 2000-11-06 Kazu Hirata <kazu@hxi.com>
5270 * aout-adobe.c: Fix formatting.
5271 * aout-arm.c: Likewise.
5272 * aout-cris.c: Likewise.
5273 * aout-encap.c: Likewise.
5274 * aout-ns32k.c: Likewise.
5275 * aout-target.h: Likewise.
5276 * aout-tic30.c: Likewise.
5278 2000-11-05 Philip Blundell <philb@gnu.org>
5280 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
5281 BFDs containing no sections to be merged, regardless of their flags.
5283 2000-11-04 Philip Blundell <philb@gnu.org>
5285 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
5286 if a relocation for an undefined symbol also results in an
5289 2000-11-06 Christopher Faylor <cgf@cygnus.com>
5291 * config.bfd: Add support for Sun Chorus.
5293 2000-11-05 David O'Brien <obrien@FreeBSD.org>
5295 * configure.in: Recognize alpha-*-freebsd*.
5296 * configure: Regenerate.
5298 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
5300 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
5301 (Chunk): New global variable set by a parameter in objcopy.c.
5302 (S3Forced): New global variable set by a parameter in
5304 (srec_set_section_contents): If S3Forced is true, always generate
5306 (srec_write_section): Use 'Chunk' to limit maximum length of S
5309 2000-11-02 Per Lundberg <plundis@chaosdev.org>
5311 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
5312 * Makefile.in: Regenerate.
5313 * bfd-in2.h: Regenerate.
5314 * po/bfd.pot: Regenerate.
5316 2000-10-31 Philip Blundell <philb@gnu.org>
5318 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
5319 EF_SOFT_FLOAT if it is defined.
5321 2000-10-27 Philip Blundell <philb@gnu.org>
5323 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
5324 attempts to mix PIC code with non-PIC, just mark the output as
5325 being position dependent.
5326 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
5327 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
5328 all mismatches, not just the first one.
5330 2000-10-25 Chris Demetriou <cgd@sibyte.com>
5332 * ieee.c (ieee_archive_p): Plug one of many possible
5333 memory leaks in error handling.
5335 2000-10-20 Jakub Jelinek <jakub@redhat.com>
5337 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
5338 elf32_sparc_object_p, elf32_sparc_final_write_processing):
5340 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
5341 sparc64_elf_object_p): Support v9b.
5342 * archures.c: Declare v8plusb and v9b machines.
5344 * cpu-sparc.c: Ditto.
5346 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5348 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
5351 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
5352 (SYMBOL_CALLS_LOCAL): New macro.
5353 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
5354 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
5355 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
5356 (ppc_elf_relocate_section): Use flag variable to determine
5357 whether the relocation refers to a local symbol.
5358 Test whether a PLTREL24 reloc will produce a reloc by looking
5359 to see whether a PLT entry was made.
5361 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
5363 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
5364 entries that could serve as a definition for a weak symbol.
5366 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
5368 From Ralf Baechle <ralf@gnu.org>
5370 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
5371 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
5372 against local symbols.
5373 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
5375 2000-10-12 Alan Modra <alan@linuxcare.com.au>
5377 * section.c (struct sec): Add kept_section.
5378 (struct bfd_comdat_info): Remove sec, we can use above.
5379 (STD_SECTION): Add initializer.
5380 (bfd_make_section_anyway): Init here too.
5382 * bfd-in2.h: Regenerate.
5384 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
5386 (elf_link_input_bfd): Set all asection->symbol->value's here, and
5387 fudge values for discarded link-once section symbols.
5389 * elf64-hppa.c: Include alloca-conf.h
5391 2000-10-11 Alan Modra <alan@linuxcare.com.au>
5393 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
5395 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
5397 2000-10-10 Alan Modra <alan@linuxcare.com.au>
5399 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
5401 2000-10-10 Tom Rix <trix@redhat.com>
5403 * section.c (bfd_make_section_anyway): Release newsect ptr when
5404 newsect->symbol fails to alloc. Use bfd_release instead of free.
5406 2000-10-09 Richard Henderson <rth@cygnus.com
5408 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
5409 (elf64_ia64_unwind_entry_compare): New.
5410 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
5412 2000-10-07 Alan Modra <alan@linuxcare.com.au>
5414 * elflink.h (size_dynamic_sections): Don't create various tags if
5415 .dynstr is excluded from the link. Don't set first dynsym entry
5416 if dynsymcount is zero.
5417 (elf_bfd_final_link): Don't try to swap out dynamic syms if
5418 .dynsym excluded from the link. Don't try to write any dynamic
5419 sections excluded from the link.
5421 * elf.c (swap_out_syms): Handle global section symbols.
5423 2000-10-05 DJ Delorie <dj@redhat.com>
5425 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
5426 * coffcode.h (coff_set_alignment_hook): read extended reloc count
5427 (coff_write_relocs): write extended reloc count
5428 (coff_write_object_contents): account for extended relocs
5430 2000-10-05 Jim Wilson <wilson@cygnus.com>
5432 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
5434 * elf.c (_bfd_elf_make_section_from_shdr): Call the
5435 elf_backend_section_flags function.
5436 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
5438 (elf64_ia64_section_flags): New function containing flag conversion
5440 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
5441 * elfxx-target.h (elf_backend_section_flags): Define.
5442 (elfNN_bed): Initialize elf_backend_section_flags field.
5444 2000-10-02 Alan Modra <alan@linuxcare.com.au>
5446 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
5447 _bfd_elf32_gc_record_vtable. Correct a comment.
5449 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
5451 From Ralf Baechle <ralf@gnu.org>
5453 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
5454 produces binaries with got[1] = 0x80000001 to differenciate them
5455 for the dynamic linker from the broken binaries produced by old
5458 2000-09-30 Petr Sorfa <petrs@sco.com>
5460 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
5461 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
5462 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
5463 * configure: Regenerate.
5465 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
5467 Define two bfd_targets for absence and presence of leading
5468 underscore on symbols. Make sure to only link same kind.
5469 * elf32-cris.c (cris_elf_object_p,
5470 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
5471 cris_elf_merge_private_bfd_data): New.
5472 (elf_backend_object_p, elf_backend_final_write_processing,
5473 bfd_elf32_bfd_print_private_bfd_data,
5474 bfd_elf32_bfd_merge_private_bfd_data): Define.
5475 <Target vector definition>: Include elf32-target.h twice with
5476 different macro settings:
5477 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
5478 bfd_elf32_us_cris_vec.
5479 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
5480 (elf_symbol_leading_char): First as 0, then '_'.
5481 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
5482 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
5483 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
5484 * configure: Regenerate.
5485 * targets.c: Declare bfd_elf32_us_cris_vec.
5486 * po/bfd.pot: Regenerate.
5488 2000-09-29 Momchil Velikov <velco@fadata.bg>
5490 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
5491 R_ARM_THM_PC22 relocations.
5493 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
5495 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
5497 2000-09-29 Momchil Velikov <velco@fadata.bg>
5499 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
5500 is has the SEC_HAS_CONTENTS flag set.
5502 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
5503 Hans-Peter Nilsson <hp@axis.com>
5505 * aout-cris.c (N_TXTADDR): Define.
5507 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
5509 * som.c: Include alloca-conf.h.
5510 * Makefile.am: "make dep-am"
5511 * Makefile.in: Regenerate.
5513 2000-09-27 Alan Modra <alan@linuxcare.com.au>
5515 * elf32-hppa.c (plt_stub): New.
5516 (PLT_STUB_ENTRY): Define.
5517 (elf32_hppa_link_hash_table): Change multi_subspace to packed
5518 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
5519 (elf32_hppa_link_hash_table_create): Init to suit.
5520 (elf32_hppa_check_relocs): Set has_12bit_branch and
5521 has_17bit_branch as appropriate.
5522 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
5523 non-local functions.
5524 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
5525 Add space for plt_stub as needed.
5526 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
5527 functions at plt_stub.
5528 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
5529 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
5531 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
5532 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
5533 of fixed size, and if negative, disable handling of input sections
5534 before stub section. Set up default stub group size depending
5535 on detected branch relocs.
5536 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
5537 ensure different offsets from sym_value aren't rounded to
5538 different 2k blocks. Use lrsel and rrsel for other stubs too for
5539 consistency rather than necessity.
5540 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
5541 (final_link_relocate): Likewise.
5542 (elf32_hppa_relocate_section): Likewise.
5544 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
5545 (_bfd_elf_hppa_gen_reloc_type): Generate them.
5546 (elf_hppa_final_link_relocate): Handle them.
5547 (elf_hppa_relocate_insn): Likewise.
5548 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
5550 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
5552 * elfcode.h (elf_object_p): Preserve and clear abfd section
5553 information. Restore at error.
5555 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
5557 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
5558 is empty, make sure that its rva also 0. NT loader dislikes
5561 2000-09-26 Steve Ellcey <sje@cup.hp.com>
5563 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
5566 2000-09-21 Alan Modra <alan@linuxcare.com.au>
5568 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
5569 currently unused RELATIVE_DYNAMIC_RELOCS code.
5570 (hppa_discard_copies): Likewise.
5571 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
5572 comments. Don't check non-code output sections for stub grouping.
5574 2000-09-20 Alan Modra <alan@linuxcare.com.au>
5576 * section.c (bfd_get_unique_section_name): Return NULL if
5579 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5581 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
5582 instruction sequence to actually work.
5583 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
5586 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
5588 * elf32-sh.c (sh_elf_relocate_section): Use
5589 _bfd_final_link_relocate to apply the relocation against a section
5590 symbol, when doing relocatable links.
5592 2000-09-18 Alan Modra <alan@linuxcare.com.au>
5594 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
5596 (stub_hash_newfunc): Here too.
5597 (hppa_add_stub): And here.
5598 (elf32_hppa_link_hash_table): Remove stub_section_created,
5599 reloc_section_created, first_init_sec and first_fini_sec. Add
5601 (elf32_hppa_link_hash_table_create): Init to suit.
5602 (hppa_get_stub_entry): Add support for grouping stub sections.
5603 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
5604 section code. Index stub vars by section->id.
5605 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
5606 exit paths. Zap allocation of above removed vars. Refine
5609 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
5610 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
5611 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
5612 rather than pointer to bfd_link_info.
5613 (hppa_add_stub): Likewise.
5614 (final_link_relocate): Likewise.
5616 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
5618 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
5621 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
5623 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
5624 ld/emulparams/shelf.sh.
5626 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5628 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
5629 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
5630 * bfd-in2.h: Regenerate.
5632 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
5634 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
5635 LITUSE relocations incorrectly if -relax is specified on the ld
5636 command line and the displacement field of the load or store
5637 instruction is non-zero. (Patch by paul.winalski@compaq.com)
5639 2000-09-15 Alan Modra <alan@linuxcare.com.au>
5641 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
5642 first_fini_sec here.
5643 (elf32_hppa_size_stubs): Instead correctly find the first .init
5644 and .fini section here.
5646 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
5648 * elf32-hppa.c (clobber_millicode_symbols): New function.
5649 (elf32_hppa_size_dynamic_sections): Call it.
5651 2000-09-14 Alan Modra <alan@linuxcare.com.au>
5653 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
5654 packed. Add plabel, plt_abs packed booleans.
5655 (hppa_link_hash_newfunc): Init new fields.
5656 (PLABEL_PLT_ENTRY_SIZE): Define.
5657 (hppa_stub_name): Use size_t len vars.
5658 (hppa_add_stub): Likewise.
5659 (elf32_hppa_build_stubs): Likewise.
5660 (hppa_build_one_stub): Kill some compiler warnings.
5661 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
5662 if dynamic linking. Munge the local plt offsets into
5663 local_got_refcounts. Set h->plabel for all global PLABELs. Use
5664 size_t len vars. Add assert for plabel addend.
5665 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
5666 (elf32_hppa_hide_symbol): New function.
5667 (elf_backend_hide_symbol): Define.
5668 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
5669 with h->plabel set. Don't make plt entries to have dynamic syms
5670 when they have been forced local. If plt entry is used by a
5671 plabel, make it PLABEL_PLT_ENTRY_SIZE.
5672 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
5673 Set up .plt offsets for local syms.
5674 (elf32_hppa_relocate_section): Initialise plt entries for local
5675 syms. Leave weak undefined plabels zero. Make global plabel
5676 relocs against function symbol, and leave the addend zero.
5677 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
5678 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
5679 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
5680 relocs instead of SEGREL32 for dynamic got relocs.
5681 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
5682 (elf_backend_got_header_size): Adjust.
5683 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
5685 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
5686 (hppa_type_of_stub): Use it instead of #if 0
5687 (hppa_discard_copies): Use it here too.
5688 (elf32_hppa_size_dynamic_sections): And here.
5690 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
5691 (elf32_hppa_link_hash_table_create): And here.
5692 (hppa_build_one_stub): And here. Instead keep track of stub
5693 offset using _raw_size.
5694 (elf32_hppa_size_stubs): Likewise.
5695 (elf32_hppa_build_stubs): Likewise.
5696 (hppa_size_one_stub): Likewise. Resize reloc section too.
5698 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
5699 first_fini_sec handling. Don't search for reloc section or set
5700 hplink->reloc_section_created here.
5701 (elf32_hppa_size_stubs): Instead search for reloc sections, and
5702 set reloc_section_created here.
5703 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
5704 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
5706 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
5708 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
5709 with `hplink->root.'.
5710 (elf32_hppa_check_relocs): Likewise.
5711 (elf32_hppa_gc_sweep_hook): Likewise.
5712 (elf32_hppa_adjust_dynamic_symbol): Likewise.
5713 (hppa_handle_PIC_calls): Likewise.
5714 (elf32_hppa_size_dynamic_sections): Likewise.
5715 (elf32_hppa_set_gp): Likewise.
5716 (elf32_hppa_relocate_section): Likewise.
5717 (elf32_hppa_finish_dynamic_symbol): Likewise.
5718 (elf32_hppa_finish_dynamic_sections): Likewise.
5720 From David Huggins-Daines <dhd@linuxcare.com>
5721 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
5722 defined weak symbols in shared links.
5723 (final_link_relocate): Calls to defined weak symbols in shared
5724 objects must go via import stubs, as the target might not be known
5727 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
5729 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
5730 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
5731 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
5732 the original entries with EMPTY_HOWTOs, and added new ones to fill
5734 (sh_elf_info_to_howto): Make sure the new gap isn't used.
5735 (sh_elf_relocate_section): Likewise.
5737 2000-09-13 Anders Norlander <anorland@acc.umu.se>
5739 * cpu-mips.c (arch_info_struct): Add mips:4K
5740 * bfd-in2.h (bfd_mach_mips4K): New define.
5741 * archures.c: Add bfd_mach_mips4K to comment.
5742 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
5743 E_MIPS_ARCH_2 for bfd_mach_mips4K.
5745 2000-09-13 Marco Franzen <marcof@thyron.com>
5747 * som.c (som_write_symbol_strings): Do not used fixed buffers,
5748 use size_t as a counter.
5749 (som_write_space_strings): Similarly.
5751 2000-09-12 Jason Eckhardt <jle@cygnus.com>
5753 * elf32-i860.c (elf32_i860_relocate_pc26): New function
5755 (elf32_i860_relocate_section): Invoke new function from here.
5757 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5759 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
5762 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5764 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
5765 target section name instead of dumping core when the target symbol is
5768 2000-09-09 Kazu Hirata <kazu@hxi.com>
5770 * riscix.c: Remove DEFUN.
5772 2000-09-08 Nick Clifton <nickc@redhat.com>
5774 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
5775 initialise flags in output bfd if the input bfd is the default
5776 architecture with the default flags.
5778 2000-09-08 Kazu Hirata <kazu@hxi.com>
5780 * archive.c: Fix formatting.
5781 * coff-arm.c: Likewise.
5782 * doc/chew.c: Likewise.
5784 2000-09-08 Alan Modra <alan@linuxcare.com.au>
5786 * section.c (bfd_get_unique_section_name): Put a dot before the
5789 2000-09-07 Kazu Hirata <kazu@hxi.com>
5791 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
5792 * elf.c: Fix formatting.
5794 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
5796 * config.bfd (sh-*-linux*): Added.
5797 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
5798 * targets.c: Declare them.
5799 * elf32-sh-lin.c: New file.
5800 * Makefile.am: Compile it.
5801 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
5802 * configure, Makefile.in: Rebuilt.
5804 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
5806 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
5807 pseduo-section when determining where the TOC ends.
5809 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
5810 output x_tvndx as it is only two bytes wide.
5812 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
5813 reloc is 26 or 32 bits wide.
5815 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
5816 for relocs that don't change anything. Also look at the full
5819 2000-09-06 Philip Blundell <philb@gnu.org>
5821 * config.bfd (arm*-*-uclinux*): New target.
5823 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
5825 * configure: Rebuilt with new libtool.m4.
5827 2000-09-06 Alan Modra <alan@linuxcare.com.au>
5829 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
5830 word for variable name.
5831 * bfd-in2.h: Regenerate.
5833 2000-09-05 Nick Clifton <nickc@redhat.com>
5835 * config.in: Regenerate.
5836 * libbfd.h: Regenerate.
5837 * po/bfd.pot: Regenerate.
5838 * doc/bfdint.texi: Remove CVS date string - it foils compares with
5841 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
5843 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
5845 2000-09-05 Alan Modra <alan@linuxcare.com.au>
5847 Shared library and PIC support.
5848 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
5849 (GOT_ENTRY_SIZE): New.
5850 (ELF_DYNAMIC_INTERPRETER): New.
5851 (STUB_SUFFIX): Define.
5852 (LONG_BRANCH_PIC_IN_SHLIB): Define.
5853 (RELATIVE_DYNAMIC_RELOCS): Define.
5854 (enum elf32_hppa_stub_type): New.
5855 (struct elf32_hppa_stub_hash_entry): Rename offset to
5856 stub_offset. Add a number of new fields.
5857 (struct elf32_hppa_link_hash_entry): New.
5858 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
5860 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
5861 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
5862 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
5864 (hppa_link_hash_newfunc): New function.
5865 (elf32_hppa_link_hash_table_create): Use above function. Init new
5867 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
5868 instead of addend, and remove sym_name from args. Don't use
5869 symbol name for local syms, instead use sym index.
5870 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
5871 stub type rather than size. Pass in hash and handle import stub
5872 case. Also pass in reloc instead of offset so we can calculate
5873 PCREL22F and PCREL12F branches properly.
5874 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
5875 import and export stubs too.
5876 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5877 import and export stub sizing.
5878 (elf32_hppa_check_relocs): New function.
5879 (elf32_hppa_adjust_dynamic_symbol): New function.
5880 (hppa_discard_copies): New function.
5881 (elf32_hppa_size_dynamic_sections): New function.
5882 (elf_backend_size_dynamic_sections): Define.
5883 (elf32_hppa_finish_dynamic_symbol): New function.
5884 (elf_backend_finish_dynamic_symbol): Define.
5885 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5886 some local vars into the link hash table too. For shared links,
5887 trundle over function syms, generating export stubs. Handle
5888 PCREL22F branches. Break out stub creation code from here..
5889 (hppa_add_stub): .. to here. New function.
5890 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5891 call the bfd linker. Use elf_gp to record global pointer.
5892 Calculate a value from sections if $global$ is missing.
5893 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5894 (elf32_hppa_gc_mark_hook): New function.
5895 (elf_backend_gc_mark_hook): Define.
5896 (elf32_hppa_gc_sweep_hook): New function.
5897 (elf_backend_gc_sweep_hook): Define.
5898 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5899 Add rel to args, and remove howto, input_bfd, offset, addend,
5900 sym_name as we can recalculate these locally. Handle calls to
5901 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5902 handling of undefined weak syms. Check that stubs are in range.
5903 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5904 message on hitting a DPREL21L reloc that needs fixing. Subtract
5905 off PC for PCREL14F. Break out code that does a stub lookup from
5907 (hppa_get_stub_entry): ..to here. New function.
5908 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5909 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5911 (elf32_hppa_finish_dynamic_sections): New function.
5912 (elf_backend_finish_dynamic_sections): Define.
5913 (elf_backend_final_write_processing) Define.
5914 (hppa_handle_PIC_calls): New function.
5915 (elf32_hppa_build_stubs): Call it. Pass link_info to
5916 hppa_build_one_stub.
5917 (elf32_hppa_create_dynamic_sections): New function
5918 to create .plt and .got then set .plt flags correctly.
5919 (elf_backend_create_dynamic_sections): Define.
5920 (elf32_hppa_object_p): New function.
5921 (elf_backend_object_p): Define.
5922 (elf32_hppa_elf_get_symbol_type): New function.
5923 (elf_backend_get_symbol_type): Define.
5924 (elf_backend_can_gc_sections): Define.
5925 (elf_backend_want_got_plt): Define.
5926 (elf_backend_plt_alignment): Set to 2.
5927 (elf_backend_plt_readonly): Define.
5928 (elf_backend_want_plt_sym): Define.
5929 (elf_backend_got_header_size): Reserve one entry.
5931 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5932 (elf32_hppa_size_stubs): Pass in multi_subspace.
5933 (elf32_hppa_set_gp): Declare.
5935 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5936 (bfd_get_unique_section_name): New function.
5937 * bfd-in2.h: Regenerate.
5939 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5940 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5943 From David Huggins-Daines <dhd@linuxcare.com>
5944 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5945 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5946 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5947 been updated in finish_dynamic_symbol before modifying function
5950 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5951 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5952 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5953 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5954 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5955 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5956 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5957 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5959 From David Huggins-Daines <dhd@linuxcare.com>
5960 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5961 style of local labels as well.
5963 2000-09-03 Philip Blundell <philb@gnu.org>
5965 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5966 references to undefined symbols in debugging sections.
5968 2000-09-02 H.J. Lu <hjl@gnu.org>
5970 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5971 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5972 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5975 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5977 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5978 (elf32_i860_is_local_label_name): New function and prototype.
5980 2000-09-02 Nick Clifton <nickc@redhat.com>
5982 * configure.in: Increase version number to 2.10.91.
5983 * configure: Regenerate.
5984 * aclocal.m4: Regenerate.
5985 * config.in: Regenerate.
5986 * po/bfd.pot: Regenerate.
5988 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5990 * elf.c (_bfd_elf_make_section_from_shdr): Add
5991 .gnu.linkobce.wi. to the list of debug section names.
5993 2000-09-02 Nick Clifton <nickc@redhat.com>
5995 * dwarf2.c (find_debug_info): New function: Locate a section
5996 containing dwarf2 debug information.
5997 (bfd_dwarf2_find_nearest_line): Find all sections containing
5998 debug information and include them in the stash.
6000 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
6002 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
6003 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
6004 (sh_reloc_map): Add new relocs.
6005 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
6006 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
6007 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
6008 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
6010 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
6011 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
6012 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
6013 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
6014 New array constants.
6015 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
6017 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
6018 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
6019 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
6020 elf_sh_plt_reloc_offset): Define.
6021 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
6022 elf_sh_link_hash_table): New structs.
6023 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
6024 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
6026 (elf_backend_create_dynamic_sections,
6027 bfd_elf32_bfd_link_hash_table_create,
6028 elf_backend_adjust_dynamic_symbol,
6029 elf_backend_size_dynamic_sections,
6030 elf_backend_finish_dynamic_symbol,
6031 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
6032 elf_backend_plt_readonly, elf_backend_want_plt_sym,
6033 elf_backend_got_header_size, elf_backend_plt_header_size):
6035 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
6036 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
6038 * bfd-in2.h, libbfd.h: Rebuilt.
6040 2000-09-01 Alan Modra <alan@linuxcare.com.au>
6042 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
6045 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
6047 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
6048 not initialized, set them to indicate the SH1 instruction set.
6050 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
6052 * acinclude.m4: Include libtool and gettext macros from the
6054 * aclocal.m4, configure: Rebuilt.
6056 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
6058 * elf.c: Eliminate references to __sparcv9 macro; replace with
6059 autoconf variables HAVE_PSINFO32_T etc.
6060 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
6061 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
6063 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
6064 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
6065 * aclocal.m4: Ditto.
6066 * configure: Regenerate.
6068 2000-08-27 Alan Modra <alan@linuxcare.com.au>
6070 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
6071 for any shared link, not just shared -Bsymbolic.
6072 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
6073 any shared link, and pass link info to it.
6074 (elf_i386_size_dynamic_sections): Update comment.
6075 (elf_i386_discard_copies): Modify to discard relocs for symbols
6076 that have been forced local.
6077 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
6078 that have been forced local.
6080 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
6082 * elflink.h (elf_link_add_object_symbols): Allow common
6083 symbols to have an alignment of 1 if explicitly requested, and
6084 not overridden by other definitions.
6086 2000-08-22 Doug Kwan <dkwan@transmeta.com>
6088 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
6089 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
6091 2000-08-22 H.J. Lu <hjl@gnu.org>
6093 * elf-bfd.h (elf_link_hash_table): Add runpath.
6095 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
6096 * bfd-in2.h: Rebuilt.
6098 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
6099 "runpath" field to NULL.
6100 (bfd_elf_get_runpath_list): New function.
6102 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
6105 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
6107 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
6108 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
6109 explicitly. Improve validation of r_type.
6111 2000-08-21 H.J. Lu <hjl@gnu.org>
6113 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
6114 dynamic allocated content space. Add a comment to remind us that
6115 one day this ought to be fixed.
6116 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6117 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6118 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6120 2000-08-21 Jason Eckhardt <jle@cygnus.com>
6122 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
6123 field with the newly relocated value instead of adding it to the
6124 existing immediate field.
6125 (elf32_i860_relocate_splitn): Likewise.
6126 (elf32_i860_relocate_highadj): Likewise.
6128 2000-08-16 Jason Eckhardt <jle@cygnus.com>
6130 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
6131 was previously just a stub).
6133 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
6135 * elflink.c (_bfd_elf_create_got_section): Don't abort().
6137 (_bfd_elf_create_dynamic_sections): Likewise.
6139 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
6141 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
6142 for undefined symbols to be the beginning of the section.
6144 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
6145 four extra entries at the beginning of the .rela.plt section.
6146 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
6147 section to account for the four reserved entries in the .plt section.
6149 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
6151 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
6152 to the list of NOPs we recognize after a branch-and-link.
6153 Use the ori NOP when one is needed.
6155 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
6158 2000-08-14 Jim Wilson <wilson@cygnus.com>
6160 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
6161 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
6162 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
6165 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
6167 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
6169 2000-08-10 Jason Eckhardt <jle@cygnus.com>
6171 * elf32-i860.c (elf32_i860_relocate_section): New function.
6172 (i860_final_link_relocate): New function.
6173 (elf32_i860_relocate_splitn): New function.
6174 (elf32_i860_relocate_pc16): New function.
6175 (elf32_i860_relocate_highadj): New function.
6176 (elf32_i860_howto): Minor adjustments to some relocations.
6177 (elf_info_to_howto_rel): Define.
6178 (elf_backend_relocate_section): Define.
6180 2000-08-10 Nick Clifton <nickc@cygnus.com>
6182 * elf32-arm.h: Fix formatting.
6184 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
6186 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
6188 2000-08-08 Jason Eckhardt <jle@cygnus.com>
6190 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
6192 2000-08-07 Kazu Hirata <kazu@hxi.com>
6194 * ieee.c (ieee_write_debug_part): Rewrite a comment.
6195 * elf64-ia64.c: Fix a typo.
6197 2000-08-05 Jason Eckhardt <jle@cygnus.com>
6199 * elf32-i860.c (elf32_i860_howto_table): New structure.
6200 (lookup_howto): New function.
6201 (elf32_i860_reloc_type_lookup): New function.
6202 (elf32_i860_info_to_howto_rela): New function.
6203 (elf_code_to_howto_index): New structure.
6204 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
6205 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
6206 elf32_i860_reloc_type_lookup.
6208 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
6210 * som.c (struct fixup_format): Constify `format'.
6211 (som_hppa_howto_table): Use SOM_HOWTO macro.
6212 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
6213 (som_bfd_reloc_type_lookup): Likewise.
6214 (compare_subspaces): Remove unused `count1', `count2'.
6215 (som_begin_writing): Remove unused `total_reloc_size'.
6216 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
6217 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
6218 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
6219 (som_find_nearest_line): Decorate unused parameter(s).
6220 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
6221 (som_bfd_link_split_section): Likewise.
6223 2000-08-03 Nick Clifton <nickc@cygnus.com>
6225 * section.c: Restore backed out code.
6226 * elf.c: Restore backed out code.
6227 (copy_private_bfd_data): Fix bug preventing stipped dynamic
6228 binaries from working.
6229 * bfd-in2.h: Regenerate.
6231 2000-08-03 H.J. Lu <hjl@gnu.org>
6233 * section.c: Back out the change made by Nick Clifton
6234 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
6236 * bfd-in2.h: Likewise.
6239 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
6241 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
6243 2000-07-31 Jason Eckhardt <jle@cygnus.com>
6245 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
6246 * bfd-in2.h, libbfd.h: Regenerate.
6248 2000-07-31 Nick Clifton <nickc@cygnus.com>
6250 * section.c (struct sec): Add new boolean field 'segment_mark'.
6251 (STD_SECTION): Initialise new field to zero.
6253 * bfd-in2.h: Regenerate.
6255 * elf.c (copy_private_bfd_data): Reorganise section to segment
6256 mapping to cope with moved sections requiring new segments,
6257 and overlapping segments.
6258 (SEGMENT_END): New macro: Return the end address of a segment.
6259 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
6260 contains a section by comparing their VMA addresses.
6261 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
6262 contains a section by comparing their LMA addresses.
6263 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
6264 section should be included in a segment.
6265 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
6266 follows another in memory.
6267 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
6270 2000-07-22 Jason Eckhardt <jle@cygnus.com>
6272 * cpu-i860.c: Added comments.
6274 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
6275 bfd_elf32_i860_little_vec.
6276 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
6277 (ELF_MAXPAGESIZE): Changed to 4096.
6279 * targets.c (bfd_elf32_i860_little_vec): Declaration of
6281 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
6283 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
6284 config for little endian elf32 i860.
6285 (targ_defvec): Define for the new config above
6286 as "bfd_elf32_i860_little_vec".
6287 (targ_selvecs): Define for the new config above
6288 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
6290 * configure.in (bfd_elf32_i860_little_vec): Added recognition
6293 * configure: Regenerated.
6295 2000-07-27 H.J. Lu <hjl@gnu.org>
6297 * elflink.h (elf_merge_symbol): Take one more argument,
6298 dt_needed, to indicate if the symbol comes from a DT_NEEDED
6299 entry. Don't overide the existing weak definition if dt_needed
6301 (elf_link_add_object_symbols): Pass dt_needed to
6302 elf_merge_symbol ().
6304 2000-07-27 Nick Clifton <nickc@cygnus.com>
6306 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
6309 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
6311 * configure.host (*-*-aix*): AIX has 'long long' always.
6313 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
6314 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
6315 (xcoff_write_archive_contents_big): Don't update the offset
6316 of the symbol table, xcoff_write_armap will do it.
6318 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
6320 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
6321 of dynobj for SGI_COMPAT checks.
6323 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6325 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
6326 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
6327 * bfd-in2.h: Regenerate.
6329 2000-07-21 Nick Clifton <nickc@cygnus.com>
6331 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
6332 range symbol indices in relocs and issue an error message.
6334 2000-07-20 H.J. Lu <hjl@gnu.org>
6336 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
6337 info->new_dtags when setting DT_FLAGS_1. It will only be set
6338 by the new linker options. It shouldn't break anything.
6340 2000-07-20 H.J. Lu <hjl@gnu.org>
6342 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
6343 only if info->new_dtags is true.
6345 2000-07-20 H.J. Lu <hjl@gnu.org>
6347 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
6348 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
6350 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
6352 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
6353 (ALL_MACHINES_CFILES): Add cpu-cris.c.
6354 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
6355 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
6356 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
6357 * Makefile.in: Rebuild.
6358 * aclocal.m4: Rebuild.
6359 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
6360 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
6361 (bfd_cris_arch): Declare.
6362 (bfd_archures_list): Add bfd_cris_arch.
6363 * bfd-in2.h: Rebuild.
6364 * config.bfd: (cris-*-*): New target.
6365 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
6366 * configure: Rebuild.
6367 * elf.c (prep_headers): Add bfd_arch_cris.
6368 * libbfd.h: Rebuild.
6369 * libaout.h (enum machine_type): Add M_CRIS.
6370 * reloc.c: Add CRIS relocations.
6371 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
6372 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
6373 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
6374 * po/POTFILES.in, po/bfd.pot: Regenerate.
6376 2000-07-19 H.J. Lu <hjl@gnu.org>
6378 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
6379 DF_TEXTREL if DT_TEXTREL is set.
6380 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
6381 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
6382 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
6383 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
6384 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
6385 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
6386 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
6387 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
6388 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
6389 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
6391 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
6392 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
6394 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
6396 2000-07-19 H.J. Lu <hjl@gnu.org>
6398 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
6399 * bfd-in2.h: Rebuild.
6401 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
6402 (elf_dt_soname): New.
6404 * elf.c (bfd_elf_set_dt_needed_soname): New.
6406 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
6407 entry if the shared object loaded by DT_NEEDED is used to
6408 resolve the reference in a regular object.
6410 2000-07-19 H.J. Lu <hjl@gnu.org>
6412 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
6413 DT_DEPAUDIT and DT_AUDIT as strings.
6415 2000-07-19 Nick Clifton <nickc@cygnus.com>
6417 * format.c: Fix formatting.
6419 2000-07-19 H.J. Lu <hjl@gnu.org>
6421 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
6423 2000-07-19 H.J. Lu <hjl@gnu.org>
6425 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
6426 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
6427 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
6428 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
6429 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
6430 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
6431 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
6433 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
6435 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
6436 renamed functions from here...
6437 (assign_section_numbers): Use renamed functions.
6438 (prep_headers): Use renamed functions.
6440 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
6441 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
6442 * bfd-in2.h: Regenerate.
6444 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
6446 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
6447 parenthesis in if statement.
6449 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
6451 Enable the support for Traditional MIPS.
6452 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
6453 return ict_none appropriately for traditional mips targets.
6454 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
6455 (STUB_MOVE): Conditionalize for traditonal mips.
6456 (STUB_LI16): Likewise.
6457 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
6458 room for RTPROC header.
6459 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
6460 the permission for the PT_DYNAMIC as read, write and execute.
6461 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
6462 for traditonal mips.
6463 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
6464 _DYNAMIC_LINKING for traditonal mips.
6465 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
6466 in case of traditonal mips.
6467 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
6468 entry is required. For a function if PLT is not required then set the
6469 corresponding hash table entry to 0.
6470 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
6472 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
6473 shared object set the value to 0.
6474 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
6475 _DYNAMIC_LINKING for traditonal mips.
6476 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
6477 for traditonal mips.
6479 2000-07-15 H.J. Lu <hjl@gnu.org>
6481 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
6483 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
6485 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
6486 out a structure that is BFD_IN_MEMORY.
6488 2000-07-11 Alan Modra <alan@linuxcare.com.au>
6490 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
6491 bfd pointer. Print section id instead of bfd pointer for local
6492 syms. Prefix addend with `+' for global syms as well as local.
6493 Correct calculation of name component lengths.
6494 (elf64_hppa_check_relocs): Update call to get_dyn_name.
6496 From David Huggins-Daines <dhd@linuxcare.com>
6497 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
6498 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
6499 (elf64_hppa_modify_segment_map): Likewise.
6501 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6503 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
6504 addresses to be "naturally" sign extended. Return -1 if unknown.
6505 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
6506 * bfd-in2.h: Regenerate.
6508 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6510 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
6511 and ECOF_SIGNED_64 to list ways to extract an offset.
6512 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
6513 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
6515 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
6516 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
6518 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
6520 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
6521 bfd_get_start_address.
6522 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
6523 (elf_swap_ehdr_out): Ditto.
6525 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
6527 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
6528 compatibility with older binutils.
6530 2000-07-10 Alan Modra <alan@linuxcare.com.au>
6532 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
6533 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
6535 From Ryan Bradetich <rbradetich@uswest.net>
6536 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
6537 (parse_line_table): Ditto.
6538 (_bfd_dwarf1_find_nearest_line): Ditto.
6539 * syms.c (cmpindexentry): Remove extra `*' from params.
6541 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
6543 * elf32-mips.c (sort_dynamic_relocs): New Function.
6544 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
6545 via qsort to sort the dynamic relocations in increasing r_symndx
6548 2000-07-09 Alan Modra <alan@linuxcare.com.au>
6550 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
6551 ATTRIBUTE_UNUSED to unused args.
6552 (get_opd): Likewise.
6553 (get_plt): Likewise.
6554 (get_dlt): Likewise.
6555 (get_stub): Likewise.
6556 (elf64_hppa_adjust_dynamic_symbol): Likewise.
6557 (elf64_hppa_link_output_symbol_hook): Likewise.
6558 (elf64_hppa_check_relocs): Delete unused var.
6559 (elf64_hppa_size_dynamic_sections): Likewise.
6560 (elf64_hppa_finalize_opd): Likewise.
6561 (elf64_hppa_finalize_dynreloc): Likewise.
6562 (elf64_hppa_modify_segment_map): Likewise.
6563 (elf64_hppa_finish_dynamic_sections): Likewise.
6565 * elf-hppa.h (elf_hppa_final_write_processing): Add
6566 ATTRIBUTE_UNUSED to unused args.
6567 (elf_hppa_final_link_relocate): Likewise.
6568 (elf_hppa_record_segment_addrs): Add paretheses.
6569 (elf_hppa_relocate_section): Constify dyn_name.
6571 From David Huggins-Daines <dhd@linuxcare.com>
6572 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
6573 rearrange case statement so that it gets preferred to 32-bit ones.
6575 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
6576 asection->id instead of address of asection structure.
6577 (elf32_hppa_size_stubs): Likewise.
6579 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
6580 for .init* and .fini*.
6582 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
6583 and addends used in stub names to 32 bits.
6584 (elf32_hppa_size_stubs): Likewise.
6586 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
6587 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
6588 not bfd_put_64. Fix minor comment typo and formatting.
6590 Changes to create multiple linker stubs, positioned immediately
6591 before the section where they are required.
6592 * elf32-hppa.c: Don't include hppa_stubs.h.
6593 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
6594 (elf32_hppa_stub_hash_table): Delete.
6595 (elf32_hppa_link_hash_entry): Delete.
6596 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
6597 stub_hash_table, and store the struct here rather than a pointer.
6598 Delete output_symbol_count. Add offset array. Change
6599 global_value to a bfd_vma.
6600 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
6601 (elf32_hppa_stub_hash_traverse): Delete.
6602 (elf32_hppa_name_of_stub): Delete.
6603 (elf32_hppa_link_hash_lookup): Delete.
6604 (elf32_hppa_link_hash_traverse): Delete.
6605 (elf32_hppa_stub_hash_table_init): Delete.
6606 (elf32_hppa_size_of_stub): Pass input section and offset rather
6607 than location and calculate location here. Don't pass name as all
6608 stubs are now the same size.
6609 (elf32_hppa_stub_hash_newfunc): Init new fields.
6610 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
6612 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
6613 comparing against ints. Rewrite stub handling code.
6614 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
6615 Case enums to int before comparing against ints. Remove
6616 bfd_reloc_dangerous case.
6617 (elf32_hppa_build_one_stub): Rewrite.
6618 (elf32_hppa_size_one_stub): New function.
6619 (elf32_hppa_build_stubs): Rewrite.
6620 (elf32_hppa_size_stubs): Pass in linker call-back functions.
6621 Rewrite stub-handling specific code.
6623 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
6625 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
6627 * hppa_stubs.h: Delete.
6628 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
6629 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
6630 * Makefile.in: Regenerate.
6632 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
6635 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
6637 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
6638 and section name for bfd_reloc_notsupported error message.
6639 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
6640 bfd_reloc_notsupported.
6641 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
6643 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
6644 undefined weak symbols for all relocs.
6645 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
6646 offsets are relative to one past the delay slot.
6647 (elf32_hppa_size_stubs): Account for reloc addend when calculating
6648 branch destination. Put addend into stub name too.
6649 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
6650 adjust by 8 when deciding whether a linker stub is needed. Put
6651 addend into stub name as for above.
6653 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
6654 various args and vars.
6655 (elf32_hppa_bfd_final_link_relocate): Here too.
6656 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
6657 inner block var to avoid shadowing.
6659 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
6661 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
6662 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
6663 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
6665 * libhppa.h: Change practically all unsigned ints to plain ints.
6666 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
6669 From Ryan Bradetich <rbradetich@uswest.net>
6670 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
6671 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
6673 From David Huggins-Daines <dhd@linuxcare.com>
6674 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
6675 to the new OP_* ones.
6677 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
6678 error exit. Bail out earlier on plabel relocs that we aren't
6679 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
6680 string, and then don't free our copy.
6681 (elf32_hppa_build_one_stub): Make insn unsigned int.
6683 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
6684 available with BL, not BE and BLE.
6686 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
6687 code for elf arg relocs.
6688 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
6689 argument with elf_link_hash_entry h. Handle undefined weak
6690 symbols. Move $global$ lookup from here...
6691 (elf32_hppa_relocate_section): ...to here. Return correct error
6692 message for non-handled relocs.
6693 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
6694 wrong test was -0x3ffff to +0x40000.
6696 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
6697 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
6698 Handle them as such.
6699 (elf_hppa_relocate_insn): Fix a typo.
6701 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
6702 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6703 assemble_17, assemble_21): Delete.
6704 Supply defines for all 64 possible opcodes.
6705 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
6706 formats. Handle COMICLR.
6707 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
6710 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
6711 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
6712 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
6714 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
6715 the local syms - did this code get deleted accidentally? Ignore
6716 undefined and undefweak syms.
6718 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
6719 block. Use it instead of elf64_hppa_hash_table (info).
6720 (elf_hppa_final_link_relocate): Use hppa_info instead of
6721 elf64_hppa_hash_table (info).
6723 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6724 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6725 (hppa_rebuild_insn): Mask immediate bits here instead.
6726 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6728 2000-07-08 Alan Modra <alan@linuxcare.com.au>
6730 * section.c (struct sec): Add id field. Tidy comment formatting.
6731 (bfd_make_section_anyway): Set id.
6732 (STD_SECTION): Init id too.
6733 Change CONST to const throughout.
6734 * archures.c (bfd_arch_info): Tidy comment.
6735 (bfd_arch_list): Change a CONST to const.
6736 * libbfd-in.h: Tidy comments and replace CONST with const.
6737 * elf-bfd.h: Likewise.
6738 * libbfd.h: Regenerate.
6739 * bfd-in2.h: Regenerate.
6740 * libcoff.h: Regenerate.
6742 2000-07-07 DJ Delorie <dj@redhat.com>
6744 * archive.c (_bfd_write_archive_contents): Add an informative
6747 2000-07-06 Kazu Hirata <kazu@hxi.com>
6749 * srec.c: Fix formatting.
6751 2000-06-05 DJ Delorie <dj@redhat.com>
6755 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
6757 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
6758 value of PC-relative offsets.
6760 2000-07-03 Jim Wilson <wilson@cygnus.com>
6762 * elf64-alpha.c (alpha_elf_size_info): New.
6763 (elf_backend_size_info): Define to alpha_elf_size_info.
6764 * elfcode.h (elf_size_info): Change hash bucket size to 4.
6766 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
6768 * elf32-mips.c: Include elf32-target.h again for the traditional
6771 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
6773 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
6774 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
6775 (avr_info_to_howto_rela): Likewise.
6776 (elf32_avr_gc_mark_hook): Likewise.
6777 (elf32_avr_gc_sweep_hook): Likewise.
6778 (elf32_avr_relocate_section): Likewise.
6780 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
6782 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
6783 an external symbol for a non-shared, non-relocatable link.
6785 2000-07-03 Nick Clifton <nickc@redhat.com>
6787 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
6788 is an external symbol.
6789 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
6792 2000-07-03 Kazu Hirata <kazu@hxi.com>
6794 * reloc16.c: Fix formatting.
6796 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
6798 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
6799 to add a new target for traditional mips i.e
6800 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
6801 * configure.in: Likewise.
6802 * configure: Rebuild.
6803 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
6805 (bfd_elf32_tradlittlemips_vec): Likewise.
6806 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
6807 to see that elfNN_bed does not get redefined even if the target file
6808 is included twice for a chip. See elf32-mips.c.
6810 2000-07-01 Alan Modra <alan@linuxcare.com.au>
6812 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
6813 (CLEANFILES): Add DEPA.
6814 * Makefile.in: Regenerate.
6816 2000-06-30 DJ Delorie <dj@cygnus.com>
6818 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
6819 can't assume the PE header is at 0x80.
6821 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
6823 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
6825 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
6827 * go32stub.h: Update stub.
6829 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
6831 * archures.c (bfd_mach_avr5): Define.
6832 * bfd-in2.h (bfd_mach_avr5): Define.
6833 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
6834 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
6835 (compatible): Update comment. Add missing test.
6836 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
6837 for avr2 and avr4. Simplify 8K wrap code.
6838 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
6839 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
6841 2000-06-26 Kazu Hirata <kazu@hxi.com>
6843 * coff-h8300.c: Fix formatting.
6844 * cpu-h8300.c: Likewise.
6846 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
6848 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
6849 for local symbols whose names are unknown.
6851 2000-06-22 Alan Modra <alan@linuxcare.com.au>
6853 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
6855 * Makefile.in: Regenerate.
6856 * doc/Makefile.in: Regenerate.
6858 2000-06-20 H.J. Lu <hjl@gnu.org>
6860 * Makefile.am: Rebuild dependency.
6861 * Makefile.in: Rebuild.
6863 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6865 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
6866 (elf_backend_copy_indirect_symbol): Map to the new function.
6868 2000-06-20 Alan Modra <alan@linuxcare.com.au>
6870 * archive.c (normalize): Correct pointer comparison when checking
6872 (bfd_bsd_truncate_arname): Likewise.
6873 (bfd_gnu_truncate_arname): Likewise.
6875 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6877 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6878 sections elf_{text,data}_{section,symbol}.
6879 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6880 (_bfd_mips_elf_hide_symbol): New function.
6881 (elf_backend_hide_symbol): Map to the new function.
6882 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6883 definitions of mips_elf_{text,data}_{section,symbol}.
6884 (mips_elf_local_relocation_p): Try to find the direct symbol
6885 based on new check_forced argument.
6886 (mips_elf_calculate_relocation): Use new version of
6887 mips_elf_local_relocation_p.
6888 (mips_elf_relocate_section): Likewise.
6889 (_bfd_mips_elf_relocate_section): Likewise.
6890 (mips_elf_sort_hash_table): Only assert that have enough GOT
6892 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6893 entry if the relocation based on the new external argument.
6894 (mips_elf_create_dynamic_relocation): Assert that we have a
6895 section contents allocated where we can swap out the dynamic
6897 (mips_elf_calculate_relocation): Find the real hash-table entry
6898 correctly by using h->root.root.type. Only create a dynamic
6899 relocation entry if the symbol is defined in a shared library.
6900 Create an external GOT entry for the GOT16 relocation if the
6901 symbol was forced local.
6902 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6903 dynamic index if the symbol was forced local.
6905 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6907 * elf32-mips.c: Fix typos in comments.
6909 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6911 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6914 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6916 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6917 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6918 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6919 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6920 (bfd_elf32_m68hc11_vec): Likewise.
6921 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6922 Supports 68hc11 & 68hc12 at the same time.
6923 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6925 (bfd_elf32_m68hc11_vec): Likewise.
6926 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6927 * archures.c (bfd_m68hc12_arch): Define and register in global list
6928 (bfd_m68hc11_arch): Likewise.
6929 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6930 BFD_RELOC_M68HC11_3B): Define.
6931 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6932 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6934 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6936 * elf_bfd.h (struct elf_backend_data): Add info argument to
6937 elf_backend_hide_symbol.
6938 (_bfd_elf_link_hash_hide_symbol): Likewise.
6939 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6940 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6941 * elflink.h (elf_link_add_object_symbols): Likewise.
6942 (elf_link_assign_sym_version): Likewise.
6944 2000-06-18 H.J. Lu <hjl@gnu.org>
6946 * coff-i386.c (coff_i386_reloc): Don't return in case of
6947 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6948 Compensate PE relocations when linking with non-PE object
6949 files to generate a non-PE executable.
6951 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6953 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6954 GOT entries if we're doing a static link or -Bsymbolic link.
6956 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6958 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6959 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6961 (elf_link_output_relocs): Likewise.
6962 (elf_reloc_link_order): Likewise.
6964 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6966 * archures.c (enum bfd_architecture): #define constants for
6967 PowerPc and RS6000 machine numbers.
6968 * bfd-in2.h: Regenerate.
6969 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6970 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6971 and RS6000 machine numbers using #defined constants from
6973 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6974 machine numbers using #defined constants from archures.c. Add
6975 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6976 64-bit words in 620 entry.
6977 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6979 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6981 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6983 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6984 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6985 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6987 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6989 * bfd-in.h (bfd_family_coff): Define.
6990 * bfd-in2.h: Regenerate.
6991 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6992 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6993 instead of bfd_target_coff_flavour.
6994 * cofflink.c (_bfd_coff_final_link): Likewise.
6995 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6996 exclude XCOFF files.
6997 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6999 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
7000 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
7001 * xcofflink.c (XCOFF_XVECP): Delete.
7002 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
7003 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
7004 bfd_xcoff_record_link_assignment,
7005 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
7006 check for bfd_target_xcoff_flavour.
7008 2000-06-16 Nicholas Duffek <nsd@redhat.com>
7010 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
7012 (read_hdr): New function.
7013 (rs6000coff_core_p): Store mstsave or __context64 struct instead
7014 of trying to extract individual registers. Set abfd->arch_info
7015 to match the architecture that created the core file.
7016 (rs6000coff_get_section_contents): Delete.
7017 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
7019 2000-06-14 H.J. Lu <hjl@gnu.org>
7021 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
7024 2000-06-13 H.J. Lu <hjl@gnu.org>
7026 * configure: Regenerate.
7028 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
7030 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
7033 2000-06-08 David O'Brien <obrien@FreeBSD.org>
7035 * configure.in (VERSION): Update to show this is the CVS mainline.
7037 2000-06-07 Alan Modra <alan@linuxcare.com.au>
7039 * elf32-d10v.c: Include elf/d10v.h
7040 (enum reloc_type): Delete.
7041 * elf32-d30v.c: Include elf/d30v.h
7042 (enum reloc_type): Delete.
7044 * Makefile.am: Run "make dep-am" to regenerate dependencies.
7045 * Makefile.in: Regenerate.
7047 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
7048 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
7049 move HOWTOs into elf_howto_table.
7050 (R_386_standard, R_386_ext_offset): Define.
7051 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
7052 (elf_i386_reloc_type_lookup): Modify calculation of index into
7053 elf_howto_table since we've removed the padding.
7054 (elf_i386_info_to_howto_rel): Likewise.
7055 (elf_i386_relocate_section): Likewise.
7057 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
7059 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
7061 2000-06-05 H.J. Lu <hjl@gnu.org>
7063 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
7064 an error when seeing an undefined symbol with hidden/internal
7065 attribute. It is handled in *_relocate_section ().
7067 2000-06-05 H.J. Lu <hjl@gnu.org>
7069 * elflink.h (elf_fix_symbol_flags): Follow the link for the
7070 indirect symbol for the ELF_LINK_NON_ELF bit.
7071 (elf_link_output_extsym): Don't output the indirect symbol even
7072 if the ELF_LINK_NON_ELF bit is set.
7074 2000-06-01 J.T. Conklin <jtc@redback.com>
7076 * config.bfd (i[3456]86-*-netbsdelf*): New target.
7077 (i[3456]86-*-netbsdaout*): New target.
7078 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
7079 (i[3456]86-*-openbsd*): Likewise.
7081 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
7083 * trad-core.c: From hpux-core.c, include <dirent.h> or
7084 <sys/ndir.h> when possible.
7086 2000-05-31 Ulrich Drepper <drepper@redhat.com>
7088 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
7089 definitions. We must not assume they are sorted in the file
7090 according to their index numbers.
7092 2000-05-31 Alan Modra <alan@linuxcare.com.au>
7094 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
7095 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
7096 R_PARISC_DIR17F are for absolute branches; Handle them as such.
7098 2000-05-30 Nick Clifton <nickc@cygnus.com>
7100 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
7101 80960CA, 80960MC as valid machine names.
7103 2000-05-30 H.J. Lu <hjl@gnu.org>
7105 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
7106 visibility bits if the symbol is undefined. Correctly handle
7107 weak undefined symbols with hidden and internal attributes.
7109 * elflink.h (elf_link_add_object_symbols): Always turn the
7110 symbol into local if it has the hidden or internal attribute.
7112 2000-05-29 Philip Blundell <philb@gnu.org>
7114 * ppcboot.c: Add packed attribute if compiling with GCC.
7116 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
7118 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
7120 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
7122 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
7123 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
7124 corefile on a 64-bit (Sparc Solaris) host. Also clean up
7127 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7129 * Makefile.am: Update dependencies with "make dep-am"
7130 * Makefile.in: Regenerate.
7132 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
7133 bindtextdomain): Replace defines with those from intl/libgettext.h
7134 to quieten gcc warnings.
7136 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
7138 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
7140 * archive.c (normalize, bfd_bsd_truncate_arname,
7141 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
7142 file names with backslashes.
7144 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
7147 * sysdep.h: Include filenames.h.
7149 2000-05-26 Alan Modra <alan@linuxcare.com.au>
7151 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
7153 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7155 * elf64-sparc.c (sparc64_elf_relax_section): New.
7156 (sparc64_elf_relocate_section): Optimize tail call into branch always
7158 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7159 (elf32_sparc_relax_section): New.
7161 2000-05-26 Jakub Jelinek <jakub@redhat.com>
7163 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
7164 Remove unusued variables.
7165 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
7166 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
7167 previous fix, so that shared libs really don't influence targets
7168 extension mask and memory model.
7170 2000-05-23 H.J. Lu <hjl@gnu.org>
7172 * elf64-alpha.c (elf64_alpha_relocate_section): Check
7173 h->root.other not h->other.
7174 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7176 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
7178 2000-05-23 H.J. Lu <hjl@gnu.org>
7180 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
7181 undefined symbol with the non-default visibility attributes.
7182 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
7183 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7184 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7185 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7186 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7187 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7188 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7189 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7190 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7191 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
7192 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7194 2000-05-22 Richard Henderson <rth@cygnus.com>
7196 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
7197 PCREL22, PCREL64I. Zero size of special relocs.
7198 (elf64_ia64_reloc_type_lookup): Likewise.
7199 (USE_BRL, oor_brl, oor_ip): New.
7200 (elf64_ia64_relax_section): New.
7201 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
7202 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
7203 (elf64_ia64_relocate_section): Likewise.
7204 (bfd_elf64_bfd_relax_section): New.
7205 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
7206 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
7207 * bfd-in2.h, libbfd.h: Regenerate.
7209 2000-05-22 Nick Clifton <nickc@cygnus.com>
7211 * configure.in : Add peigen.lo to MIPS PE targets.
7212 * configure: Regenerate.
7214 2000-05-22 Momchil Velikov <velco@fadata.bg>
7216 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
7217 only if it is known for both input and output bfds. Separate
7218 error message strings as in some languages, it may be necessary
7219 to change more than one place in the string to change between
7222 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
7223 endianess checks, call _bfd_generic_verify_endian_match() instead.
7225 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
7227 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
7229 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
7230 endianess before checking bfd flavours.
7232 2000-05-22 H.J. Lu <hjl@gnu.org>
7234 * elflink.h (elf_link_output_extsym): Clear the visibility
7235 field for symbols not defined locally.
7237 2000-05-18 Alan Modra <alan@linuxcare.com.au>
7239 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
7240 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
7241 (hppa_rebuild_insn): Mask immediate bits here instead.
7242 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
7244 2000-05-18 Momchil Velikov <velco@fadata.bg>
7246 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
7247 relocs for an executable, ensure that they are virtual addresses.
7249 2000-05-18 Jeffrey A Law (law@cygnus.com)
7251 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
7253 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
7254 Rick Gorton <gorton@scrugs.lkg.dec.com>
7256 * elflink.h: Add emitrelocations support: when enabled, relocation
7257 information and relocation sections are put into final output
7258 executables. If the emitrelocations flag is set, do the following:
7259 (elf_bfd_final_link): Emit relocation sections.
7260 (elf_link_input_bfd): Compute relocation section contents.
7261 (elf_gc_sections): Don't clean relocation sections.
7263 2000-05-16 Catherine Moore <clm@cygnus.com>
7265 * som.c (som_decode_symclass): Recognize weak symbols.
7267 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
7269 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
7270 read idata section only from dataoff.
7271 (pe_print_edata): Correctly check for valid eat_member.
7273 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
7275 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
7277 2000-05-14 Philip Blundell <philb@gnu.org>
7279 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
7281 2000-05-12 Alan Modra <alan@linuxcare.com.au>
7283 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
7285 * peigen.c (pe_print_idata): Look for .idata section and print
7286 info even if data directory has zero entries. Read idata section
7287 starting from dataoff, and adjust all data offsets to suit. Cast
7288 all bfd_vma vars to unsigned long before passing to fprintf.
7289 * peigen.c (pe_print_edata): Similarly, look for .edata section
7290 and print info even if data directory has zero entries. Cast
7291 all bfd_vma vars to unsigned long before passing to fprintf.
7293 From Szabolcs Szakacsits <szaka@F-Secure.com>
7294 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
7295 directory size which may be bogus.
7296 * peigen.c (pe_print_edata): Similarly.
7298 2000-05-09 Alan Modra <alan@linuxcare.com.au>
7300 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
7302 (copy_private_bfd_data): Allow for space possibly taken up by elf
7303 headers when calculating segment physical address from lma.
7305 2000-05-08 Alan Modra <alan@linuxcare.com.au>
7307 * versados.c (versados_scan): Init stringlen and pass_2_done.
7309 * trad-core.c (trad_unix_core_file_p): Return
7310 bfd_error_wrong_format rather than bfd_error_file_truncated.
7312 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
7313 add_data_entry. DataDirectory virtual address is relative.
7314 (pe_print_idata): Account for relative DataDirectory virtual
7315 addresses. Don't trash datasize inside POWERPC_LE_PE code.
7316 (pe_print_edata): Similarly.
7318 From Szabolcs Szakacsits <szaka@F-Secure.com>
7319 * peigen.c (dir_names): Add Delay Import Directory.
7320 (pe_print_idata): Always search for bfd section containing
7321 idata address rather than looking up section name. Print this
7322 section name rather than .idata.
7323 (pe_print_edata): Similarly. Also print some fields as %08lx.
7324 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
7327 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7329 * xcoff.h: Rename to xcoff-target.h
7330 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
7331 * coff-rs6000.c: Ditto.
7332 * coff64-rs6000.c: Ditto.
7333 * coff-pmac.c: Ditto.
7334 * Makefile.in: Regenerate.
7336 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
7338 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
7339 Change U802TOC64MAGIC to U803XTOCMAGIC.
7341 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
7343 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
7344 * bfd-in.h: Prototype bfd_elf_get_arch_size.
7345 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
7347 2000-05-04 Alan Modra <alan@linuxcare.com.au>
7349 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
7351 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
7353 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
7354 hidden and internal symbols.
7355 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
7357 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
7358 assign a PLT or GOT entry to symbols with hidden and
7359 internal visibility.
7361 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
7363 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
7365 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
7367 2000-05-02 H.J. Lu <hjl@gnu.org>
7369 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
7372 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7374 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
7375 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
7377 * Makefile.in: Regenerate.
7379 2000-05-01 Jim Wilson <wilson@cygnus.com>
7381 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
7382 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
7383 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
7384 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
7385 * Makefile.in: Rebuild.
7387 2000-05-02 Alan Modra <alan@linuxcare.com.au>
7389 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
7390 doesn't work very well.
7392 * elf-hppa.h (elf_hppa_internal_shdr): Define.
7393 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
7394 Set hdr->s_type to 1 if ARCH_SIZE == 32.
7395 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
7396 (elf_hppa_info_to_howto): Likewise.
7397 (elf_hppa_info_to_howto_rel): Likewise.
7398 (elf_hppa_reloc_type_lookup): Likewise.
7399 (elf_hppa_is_local_label_name): Likewise.
7400 (elf_hppa_fake_sections): Likewise.
7401 (elf_hppa_final_write_processing): Likewise.
7402 (elf_hppa_howto_table): Fully initialise all entries.
7403 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
7404 (elf_hppa_info_to_howto): Likewise.
7405 (elf_hppa_info_to_howto_rel): Likewise.
7406 (elf_hppa_reloc_type_lookup): Likewise.
7407 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
7408 elf_hppa_unmark_useless_dynamic_symbols,
7409 elf_hppa_remark_useless_dynamic_symbols,
7410 elf_hppa_record_segment_addrs, elf_hppa_final_link,
7411 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
7412 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
7413 elf32-hppa.c mess is cleaned up.
7414 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
7415 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
7416 r_field then call hppa_field_adjust inline func with variable
7417 r_field arg, instead call hppa_field_adjust with fixed arg.
7418 In case R_PARISC_PCREL22F, don't set r_field.
7419 (elf_hppa_relocate_insn): Change args and return type to unsigned
7420 int. Call re_assemble_* funcs to do the work.
7422 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
7425 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
7427 (sign_extend): Mask first before sign extending.
7428 (low_sign_extend): Rewrite without condition expression.
7429 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
7430 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
7431 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
7432 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
7433 result as function return value rather than through pointer arg.
7434 Accept unsigned int args, and return unsigned int.
7435 (re_assemble_3): New. Combines function of dis_assemble_3 with
7436 re-assembly of opcode and immediate.
7437 (re_assemble_12): Likewise.
7438 (re_assemble_16): Likewise.
7439 (re_assemble_17): Likewise.
7440 (re_assemble_21): Likewise.
7441 (re_assemble_22): Likewise.
7442 (hppa_field_adjust): Rewrite and document, paying attention to
7443 size of types and signed/unsigned issues.
7444 (get_opcode): Shift before masking.
7445 (FDLW): Rename to FLDW.
7446 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
7447 (hppa_rebuild_insn): Change args and return value to unsigned
7448 int. Make use of re_assemble_*. Correct case 11.
7450 * dep-in.sed: Handle ../opcodes/.
7451 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
7452 elf64-hppa.h, hppa_stubs.h, xcoff.h.
7453 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
7454 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
7455 elfarm-nabi.lo dependencies outside of auto-dependency area.
7456 Regenerate dependencies.
7457 * Makefile.in: Regenerate.
7459 * configure.in (TRAD_HEADER): Test non-null before
7461 * configure: Regenerate.
7463 * reloc.c: Fix mis-spelling in comment.
7465 2000-05-01 Alan Modra <alan@linuxcare.com.au>
7467 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
7468 * vms.c (vms_openr_next_archived_file): Return NULL.
7470 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7472 * coffcode.h Copy changes mistakenly done to libcoff.h in
7475 2000-04-29 Andreas Jaeger <aj@suse.de>
7477 * libbfd-in.h: Correctly check GCC version.
7478 * bfd-in.h: Likewise.
7479 * libhppa.h: Likewise.
7480 * libbfd.h: Regenerate.
7481 * bfd-in2.h: Regenerate.
7483 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7485 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
7486 coffdu-rs6000.{lo,c}.
7487 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
7489 * Makefile.in: Regenerate.
7490 * xcoff.h: New file.
7491 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
7492 * coff-rs6000.c: Move all declarations and defines that are
7493 common to the xcoff backends into xcoff.h
7494 * coff64-rs6000.c: Ditto,
7496 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7498 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
7499 _bfd_coff_force_symnames in strings and
7500 _bfd_coff_debug_string_prefix_length to their default values.
7501 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
7503 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
7505 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
7506 _bfd_coff_force_symnames in strings and
7507 _bfd_coff_debug_string_prefix_length to their default values.
7509 2000-04-27 Alan Modra <alan@linuxcare.com.au>
7511 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
7512 Check local_got_refcounts before dereferencing.
7514 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
7515 before deciding we don't need R_PPC_PLT32 relocation.
7516 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
7519 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
7521 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
7523 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
7524 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
7525 (elf_i386_relocate_section): Allow for .plt to go missing.
7526 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
7527 can use a relative reloc for got as elf_i386_relocate_section.
7528 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
7530 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
7532 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
7534 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
7536 * Makefile.am (coff64-rs6000.lo): New rule.
7537 * Makefile.in: Regenerate.
7538 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
7539 xcoff_is_local_label_name, xcoff_rtype2howto,
7540 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
7541 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
7542 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
7543 (NO_COFF_SYMBOLS): Define.
7544 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
7545 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
7547 (MINUS_ONE): New macro.
7548 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
7550 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
7551 coff_SWAP_aux_out): Map to the new functions.
7552 * coff64-rs6000.c: New file.
7553 * libcoff.h (bfd_coff_backend_data): Add new fields
7554 _bfd_coff_force_symnames_in_strings and
7555 _bfd_coff_debug_string_prefix_length.
7556 (bfd_coff_force_symnames_in_strings,
7557 bfd_coff_debug_string_prefix_length): New macros for above fields.
7558 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
7559 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
7560 of using coff_swap_sym_in directly.
7561 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
7562 (coff_set_flags) Set magic for XCOFF64.
7563 (coff_compute_section_file_positions): Add symbol name length to
7564 string section length if bfd_coff_debug_string_prefix_length is
7566 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
7567 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
7568 using coff_swap_lineno_in directly.
7569 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
7570 and _bfd_coff_debug_string_prefix_length fields.
7571 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
7572 symbol names into strings table when
7573 bfd_coff_force_symnames_in_strings is true.
7574 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
7575 SET_RELOC_VADDR): New macros.
7576 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
7577 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
7579 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
7580 changes within RS6000COFF_C specific code.
7581 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
7582 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
7583 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
7584 Extend existing hack on target name.
7585 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
7587 * coff-tic54x.c (ticof): Keep up to date with new fields
7588 in bfd_coff_backend_data.
7589 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
7590 targ_selvecs to include rs6000coff64_vec for rs6000.
7591 * configure.in: Add rs6000coff64_vec case.
7592 * cpu-powerpc.c: New bfd_arch_info_type.
7594 2000-04-24 Jeffrey A Law (law@cygnus.com)
7596 * config.bfd: Only disable elf32-hppa vectors, not all of the
7597 BSD and OSF configuration support. Provide (disabled) clauses
7599 * configure.in: Add clause for PA64 support.
7600 * configure: Rebuilt.
7602 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
7603 (bfd_elf64_hppa_vec): Declare.
7605 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
7606 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
7607 (elf64-hppa.lo): Add dependencies.
7608 * Makefile.in: Rebuilt.
7610 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
7612 2000-04-24 Jason Eckhardt <jle@cygnus.com>
7614 * libhppa.h (dis_assemble_16): New function.
7615 (pa_arch): Added pa20w element.
7617 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
7619 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
7620 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
7621 bfd_elf64_slurp_reloc_table.
7623 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
7624 definitions to get external names.
7625 (elf_write_relocs): Renamed from write_relocs and make global.
7626 (elf_slurp_reloc_table): Make global.
7627 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
7629 * archive.c (hpux_uid_gid_encode): New function.
7630 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
7631 defined and the ID is greater than 99999.
7632 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
7633 special uid/gid fields into 32 bit values.
7635 2000-04-21 Matthew Green <mrg@cygnus.com>
7637 * config.bfd: Add NetBSD/sparc64 support.
7639 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
7640 David Mosberger <davidm@hpl.hp.com>
7641 Timothy Wall <twall@cygnus.com>
7642 Jim Wilson <wilson@cygnus.com>
7644 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
7645 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
7646 (BFD64_BACKENDS): Add elf64-ia64.lo.
7647 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
7648 (cpu-ia64.lo, elf64-ia64.lo): New rules.
7649 * Makefile.in: Rebuild.
7650 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
7651 (bfd_ia64_arch): Declare.
7652 (bfd_archures_list): Add bfd_ia64_arch.
7653 * bfd-in2.h: Rebuild.
7654 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
7655 * configure: Rebuild.
7656 * configure.host: (ia64-*-linux*): New host.
7657 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
7658 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
7659 * elf.c (prep_headers): Add bfd_arch_ia64.
7660 * libbfd.h: Rebuild.
7661 * reloc.c: Add IA-64 relocations.
7662 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
7664 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
7665 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
7667 2000-04-21 Richard Henderson <rth@cygnus.com>
7669 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
7670 contents when performing a partial link.
7671 (bfd_elf_d30v_reloc_21): Likewise.
7673 2000-04-20 H.J. Lu <hjl@gnu.org>
7675 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
7676 patch to symbols defined by a shared object.
7677 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
7679 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
7682 * dwarf2.c (concat_filename): Avoid string literal concatenation.
7683 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
7685 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
7687 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
7688 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
7689 (coff-ia64.lo): Add dependency.
7690 * Makefile.in: Regenerate.
7691 * coff-ia64.c: New file.
7692 * efi-app-ia32.c: Ditto.
7693 * efi-app-ia64.c: Ditto.
7694 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
7695 (coff_set_flags): Ditto.
7696 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
7697 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
7698 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
7699 * configure: Regenerate.
7700 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
7701 (PUT_OPTHDR_IMAGE_BASE): Ditto.
7702 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7703 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
7704 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7705 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
7706 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7707 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
7708 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7709 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
7710 (GET_PDATA_ENTRY): Ditto.
7711 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
7712 data_start. Use above macros to read fields that are 64 bit wide for
7713 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
7714 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
7715 FileAlignment and SectionAlignment to minimum alignment if they
7717 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
7718 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
7719 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
7720 Use above macros to write fields that are 64 bit wide for
7722 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
7723 5*4 otherwise. This should be right for IA-32 and IA-64, but may
7724 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
7725 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
7726 begin address, end address, and unwind info address only. Use
7727 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
7729 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
7730 HIGH3ADJ relocation names.
7731 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
7732 * targets.c: Declare bfd_efi_app_ia32_vec and
7733 bfd_efi_app_ia64_vec.
7734 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
7735 bfd_efi_app_ia64_vec.
7737 2000-04-17 Timothy Wall <twall@cygnus.com>
7739 * bfd-in2.h: Add prototypes for tic54x load page access.
7740 * bfd-in.h: Regenerate.
7741 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
7742 in customized _set_arch_mach function.
7743 * coffcode.h (coff_set_alignment_hook): Set section load page if
7744 the appropriate macro is defined.
7745 (write_object_contents): Read section load page.
7747 2000-04-13 Alan Modra <alan@linuxcare.com.au>
7749 * elf32-hppa.h: Update copyright date.
7751 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
7752 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
7754 * elf32-d30v.c (MAX32): Don't use LL suffix.
7755 (MIN32): Define in terms of MAX32.
7756 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
7758 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
7761 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
7763 2000-04-12 Alan Modra <alan@linuxcare.com.au>
7765 * dep-in.sed: Match space before file name, not after.
7766 * Makefile.am: Regenerate dependencies.
7767 * Makefile.in: Regenerate.
7769 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
7770 case, allow address wrap-around stupidly removed 2000-03-17. Sign
7771 extend without an if statement.
7773 2000-04-11 Alan Modra <alan@linuxcare.com.au>
7775 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
7777 * elf32-mips.c (gprel16_with_gp): Likewise.
7778 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
7779 here using -0x40000, not (int)0xfffc0000.
7780 (elf32_hppa_size_of_stub): Likewise.
7782 2000-04-11 Timothy Wall <twall@cygnus.com>
7784 * coff-tic54x.c: Now builds with all targets.
7785 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
7786 * Makefile.in: Regenerate.
7787 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
7788 unitialized variable.
7790 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
7792 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
7793 --enable-build-warnings option.
7794 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
7795 * Makefile.in, configure: Re-generate.
7797 2000-04-07 Nick Clifton <nickc@cygnus.com>
7799 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
7800 BFD_RELOC_THUMB_PCREL_BLX.
7802 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7803 R_ARM_XPC25 and R_ARM_THM_PC22.
7805 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
7806 R_ARM_XPC25 and R_ARM_THM_XPC22.
7807 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
7808 R_ARM_[XPC25|THM_XPC22].
7810 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
7811 elf/arm-oabi.h to elf/arm.h
7813 * Makefile.am: Fix dependency for elfarm-oabi.c
7814 * Makefile.in: Regenerate.
7816 * bfd-in2.h: Regenerate.
7817 * libbfd.h: Regenerate.
7819 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7821 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
7822 and restore it on failure. Release newly allocated tdata on
7825 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
7827 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
7828 (decode_line_info): Set it. Report error if unit->line_offset is
7829 equal to or larger than it.
7831 2000-04-07 Timothy Wall <twall@cygnus.com>
7833 * targets.c: Added vecs for tic54x.
7834 * reloc.c: Added relocs for tic54x.
7835 * libbfd.h: Regenerated.
7836 * configure: Add TI COFF vecs for tic54x.
7837 * configure.in: Ditto.
7838 * config.bfd (targ_cpu): Recognize new tic54x target.
7839 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
7840 * bfd-in2.h: Add tic54x target and relocations.
7841 * Makefile.am, Makefile.in: Add tic54x target.
7842 * archures.c (bfd_archures_list): Add tic54x target.
7843 * coff-tic54x.c: New.
7844 * cpu-tic54x.c: New.
7846 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
7848 * elfcore.h (elf_core_file_p): call backend_object_p which
7849 thereby gets an opportunity to update the arch/machine type.
7851 2000-04-06 Timothy Wall <twall@cygnus.com>
7853 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
7854 class. Handle SEC_CLINK and SEC_BLOCK flags.
7855 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
7856 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
7858 2000-04-06 Nick Clifton <nickc@cygnus.com>
7860 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
7861 EF_INTERWORK if this is an unknown EABI.
7862 (elf32_arm_merge_private_bfd_data): Check EABI version
7863 numbers. Only check EF_xxx flags if the EABI version number
7865 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
7866 if the EABI version number is unknown.
7867 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
7868 if the EABI version number is unknown.
7870 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7872 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
7873 BFD_RELOC_SH_LOOP_END.
7874 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
7875 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7876 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7877 (sh_elf_reloc_loop): New function.
7878 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7880 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7881 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7882 * bfd-in2.h, libbfd.h: Regenerate.
7884 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7886 * po/bfd.pot: Regenerate.
7888 * Makefile.am: Remove extraneous mkdep comment.
7889 (MKDEP): Use gcc -MM rather than mkdep.
7890 (DEP): Quote when passing vars to sub-make. Add warning
7892 (DEP1): Rewrite for "gcc -MM".
7893 (CLEANFILES): Add DEP2.
7894 Update dependencies.
7895 * Makefile.in: Regenerate.
7897 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7899 * configure.in: Added corefile support for AIX 4.3. In particular,
7900 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7901 compiling rs6000-core.c.
7902 * configure: Regenerated.
7904 2000-04-03 H.J. Lu <hjl@gnu.org>
7906 * cache.c (bfd_open_file): Unlink the output file only if
7907 it has non-zero size.
7909 2000-04-01 Ken Block USG <block@zk3.dec.com>
7911 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7912 relative relocations for non-loaded sections in shared objects.
7913 (elf64_alpha_check_relocs): Similarly.
7915 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7917 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7918 BFD_RELOC_16 to switch for extended relocs.
7919 (MY_swap_ext_reloc_in): New.
7920 (MY_swap_ext_reloc_out): New.
7921 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7922 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7923 (NAME(aout,squirt_out_relocs)): Similarly use
7924 MY_swap_ext_reloc_out.
7925 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7927 2000-04-03 Kazu Hirata <kazu@hxi.com>
7929 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7930 the R_PCRWORD_B case.
7932 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7934 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7938 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7940 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7941 HOWTO references to bfd_elf_generic_reloc, that have
7942 partial_inplace == true, now use the new function. The function
7943 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7944 extends its fixes to the R_M32R_{16,24,32} relocs.
7945 The new logic in m32r_elf_lo16_reloc() has been removed, and
7946 it instead calls the new routine to obtain that functionality.
7948 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7950 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7951 elf32_avr_check_relocs, avr_final_link_relocate,
7952 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7953 elf32_avr_object_p): Add prototypes.
7954 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7955 (bfd_elf_avr_final_write_processing): Make static.
7957 2000-03-27 Denis Chertykov <denisc@overta.ru>
7959 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7960 * archures.c (bfd_architecture): Add AVR architecture.
7961 (bfd_archures_list): Add reference to AVR architecture info.
7962 * elf.c (prep_headers): Handle bfd_arch_avr.
7963 * reloc.c: Add various AVR relocation enums.
7964 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7966 * Makefile.am: Add support for AVR elf.
7967 * configure.in: Likewise.
7968 * config.bfd: Likewise.
7969 * Makefile.in: Regenerate.
7970 * configure: This too.
7971 * bfd-in2.h: And this.
7972 * libbfd.h: And this.
7974 2000-03-24 H.J. Lu <hjl@gnu.org>
7976 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7977 (elf64_alpha_find_reloc_at_ofs): Likewise.
7979 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7981 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7982 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7983 allowable range used to be -2**(n-1) to 2**n-1.
7984 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7985 "boolean overflow" with "bfd_reloc_status_type flag".
7987 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7989 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7991 2000-03-14 Kazu Hirata <kazu@hxi.com>
7993 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7994 of shrinks properly, including the last reloc.
7996 2000-03-13 Kazu Hirata <kazu@hxi.com>
7998 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
8001 2000-03-11 Alan Modra <alan@linuxcare.com.au>
8003 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
8004 a format mismatch rather than an "error" from bfd_read such as
8005 bfd_error_file_truncated.
8007 2000-03-10 Geoff Keating <geoffk@cygnus.com>
8009 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
8010 sign-extension and big-endian compensation for
8011 R_MIPS_64 even in ld -r.
8013 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
8015 * elf32-mips.c (mips_elf_next_relocation): Rename from
8016 mips_elf_next_lo16_relocation, and generalize to look
8017 for any relocation type.
8018 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
8019 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
8020 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
8021 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
8022 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
8023 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
8024 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
8025 (mips_rtype_to_howto): Likewise.
8026 (mips_elf_calculate_relocation): Handle new relocs.
8027 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
8028 are paired. The addend for R_MIPS_GNU_REL16_S2
8029 is shifted right two bits.
8031 2000-03-10 Alan Modra <alan@linuxcare.com.au>
8033 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
8034 comment, and ensure it doesn't happen again.
8035 (bfd_install_relocation): Same here.
8036 (_bfd_relocate_contents): Don't bother assigning unused signmask
8037 shift result. Fix typos in comments.
8038 Remove trailing whitespace throughout file.
8040 2000-03-07 Doug Evans <dje@casey.transmeta.com>
8042 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
8043 * bfd-in2.h: Rebuild.
8045 2000-03-06 Nick Clifton <nickc@cygnus.com>
8047 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
8049 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
8050 (SIZEOF_ILF_STRINGS): Redefine.
8051 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
8052 relative reloc, as opposed to a section relative reloc.
8053 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
8055 Add length of symbol's prefix to string pointer.
8056 Store a pointer to the symbol in the symbol pointer table.
8057 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
8058 Initialise the symbol pointer table.
8059 Store the hint in the Hint/Name table.
8060 Make the jump reloc be symbol realtive, not section relative.
8061 Create an import symbol for imported code.
8063 2000-03-06 Catherine Moore <clm@cygnus.com>
8065 * elf.c (swap_out_syms): Check for null type_ptr.
8067 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
8069 * aout-target.h (MY(write_object_contents)): Remove unused
8070 and unusable "#if CHOOSE_RELOC_SIZE".
8071 * pc532-mach.c (MY(write_object_contents)): Ditto.
8072 * netbsd.h (MY(write_object_contents)): Ditto.
8073 * hp300hpux.c (MY(write_object_contents)): Ditto.
8074 * freebsd.h (MY(write_object_contents)): Ditto.
8075 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
8077 2000-02-29 H.J. Lu <hjl@gnu.org>
8079 * peicode.h (jtab): Make it static.
8081 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
8082 defined and COFF_IMAGE_WITH_PE is not defined.
8083 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
8084 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
8086 2000-03-01 Nick Clifton <nickc@cygnus.com>
8088 * coff-arm.c (bfd_arm_process_before_allocation): Make
8089 'symndx' signed to prevent compile time warning.
8091 * coff-mcore.c: Remove unused prototype for pe_object_p.
8093 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
8094 functions that are not used when COFF_IMAGE_WITH_PE is
8096 (struct sh_opcode): Change type of 'flags' field to unsigned
8097 long so that it can hold the USESAS flag.
8099 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
8101 * elf-m10300.c (mn10300_elf_relax_section): Initialise
8104 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
8106 Remove unusued variables and code.
8107 (elf_backend_add_symbol_hook): Fix prototype.
8109 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
8112 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
8115 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
8117 Remove unusued variables and code.
8118 (elf_backend_add_symbol_hook): Fix prototype.
8120 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
8122 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
8123 to unused function parameter.
8125 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
8127 Use EMPTY_HOWTO to initialise empty howto slots.
8128 Remove unused variables.
8130 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
8132 2000-03-01 H.J. Lu <hjl@gnu.org>
8134 * aoutx.h (aout_link_input_section_std): Pass "true" to
8135 the undefined_symbol callback.
8136 (aout_link_input_section_ext): Likewise.
8137 * bout.c (get_value): Likewise.
8138 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
8139 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
8141 (alpha_relocate_section): Likewise.
8142 * coff-arm.c (coff_arm_relocate_section): Likewise.
8143 * coff-i960.c (coff_i960_relocate_section): Likewise.
8144 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
8145 * coff-mips.c (mips_relocate_section): Likewise.
8146 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
8147 * coff-sh.c (sh_relocate_section): Likewise.
8148 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
8149 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
8150 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
8151 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
8152 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
8153 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
8154 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
8155 * elf32-i370.c (i370_elf_relocate_section): Likewise.
8156 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
8157 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
8158 * elf32-sh.c (sh_elf_relocate_section): Likewise.
8159 * elf32-v850.c (v850_elf_relocate_section): Likewise.
8160 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
8161 * elflink.h (elf_link_output_extsym): Likewise.
8162 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
8163 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
8164 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
8166 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
8167 undefined_symbol callback when building shared library with
8168 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
8170 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
8171 * elf32-i386.c (elf_i386_relocate_section): Likewise.
8172 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
8173 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
8174 (elf32_mips_get_relocated_section_content): Likewise.
8175 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
8176 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
8177 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
8178 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
8180 2000-02-28 Nick Clifton <nickc@cygnus.com>
8182 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
8183 * Makefile.in: Regenerate.
8185 * configure.in: Add support for mips and sh pe vectors.
8186 * configure: regenerate.
8188 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
8191 * targets.c: Add mips and sh pe vectors.
8193 * libpei.h (coff_final_link_postscript): Only define if not
8196 * coffcode.h: Add support for WinCE magic numbers.
8198 * peigen.c (pe_print_reloc): Update comment and rearrange
8199 appending of newline character.
8201 * peicode.h: Add support for Image Library Format.
8202 (pe_ILF_vars): Structure containing data used by ILF code.
8203 (pe_ILF_make_a_section): New function. Create a section based
8205 (pe_ILF_make_a_reloc): New function. Create a reloc based on
8207 (pe_ILF_make_a_symbol): New function. Create a symbol based
8209 (pe_ILF_save_relocs): New function. Store the relocs created
8210 by pe_ILF_make_a_reloc in a section.
8211 (pe_ILF_build_a_bfd): New function. Create a BFD describing
8213 (pe_ILF_object_p): New function. Return a bfd_target pointer
8215 (pe_bfd_object_p): If an ILF object is detected call
8216 pe_ILF_object_p on it.
8218 * coff-arm.c: Add support for WinCE relocs which are different
8219 from normal ARM COFF relocs.
8220 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
8222 * coff-sh.c: Add support for sh-pe target.
8223 * pe-sh.c: New file. Support code for sh-pe target.
8224 * pei-sh.c: New file. Support code for sh-pe target.
8226 * pe-mips.c: New file. Support code for mips-pe target.
8227 * pei-mips.c: New file. Support code for mips-pe target.
8229 2000-02-27 Jakub Jelinek <jakub@redhat.com>
8231 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
8232 architecture if the object causing the bump is dynamic.
8233 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
8234 and also don't it for memory ordering.
8235 (sparc64_elf_write_relocs): Take src_rela out of the loop.
8237 2000-02-27 Ian Lance Taylor <ian@zembu.com>
8239 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
8240 calling bfd_get_section_size_before_reloc.
8241 (decode_line_info): Likewise.
8242 (_bfd_dwarf2_find_nearest_line): Likewise.
8244 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
8246 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
8247 name of the libtool directory.
8248 * Makefile.in: Rebuild.
8250 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
8252 * som.c (SOM_HOWTO): Define.
8253 (som_hppa_howto_table): Use it.
8255 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
8257 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
8259 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
8261 2000-02-24 Catherine Moore <clm@cygnus.com>
8263 * som.c (som_misc_symbol_info): Add field
8265 (som_bfd_derive_misc_symbol_info): Initialize
8267 (som_build_and_write_symbol_table): Keep track
8268 of secondary_def field.
8269 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
8270 if secondary_def field is set.
8271 (som_bfd_ar_write_symbol_stuff): Initialize
8274 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
8276 * dwarf2.c (read_address): Read 16-bits addresses.
8277 (parse_comp_unit): Accept addr_size == 2.
8279 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
8281 * bfd-in.h: Update copyright date.
8283 2000-02-23 Linas Vepstas <linas@linas.org>
8285 * cpu-i370.c: New file.
8286 * elf32-i370.c: New file.
8287 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
8288 (bfd_i370_arch): New.
8289 (bfd_archures_list): Add bfd_i370_arch.
8290 * elf.c (prep_headers): Add bfd_arch_i370.
8291 * Makefile.am: Add support for IBM 370 elf.
8292 * config.bfd: Likewise.
8293 * configure.in: Likewise.
8294 * libbfd.h (bfd_reloc_code_real_names): Likewise.
8295 * reloc.c (bfd_reloc_code_type): Likewise.
8296 * targets.c: Likewise.
8298 * Makefile.in: Regenerate.
8299 * configure: Regenerate.
8300 * bfd-in2.h: Regenerate.
8302 2000-02-22 Ian Lance Taylor <ian@zembu.com>
8304 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
8305 invalid relocation types, and change them to R_386_NONE.
8307 2000-02-22 H.J. Lu <hjl@gnu.org>
8309 * elflink.h (elf_link_add_object_symbols): If a version symbol is
8310 not defined, don't add a second ELF_VER_CHR.
8312 * elflink.h (elf_bfd_final_link): Call output_extsym for global
8313 symbols converted to local symbols even when stripping all
8315 (elf_link_output_extsym): Process global symbols converted to
8316 local symbols even if they are being stripped.
8318 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
8320 * archures.c (bfd_octets_per_byte): Return unsigned int.
8321 (bfd_arch_mach_octets_per_byte): Ditto.
8322 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
8324 * section.c (bfd_get_section_size_before_reloc): Quell signed
8325 vs. unsigned comparison warning.
8326 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
8327 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
8328 change. What was I thinking?
8329 * bfd-in2.h: Regenerate.
8331 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
8332 (elf_gc_sections): Same here.
8333 (elf_gc_common_finalize_got_offsets): And here.
8335 2000-02-21 Ian Lance Taylor <ian@zembu.com>
8337 ELF HPPA doesn't work at present; remove it until it does.
8338 * config.bfd: Comment out setting targ_defvec to
8340 * Makefile.am: Rebuild dependencies.
8341 (BFD32_BACKENDS): Remove elf32-hppa.lo.
8342 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
8343 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
8344 * Makefile.in: Rebuild.
8345 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
8347 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8349 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
8350 is no bfd_free(). Revert bfd_free part of previous change.
8352 2000-02-18 Geoff Keating <geoffk@cygnus.com>
8354 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
8356 (coff_compute_section_file_positions): Use bfd_free to pair
8358 (coff_write_object_contents): Likewise.
8360 * coff-rs6000.c (xcoff_howto_table_16): New variable.
8361 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
8363 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
8365 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
8366 (xcoff_ar_file_hdr_big): New structure.
8367 (SIZEOF_AR_FILE_HDR_BIG): New macro.
8368 (xcoff_ar_hdr_big): New structure.
8369 (SIZEOF_AR_HDR_BIG): New macro.
8370 (xcoff_big_format_p): New macro.
8371 (xcoff_ardata_big): New macro.
8372 (arch_xhdr_big): New macro.
8373 (xcoff_slurp_armap): Handle large archives.
8374 (xcoff_archive_p): Detect large archives.
8375 (xcoff_read_ar_hdr): Handle large archives.
8376 (xcoff_openr_next_archived_file): Handle large archives.
8377 (xcoff_generic_stat_arch_elt): Handle large archives.
8378 (xcoff_write_armap_old): Rename from xcoff_write_armap.
8379 (xcoff_write_armap_big): New function.
8380 (xcoff_write_armap): New function, dispatch to _old or _big.
8381 (xcoff_write_archive_contents_old): Rename from
8382 xcoff_write_archive_contents.
8383 (xcoff_write_archive_contents_big): New function.
8384 (xcoff_write_archive_contents): New function, dispatch to _old or
8387 2000-02-18 Richard Henderson <rth@cygnus.com>
8389 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
8390 and hide_symbol members.
8391 (elf_link_hash_copy_indirect): Remove.
8392 (elf_link_hash_hide_symbol): Remove.
8393 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
8394 and elf_backend_hide_symbol.
8395 (_bfd_elf_link_hash_copy_indirect): Declare.
8396 (_bfd_elf_link_hash_hide_symbol): Declare.
8397 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
8398 (_bfd_elf_link_hash_hide_symbol): Likewise.
8399 (_bfd_elf_link_hash_table_init): Don't init killed members.
8400 * elflink.h (elf_link_add_object_symbols): Use the bed function
8401 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
8402 (elf_link_assign_sym_version): Likewise.
8403 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
8404 (elf_backend_hide_symbol): Likewise.
8405 (elfNN_bed): Update for new members.
8407 2000-02-17 Kevin Buettner <kevinb@redhat.com>
8409 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
8410 STACK_END_ADDR): Define for new core file format.
8411 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
8412 for handling the vagaries of the various core file structures used
8413 by AIX over the years.
8414 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
8415 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
8416 core_dumpx structure.
8418 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
8420 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
8421 (bfd_mach_sh3_dsp): Likewise.
8422 (bfd_mach_sh4): Reinstate.
8423 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
8424 * bfd-in2.h: Regenerate.
8425 * coff-sh.c (struct sh_opcode): flags is no longer short.
8426 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
8427 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
8428 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
8429 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
8430 (sh_opcodes): No longer const.
8431 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
8432 (sh_insn_uses_reg): Check for USESAS and USESR8.
8433 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
8434 (_bfd_sh_align_load_span): Return early for SH4.
8435 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
8436 Take into account that field b of a parallel processing insn
8437 could be mistaken for a separate insn.
8438 * cpu-sh.c (arch_info_struct): New array elements for
8439 sh2, sh-dsp and sh3-dsp.
8440 Reinstate element for sh4.
8441 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
8442 (SH4_NEXT): Reinstate.
8443 (SH3_NEXT, SH3E_NEXT): Adjust.
8444 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
8445 * elf32-sh.c (sh_elf_set_private_flags): New function.
8446 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
8447 (sh_elf_merge_private_data): New function.
8448 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
8449 (bfd_elf32_bfd_copy_private_bfd_data): Define.
8450 (bfd_elf32_bfd_merge_private_bfd_data): Change to
8451 sh_elf_merge_private_data.
8453 2000-02-13 Richard Henderson <rth@cygnus.com>
8455 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
8456 hide_symbol members.
8457 (elf_link_hash_copy_indirect): New.
8458 (elf_link_hash_hide_symbol): New.
8459 * elflink.h (elf_link_add_object_symbols): Break out copy from
8460 indirect new new symbol to elf.c.
8461 (elf_link_assign_sym_version): Break out privatization of
8462 non-exported symbol to elf.c.
8463 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
8464 (_bfd_elf_link_hash_hide_symbol): New.
8465 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
8467 2000-02-13 Ian Lance Taylor <ian@zembu.com>
8469 * section.c (_bfd_strip_section_from_output): Add info parameter.
8470 If it passed as non-NULL, use it to check whether any input BFD
8471 has an input section which uses this output section. Change all
8473 * bfd-in2.h: Rebuild.
8475 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
8476 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
8478 * bfd-in2.h: Rebuild.
8480 2000-02-10 Timothy Wall <twall@cygnus.com>
8482 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
8483 allow final modifications of swapped-in symbol.
8484 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
8485 * coffcode.h (coff_write_relocs): Use macro
8486 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
8487 symbol index should be set to -1.
8489 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
8491 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
8492 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
8493 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
8494 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
8495 sh_insns_uses_or_sets_freg): New functions.
8496 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
8497 * (sh_insns_conflict): Use new functions and new macros to
8498 detect conflicts when two instructions both set same integer registers,
8499 both set same fp register, and both set special register.
8501 2000-02-09 Timothy Wall <twall@cygnus.com>
8503 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
8504 swapping in sections, so that the swapping routines have access to
8507 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
8509 * coff-go32.c: Update comment. Update copyright.
8511 2000-01-27 Thomas de Lellis <tdel@windriver.com>
8513 * syms.c (bfd_decode_symclass)
8514 Two new class characters were added - 'V' and 'v'. The
8515 meaning of 'W' is now restricted to just weak non-object
8516 symbols. This allows differentiation between, for example,
8517 weak functions vs weak objects. nm for example now dumps:
8519 'w' = weak unresolved
8520 'V' = weak global object
8521 'v' = weak unresolved object
8523 (bfd_is_undefined_symclass): New function. Return true if the
8524 given symbol class represents and undefined/unresolved symbol.
8526 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
8529 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
8531 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
8532 STT_ARM_16BIT flag set, but it is not attached to a data object
8533 return STT_ARM_16BIT so that it will be treated as code by the
8536 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
8538 * coff-i386.c (i3coff_object_p): Remove prototype.
8541 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
8542 to name. Update copyright.
8544 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
8545 assignment to avoid warning. Update copyright.
8547 2000-01-24 Robert Lipe (robertl@sco.com)
8549 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
8550 instead of using GNU C extension.
8552 2000-01-21 Nick Clifton <nickc@cygnus.com>
8554 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
8555 amount from a bfd_in_memory structure.
8556 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
8559 2000-01-14 Nick Clifton <nickc@cygnus.com>
8561 * linker.c (default_indirect_link_order): oops - fix incorrectly
8562 applied patch from Tim Wall.
8564 2000-01-13 Timothy Wall (twall@tiac.net>
8566 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
8567 = scnhsz, filhsz, relsz, aoutsz, etc)
8569 * coffswap.h: Ditto.
8571 2000-01-13 Nick Clifton <nickc@cygnus.com>
8573 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
8574 interwork thumb to arm stub.
8576 2000-01-13 Timothy Wall (twall@tiac.net>
8578 * archures.c (bfd_octets_per_byte): New function: Return
8580 (bfd_arch_mach_octets_per_byte): New function: Return target
8583 * section.c: Distinguish between octets and bytes for usage of
8584 _cooked_size, _raw_size, and output_offset. Clarify
8585 description of bfd_set_section_contents.
8587 * bfd-in2.h: Regenerate.
8589 * coffgen.c: Indicate that the offset parameter is in bytes, not
8592 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
8593 where appropriate to get the octet offset when calling
8594 bfd_set_section_contents.
8595 (bfd_coff_reloc_link_order): Ditto.
8597 * linker.c (bfd_generic_reloc_link_order): Ditto.
8598 (_bfd_default_link_order): Ditto.
8600 * reloc.c (bfd_perform_relocation): Distinguish between octets
8601 and bytes. Use octets when indexing into octet data; use bytes
8602 when calculating target addresses.
8603 (bfd_install_relocation): Ditto.
8605 * srec.c (srec_write_section): Ditto.
8607 2000-01-13 Nick Clifton <nickc@cygnus.com>
8609 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
8610 3 to 2. This allows 4 byte sized sections, which is necessary for
8611 dlltool to build functioning DLLs.
8613 2000-01-10 Philip Blundell <pb@futuretv.com>
8615 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
8616 (arm*-*-conix*): New target.
8618 2000-01-10 Egor Duda <deo@logos-m.ru>
8620 * config.bfd: Include elf32_i386 vector to target list for cygwin
8623 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
8624 * configure.in: Test for structure win32_pstatus_t in
8626 * configure: Regenerate.
8628 * elf.c (elfcore_grok_win32pstatus): New function: process
8629 win32_pstatus_t notes in elf core file.
8630 (elfcore_grok_note): Detect win32_pstatus notes.
8632 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
8634 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
8636 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
8637 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
8639 For older changes see ChangeLog-9899
8645 version-control: never