1 2002-07-16 Alan Modra <amodra@bigpond.net.au>
3 * elflink.h (elf_link_input_bfd): Don't call reloc_emitter when
4 reloc section size is zero. Correct reloc output location.
6 2002-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
8 * elf-hppa.h (elf_hppa_reloc_final_type): Use R_PARISC_PCREL16F as
9 the final type for the e_fsel selector when generating PA2.0W code.
10 (elf_hppa_relocate_insn): Provide support for PA2.0W 16-bit format 1
13 2002-07-14 H.J. Lu <hjl@gnu.org>
15 * elflink.h (elf_link_assign_sym_version): Hide the default
16 definition if there is a hidden versioned definition.
18 2002-07-12 Hans-Peter Nilsson <hp@axis.com>
20 * elf32-cris.c (cris_elf_relocate_section): Drop nonsensical
21 dynamic reference test in assertion when initializing GOT with
22 static contents. Just assert that there are either no dynamic
23 sections, the symbol is defined in the regular objects or that the
24 symbol is undef weak. Tweak comment.
25 (elf_cris_finish_dynamic_symbol): Emit .got reloc for a program
26 only if the symbol isn't defined in the program and isn't undef
28 (elf_cris_adjust_dynamic_symbol): Simplify condition for getting
29 rid of PLT entry: only do it if the symbol isn't defined in a DSO.
30 When doing so, clear ELF_LINK_HASH_NEEDS_PLT. Tweak comments.
31 (elf_cris_discard_excess_program_dynamics): Don't consider
32 ELF_LINK_HASH_REF_DYNAMIC when omitting .got runtime relocs.
34 2002-07-11 Alan Modra <amodra@bigpond.net.au>
36 * elf32-i386.c (elf_i386_relocate_section): Don't complain about
37 unresolved debugging relocs in dynamic applications.
38 * elf32-s390.c (elf_s390_relocate_section): Likewise.
39 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
40 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
41 * elf64-s390.c (elf_s390_relocate_section): Likewise.
42 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
43 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
45 2002-07-10 Alan Modra <amodra@bigpond.net.au>
47 * elf64-ppc.c (ONES): Define.
48 (ppc64_elf_howto_table): Use ONES here to avoid warnings. Fill in
49 missing src_mask fields. Tweak R_PPC64_NONE, R_PPC64_COPY. Fill
50 in missing dst_mask fields on R_PPC64_PLT32, R_PPC64_PLTREL32.
52 * elf64-ppc.c (ppc64_elf_get_symbol_info): Delete.
53 (ppc64_elf_set_private_flags): Delete.
54 (ppc64_elf_section_from_shdr): Delete.
55 (ppc64_elf_merge_private_bfd_data): Remove flag checking/merging code.
56 (ppc64_elf_fake_sections): Delete.
57 (bfd_elf64_bfd_set_private_flags): Don't define.
58 (bfd_elf64_get_symbol_info): Likewise.
59 (elf_backend_section_from_shdr): Likewise.
60 (elf_backend_fake_sections): Likewise.
62 2002-07-10 Marco Walther <Marco.Walther@sun.com>
64 * elf.c: (assign_section_numbers) Set sh_entsize for .stab only
66 * elf64-sparc.c: (sparc64_elf_fake_sections): New function.
67 (elf_backend_fake_sections): Define.
69 2002-07-10 Alan Modra <amodra@bigpond.net.au>
71 * merge.c (_bfd_merge_section): Remove redundant output_section check.
73 (_bfd_merge_sections): Don't set SEC_EXCLUDE on unused sections.
75 2002-07-09 Hans-Peter Nilsson <hp@axis.com>
77 * elf32-cris.c (cris_elf_relocate_section): Move sanity-check for
78 NULL sym_hashes to just before use.
79 <case R_CRIS_32_GOTREL>: In test for local symbol, accept also
80 symbol with non-default visibility.
81 <case R_CRIS_32_GOTREL, case R_CRIS_32_PLT_GOTREL>: Ditto.
82 <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
84 (cris_elf_gc_sweep_hook): Only decrease h->plt.refcount for
85 symbol with non-default visibility.
86 (cris_elf_check_relocs): At tests for local symbol before
87 increasing h->plt.refcount, also check for non-default
88 visibility. Ditto when checking for local symbol to eliminate
89 pc-relative runtime relocs.
91 2002-07-08 Alan Modra <amodra@bigpond.net.au>
94 (IS_SOLARIS_PT_INTERP): Add p_paddr and p_memsz checks.
95 (INCLUDE_SECTION_IN_SEGMENT): Remove IS_SOLARIS_PT_INTERP.
96 (copy_private_bfd_data): Set p_vaddr on broken Solaris PT_INTERP
99 2002-07-07 Mark Mitchell <mark@codesourcery.com>
100 Alan Modra <amodra@bigpond.net.au>
102 * cofflink.c (_bfd_coff_final_link): On PE COFF systems, take into
103 account the impact of relocation count overflow when computing
105 * coffcode.h (coff_write_relocs): Use obj_pe when deciding whether
106 or not to apply the PE COFF reloc overflow handling. Fix a
107 fencepost error in deciding whether or not to use that technique.
109 2002-07-07 Alan Modra <amodra@bigpond.net.au>
111 * elf-bfd.h (struct elf_reloc_cookie): Remove locsym_shndx,
112 change type of locsyms.
113 (bfd_elf_get_elf_syms): Declare.
114 * elf.c (bfd_elf_get_elf_syms): New function.
115 (group_signature): Use bfd_elf_get_elf_syms.
116 (bfd_section_from_r_symndx): Likewise.
117 * elfcode.h (elf_slurp_symbol_table): Likewise.
118 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
119 (elf_link_add_object_symbols): Likewise. Reorganise to increase
120 locality of various data structures. Properly free internal relocs.
121 (elf_bfd_final_link): Properly free internal relocs.
122 (elf_link_check_versioned_symbol): Use bfd_elf_get_elf_syms.
123 (elf_link_input_bfd): Likewise.
124 (elf_gc_mark): Likewise. Properly free internal relocs.
125 (elf_gc_sweep): Properly free internal relocs.
126 (elf_reloc_symbol_deleted_p): No need to swap syms in.
127 (elf_bfd_discard_info): Use bfd_elf_get_elf_syms. Properly free
129 * elf-m10200.c (mn10200_elf_relax_section): Use bfd_elf_get_elf_syms.
130 Properly free possibly cached info.
131 (mn10200_elf_relax_delete_bytes): Remove symbol swapping code.
132 (mn10200_elf_symbol_address_p): Pass in internal syms. Remove
133 symbol swapping code.
134 (mn10200_elf_get_relocated_section_contents): Use bfd_elf_get_elf_syms.
135 Properly free possibly cached info.
136 * elf-m10300.c (mn10300_elf_relax_section): As above for elf-m10200.c.
137 (mn10300_elf_relax_delete_bytes): Likewise.
138 (mn10300_elf_symbol_address_p): Likewise.
139 (mn10300_elf_get_relocated_section_contents): Likewise.
140 * elf32-h8300.c (elf32_h8_relax_section): As above for elf-m10200.c.
141 (elf32_h8_relax_delete_bytes): Likewise.
142 (elf32_h8_symbol_address_p): Likewise.
143 (elf32_h8_get_relocated_section_contents): Likewise.
144 * elf32-m32r.c (m32r_elf_relax_section): As above for elf-m10200.c.
145 (m32r_elf_relax_delete_bytes): Likewise.
146 (m32r_elf_get_relocated_section_contents): Likewise.
147 * elf32-sh.c (sh_elf_reloc_loop): Free section contents using
148 elf_section_data to determine whether cached.
149 (sh_elf_relax_section): As above for elf-m10200.c.
150 (sh_elf_relax_delete_bytes): Likewise.
151 (sh_elf_get_relocated_section_contents): Likewise.
152 * elf32-xstormy16.c (xstormy16_elf_relax_section): As above.
153 * elf64-alpha.c (elf64_alpha_relax_section): As above. Also delay
154 reading of local syms.
155 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
156 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): As above.
157 * elfxx-ia64.c (elfNN_ia64_relax_section): As above.
158 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Properly free internal
160 * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Properly
161 free internal relocs and section contents. Don't read symbols.
162 * elf32-hppa.c (get_local_syms): Use bfd_elf_get_elf_syms.
163 (elf32_hppa_size_stubs): Don't free local syms.
164 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Delay
165 reading of local syms. Use bfd_elf_get_elf_syms. Properly free
166 possibly cached info.
167 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
168 * elf64-hppa.c (elf64_hppa_check_relocs): Use bfd_elf_get_elf_syms.
169 * elf64-ppc.c (struct ppc_link_hash_table): Delete bfd_count and
171 (get_local_syms): Delete function.
172 (edit_opd): Use bfd_elf_get_elf_syms. Free on error exit. Cache
174 (ppc64_elf_size_stubs): Use bfd_elf_get_elf_syms. Free/cache on exit.
176 2002-07-05 Jim Wilson <wilson@redhat.com>
178 * syms.c (decode_section_type): New.
179 (bfd_decode_symclass): Call decode_section_type.
181 2002-07-04 Jakub Jelinek <jakub@redhat.com>
183 * merge.c (_bfd_merged_section_offset): Avoid accessing byte before
184 section content start.
185 Reported by Michael Schumacher <mike@hightec-rt.com>.
187 2002-07-04 Alan Modra <amodra@bigpond.net.au>
189 * section.c (_bfd_strip_section_from_output): Remove unnecessary
190 link order code. Don't actually remove the output section here;
191 Just set a flag for the linker to do so.
192 * elflink.c (_bfd_elf_link_renumber_dynsyms): Test for removed
193 sections when setting up output section dynsyms.
195 2002-07-04 Alan Modra <amodra@bigpond.net.au>
197 * elflink.h (elf_link_add_object_symbols): Revert 1999-09-02 hpux
199 * elf.c (bfd_section_from_shdr): Work around broken hpux shared
202 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
204 * elf64-s390.c (create_got_section): Set .got section alignment to
206 (elf_s390_check_relocs): Set .rela.dyn section alignment to 8 bytes.
208 2002-07-02 Alan Modra <amodra@bigpond.net.au>
210 * elf.c (_bfd_elf_reloc_type_class): Fix comment grammar.
212 2002-07-01 Matt Thomas <matt@3am-software.com>
214 * elf32-vax.c (elf32_vax_print_private_bfd_data): Change EF_*
217 2002-07-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
219 * elfxx-mips.c (ABI_64_P): Fix comment.
220 (MIPS_ELF_OPTIONS_SECTION_NAME,MIPS_ELF_STUB_SECTION_NAME): Use the
221 new section names for N64 ABI.
222 (mips_elf_output_extsym): No special _gp_disp handling for NewABI.
223 (mips_elf_calculate_relocation): Code formatting.
224 (mips_elf_create_dynamic_relocation): Likewise.
225 (_bfd_mips_elf_fake_sections): IRIX6 needs this hack, too.
226 (_bfd_mips_elf_size_dynamic_sections): Handle GOT_PAGE for any NewABI.
227 (_bfd_mips_elf_relocate_section): No special handling for R_MIPS_64
229 (_bfd_mips_elf_finish_dynamic_symbol): No special _gp_disp handling
231 (_bfd_mips_elf_modify_segment_map): Handle any N64 ABI.
232 (_bfd_mips_elf_gc_sweep_hook): NewABI GOT relocs should be handled
235 2002-07-01 Andreas Schwab <schwab@suse.de>
237 * elf64-x86-64.c (elf64_x86_64_relocate_section): Only convert
238 R_X86_64_64 to R_X86_64_RELATIVE.
240 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
242 * vaxbsd.c: New BFD backend for VAX BSD and Ultrix.
243 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add new backend.
245 * config.bfd (vax-*-bsd* | vax-*-ultrix*): Use vaxbsd_vec instead of
247 * configure.in (vaxbsd_vec): Add.
248 * targets.c (vaxbsd_vec): Add.
249 * Makefile.in: Rebuild.
250 * configure: Rebuild.
251 * po/SRC-POTFILES.in: Rebuild.
253 2002-07-01 Alan Modra <amodra@bigpond.net.au>
255 * elflink.h (elf_gc_mark): Pass in the section whose relocs we are
256 examining to gc_mark_hook, rather than the bfd.
257 (elf_gc_sections): Adjust.
258 * elf-bfd.h (struct elf_backend_data <gc_mark_hook>): Likewise.
259 * elf-m10300.c (mn10300_elf_gc_mark_hook): Likewise.
260 * elf32-arm.h (elf32_arm_gc_mark_hook): Likewise.
261 * elf32-avr.c (elf32_avr_gc_mark_hook): Likewise.
262 * elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
263 * elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise.
264 * elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise.
265 * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
266 * elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
267 * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
268 * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
269 * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
270 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise.
271 * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
272 * elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
273 * elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
274 * elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise.
275 * elf32-v850.c (v850_elf_gc_mark_hook): Likewise.
276 * elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
277 * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise.
278 * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
279 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
280 * elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
281 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
282 * elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
283 * elfxx-mips.h (_bfd_mips_elf_gc_mark_hook): Likewise.
284 * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
285 * elf32-frv.c (elf32_frv_gc_mark_hook): Likewise. Also remove
286 redundant local sym tests.
287 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_entry.
288 (link_hash_newfunc): Init is_entry.
289 (ppc64_elf_copy_indirect_symbol): Copy is_entry.
290 (ppc64_elf_link_hash_table_create): Init all_local_syms.
291 (create_linkage_sections): Use bfd_make_section_anyway rather than
293 (ppc64_elf_mark_entry_syms): New function.
294 (ppc64_elf_check_relocs): Don't bother testing elf_bad_symtab. Set
295 up opd entry to function section map.
296 (ppc64_elf_gc_mark_hook): Special case opd section relocs, and
297 relocs that reference the opd section.
298 (edit_opd): New function.
299 (ppc64_elf_size_dynamic_sections): Call get_local_syms and edit_opd.
300 (ppc64_elf_setup_section_lists): Don't calculate htab->bfd_count here.
301 (get_local_syms): Do so here. Exit if we already have local syms.
302 Remove bogus comment imported from elf32-hppa.c. Don't attempt to
303 read local syms on non-ELF input.
304 (ppc64_elf_size_stubs): Call _bfd_elf64_link_read_relocs rather
305 than duplicating it's function here. Adjust free of internal
307 (ppc64_elf_relocate_section): Adjust local syms in opd section.
308 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Declare.
309 * elf32-hppa.c (elf32_hppa_size_stubs): Call
310 _bfd_elf32_link_read_relocs rather than duplicating it's function
311 here. Adjust free of internal relocs to suit.
313 2002-07-01 Andreas Jaeger <aj@suse.de>
315 * elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations
316 are not allowed in shared libs code, enforce -fPIC.
318 2002-06-29 Hans-Peter Nilsson <hp@bitrange.com>
320 * mmo.c (mmo_write_loc_chunk): Don't eliminate leading and
321 trailing zero-sequences when there's previous left-over data.
323 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>
325 * elf64-hppa.c (elf64_hppa_reloc_type_class): New function.
326 (elf64_hppa_finish_dynamic_sections): Check other_rel_sec, dlt_rel_sec
327 and opd_rel_sec in order for starting rela section. Check _raw_size.
328 (elf_backend_reloc_type_class): Define.
330 2002-06-27 Kevin Buettner <kevinb@redhat.com>
332 * dwarf2.c (decode_line_info): Handle older, non-standard, 64-bit
335 2002-06-27 Alan Modra <amodra@bigpond.net.au>
337 * cpu-powerpc.c: Comment on ordering of arch_info.
338 * elf32-ppc.c (ppc_elf_object_p): New function.
339 (elf_backend_object_p): Define.
340 * elf64-ppc.c (ppc64_elf_object_p): New function.
341 (elf_backend_object_p): Define.
343 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
345 * configure.in (vax-*-netbsd*): Set COREFILE to netbsd-core.lo.
346 * configure: Regenerate.
348 2002-06-25 Jason Eckhardt <jle@rice.edu>
350 * dwarf2.c (decode_line_info): Check unit->addr_size
351 to read in the proper number of prologue bytes.
353 2002-06-25 Nick Clifton <nickc@cambridge.redhat.com>
355 * config.bfd (powerpc-*-aix5*): Only create a selvecs for
356 aix5coff64_vec if 64-bit bfd support has been enabled.
357 (powerpc64-*-aix5*): Only define if 64-bit bfd support has
360 * targets.c (_bfd_target_vector[]): Only include
361 aix5coff64_vec if 64-bit bfd support has been enabled.
363 2002-06-25 Alan Modra <amodra@bigpond.net.au>
365 * elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy.
366 * elf32-hppa.c (hppa_add_stub): Likewise.
367 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
368 * elflink.h (elf_add_default_symbol): Fix comment typo.
369 (elf_add_default_symbol): Replace strcpy and strncpy with memcpy.
370 (elf_link_add_object_symbols): Likewise.
371 (elf_link_assign_sym_version): Likewise.
372 * hash.c (bfd_hash_lookup): Likewise.
373 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
374 * section.c (bfd_get_unique_section_name): Likewise.
375 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
376 * elf.c (_bfd_elf_make_section_from_phdr): Likewise.
377 (assign_section_numbers): Likewise.
378 (_bfd_elfcore_make_pseudosection): Likewise.
379 (elfcore_grok_lwpstatus): Likewise.
380 (elfcore_grok_win32pstatus): Likewise.
381 (elfcore_write_note): Constify input params. Use PTR instead of
382 void *. Include terminating NUL in namesz. Correct padding.
383 Support NULL "name" param. Use memcpy instead of strcpy.
384 (elfcore_write_prpsinfo): Constify input params.
385 (elfcore_write_prstatus): Likewise. Use PTR instead of void *.
386 (elfcore_write_lwpstatus): Likewise.
387 (elfcore_write_pstatus): Likewise.
388 (elfcore_write_prfpreg): Likewise.
389 (elfcore_write_prxfpreg): Likewise.
390 * elf-bfd.h (elfcore_write_note): Update declaration.
391 (elfcore_write_prpsinfo): Likewise.
392 (elfcore_write_prstatus): Likewise.
393 (elfcore_write_pstatus): Likewise.
394 (elfcore_write_prfpreg): Likewise.
395 (elfcore_write_prxfpreg): Likewise.
396 (elfcore_write_lwpstatus): Likewise.
398 2002-06-25 Jason Eckhardt <jle@rice.edu>
400 * ecoff.c (ecoff_set_symbol_info): Set BSF_FUNCTION for
401 symbols of type stProc and stStaticProc.
403 2002-06-25 Nick Clifton <nickc@redhat.com>
405 * ecoff.c: VArious formatting fixes.
407 2002-06-25 Alan Modra <amodra@bigpond.net.au>
409 * coff-rs6000.c (xcoff_generate_rtinit): Fix typo.
411 2002-06-25 Alan Modra <amodra@bigpond.net.au>
413 * aout-adobe.c: Don't compare against "true" or "false.
414 * aout-target.h: Likewise.
416 * archive.c: Likewise.
419 * coff-a29k.c: Likewise.
420 * coff-alpha.c: Likewise.
421 * coff-i386.c: Likewise.
422 * coff-mips.c: Likewise.
423 * coff-or32.c: Likewise.
424 * coff64-rs6000.c: Likewise.
425 * coffcode.h: Likewise.
426 * coffgen.c: Likewise.
427 * cpu-ns32k.c: Likewise.
429 * ecofflink.c: Likewise.
431 * elf32-arm.h: Likewise.
432 * elf32-cris.c: Likewise.
433 * elf32-d30v.c: Likewise.
434 * elf32-i386.c: Likewise.
435 * elf32-mcore.c: Likewise.
436 * elf32-ppc.c: Likewise.
437 * elf32-sh.c: Likewise.
438 * elf32-sh64.c: Likewise.
439 * elf32-v850.c: Likewise.
440 * elf64-alpha.c: Likewise.
441 * elf64-sh64.c: Likewise.
442 * elfcode.h: Likewise.
443 * elfcore.h: Likewise.
444 * elflink.h: Likewise.
445 * elfxx-mips.c: Likewise.
446 * i386os9k.c: Likewise.
448 * libbfd.c: Likewise.
449 * linker.c: Likewise.
451 * nlm32-alpha.c: Likewise.
452 * nlm32-i386.c: Likewise.
453 * nlm32-ppc.c: Likewise.
454 * nlm32-sparc.c: Likewise.
455 * nlmcode.h: Likewise.
458 * peicode.h: Likewise.
462 * tekhex.c: Likewise.
464 * xcofflink.c: Likewise.
465 * elf64-sparc.c: Edit comment to not use "== false".
467 * aoutf1.h: Don't use "? true : false".
469 * format.c: Likewise.
471 * linker.c: Likewise.
475 2002-06-23 H.J. Lu <hjl@gnu.org>
477 * elflink.h (elf_link_add_archive_symbols): For the default
478 version, check references with only one `@' first.
480 2002-06-23 John David Anglin <dave@hiauly1.hia.nrc.ca>
482 * elf64-hppa.c (elf64_hppa_mark_milli_and_exported_functions): New
484 (allocate_global_data_dlt): Don't add millicode symbols to dynamic
486 (allocate_global_data_opd, allocate_dynrel_entries): Likewise.
487 (elf64_hppa_size_dynamic_sections): Revise to use
488 elf64_hppa_mark_milli_and_exported_functions.
489 (elf64_hppa_finish_dynamic_symbol): Remove code to keep millicode
490 symbols out of dynamic symbol table.
492 2002-06-23 Alan Modra <amodra@bigpond.net.au>
494 * Makefile.in: Regenerate.
495 * libbfd.h: Regenerate.
496 * bfd-in2.h: Regenerate.
497 * configure: Regenerate.
498 * po/SRC-POTFILES.in: Regenerate.
500 * elflink.h: Comment typo fixes.
502 2002-06-23 H.J. Lu <hjl@gnu.org>
504 * elf-bfd.h (elf_link_loaded_list): New structure.
505 (elf_link_hash_table): Add "loaded".
506 * elf.c (_bfd_elf_link_hash_table_init): Initialize "loaded".
507 * elflink.h (elf_link_check_versioned_symbol): New function.
508 (elf_link_output_extsym): Call elf_link_check_versioned_symbol.
510 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
512 * elflink.h (size_dynamic_sections): If the target does not
513 support an ELF style hash table, return true, indicating that
514 nothing needed to be done, rather than false, indicating that the
515 section's size could not be computed.
517 2002-06-18 Dave Brolley <brolley@redhat.com>
519 From Catherine Moore, Michael Meissner, Dave Brolley:
520 * po/SRC-POTFILES.in: Add cpu-frv.c and elf32-frv.c
521 * targets.c: Support bfd_elf32_frv_vec.
522 * reloc.c: Add FRV relocs.
523 * configure.in: Add support for bfd-elf32-frv-vec.
524 * config.bfd (targ_cpu): Add support for frv-*-elf.
525 * archures.c: Add frv arch and machines.
526 * Makefile.am (ALL_MACHINES): Add cpu-frv.lo.
527 (ALL_MACHINES_CFILES): Add cpu-frv.c.
528 (BFD32_BACKENDS): Add elf32-frv.lo.
529 (BFD32_BACKENDS_CFILES): Add elf32-frv.c
530 (cpu-frv.lo): New target.
531 (elf32-frv.lo): New target.
532 * cpu-frv.c: New file.
533 * elf32-frv.c: New file.
535 2002-06-18 Jakub Jelinek <jakub@redhat.com>
537 * elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
539 Only read the first section header if e_shoff is non-zero.
540 Don't consider e_shstrndx if there are no sections.
542 2002-06-17 Tom Rix <trix@redhat.com>
544 * elf32-d10v.c (elf_d10v_howto_table): Change R_D10V_10_PCREL_R,
545 R_D10V_10_PCREL_L and R_D10V_18_PCREL to use
546 complain_overflow_bitfield.
548 2002-06-17 Alan Modra <amodra@bigpond.net.au>
550 * opncls.c (bfd_openr): Remove redundant bfd_set_error.
551 (bfd_fdopenr): Likewise.
552 (bfd_openstreamr): Likewise.
553 (bfd_openw): Likewise.
555 * targets.c: Sort target vecs.
556 (_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec,
557 bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec,
558 bfd_elf32_sh64nbsd_vec, bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec,
559 bfd_elf64_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec.
560 * configure.in: Sort target vecs. Add m88kmach3_vec.
561 * configure: Regenerate.
563 2002-06-16 Hans-Peter Nilsson <hp@bitrange.com>
565 * elf64-mmix.c (bpo_reloc_request_sort_fn): Use member
566 bpo_reloc_no to break sort order ties, not address of items.
568 2002-06-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
570 * elf-hppa.h (elf_hppa_final_link): Fix formatting in comment.
571 Skip excluded sections in determing __gp value.
572 (elf_hppa_final_link_relocate): Use the symbol's address in
573 R_PARISC_FPTR64 relocations that don't need an opd entry.
574 * elf64-hppa.c (allocate_dynrel_entries): Simplify code.
575 (elf64_hppa_finalize_dynreloc): Likewise.
576 (elf64_hppa_size_dynamic_sections): Move comments and fix typo.
577 (elf64_hppa_finish_dynamic_symbol): Break up assert.
579 2002-06-14 Sergey Grigoriev <serge@leopold.Physik.Uni-Augsburg.DE>
581 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
582 alignment for .bss, .data and .text sections so that sse and sse2
584 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
586 2002-06013 J"orn Rennecke <joern.rennecke@superh.com>
588 config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
591 2002-06-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
593 * elflink.h (elf_bfd_final_link): Improve error handling for missing
596 * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
597 for a symbol that has no output section.
598 (allocate_dynrel_entries): Correct comment.
599 (elf64_hppa_finalize_dynreloc): Likewise. Don't create an opd entry
601 (elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL.
602 (elf64_hppa_finalize_dlt): Likewise. Prevent segfault for symbols
603 with no section. Remove unnecessary parentheses.
605 2002-06-11 Tom Rix <trix@redhat.com>
607 * coffcode.h (coff_compute_section_file_positions): Add data
608 section to AIX loader alignment check.
610 * coff-rs6000.c (_bfd_xcoff_mkobject): Set default text section
611 alignment to 4 bytes.
612 (_bfd_xcoff_copy_private_bfd_data): Use text and data alignment
613 power accessor macro.
614 (do_shared_object_padding): Remove invalid assertion.
616 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
618 * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
619 for removed output sections.
621 2002-06-10 Geoffrey Keating <geoffk@redhat.com>
623 * merge.c (merge_strings): Use htab_create_alloc with calloc, not
625 * elf-strtab.c (_bfd_elf_strtab_finalize): Likewise.
627 2002-06-08 H.J. Lu <hjl@gnu.org>
629 * elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to
630 work around a long long bug in gcc 2.96 on mips.
632 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
634 * Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
635 (BFD32_BACKENDS_CFILES): Add vax1knetbsd.c.
636 Regenerate dependency lists.
637 * Makefile.in: Regenerate.
638 * config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add
639 vax1knetbsd_vec to targ_selvecs.
640 * configure.in: Add vax1knetbsd_vec.
641 * configure: Regenerate.
642 * targets.c (_bfd_target_vector): Add vax1knetbsd_vec.
643 * vax1knetbsd.c: New file.
644 * vaxnetbsd.c: Update copyright years.
645 (TARGET_PAGE_SIZE): Set to 0x1000.
646 (DEFAULT_MID): Set to M_VAX4K_NETBSD.
648 2002-06-08 Matt Thomas <matt@3am-software.com>
650 * libaout.h (enum machine_type): Add M_VAX4K_NETBSD.
652 2002-06-08 Alan Modra <amodra@bigpond.net.au>
654 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
656 2002-06-08 Alan Modra <amodra@bigpond.net.au>
658 * Makefile.am: Run "make dep-am".
659 * Makefile.in: Regenerate.
661 * armnetbsd.c: Replace CONST with const.
662 * corefile.c: Likewise.
663 * elf32-dlx.c: Likewise.
664 * elf64-mips.c: Likewise.
666 * ns32knetbsd.c: Likewise.
668 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
669 table is elf64-sparc.
671 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
673 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
674 Fix RELA addends to get not shifted in the result. Don't do special
675 handling of R_MIPS_64 for NewABI.
677 2002-06-07 Alan Modra <amodra@bigpond.net.au>
679 * aoutx.h (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
680 (NAME(aout,slurp_reloc_table)): Likewise.
681 * coff-mips.c (mips_relax_section): Use bfd_zalloc.
682 * coff-rs6000.c (xcoff_write_armap_big): Use bfd_zmalloc.
683 (xcoff_write_archive_contents_big): Likewise.
684 (xcoff_generate_rtinit): Likewise.
685 (xcoff_generate_rtinit): Likewise, and check error return.
686 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
687 * coffgen.c (coff_section_symbol): Use bfd_zalloc.
688 (coff_get_normalized_symtab): Likewise.
689 (coff_make_empty_symbol): Likewise.
690 (bfd_coff_set_symbol_class): Likewise.
691 * cofflink.c (coff_link_add_symbols): Likewise.
692 * ecoff.c (_bfd_ecoff_make_empty_symbol): Likewise.
693 * ecofflink.c (ecoff_write_shuffle): Use bfd_zmalloc.
694 (bfd_ecoff_write_accumulated_debug): Likewise.
695 * elf64-alpha.c (get_got_entry): Use bfd_zalloc.
696 * i386linux.c (bfd_i386linux_size_dynamic_sections): Likewise.
697 * i386lynx.c (NAME(lynx,slurp_reloc_table)): Use bfd_zmalloc.
698 * ieee.c (do_with_relocs): Use bfd_zalloc.
699 * m68klinux.c (bfd_m68klinux_size_dynamic_sections): Likewise.
700 * pdp11.c (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
701 (NAME(aout,slurp_reloc_table)): Likewise.
702 (NAME(aout,squirt_out_relocs)): Don't memset when zalloc'd.
703 * reloc16.c (bfd_coff_reloc16_relax_section): Use bfd_zmalloc.
704 * som.c (som_build_and_write_symbol_table): Likewise.
705 (som_slurp_string_table): Likewise.
706 (som_slurp_symbol_table): Likewise.
707 (som_bfd_ar_write_symbol_stuff): Likewise.
708 * sparclinux.c (bfd_sparclinux_size_dynamic_sections): Use bfd_zalloc.
709 * sunos.c (bfd_sunos_size_dynamic_sections): Likewise.
710 * tekhex.c (find_chunk): Likewise. Get rid of unused "sname".
711 * vms-gsd.c (_bfd_vms_slurp_gsd): Use bfd_zmalloc.
712 * xcofflink.c (xcoff_link_add_symbols): Use bfd_zalloc/bfd_zmalloc.
714 2002-06-07 Alan Modra <amodra@bigpond.net.au>
716 * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
718 (elf_group_name): Update.
719 (elf_group_id): Define.
720 (bfd_elf_set_group_contents): Declare.
721 * elf.c (elf_fake_sections): Qualify use of elf_group_name.
722 (set_group_contents): Rename to bfd_elf_set_group_contents. Remove
723 ATTRIBUTE_UNUSED from failedptrarg. If elf_group_id is set, use
724 that sym for the signature.
725 (_bfd_elf_compute_section_file_positions): Don't call
726 set_group_contents for "ld -r" case.
727 (swap_out_syms): Use bfd_zalloc.
728 * elflink.h (elf_link_add_archive_symbols): Likewise.
729 (NAME(bfd_elf,size_dynamic_sections)): Likewise.
730 (elf_bfd_final_link): Call bfd_elf_set_group_contents.
732 2002-06-07 Alan Modra <amodra@bigpond.net.au>
734 * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
735 relocs in opd for non-shared too.
737 2002-06-06 Jeffrey Law <law@redhat.com
739 * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
742 2002-06-06 Nick Clifton <nickc@cambridge.redhat.com>
744 * merge.c: Include libiberty.h.
745 * elf-strtab.c: Include libiberty.h.
747 2002-06-06 Elias Athanasopoulos <eathan@otenet.gr>
749 * peXXigen.c (pe_print_idata): Remove unused variable.
751 2002-06-06 David Heine <dlheine@tensilica.com>
753 * elf.c (assign_file_positions_for_segments): Remove unallocated
754 sections from the section to segment mapping for PT_LOAD segments.
755 Update comment about empty loadable segments.
757 2002-06-06 Richard Sandiford <rsandifo@redhat.com>
759 * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
760 is within the .stabstr section.
762 2002-06-06 Alan Modra <amodra@bigpond.net.au>
764 * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
765 are "const PTR", not "const PTR *".
766 (bfd_elf32_swap_symbol_in): Likewise.
767 (bfd_elf64_swap_symbol_in): Likewise.
768 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
769 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
770 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
771 (elf_link_add_object_symbols): Likewise.
772 (elf_link_record_local_dynamic_symbol): Likewise.
773 (elf_link_input_bfd): Likewise.
774 (elf_gc_mark): Likewise.
775 (elf_reloc_symbol_deleted_p): Likewise.
776 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
777 (mn10200_elf_relax_delete_bytes): Likewise.
778 (mn10200_elf_symbol_address_p): Likewise.
779 (mn10200_elf_get_relocated_section_contents): Likewise.
780 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
781 (mn10300_elf_relax_section): Likewise.
782 (mn10300_elf_relax_delete_bytes): Likewise.
783 (mn10300_elf_symbol_address_p): Likewise.
784 (mn10300_elf_get_relocated_section_contents): Likewise.
785 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
786 (elf32_h8_relax_delete_bytes): Likewise.
787 (elf32_h8_symbol_address_p): Likewise.
788 (elf32_h8_get_relocated_section_contents): Likewise.
789 * elf32-hppa.c (get_local_syms): Likewise.
790 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
791 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
792 * elf32-sh.c (sh_elf_relax_section): Likewise.
793 (sh_elf_relax_delete_bytes): Likewise.
794 (sh_elf_get_relocated_section_contents): Likewise.
795 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
796 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
797 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
798 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
799 * elf64-ppc.c (get_local_syms): Likewise.
800 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
801 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
803 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
805 * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
807 2002-06-05 Alan Modra <amodra@bigpond.net.au>
809 * elf.c (group_signature): Swap in the whole symbol, and handle
810 extracting section symbol names.
811 (setup_group): Add comment.
812 (set_group_contents): When called from objcopy or ld, arrange for
813 section contents to be written. Write group member output section
814 indices to allow objcopy to reorganize sections.
815 (_bfd_elf_copy_private_section_data): Copy group info.
817 * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
818 (bfd_elf32_swap_symbol_in): Update prototype.
819 (bfd_elf64_swap_symbol_in): Likewise.
820 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
821 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
822 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
823 (elf_link_add_object_symbols): Likewise.
824 (elf_link_record_local_dynamic_symbol): Likewise.
825 (elf_link_input_bfd): Likewise.
826 (elf_gc_mark): Likewise.
827 (elf_reloc_symbol_deleted_p): Likewise.
828 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
829 (mn10200_elf_relax_delete_bytes): Likewise.
830 (mn10200_elf_symbol_address_p): Likewise.
831 (mn10200_elf_get_relocated_section_contents): Likewise.
832 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
833 (mn10300_elf_relax_section): Likewise.
834 (mn10300_elf_relax_delete_bytes): Likewise.
835 (mn10300_elf_symbol_address_p): Likewise.
836 (mn10300_elf_get_relocated_section_contents): Likewise.
837 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
838 (elf32_h8_relax_delete_bytes): Likewise.
839 (elf32_h8_symbol_address_p): Likewise.
840 (elf32_h8_get_relocated_section_contents): Likewise.
841 * elf32-hppa.c (get_local_syms): Likewise.
842 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
843 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
844 * elf32-sh.c (sh_elf_relax_section): Likewise.
845 (sh_elf_relax_delete_bytes): Likewise.
846 (sh_elf_get_relocated_section_contents): Likewise.
847 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
848 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
849 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
850 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
851 * elf64-ppc.c (get_local_syms): Likewise.
852 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
853 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
854 * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
855 * elf64-alpha.c (alpha_elf_size_info): Likewise.
856 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
857 * elf64-mips.c (mips_elf64_size_info): Likewise.
858 * elf64-s390.c (s390_elf64_size_info): Likewise.
859 * elf64-sparc.c (sparc64_elf_size_info): Likewise.
861 2002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
863 * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
864 elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
865 elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
866 _bfd_mips_elf_ignore_discarded_relocs.
867 elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
869 2002-06-05 H.J. Lu <hjl@gnu.org>
871 * elfxx-mips.c (mips_elf_calculate_relocation): Call
872 _bfd_elf_rel_local_sym for STT_SECTION relocations against
873 the SEC_MERGE section.
875 2002-06-05 Alan Modra <amodra@bigpond.net.au>
877 * coff-alpha.c: Update copyright date.
878 * coff-mips.c: Likewise.
879 * xcoff-target.h: Likewise.
881 * bfd-in.h: Remove "taken from the source" comment.
882 * libbfd-in.h: Likewise.
883 * libcoff-in.h: Likewise.
884 * bfd-in2.h: Regenerate.
885 * libbfd.h: Regenerate.
886 * libcoff.h: Regenerate.
888 * elf.c (bfd_elf_discard_group): Return true.
889 * elf-bfd.h (bfd_elf_discard_group): Declare.
890 * bfd-in.h (bfd_elf_discard_group): Don't declare here.
891 * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
892 * bfd.c (bfd_discard_group): Define.
893 * targets.c (struct bfd_target): Add _bfd_discard_group.
894 (BFD_JUMP_TABLE_LINK): Here too.
895 * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
896 * aout-adobe.c (aout_32_bfd_discard_group): Define.
897 * aout-target.h (MY_bfd_discard_group): Define.
898 * aout-tic30.c (MY_bfd_discard_group): Define.
899 * binary.c (binary_bfd_discard_group): Define.
900 * bout.c (b_out_bfd_discard_group): Define.
901 * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
902 * coffcode.h (coff_bfd_discard_group): Define.
903 * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
904 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
905 * i386msdos.c (msdos_bfd_discard_group): Define.
906 * i386os9k.c (os9k_bfd_discard_group): Define.
907 * ieee.c (ieee_bfd_discard_group): Define.
908 * ihex.c (ihex_bfd_discard_group): Define.
909 * mmo.c (mmo_bfd_discard_group): Define.
910 * nlm-target.h (nlm_bfd_discard_group): Define.
911 * oasys.c (oasys_bfd_discard_group): Define.
912 * ppcboot.c (ppcboot_bfd_discard_group): Define.
913 * som.c (som_bfd_discard_group): Define.
914 * srec.c (srec_bfd_discard_group): Define.
915 * tekhex.c (tekhex_bfd_discard_group): Define.
916 * versados.c (versados_bfd_discard_group): Define.
917 * vms.c (vms_bfd_discard_group): Define.
918 * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
919 * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
920 (aix5coff64_vec): Likewise.
921 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
923 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
925 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
926 (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
927 (elf32-sh64-com.lo): New dependency list.
928 * Makefile.in: Regenerate.
929 * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
930 (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
932 * configure: Regenerate.
933 * elf32-sh64.c (sh64_address_in_cranges)
934 (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
935 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
936 (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
937 * elf32-sh64-com.c: ...here. New file.
939 2002-06-04 Alan Modra <amodra@bigpond.net.au>
941 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
942 ATTRIBUTE_UNUSED on used params.
943 * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
944 before calling bfd_section_from_elf_index on local syms.
945 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
947 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
949 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
950 (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
951 (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
952 (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
953 (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
954 * Makefile.in: Regenerate.
955 * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
956 (sh64-*-netbsd*): New targets.
957 * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
958 bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
959 * configure: Regenerate.
960 * elf32-sh64-nbsd.c: New file.
961 * elf64-sh64-nbsd.c: New file.
962 * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
963 bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
964 bfd_elf64_sh64lnbsd_vec.
966 2002-06-04 Alan Modra <amodra@bigpond.net.au>
968 * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
969 (bfd_section_from_shdr): Likewise. Set section name of group
970 sections from signature.
971 (group_signature): Split out from setup_group. Ensure symbol table
973 (bfd_elf_discard_group): New function.
974 (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
975 .gnu.linkonce* sections if they are members of a group.
976 (set_group_contents): Set GRP_COMDAT flag.
977 * section.c (bfd_discard_group): New function.
978 * bfd-in.h (bfd_elf_discard_group): Declare.
979 * bfd-in2.h: Regenerate.
980 * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
981 (elf_linkonce_p): Define.
983 2002-06-04 Alan Modra <amodra@bigpond.net.au>
985 * elf.c (bfd_section_from_shdr): Make "name" const.
986 * elf-bfd.h (elf_backend_section_from_shdr): Likewise.
987 * elf32-i370.c (i370_elf_section_from_shdr): Likewise.
988 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
989 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
990 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
991 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
992 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
993 * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
994 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
995 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
996 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
998 2002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1000 * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
1003 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1005 * elf32-arc.c: Fix formatting.
1006 * elf32-arm.h: Likewise.
1007 * elf32-cris.c: Likewise.
1008 * elf32-dlx.c: Likewise.
1009 * elf32-hppa.c: Likewise.
1010 * elf32-i386.c: Likewise.
1011 * elf32-i386qnx.c: Likewise.
1012 * elf32-or32.c: Likewise.
1013 * elf32-s390.c: Likewise.
1014 * elf32-sh64.c: Likewise.
1015 * elf32-vax.c: Likewise.
1016 * elf32-xstormy16.c: Likewise.
1017 * elf64-alpha.c: Likewise.
1018 * elf64-mmix.c: Likewise.
1019 * elf64-ppc.c: Likewise.
1020 * elf64-s390.c: Likewise.
1021 * elf64-sh64.c: Likewise.
1022 * elf64-x86-64.c: Likewise.
1024 2002-06-02 Richard Henderson <rth@redhat.com>
1026 * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
1027 null when there are no got entries for a symbol.
1028 (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
1029 uninitialized variable warning.
1031 2002-06-01 Richard Henderson <rth@redhat.com>
1033 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
1034 undefined symbols here.
1035 (elf64_alpha_relax_section): Do it here. Also test for not
1036 defined in the current module.
1037 (elf64_alpha_relocate_section_r): Split out of ...
1038 (elf64_alpha_relocate_section): ... here. Don't dereference
1039 NULL when looking up local got entries.
1041 2002-06-01 Richard Henderson <rth@redhat.com>
1043 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
1044 symbols from JSR relaxation.
1045 (elf64_alpha_size_plt_section_1): New.
1046 (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
1047 (elf64_alpha_size_rela_got_1): ... here.
1048 (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
1049 (elf64_alpha_size_rela_got_section): ... here.
1050 (elf64_alpha_size_plt_section): New.
1051 (elf64_alpha_relax_section): Call them.
1052 (elf64_alpha_size_got_sections): Remove output_bfd arg.
1053 (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
1055 2002-06-01 Richard Henderson <rth@redhat.com>
1057 * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
1058 (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
1059 in shared libraries. Fix DTPRELHI and TPRELHI value.
1060 (INSN_ADDQ, INSN_RDUNIQ): New.
1061 (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
1062 (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
1063 argument. Reject dynamic symbols. Use LITUSE symbolic constants.
1064 (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
1065 Handle GOTDTPREL and GOTTPREL relocations.
1066 (elf64_alpha_relax_gprelhilo): New.
1067 (elf64_alpha_relax_tls_get_addr): New.
1068 (elf64_alpha_relax_find_tls_segment): New.
1069 (elf64_alpha_relax_section): Handle TLS relocations.
1070 (ALPHA_ELF_LINK_HASH_TLS_IE): New.
1071 (elf64_alpha_check_relocs): Set it.
1073 2002-06-01 Richard Henderson <rth@redhat.com>
1075 * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
1077 * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
1078 check; don't suppress dynamic relocs for non-allocated sections.
1080 * elf64-alpha.c: Remove dead code.
1082 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1084 * bfd-in2.h: Regenerate.
1085 * libbfd.h: Regenerate.
1086 * po/SRC-POTFILES.in: Regenerate.
1088 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
1091 2002-05-31 Graeme Peterson <gp@qnx.com>
1093 * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
1094 (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
1096 * Makefile.in: Regenerate.
1097 * config.bfd: Add i[3456]86-*-nto-qnx* support.
1098 * configure.in: Add bfd_elf32_i386qnx_vec support.
1099 * configure: Regenerate.
1100 * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
1101 is_contained_by_filepos, and copy_private_bfd_data_p.
1102 * elf.c (assign_file_positions_for_segments): Call backend
1103 set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
1104 (IS_CONTAINED_BY_FILEPOS): Define.
1105 (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
1106 (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
1107 Fix non-K&R call to _bfd_error_handler.
1108 (_bfd_elf_copy_private_section_data): Use backend
1109 copy_private_bfd_data_p.
1110 * elf32-i386.c: Don't include elfxx-target.h when
1111 ELF32_I386_C_INCLUDED is defined.
1112 * elf32-i386qnx.c: New QNX elf backend file.
1113 * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
1114 elf_backend_is_contained_by_filepos, and
1115 elf_backend_do_copy_private_bfd_data.
1116 * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
1118 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1120 * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
1121 Move other similar defines to start of file.
1123 2002-05-30 Tom Rix <trix@redhat.com>
1125 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
1126 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
1128 2002-05-30 Richard Henderson <rth@redhat.com>
1130 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
1131 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
1132 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
1133 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
1134 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
1135 (struct alpha_elf_obj_tdata): Rename total_got_entries and
1136 n_local_got_entries to total_got_size and local_got_size.
1137 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
1138 (alpha_got_entry_size): New.
1139 (elf64_alpha_relax_with_lituse): Use it.
1140 (elf64_alpha_relax_without_lituse): Likewise.
1141 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
1142 (get_got_entry): New.
1143 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
1144 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
1145 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
1146 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
1147 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
1148 (elf64_alpha_calc_got_offsets): Likewise.
1149 (alpha_dynamic_entries_for_reloc): New.
1150 (elf64_alpha_calc_dynrel_sizes): Use it.
1151 (elf64_alpha_size_dynamic_sections): Likewise.
1152 (elf64_alpha_relocate_section): Handle TLS relocations.
1153 * reloc.c: Add Alpha TLS relocations.
1154 * bfd-in2.h, libbfd.h: Rebuild.
1156 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
1158 * peXXigen.c (pe_print_idata): Remove double printed
1159 import table lines; add Bound-To comment.
1161 2002-05-29 Matt Thomas <matt@3am-software.com>
1163 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
1164 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
1165 (elf32-vax.lo): New rule.
1166 * Makefile.in: Regenerate.
1167 * configure.in (bfd_elf32_vax_vec)
1168 (vaxnetbsd_vec): New vectors.
1169 * configure: Regenerate.
1170 * config.bfd (vax-*-netbsdelf*)
1172 (vax-*-netbsd*): New targets.
1173 * elf32-vax.c: New file.
1174 * reloc.c: Add VAX relocations.
1175 * bfd-in2.h: Regenerate.
1176 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
1178 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1180 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
1181 and bfd_elf32_bigarm_vec to targ_selvecs.
1183 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
1185 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
1186 with auto-imported symbols.
1188 2002-05-29 Adam Nemet <anemet@lnxw.com>
1190 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
1191 sections only record bfd.
1192 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
1193 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
1194 * bfd-in2.h: Regenerate.
1196 2002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1198 * syms.c (_bfd_stab_section_find_nearest_line): Move
1199 declaration and initialisation of saw_line and saw_func out of
1202 2002-05-29 Alan Modra <amodra@bigpond.net.au>
1204 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
1205 (bfd_elf64_get_symbol_info): Define.
1206 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
1208 2002-05-29 Andrey Volkov <avolkov@transas.com>
1210 * cpu-h8300.c: Make default h8300 machine first in machine list.
1212 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1214 * config.bfd: Added DLX configuraton.
1215 * Makefile.am: Added DLX configuraton.
1216 * configure.in: Added DLX configuraton.
1217 * archures.c: Add DLX architecure.
1218 * reloc.c: Add DLX relocs.
1219 * targets.c: Added DLX target vector.
1220 * configure: Regenerate.
1221 * Makefile.in: Regenreate.
1222 * bfd-in2.h: Regenreate.
1223 * elf32-dlx.c: New file: Support DLX target.
1224 * cpu-dlx.c: New file: Support DLX target.
1226 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1228 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
1230 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
1231 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
1232 strings to point inside function code sym string.
1233 (func_desc_adjust): Likewise.
1234 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
1236 2002-05-24 Michal Ludvig <mludvig@suse.cz>
1238 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
1239 (elf64_x86_64_grok_psinfo): Added.
1241 2002-05-24 TAMURA Kent <kent@netbsd.org>
1243 * config.bfd: Add a target for i386-netbsdpe.
1245 2002-05-24 Alan Modra <amodra@bigpond.net.au>
1247 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
1248 and is_func_descriptor.
1249 (func_desc_adjust): Hide function code sym in shared libs unless
1250 there is a matching exported function descriptor sym.
1252 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1254 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
1255 for symbols from SHF_TLS section.
1256 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
1257 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
1258 (map_sections_to_segments): Build PT_TLS segment if necessary.
1259 (assign_file_positions_for_segments): Likewise.
1260 (get_program_header_size): Account for PT_TLS segment.
1261 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
1262 SEC_THREAD_LOCAL sections to STT_TLS.
1263 * reloc.c: Add 386 and IA-64 TLS relocs.
1264 * section.c (SEC_THREAD_LOCAL): Define.
1265 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
1267 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
1268 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
1270 (struct elf_final_link_info): Add first_tls_sec.
1271 (elf_bfd_final_link): Set first_tls_sec.
1272 Compute elf_hash_table (info)->tls_segment.
1273 (elf_link_output_extsym): Handle STT_TLS symbols.
1274 (elf_link_input_bfd): Likewise.
1275 * syms.c (BSF_THREAD_LOCAL): Define.
1276 * bfd-in2.h: Rebuilt.
1277 * libbfd.h: Rebuilt.
1278 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
1279 elf_i386_mkobject, elf_i386_object_p): New functions.
1280 (elf_howto_table): Add TLS relocs.
1281 (elf_i386_reloc_type_lookup): Support TLS relocs.
1282 (elf_i386_info_to_howto_rel): Likewise.
1283 (struct elf_i386_link_hash_entry): Add tls_type.
1284 (struct elf_i386_obj_tdata): New.
1285 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
1287 (struct elf_i386_link_hash_table): Add tls_ldm_got.
1288 (link_hash_newfunc): Clear tls_type.
1289 (elf_i386_check_relocs): Support TLS relocs.
1290 (elf_i386_gc_sweep_hook): Likewise.
1291 (allocate_dynrelocs): Likewise.
1292 (elf_i386_size_dynamic_sections): Likewise.
1293 (elf_i386_relocate_section): Likewise.
1294 (elf_i386_finish_dynamic_symbol): Likewise.
1295 (bfd_elf32_mkobject, elf_backend_object_p): Define.
1296 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
1297 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
1298 want_tprel, want_dtpmod, want_dtprel.
1299 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
1300 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
1301 R_IA64_LTOFF_TPREL22.
1302 (elf_code_to_howto_index): Add TLS relocs.
1303 (elfNN_ia64_check_relocs): Support TLS relocs.
1304 (allocate_global_data_got): Account for TLS .got data.
1305 (allocate_dynrel_entries): Account for TLS dynamic relocations.
1306 (elfNN_ia64_install_value): Supprt TLS relocs.
1307 (set_got_entry): Support TLS relocs.
1308 (elfNN_ia64_relocate_section): Likewise.
1310 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1312 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
1313 BLX reloc round the relocation up rather than down.
1314 * coff-arm.c (coff_arm_relocate_section): Likewise.
1316 2002-05-21 H.J. Lu (hjl@gnu.org)
1318 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
1321 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1323 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
1324 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
1326 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1328 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
1330 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
1332 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1334 * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
1337 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1339 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
1341 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
1342 return with false on error.
1343 (elf_link_input_bfd): Check reloc_emitter return value.
1345 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1347 * config.bfd (armeb-*-netbsdelf*): New target.
1349 2002-05-20 Alan Modra <amodra@bigpond.net.au>
1351 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
1352 at the plt call stub.
1354 2002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1356 * cpu-mips.c (mips_compatible): Don't try to check machine
1359 2002-05-18 Tom Rix <trix@redhat.com>
1361 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
1363 2002-05-17 Alan Modra <amodra@bigpond.net.au>
1365 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
1366 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
1367 we've already warned about an undefined symbol. Report more
1368 detail on reloc errors.
1370 2002-05-17 Alan Modra <amodra@bigpond.net.au>
1372 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
1373 * configure.in: Invoke AM_INSTALL_LIBBFD.
1374 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
1375 (install_libbfd): .. New target.
1376 (uninstall_libbfd): Likewise.
1377 (install-bfdlibLTLIBRARIES): Likewise.
1378 (uninstall-bfdlibLTLIBRARIES): Likewise.
1380 (bfdincludedir): New.
1381 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
1382 * aclocal.m4: Regenerate.
1383 * configure: Regenerate.
1384 * Makefile.in: Regenerate.
1386 2002-05-17 Stuart Balfour <sbalfour@cisco.com>
1388 * hash.c (bfd_hash_lookup): Remove computation of len from inside
1391 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
1393 * config.bfd: Add targets for sh64-linux (little endian and
1396 2002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
1398 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
1399 is located in the same section as the import table. Instead
1400 check, and if necessary load the section containing the thunk.
1402 2002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
1404 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
1406 (xcoff64_core_file_matches_executable_p): Replace bfd_read
1409 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1411 * aix5ppc-core.c: Warning fixes.
1412 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
1413 * aout-target.h (MY_bfd_link_just_syms): Define.
1414 * aout-tic30.c (MY_bfd_link_just_syms): Define.
1415 * bfd.c (bfd_link_just_syms): Define.
1416 * binary.c (binary_bfd_link_just_syms): Define.
1417 * bout.c (b_out_bfd_link_just_syms): Define.
1418 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
1419 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
1420 * coffcode.h (coff_bfd_link_just_syms): Define.
1421 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
1422 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
1423 (_bfd_elf_link_just_syms): Declare.
1424 * elf.c (_bfd_elf_link_just_syms): New function.
1425 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
1426 sections haven't already been discarded by the linker.
1427 * elflink.h (elf_link_add_object_symbols): Likewise for stab
1428 sections and SEC_MERGE sections.
1429 (elf_bfd_discard_info): Similarly here.
1430 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
1431 * i386msdos.c (msdos_bfd_link_just_syms): Define.
1432 * i386os9k.c (os9k_bfd_link_just_syms): Define.
1433 * ieee.c (ieee_bfd_link_just_syms): Define.
1434 * ihex.c (ihex_bfd_link_just_syms): Define.
1435 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
1436 (_bfd_generic_link_just_syms): Declare.
1437 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
1438 * linker.c (_bfd_generic_link_just_syms): New function.
1439 * mmo.c (mmo_bfd_link_just_syms): Define.
1440 * nlm-target.h (nlm_bfd_link_just_syms): Define.
1441 * oasys.c (oasys_bfd_link_just_syms): Define.
1442 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
1443 * som.c (som_bfd_link_just_syms): Define.
1444 * srec.c (srec_bfd_link_just_syms): Define.
1445 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
1446 (BFD_JUMP_TABLE_LINK): And here.
1447 * tekhex.c (tekhex_bfd_link_just_syms): Define.
1448 * versados.c (versados_bfd_link_just_syms): Define.
1449 * vms.c (vms_bfd_link_just_syms): Define.
1450 * libbfd.h: Regenerate.
1451 * bfd-in2.h: Regenerate.
1453 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1455 * elf32-mips.c: Remove superfluous definitions copied from
1457 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
1458 SGIish vectors to check the special case.
1459 (mips_elf_hi16_reloc): Fix comment.
1460 (mips_elf_got16_reloc): Likewise.
1461 (_bfd_mips_elf32_gprel16_reloc): Likewise.
1462 (elf_reloc_map): Code cleanup.
1463 (mips_reloc_map): Add comment.
1464 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
1465 (mips_elf32_rtype_to_howto): Likewise.
1466 (mips_elf32_discard_info): Likewise.
1467 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
1468 lead to IRIX compatibility now.
1470 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1472 * elfxx-mips.c: Call it IRIX, not Irix in comments.
1474 2002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
1476 * config.bfd (shle-*-netbsdelf*): Add target which includes
1479 2002-05-13 David Edelsohn <edelsohn@gnu.org>
1481 * configure.in: Revert 2002-04-07. Instead, auto-configure
1483 * configure: Regenerate.
1484 * config.in: Regenerate.
1485 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
1488 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
1490 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
1492 * configure: Regenerate.
1494 2002-05-13 Alan Modra <amodra@bigpond.net.au>
1496 * Makefile.am (install-data-local): Install headers to
1497 $(exec_prefix)/include.
1498 * Makefile.in: Regenerate.
1500 2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1501 Daniel Jacobowitz <drow@mvista.com>
1503 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
1506 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
1508 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
1509 hppa*-*-openbsd*): New targets.
1510 * configure.in (alpha*-*-openbsd*): Set COREFILE.
1511 * configure: Regenerate.
1513 2002-05-10 Tom Rix <trix@redhat.com>
1515 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
1516 xcoff64_ppc_relocate_section.
1517 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
1518 * libxcoff.h: Common xcoff_reloc_type function declaration.
1520 2002-05-10 Alan Modra <amodra@bigpond.net.au>
1522 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
1523 added in 2002-05-09 commit.
1525 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
1526 don't look for stubs on all undefined syms.
1528 2002-05-09 Alan Modra <amodra@bigpond.net.au>
1530 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
1531 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
1534 * elf32-i386.c (elf_howto_table): Comments.
1535 (elf_i386_relocate_section): Handle more relocs for relocatable
1536 linking and against SEC_MERGE sections.
1538 2002-05-08 Alan Modra <amodra@bigpond.net.au>
1540 * elf32-ppc.c (ppc_elf_create_got): New function.
1541 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
1542 _bfd_elf_create_dynamic_sections. Correct .plt flags.
1543 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
1544 _bfd_elf_create_got_section.
1546 2002-05-07 Alan Modra <amodra@bigpond.net.au>
1548 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
1549 * elfxx-target.h (elf_backend_rela_normal): Define.
1550 (elfNN_bed): Init rela_normal.
1551 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
1552 for section symbols here if rela_normal. Simplify abs section test.
1553 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
1554 return immediately. Remove code handling relocatable linking.
1555 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1556 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1557 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1558 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
1559 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1560 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1561 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1562 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1563 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1564 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1565 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1566 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1567 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1568 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
1569 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
1570 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1571 * elf-m10200.c (elf_backend_rela_normal): Define.
1572 * elf-m10300.c (elf_backend_rela_normal): Define.
1573 * elf32-fr30.c (elf_backend_rela_normal): Define.
1574 * elf32-i370.c (elf_backend_rela_normal): Define.
1575 * elf32-i860.c (elf_backend_rela_normal): Define.
1576 * elf32-m68k.c (elf_backend_rela_normal): Define.
1577 * elf32-mcore.c (elf_backend_rela_normal): Define.
1578 * elf32-openrisc.c (elf_backend_rela_normal): Define.
1579 * elf32-ppc.c (elf_backend_rela_normal): Define.
1580 * elf32-s390.c (elf_backend_rela_normal): Define.
1581 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
1582 * elf64-ppc.c (elf_backend_rela_normal): Define.
1583 * elf64-s390.c (elf_backend_rela_normal): Define.
1584 * elf64-x86-64.c (elf_backend_rela_normal): Define.
1585 * elfxx-ia64.c (elf_backend_rela_normal): Define.
1586 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
1587 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
1589 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
1591 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
1592 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
1594 2002-05-06 Alan Modra <amodra@bigpond.net.au>
1596 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
1597 when not relocatable. Fix reloc_emitter call for K&R.
1599 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1601 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
1602 reloading local sym addend mistakenly removed in 2002-05-01 change.
1604 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
1605 (read_abbrevs): Change "offset" param to bfd_vma.
1606 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
1607 Change "abbrev_offset" to bfd_vma.
1608 (read_indirect_string): Use correct conversion chars in error
1609 message format string, cast bfd_vma's to unsigned long.
1610 (read_abbrevs): Likewise.
1611 (read_attribute_value): Likewise.
1612 (decode_line_info): Likewise.
1613 (scan_unit_for_functions): Likewise.
1614 (parse_comp_unit): Likewise.
1616 2002-05-04 Tom Rix <trix@redhat.com>
1618 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
1619 (coff_swap_reloc_out): Same.
1620 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
1621 (xcoff_swap_reloc_out): Same.
1622 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
1623 case some 16 bit relocs. Add reloc value to output.
1624 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
1625 R_RBR. Improve names.
1626 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
1627 (bfd_xcoff_backend_data): Update with new reloc swap names.
1628 (bfd_pmac_xcoff_backend_data) : Same.
1629 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
1630 (xcoff64_swap_reloc_out): Same.
1631 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
1632 R_POS. Add reloc value to output.
1633 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
1634 bit R_RBR. Improve names, masks.
1635 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
1636 (bfd_xcoff_backend_data): Update with new reloc swap names.
1637 (bfd_xcoff_aix5_backend_data) : Same.
1639 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1641 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
1642 bfd_count top_index, input_list, all_local_syms.
1643 (elf32_hppa_setup_section_lists): New function, split from
1644 elf32_hppa_size_stubs.
1645 (elf32_hppa_next_input_section): Likewise.
1646 (group_sections): Likewise.
1647 (get_local_syms): Likewise.
1648 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
1649 stubs on undefined syms too.
1650 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
1651 Only access htab elf fields when we have an elf hash table.
1652 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
1653 (elf32_hppa_next_input_section): Declare.
1655 2002-05-04 Bob Byrnes <byrnes@curl.com>
1657 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
1660 2002-05-03 H.J. Lu (hjl@gnu.org)
1662 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
1663 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
1664 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
1665 to hide a global symbol.
1666 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
1667 forced_local to true.
1669 2002-05-02 Richard Henderson <rth@redhat.com>
1671 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
1672 vs SHN_UNDEF to zero.
1674 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1676 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
1678 <R_PPC64_SECTOFF_DS>: Likewise.
1679 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
1681 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
1682 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
1685 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
1686 (ppc64_elf_ha_reloc): New function.
1687 (ppc64_elf_brtaken_reloc): New function.
1688 (ppc64_elf_sectoff_reloc): New function.
1689 (ppc64_elf_sectoff_ha_reloc): New function.
1690 (ppc64_elf_toc_reloc): New function.
1691 (ppc64_elf_toc_ha_reloc): New function.
1692 (ppc64_elf_toc64_reloc): New function.
1693 (ppc64_elf_unhandled_reloc): New function.
1694 (ppc64_elf_howto_raw): Use the above.
1695 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
1696 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
1697 <R_PPC64_SECTOFF_DS>: Likewise.
1698 (IS_ABSOLUTE_RELOC): Update.
1699 (struct ppc_link_hash_table): Add have_undefweak.
1700 (ppc64_elf_link_hash_table_create): Init.
1701 (func_desc_adjust): Set have_undefweak.
1702 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
1703 add the .sfpr blr when have_undefweak.
1704 (ppc64_elf_setup_section_lists): Check hash table flavour.
1705 (ppc64_elf_next_input_section): Move output_section->owner test to
1707 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
1708 and relocatable test. Return TOCstart and don't set elf_gp.
1709 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
1710 offset calculation. Add assert on weak sym branch tweaks.
1711 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
1712 (ppc64_elf_toc): Declare.
1713 (ppc64_elf_next_input_section): Update.
1715 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1717 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
1720 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1722 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
1723 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
1724 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
1725 call branches. Correct undefined weak destination.
1726 (ppc64_elf_func_desc_adjust): Always create at least one blr in
1727 .sfpr, and correct case where either only savef* or restf* is
1730 Long branch stubs, multiple stub sections.
1731 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
1732 (ppc64_elf_next_input_section): Declare.
1733 * elf64-ppc.c: Move linker-only prototypes.
1734 (STUB_SUFFIX): Define.
1735 (enum ppc_stub_type): New.
1736 (struct ppc_stub_hash_entry): New.
1737 (struct ppc_branch_hash_entry): New.
1738 (struct ppc_link_hash_entry): Add stub_cache, oh.
1739 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
1740 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
1741 Rename plt_overflow to stub_error.
1742 (ppc_stub_hash_lookup): Define.
1743 (ppc_branch_hash_lookup): Define.
1744 (stub_hash_newfunc): New function.
1745 (branch_hash_newfunc): New function.
1746 (link_hash_newfunc): Init new fields.
1747 (ppc64_elf_link_hash_table_create): Likewise.
1748 (ppc64_elf_link_hash_table_free): New function.
1749 (ppc_stub_name): New function.
1750 (ppc_get_stub_entry): New function.
1751 (ppc_add_stub): New function.
1752 (create_linkage_sections): Use bfd_make_section_anyway. Create
1753 .branch_lt and .rela.branch_lt sections. Don't create .stub.
1754 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
1755 and set up for plt call stubs. Link func and func desc syms.
1756 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
1757 (func_desc_adjust): Avoid hash lookup when func desc sym available
1758 via shortcut, and set links when processing.
1759 (ppc64_elf_hide_symbol): Likewise.
1760 (allocate_dynrelocs): Don't allocate stub section here.
1761 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
1763 (ppc_type_of_stub): New function.
1764 (build_one_stub): Delete.
1765 (ppc_build_one_stub): New function.
1766 (ppc_size_one_stub): New function.
1767 (ppc64_elf_setup_section_lists): New function.
1768 (ppc64_elf_next_input_section): New function.
1769 (group_sections): New function.
1770 (get_local_syms): New function.
1771 (ppc64_elf_size_stubs): Rewrite.
1772 (ppc64_elf_build_stubs): Rewrite.
1773 (ppc64_elf_relocate_section): Look up stub entry for REL24
1774 relocs. Don't propagate REL14* to dynamic objects. Look for long
1775 branch stubs if REL14* or REL24 relocs won't reach.
1776 (bfd_elf64_bfd_link_hash_table_free): Define.
1778 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1780 * bfd/config.bfd: Add support for powerpc-*-windiss.
1782 2002-04-30 Tom Rix <trix@redhat.com>
1784 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
1785 symbol names into the hash table.
1787 2002-04-28 Tom Rix <trix@redhat.com>
1789 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
1790 calulating relocations.
1791 (xcoff_complain_overflow) : Function table for relocation errors.
1792 (xcoff_ppc_relocate_section): Use relocation and complain function
1794 (xcoff_complain_overflow_unsigned_func): New complain function.
1795 (xcoff_complain_overflow_signed_func): Same.
1796 (xcoff_complain_overflow_bitfield_func): Same.
1797 (xcoff_complain_overflow_dont_func): Same.
1798 (xcoff_reloc_type_crel): New recot function.
1799 (xcoff_reloc_type_br): Same.
1800 (xcoff_reloc_type_ba): Same.
1801 (xcoff_reloc_type_toc): Same.
1802 (xcoff_reloc_type_rel): Same.
1803 (xcoff_reloc_type_neg): Same.
1804 (xcoff_reloc_type_pos): Same.
1805 (xcoff_reloc_type_fail): Same.
1806 (xcoff_reloc_type_noop): Same.
1807 * libxcoff.h : Declare common parts for xcoff64.
1808 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
1809 and complain function tables.
1811 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1813 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
1814 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
1816 2002-04-26 Alan Modra <amodra@bigpond.net.au>
1818 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
1819 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
1821 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
1822 same as the output before calling elf_link_input_bfd.
1824 * coffcode.h (coff_compute_section_file_positions): Set
1825 section_tail after shuffling section list.
1827 2002-04-24 Christian Groessler <chris@groessler.org>
1829 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
1830 addresses are 23bit with a special layout, not plain 32bit
1831 values. Prevent relocation of immediate values.
1833 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
1835 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
1836 MIPS-16 ASE flags are set, print something to indicate that.
1838 2002-04-23 Alan Modra <amodra@bigpond.net.au>
1840 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
1841 under which a plt call stub is used.
1842 (final_link_relocate): Similarly.
1843 (allocate_plt_static): Clear h-plabel except when plt entry is
1844 exclusively used for a plabel.
1845 (allocate_dynrelocs): Use the above to simplify plt sizing.
1846 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
1847 (elf32_hppa_link_hash_table_create): Init.
1849 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
1850 (elf32_hppa_check_relocs): Set has_22bit_branch.
1852 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
1853 (final_link_relocate): Likewise.
1855 2002-04-22 Jakub Jelinek <jakub@redhat.com>
1857 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
1858 search table if some FDE is DW_EH_PE_aligned encoded either.
1859 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
1861 2002-04-22 Richard Smith <richard@ex-parrot.com>
1862 Jakub Jelinek <jakub@redhat.com>
1864 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
1865 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
1866 encoded personality.
1867 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
1868 for CIE/FDE removal.
1870 2002-04-20 Tom Rix <trix@redhat.com>
1872 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
1874 2002-04-20 Alan Modra <amodra@bigpond.net.au>
1876 * archures.c (bfd_lookup_arch): Move the list order comment..
1877 (struct bfd_arch_info): ..to where it belongs.
1878 * bfd-in2.h: Regenerate.
1880 * archures.c (bfd_lookup_arch): Add comment on list order.
1881 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
1882 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
1883 is always at head of list.
1885 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1887 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
1888 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
1889 definition of these functions for ARM_WINCE builds as they are
1891 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
1892 for ARM_WINCE builds.
1894 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1896 * coff-arm.c (bfd_arm_process_before_allocation):
1898 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1900 * cpu-sh.c (scan_mach): Delete.
1901 (arch_info_struct): Replace scan_mach with bfd_default_scan.
1902 (bfd_sh_arch): Likewise.
1904 2002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
1906 * ihex.c (ihex_write_object_contents): Fix check for records
1907 crossing 64K boundaries.
1909 2002-04-16 Alan Modra <amodra@bigpond.net.au>
1911 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
1912 type rather than just assuming entries are ELF.
1913 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
1914 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
1915 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
1916 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
1917 rather than elf_link_hash_entry.
1919 2002-04-15 Richard Henderson <rth@redhat.com>
1921 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
1924 2002-04-15 Michael Snyder <msnyder@redhat.com>
1926 * opncls.c (bfd_close): Write contents if writeable.
1927 Minor formatting tidy-ups.
1929 2002-04-15 Alan Modra <amodra@bigpond.net.au>
1931 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
1933 2002-04-12 Michael Snyder <msnyder@redhat.com>
1935 * bfd-in.h (bfd_get_section_lma): New access macro.
1936 Minor white-space fix-up.
1938 2002-04-12 Alan Modra <amodra@bigpond.net.au>
1940 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
1943 2002-04-09 DJ Delorie <dj@redhat.com>
1945 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
1947 2002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
1949 * coffcode.h (coff_read_word): New.
1950 (coff_compute_checksum): New.
1951 (coff_apply_checksum): New.
1952 (coff_write_object_contents): Call coff_apply_checksum () to
1953 apply checksum to PE image.
1955 2002-04-08 Randolph Chung <tausq@debian.org>
1957 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
1958 (elf32_hppa_final_link): Split out sorting logic to..
1959 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
1960 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
1962 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1964 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
1966 * configure: Re-generate.
1968 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1970 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
1971 is greater or equal to 4.3.3.
1972 * configure: Regenerate.
1975 2002-04-05 Hans-Peter Nilsson <hp@axis.com>
1977 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
1978 R_CRIS_32_PCREL>: Fix typo in name.
1979 (cris_elf_check_relocs): Always create .rela.got here when
1980 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
1981 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
1982 assume it's created.
1984 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1986 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
1987 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
1989 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
1990 * bfd.c (bfd_link_hash_table_free): Define.
1991 * binary.c (binary_bfd_link_hash_table_free): Define.
1992 * bout.c (b_out_bfd_link_hash_table_free): Define.
1993 * coff-rs6000.c (rs6000coff_vec): Include
1994 _bfd_generic_link_hash_table_free.
1995 (pmac_xcoff_vec): Likewise.
1996 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
1997 (aix5coff64_vec): Likewise.
1998 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
1999 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
2000 (bfd_elf32_bfd_link_hash_table_free): Define.
2001 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
2002 (bfd_elf32_bfd_link_hash_table_free): Define.
2003 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
2005 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
2006 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
2007 * ieee.c (ieee_bfd_link_hash_table_free): Define.
2008 * ihex.c (ihex_bfd_link_hash_table_free): Define.
2009 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
2010 (_bfd_generic_link_hash_table_free): Add prototype.
2011 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
2012 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
2013 * linker.c (_bfd_generic_link_hash_table_free): New function.
2014 * mmo.c (mmo_bfd_link_hash_table_free): Define.
2015 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
2016 * oasys.c (oasys_bfd_link_hash_table_free): Define.
2017 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
2018 * som.c (som_bfd_link_hash_table_free): Define.
2019 * srec.c (srec_bfd_link_hash_table_free): Define.
2020 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
2021 * versados.c (versados_bfd_link_hash_table_free): Define.
2022 * vms.c (vms_bfd_link_hash_table_free): New function.
2023 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
2025 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
2026 instead of bfd_alloc.
2027 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
2028 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
2029 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
2030 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
2031 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
2032 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
2033 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
2034 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
2035 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
2036 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
2037 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
2038 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
2039 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
2040 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
2041 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
2042 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
2043 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
2044 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
2045 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
2046 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
2047 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
2048 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
2049 * m68klinux.c (linux_link_hash_table_create): Likewise.
2050 * sparclinux.c (linux_link_hash_table_create): Likewise.
2051 * sunos.c (sunos_link_hash_table_create): Likewise.
2052 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
2054 * targets.c: Add _bfd_link_hash_table_free to xvec.
2056 * bfd-in2.h: Regenerate.
2057 * libbfd.h: Regenerate.
2058 * libcoff.h: Regenerate.
2060 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2062 * dep-in.sed: Cope with absolute paths.
2063 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
2065 * Makefile.in: Regenerate.
2066 * coff-arm.c: Fix copyright date.
2067 * cpu-h8300.c: Likewise.
2068 * cpu-i370.c: Likewise.
2069 * cpu-s390.c: Likewise.
2070 * cpu-mips.c: Likewise.
2071 * po/SRC-POTFILES.in: Regenerate.
2073 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2075 * Makefile.am: Add elfxx-mips.c to the known backends.
2076 (elf32-mips.lo): remove dependency to coff/external.h.
2077 * Makefile.in: Regenerate.
2078 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
2079 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
2081 * configure: Regenerate.
2082 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
2083 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
2084 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
2085 MIPS specific backend functions.
2086 * elf32-mips.c: Moved most code to elfxx-mips.c.
2087 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
2089 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
2090 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
2091 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
2092 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
2093 interface to allow selection of the right REL or RELA howto table.
2094 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
2095 static. Let it refuse n32 objects.
2096 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
2097 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
2098 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
2099 (elf32_mips_ignore_discarded_relocs): Rename from
2100 _bfd_elf32_mips_ignore_discarded_relocs.
2101 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
2102 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
2103 (elf_mips_howto_table_rela): Remove.
2104 * elf64-mips.c: Moved most code to elfxx-mips.c.
2105 (bfd_elf64_bfd_reloc_type_lookup): Make static.
2106 (mips_elf64_rtype_to_howto): New function.
2107 (mips_elf64_object_p): Likewise.
2108 (elf64_mips_irix_compat): Likewise.
2109 * elfxx-mips.c: New file containing common code merged together from
2110 elf32-mips.c and elf64-mips.c.
2111 * elfxx-mips.h: New file containing MIPS specific prototypes from
2113 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
2114 elf_backend_mips_rtype_to_howto.
2116 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2118 * srec.c (MAXCHUNK, Chunk): Revise comments.
2119 (srec_write_record): Correct buffer size.
2120 (srec_write_header): Do without intermediate buffer.
2121 (srec_write_section): Validate Chunk.
2122 (srec_write_terminator): Pass NULL instead of dummy buffer.
2123 (srec_write_symbols): Pass file and symbol names directly to
2124 bfd_bwrite so sprintf won't overflow buffer.
2126 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2128 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
2129 PC relative relocs against hidden symbols.
2130 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2132 2002-04-03 Alan Modra <amodra@bigpond.net.au>
2134 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
2135 LMAs, loop over segments until p_vaddr and p_memsz specify an
2136 extent enclosing the section.
2138 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
2140 * ihex.c (ihex_write_object_contents): Do not allow records to
2141 cross a 64K boundary - wrap if necessary.
2143 2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
2145 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
2146 which caused the returned LWP ID to always be 0.
2148 2002-04-01 Richard Henderson <rth@redhat.com>
2150 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
2151 (elf32_sparc_relocate_section): Use it to figure out when to
2152 initialize .got entries.
2153 * elf64-sparc.c: Similarly.
2155 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2157 * linker.c (link_action): Ignore duplicate warning syms.
2158 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
2159 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
2160 (elf_adjust_dynamic_symbol): Likewise.
2161 (elf_export_symbol): Likewise.
2162 (elf_link_find_version_dependencies): Likewise.
2163 (elf_link_assign_sym_version): Likewise.
2164 (elf_link_sec_merge_syms): Likewise.
2165 (elf_link_output_extsym): Likewise.
2166 (elf_gc_sweep_symbol): Likewise.
2167 (elf_gc_propagate_vtable_entries_used): Likewise.
2168 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2169 (elf_gc_allocate_got_offsets): Likewise.
2170 (elf_collect_hash_codes): Likewise.
2171 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
2172 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
2173 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
2174 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
2175 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
2176 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
2177 (elf_cris_discard_excess_dso_dynamics): Likewise.
2178 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
2179 (mark_PIC_calls): Likewise.
2180 (allocate_plt_static): Likewise.
2181 (allocate_dynrelocs): Likewise.
2182 (readonly_dynrelocs): Likewise.
2183 * elf32-i386.c (allocate_dynrelocs): Likewise.
2184 (readonly_dynrelocs): Likewise.
2185 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
2186 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
2187 * elf32-mips.c (mips_elf_output_extsym): Likewise.
2188 (mips_elf_sort_hash_table_f): Likewise.
2189 (mips_elf_check_mips16_stubs): Likewise.
2190 * elf32-s390.c (allocate_dynrelocs): Likewise.
2191 (readonly_dynrelocs): Likewise.
2192 * elf32-sh.c (sh_elf_discard_copies): Likewise.
2193 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
2194 (xstormy16_relax_plt_realloc): Likewise.
2195 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
2196 (elf64_alpha_output_extsym): Likewise.
2197 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
2198 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
2199 (mips_elf64_check_mips16_stubs): Likewise.
2200 (mips_elf64_output_extsym): Likewise.
2201 * elf64-ppc.c (func_desc_adjust): Likewise.
2202 (allocate_dynrelocs): Likewise.
2203 (readonly_dynrelocs): Likewise.
2204 * elf64-s390.c (allocate_dynrelocs): Likewise.
2205 (readonly_dynrelocs): Likewise.
2206 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
2207 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
2208 (readonly_dynrelocs): Likewise.
2209 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
2210 * aoutx.h (aout_link_write_other_symbol): Likewise.
2211 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
2212 (_bfd_coff_write_global_sym): Likewise.
2213 * i386linux.c (linux_tally_symbols): Likewise.
2214 * m68klinux.c (linux_tally_symbols): Likewise.
2215 * sparclinux.c (linux_tally_symbols): Likewise.
2216 * pdp11.c (aout_link_write_other_symbol): Likewise.
2217 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
2218 * xcofflink.c (xcoff_build_ldsyms): Likewise.
2219 (xcoff_write_global_symbol): Likewise.
2221 * cofflink.c (_bfd_coff_final_link): Formatting.
2222 * cpu-mips.c (mips_compatible): Make static, prototype.
2223 * elf32-i386.c (elf_i386_check_relocs): Formatting.
2224 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
2225 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
2226 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
2227 (mips_elf64_final_link): Likewise.
2228 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
2231 2002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
2233 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
2234 (SWAP_OUT_RELOC_OFFSET): Define.
2236 2002-03-27 Gregory Steuck <greg@nest.cx>
2238 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
2239 terminating NULL if empty symbol table.
2240 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
2242 2002-03-26 H.J. Lu (hjl@gnu.org)
2244 * elflink.h (elf_link_input_bfd): Revert the last change since
2245 the gcc exception handling isn't fixed yet.
2247 2002-03-26 H.J. Lu (hjl@gnu.org)
2249 * elflink.h (elf_link_input_bfd): Complain about relocations
2250 against local symbols in discarded sections.
2252 2002-03-26 Alan Modra <amodra@bigpond.net.au>
2254 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
2256 2002-03-23 Alan Modra <amodra@bigpond.net.au>
2258 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
2259 section file offset for !SEC_LOAD sections.
2261 2002-03-21 Richard Earnshaw <rearnsha@arm.com>
2263 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
2264 <case R_ARM_GOT>): Handle relocations to Thumb functions.
2266 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2268 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
2270 * archive.c: Update copyright date.
2271 * bfd-in2.h: Regenerate.
2272 * libbfd.h: Regenerate.
2273 * Makefile.am: Run "make dep-am"
2274 * Makefile.in: Regenerate.
2275 * po/SRC-POTFILES.in: Regenerate.
2277 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
2279 * dwarf2.c (struct funcinfo): Move up.
2280 (lookup_address_in_function_table): New argument function_ptr.
2282 (lookup_address_in_line_table): New argument function. If function
2283 is non-NULL, use it to handle ``addr'' before the first line note of
2285 (comp_unit_find_nearest_line): Update and swap calls to
2286 lookup_address_in_function_table and lookup_address_in_line_table.
2287 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
2288 N_SLINE encountered if we see an N_FUN before any N_SLINE.
2290 2002-03-20 Tom Rix <trix@redhat.com>
2292 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
2293 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
2294 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
2296 2002-03-19 Tom Rix <trix@redhat.com>
2298 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
2299 dynamic objects in archives.
2301 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
2303 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
2304 STT_NOTYPE symbols to STT_OBJECT.
2306 2002-03-18 Jan Hubicka <jh@suse.cz>
2308 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
2310 2002-03-18 Tom Rix <trix@redhat.com>
2312 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
2313 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
2314 * coff-rs6000 (do_pad) : New function for archive padding.
2315 (do_copy) : New function for object file copying in archives.
2316 (do_shared_object_padding) : New function for padding shared
2317 objects to their text section alignment in archives.
2318 (bfd_xcoff_ar_achive_set_magic) : Stub.
2319 (xcoff_write_armap_big) : Use do_copy and do_pad.
2320 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
2322 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
2323 bfd_xcoff_magic_number.
2324 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
2326 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
2327 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
2328 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
2329 * rs6000-core.c : Update copyright date.
2330 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
2332 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
2333 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
2334 (coff_set_flags) : Use bfd_xcoff_magic_number.
2335 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
2336 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
2337 * Makefile.am : Same.
2338 * config.bfd : Same.
2340 * configure : Regnerate.
2341 * Makefile.in : Same.
2344 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2346 * po/fr.po: Updated version.
2348 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2350 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
2351 * libbfd.h: Regenerate.
2352 * archive.c (coff_write_armap): Pass on failures from
2353 bfd_write_bigendian_4byte_int.
2355 2002-03-14 H.J. Lu <hjl@gnu.org>
2357 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
2358 error to bfd_error_nonrepresentable_section for reinit_array
2361 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
2363 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
2364 OR it in rather than replacing previously selected flags.
2366 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
2367 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
2369 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2371 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
2373 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
2374 ensure reloc size matches before calling elf_link_input_bfd.
2375 Add an assert to check reloc size when counting output relocs.
2377 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
2379 * mmo.c (mmo_get_loc): Return NULL rather than false.
2381 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2383 * po/fr.po: Updated version.
2385 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2387 * archures.c (bfd_default_compatible): Test bits_per_word.
2388 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
2389 bfd_default_compatible.
2390 * cpu-i370.c (i370_compatible): Likewise.
2391 * cpu-sparc.c (sparc_compatible): Likewise.
2392 * cpu-h8300.c (compatible): Test in->arch == out->arch.
2394 * elflink.h: Formatting fixes.
2395 (elf_link_output_extsym): Merge undefined and undef weak cases.
2397 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
2398 when word size of input matches output word size.
2400 2002-03-12 Andreas Jaeger <aj@suse.de>
2402 * cpu-i386.c (i386_compatible): New. Use it instead of
2403 bfd_default_compatible.
2405 2002-03-07 H.J. Lu (hjl@gnu.org)
2407 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
2408 as the type for bfd_reloc_val.
2410 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2412 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
2413 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
2414 (elf_hppa_final_link_relocate): Correct relocations for indirect
2415 references to local data through the DLT. Fix .opd creation for
2416 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
2417 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
2418 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
2419 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2420 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
2421 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
2422 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2424 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2426 * merge.c (_bfd_merge_sections): Don't segfault if there
2427 is nothing to merge due to GC.
2429 2002-03-05 Alan Modra <amodra@bigpond.net.au>
2431 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
2432 symbols that have been forced local.
2434 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
2435 to output forced local syms for non-shared link.
2436 (elf_link_output_extsym): Tweak condition for calling backend
2437 adjust_dynamic_symbol so that previous behaviour is kept.
2438 Whitespace changes throughout file.
2440 2002-03-04 H.J. Lu <hjl@gnu.org>
2442 * elf.c (bfd_section_from_shdr): Handle special sections,
2443 .init_array, .fini_array and .preinit_array.
2444 (elf_fake_sections): Likewise.
2446 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
2447 DT entry only if the section is in output for .init_array,
2448 .fini_array and .preinit_array. Complain about .preinit_array
2450 (elf_bfd_final_link): Warn zero size for .init_array,
2451 .fini_array and .preinit_array sections.
2453 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
2454 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
2455 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
2458 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2460 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
2461 * configure: Regenerate.
2463 2002-03-02 Tom Rix <trix@redhat.com>
2465 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
2467 * coff-rs6000.c (xcoff_howto_table): Same.
2469 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2471 * elflink.h (size_dynamic_sections): If section named
2472 ".preinit_array" exists, create DT_PREINIT_ARRAY and
2473 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
2474 ".init_array" and ".fini_array".
2475 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
2476 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
2479 2002-02-26 Andrew Macleod <amacleod@cygnus.com>
2481 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
2484 2002-02-25 Alan Modra <amodra@bigpond.net.au>
2486 * elf64-hppa.h: Update copyright date.
2488 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
2489 (ppc64_elf_relocate_section): Don't generate power4 style branch
2490 hints for *_BRTAKEN and *_BRNTAKEN relocs.
2492 2002-02-22 Jakub Jelinek <jakub@redhat.com>
2494 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
2496 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2498 2002-02-21 Andreas Jaeger <aj@suse.de>
2500 * elf64-x86-64.c: Major rework that introduces all recent changes
2501 to the x86-64 backend. Get a closer match to elf32-i386.
2502 (struct elf64_x86_64_dyn_relocs): Rename from
2503 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
2505 (struct elf64_x86_64_link_hash_table): Add short cuts to some
2507 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
2508 remove casts, initialize new hash members.
2509 (create_got_section): New.
2510 (elf64_x86_64_create_dynamic_sections): New.
2511 (elf64_x86_64_copy_indirect_symbol): New.
2512 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
2513 relocs, .got or .relgot here but do it in allocate_dynrelocs.
2514 Reference count possible .plt and .got entries. Don't test input
2515 section SEC_READONLY here to try to avoid copy relocs, and keep
2516 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
2517 DF_TEXTREL here. Delay setting of variables until needed. Cache
2518 pointer to "sreloc" section in elf_section_data. Tweak condition
2519 under which .got created. Report files with bad relocation
2521 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
2522 Reference count possible .plt entries. Don't deallocate .got and
2524 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
2525 do copy reloc processing for weakdefs. Remove redundant casts and
2526 aborts. Delay setting of vars until needed. Move creation of
2527 dynamic symbols and allocation of .plt and .rela.plt to
2528 allocate_dynrelocs. Replace BFD_ASSERT with abort.
2529 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
2530 (allocate_dynrelocs): New.
2531 (readonly_dynrelocs): New.
2532 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
2533 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
2534 Zero out the dynamic allocated content space.
2535 (elf64_x86_64_discard_copies): Removed.
2536 (elf64_x86_64_relocate_section): Make use of dynamic section
2537 short-cuts. Localise vars, and delay setting. Better error
2538 reporting, replace BFD_ASSERT with abort. Check
2539 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
2540 regular object file and tread the weak definition as the normal
2541 one. Don't discard relocs for undefweak or undefined symbols and
2542 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
2544 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
2545 symbols that have been forced local. Use same test to decide if
2546 we can use a relative reloc for got as relocate_section. Expand
2547 SHN_UNDEF comment. Move expressions out of function calls.
2548 Replace BFD_ASSERT with abort.
2549 (bfd_elf64_bfd_final_link): Removed.
2550 (elf_backend_copy_indirect_symbol): Define.
2552 2002-02-20 Tom Rix <trix@redhat.com>
2554 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
2555 (_bfd_xcoff_reloc_type_lookup): Use it.
2556 * coff64-rs6000.c (xcoff64_howto_table): Same.
2557 (xcoff64_reloc_type_lookup): Same.
2559 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2561 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
2564 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2566 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
2567 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
2568 * bfd-in2.h: Regenerate.
2569 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
2570 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
2572 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
2573 (elf_s390_reloc_type_lookup): Likewise.
2574 (elf_s390_check_relocs): Likewise.
2575 (elf_s390_gc_sweep_hook): Likewise.
2576 (elf_s390_relocate_section): Likewise.
2577 (elf_s390_object_p): Use renamed architecture define.
2578 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
2580 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
2582 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
2584 2002-02-19 Jakub Jelinek <jakub@redhat.com>
2586 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
2587 absptr -> pcrel optimization for shared libs.
2588 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
2589 library cannot be converted to pcrel.
2590 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
2592 * elf32-i386.c (elf_i386_relocate_section): If
2593 _bfd_elf_section_offset returned -2, skip, but make sure the
2594 relocation is installed.
2595 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
2596 * elf32-cris.c (cris_elf_relocate_section): Likewise.
2597 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
2598 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2599 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2600 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2601 * elf32-s390.c (elf_s390_relocate_section): Likewise.
2602 * elf32-sh.c (sh_elf_relocate_section): Likewise.
2603 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2604 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
2605 * elf64-s390.c (elf_s390_relocate_section): Likewise.
2606 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
2607 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2608 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2609 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
2610 _bfd_elf_section_offset returning -2 the same way as -1.
2611 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
2612 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
2614 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
2616 2002-02-18 Tom Rix <trix@redhat.com>
2618 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
2619 (bfd_xcoff_size_dynamic_sections): Same.
2620 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
2621 (bfd_xcoff_size_dynamic_sections): Same.
2622 * coff-rs6000.c (xcoff_generate_rtinit): Same.
2623 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
2624 * libxcoff.h (struct xcoff_backend_data_rec): Same.
2625 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
2626 * bfd-in2.h: Regenerate.
2628 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2630 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
2631 (struct ppc_link_hash_table): Add sfpr.
2632 (ppc64_elf_link_hash_table_create): Init it.
2633 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
2635 (create_linkage_sections): ..here. Make .sfpr too.
2636 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
2638 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
2639 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
2640 ._restf* functions, and create as needed.
2641 (func_desc_adjust): Only force_local for shared libs.
2643 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2645 * configure.in: Bump version number post 2.12 branching.
2646 * configure: Regenerate.
2648 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2650 * mmo.c: Correct and improve comments.
2651 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
2652 zero-pad. Use input to fill up non-empty bfd buffer.
2653 (mmo_flush_chunk): New function.
2654 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
2655 changed. Don't emit location specifier if VMA is same as
2656 *LAST_VMAP after omitting leading zero contents. Call
2657 mmo_flush_chunk before emitting location specifier.
2658 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
2659 with mmo_write_loc_chunk calls.
2660 (mmo_internal_write_section): Call mmo_flush_chunk after
2662 (mmo_write_symbols_and_terminator): Move :Main to first position
2663 in symbol array. Add faked one if it does not exist if there are
2664 other symbols. Don't add it if there are no symbols at all. Move
2665 out test for value of :Main from symbol loop. Rename table
2666 fakemain to maintable and variable mainsym to fakemain.
2668 2002-02-15 Richard Henderson <rth@redhat.com>
2670 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
2671 section with no got matches any got. Simplify error generaion.
2673 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2675 Support arbitrary length fill patterns.
2676 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
2677 (_bfd_default_link_order): Remove bfd_fill_link_order code.
2678 Call default_data_link_order.
2679 (default_fill_link_order): Delete.
2680 (default_data_link_order): New function.
2681 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
2682 of bfd_fill_link_order with bfd_data_link_order.
2683 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
2684 * elf64-mips.c (mips_elf64_final_link): Likewise.
2686 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
2687 Correct value returned in "end" for "0x<non-hex>".
2689 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
2691 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
2692 (scan): Test against 'mach' field in info structure.
2694 2002-02-14 Alan Modra <amodra@bigpond.net.au>
2696 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
2698 2002-02-14 Matt Fredette <fredette@netbsd.org>
2700 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
2703 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
2705 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
2706 non-zero physical addresses when adjusting the LMAs of new
2709 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
2711 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
2712 from _bfd_elf_hppa_gen_reloc_type.
2713 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
2714 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
2715 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
2716 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
2718 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
2720 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
2721 loading its contents if there's nothing to do in it.
2723 2002-02-12 Alan Modra <amodra@bigpond.net.au>
2725 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
2728 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
2729 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
2730 (ppc64_elf_finish_dynamic_sections): Set values for them.
2732 2002-02-11 Michael Snyder <msnyder@redhat.com>
2734 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
2735 * elf.c (elfcore_grok_pstatus): Add prototype.
2736 (elfcore_grok_lwpstatus): Add prototype.
2737 (elfcore_write_lwpstatus): New function.
2738 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
2740 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
2742 * elf32-sh.c: Added missing prototypes.
2743 * elf32-sh64.c: Likewise.
2744 (sh_elf_align_loads): Mark unused args as such.
2745 * elf64-sh64.c: Added missing prototypes.
2746 (struct elf_sh64_link_hash_entry): Fix typo.
2747 (sh_elf64_relocate_section): Fix info argument passed to
2748 _bfd_elf_section_offset.
2750 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2752 * Makefile.am: "make dep-am".
2753 * Makefile.in: Regenerate.
2754 * aclocal.m4: Regenerate.
2755 * config.in: Regenerate.
2756 * configure: Regenerate.
2758 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2760 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
2762 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
2764 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
2765 cast warnings for the common case.
2767 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
2769 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
2771 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
2774 2002-02-09 Richard Henderson <rth@redhat.com>
2776 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
2777 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
2778 (elf64_alpha_relocate_section): Likewise.
2779 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
2780 * bfd-in2.h, libbfd.h: Rebuild.
2782 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2784 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
2785 that base-plus-offset reloc accounting is consistent.
2786 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
2787 up to date for undefined symbols.
2789 2002-02-08 Eric Christopher <echristo@redhat.com>
2791 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2793 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
2794 sections for the O32 ABI.
2796 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2798 * elf32-arm.h: Fix formatting of _("...").
2799 * elf32-d10v.c: Likewise.
2800 * elf32-m68k.c: Likewise.
2801 * elf32-mips.c: Likewise.
2803 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2805 * coff-or32.c: Fix compile time warning messages.
2807 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2809 Contribute sh64-elf.
2810 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
2811 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
2812 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
2813 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
2814 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
2815 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
2816 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
2817 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
2818 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
2819 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
2821 * libbfd.h, bfd-in2.h: Rebuilt.
2822 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
2823 (sh_reloc_map): Map them.
2824 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2825 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
2826 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
2827 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2828 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
2829 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
2830 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
2831 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
2832 datalabel_got_offset.
2833 (sh_elf_link_hash_newfunc): Initialize it.
2834 (sh_elf_relocate_section): Augment the scope of
2835 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
2836 GOT and GOTOFF handling to new SHmedia relocation types. Support
2838 (sh_elf_check_relocs): Likewise.
2839 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
2840 PLT entries using movi_shori_putval. Support GOT_BIAS.
2841 (sh_elf_finish_dynamic_sections): Likewise.
2842 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
2843 relocation, it's now done by the caller.
2845 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
2846 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
2847 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
2848 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
2849 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
2850 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
2851 sh64_elf64_hash_table): New.
2852 (sh_elf64_howto_table): Introduce new relocs.
2853 (sh_elf64_info_to_howto): Accept new PIC relocs.
2854 (sh_elf64_relocate_section): Augment the scope of
2855 seen_stt_datalabel. Support new PIC relocs.
2856 (sh_elf64_check_relocs): Support new PIC relocs.
2857 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
2858 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
2859 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
2860 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
2861 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
2862 movi_shori_putval, movi_3shori_putval,
2863 sh64_elf64_create_dynamic_sections,
2864 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
2865 sh64_elf64_size_dynamic_sections,
2866 sh64_elf64_finish_dynamic_symbol,
2867 sh64_elf64_finish_dynamic_sections): New.
2868 (elf_backend_create_dynamic-sections,
2869 bfd_elf64_bfd_link_hash_table_create,
2870 elf_backend_adjust_dynamic_symbol,
2871 elf_backend_size_dynamic_sections,
2872 elf_backend_finish_dynamic_symbol,
2873 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2874 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2875 elf_backend_got_header_size, elf_backend_plt_header_size):
2877 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
2878 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
2879 match official numbers and names; moved unmaching ones to the
2881 * elf32-sh64.c, elf64-sh64.c: Likewise.
2882 2001-03-12 DJ Delorie <dj@redhat.com>
2883 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
2885 2001-03-12 DJ Delorie <dj@redhat.com>
2886 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
2888 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
2889 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2890 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
2891 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
2892 .cranges section with SEC_SORT_ENTRIES set.
2893 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
2894 incoming sorted .cranges section.
2895 (sh64_bfd_elf_copy_private_section_data): New.
2896 (sh64_elf_final_write_processing): Only sort .cranges and modify
2897 start address if called by linker.
2898 2001-01-08 Ben Elliston <bje@redhat.com>
2899 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
2900 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
2901 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
2902 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2903 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
2904 line. Add comments before all entries.
2905 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
2907 (sh_elf64_reloc): Correct head comment.
2908 (sh_elf64_relocate_section): Correct spacing.
2909 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
2910 instead call reloc_dangerous callback.
2911 <case R_SH_SHMEDIA_CODE>: New case.
2912 (sh_elf64_gc_mark_hook): Correct spacing.
2913 (sh_elf64_check_relocs): Ditto.
2914 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
2916 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
2918 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
2919 clarify describing comment. Add comments before all entries.
2920 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
2921 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
2922 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2923 Sort .cranges section in final link. Prepare to set bit 0 on
2925 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
2926 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
2927 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
2929 (sh64_backend_section_from_shdr): New, to recognize
2930 SHT_SH5_CR_SORTED on incoming .cranges section.
2931 (elf_backend_section_from_shdr): Define.
2932 (sh64_elf_final_write_processing): Sort outgoing .cranges
2933 section. (New, temporarily disabled:) Set bit 0 on entry address
2934 according to ISA type.
2935 (sh64_find_section_for_address): New.
2936 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
2937 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
2938 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
2939 bfd_malloc, not xmalloc.
2940 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
2942 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
2943 temporarily disabled) setting bit 0 on entry address.
2944 (elf_backend_final_write_processing): Define.
2945 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
2946 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
2947 be a proper relocation for PTA and PTB rather than a marker.
2948 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
2949 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
2950 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
2951 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
2952 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
2954 * elf64-sh64.c: Ditto.
2955 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
2956 * elf32-sh64.c: Include opcodes/sh64-opc.h
2957 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
2958 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
2959 parameters. No unused parameters. Caller changed.
2960 <case R_SH_PT_16>: New case.
2961 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
2962 * Makefile.in: Regenerate.
2963 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
2964 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
2966 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2967 (sh64_elf_merge_private_data): Ditto.
2968 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
2969 to access stored section flags.
2970 (sh64_elf_final_write_processing): Return immediately unless
2971 called by linker. Use sh64_elf_section_data (cranges) to get size
2972 of linker-generated cranges entries.
2973 (sh64_elf_copy_private_data): Add missing "return true".
2974 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
2975 (sh_elf64_merge_private_data): Ditto.
2976 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
2977 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
2978 elf64-sh64.c:sh64_elf_fake_sections.
2979 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
2980 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
2981 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
2982 (sh64_elf_final_write_processing): New.
2983 (elf_backend_final_write_processing): Define.
2984 (sh64_elf_fake_sections): Get header flags from tdata field.
2985 (sh64_elf_copy_private_data): Do not call
2986 sh64_elf_copy_private_data_internal, just copy e_flags field.
2987 (sh64_elf_merge_private_data): Do not call
2988 sh64_elf_copy_private_data_internal.
2989 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
2990 Remove EF_SH64_ABI64, let ELF size make difference.
2991 Remove SH64-specific BFD section flag.
2992 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
2993 containing SHmedia through elf_section_data (asect)->tdata
2994 non-zero, not using a BFD section flag.
2995 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
2996 (sh64_elf_merge_private_data): Similar.
2997 (elf_backend_section_flags): Don't define.
2998 (sh64_elf_backend_section_flags): Delete.
2999 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
3001 (sh_elf64_merge_private_data): Similar.
3002 * section.c (Section flags definitions): Don't define
3004 (bfd-in2.h): Regenerate.
3005 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
3006 Make DataLabel references work with partial linking.
3007 * elf32-sh64.c: Fix formatting.
3008 (sh64_elf_link_output_symbol_hook): New.
3009 (elf_backend_link_output_symbol_hook): Define to
3010 sh64_elf_link_output_symbol_hook.
3011 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
3012 undefined if partial linking. Adjust sanity check.
3013 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
3014 (elf_backend_link_output_symbol_hook): Define to
3015 sh64_elf64_link_output_symbol_hook.
3016 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
3017 undefined if partial linking. Adjust sanity check.
3018 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
3019 Implement semantics for inter-file DataLabel references.
3020 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
3021 (sh64_elf64_add_symbol_hook): New.
3022 (sh_elf64_relocate_section): If passing an indirect symbol with
3023 st_type STT_DATALABEL on the way to a symbol with st_other
3024 STO_SH5_ISA32, do not bitor 1 to the relocation.
3025 (elf_backend_add_symbol_hook): Define to
3026 sh64_elf64_add_symbol_hook.
3027 * elf64-sh32.c: Tweak comments.
3028 (DATALABEL_SUFFIX): Define.
3029 (sh64_elf_add_symbol_hook): New.
3030 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
3031 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
3032 symbol with st_type STT_DATALABEL on the way to a symbol with
3033 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
3034 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
3035 Pass through STT_DATALABEL.
3036 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
3037 (elf_backend_get_symbol_type): Define.
3038 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
3039 (elf_backend_get_symbol_type): Define.
3040 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3041 * elf32-sh64.c: Tweak comments.
3042 (sh64_elf_copy_private_data_internal): Add prototype.
3043 (bfd_elf32_bfd_set_private_flags): Define.
3044 (sh64_elf_copy_private_data_internal): Compare machine name, not
3045 textual BFD target name, to check whether to copy section flag
3047 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
3048 Tweak section-contents-type-mismatch message.
3049 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
3050 Validize reloc-types.
3051 * elf64-sh64.c: New file.
3052 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
3053 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
3054 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
3055 Regenerate dependencies.
3056 * Makefile.in: Regenerate.
3057 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
3058 bfd_elf64_sh64l_vec.
3059 * configure.in: Handle bfd_elf64_sh64_vec and
3060 bfd_elf64_sh64l_vec.
3061 * configure: Regenerate.
3062 * po/POTFILES.in: Regenerate.
3063 * po/bfd.pot: Regenerate.
3064 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3065 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
3066 anything else but EF_SH64 and EF_SH64_ABI64.
3067 (sh64_elf_merge_private_data): Emit error for anything else but
3068 EF_SH64 and EF_SH64_ABI64.
3069 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
3071 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
3072 bfd_elf32_sh64l_vec as a temporary measure.
3073 * configure: Regenerate.
3074 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
3075 * cpu-sh.c (arch_info_struct): Include sh5 item
3077 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
3078 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
3079 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
3080 * elf32-sh64.c: Tweak comments.
3081 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
3082 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
3083 (sh64_elf_copy_private_data_internal): Wrap long line.
3084 (sh64_elf_merge_private_data): Rewrite to allow objects from
3085 SH64 subsets to be linked together.
3086 (INCLUDE_SHMEDIA): Define.
3087 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
3088 Parenthesize plus-expression inside or-expression.
3089 <global symbol>: Ditto.
3090 (sh_elf_set_mach_from_flags): Remove code refusing
3091 deleted EF_SH64_32BIT_ABI flag.
3092 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
3093 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
3094 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
3095 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
3096 (sh_elf_relocate_section) <local symbol>: Or 1 in
3097 calculation of relocation if sym->st_other & STO_SH5_ISA32.
3098 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
3099 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
3101 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3102 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
3103 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
3104 Regenerate dependencies.
3105 * Makefile.in: Regenerate.
3106 * archures.c: Add bfd_mach_sh5.
3107 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
3108 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
3109 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
3110 * configure: Regenerate.
3111 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
3112 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
3113 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3114 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
3115 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
3116 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
3117 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
3118 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
3119 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
3120 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
3122 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
3124 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
3125 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
3126 shmedia_prepare_reloc, goto final_link_relocate if it returns
3127 non-zero, else fail as before.
3128 (sh_elf_set_mach_from_flags): Provide function only if not defined
3129 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
3130 (sh_elf_set_private_flags): Provide function only if not defined
3132 (sh_elf_copy_private_data): Similar.
3133 (sh_elf_merge_private_data): Similar.
3134 * section.c (SEC_SH_ISA_SHMEDIA): New.
3135 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
3136 * elf32-sh64.c: New file.
3137 * libbfd.h: Regenerate.
3138 * bfd-in2.h: Regenerate.
3139 * po/POTFILES.in: Regenerate.
3140 * po/bfd.pot: Regenerate.
3141 * bfd-in2.h: Regenerate.
3142 * libbfd.h: Regenerate.
3144 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
3146 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
3147 been included, not drag it in.
3148 * bfd-in2.h: Regenerate.
3150 2002-02-06 H.J. Lu (hjl@gnu.org)
3152 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
3153 the mach and ISA fields if necessary.
3155 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3157 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
3158 ARM architecture when an F_ARM_5 flag is detected, since we cannot
3159 be sure exactly which architecture this represents.
3161 2002-02-05 Nick Clifton <nickc@redhat.com>
3163 * po/tr.po: Updated translation.
3165 2002-02-05 Alan Modra <amodra@bigpond.net.au>
3167 From Jimi X <jimix@watson.ibm.com>
3168 * archures (bfd_mach_ppc64): Define.
3169 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
3170 (bfd_powerpc_arch): Define.
3171 * bfd-in2.h: Regenerate.
3172 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
3173 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
3174 (bfd_powerpc_archs): Add default powerpc64 arch.
3176 2002-02-05 Alan Modra <amodra@bigpond.net.au>
3178 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
3179 against section syms in readonly sections. Don't do the global
3180 sym check if we find one.
3181 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
3182 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
3183 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
3184 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
3185 (elf_s390_grok_prstatus): Add missing prototype.
3187 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
3189 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
3190 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
3191 Call bfd_get_section_by_name only once. Initialize
3192 bpodata->n_bpo_relocs_this_section.
3193 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
3195 (bpo_reloc_request_sort_fn): Don't use difference of values as
3198 2002-02-02 David O'Brien <obrien@FreeBSD>
3200 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
3201 version 4.5 and later the same as 5-CURRENT.
3202 * configure: Re-generate.
3204 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
3206 * config.bfd (hppa*-*-netbsd*): New target.
3208 2002-01-31 Philipp Thomas <pthomas@suse.de>
3210 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
3211 to front of message. Unify messages with elf32-arm.h. Use
3212 commas where neccessary.
3213 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
3214 ERROR in messages. Unify messages with coff-arm.c. Correct
3215 VFP/FPA error message.
3216 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
3217 APCS-32 for translation.
3219 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3221 Perform on-demand global register allocation from
3222 R_MMIX_BASE_PLUS_OFFSET relocs.
3223 * elf64-mmix.c (struct bpo_reloc_section_info, struct
3224 bpo_reloc_request, struct bpo_greg_section_info): New.
3225 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
3226 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
3227 _bfd_mmix_check_all_relocs,
3228 _bfd_mmix_prepare_linker_allocated_gregs,
3229 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
3230 (elf_mmix_howto_table): Correct src_mask for most relocs.
3231 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
3233 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
3234 case. Fix typo in comment. New label do_mmix_reloc.
3235 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
3236 store first object file with a base-plus-offset reloc. Call
3237 mmix_elf_check_common_relocs for the part common with mmo.
3238 (mmix_elf_final_link): Write out linker-allocated register
3240 (elf_backend_gc_sweep_hook): Define.
3241 (bfd_elf64_bfd_relax_section): Define.
3243 * mmo.c: Don't include <ctype.h>
3244 (mmo_init): Correct init-once logic.
3246 2002-02-01 Tom Rix <trix@redhat.com>
3248 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
3250 2002-02-01 Alan Modra <amodra@bigpond.net.au>
3252 * Makefile.am: Run "make dep-am"
3253 * Makefile.in: Regenerate.
3255 2002-01-31 David O'Brien <obrien@FreeBSD>
3257 * configure.in: Recognize the differences in core files from FreeBSD
3258 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
3260 * configure: Regenerate.
3262 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
3264 * coff-or32.c: New file.
3265 * cpu-or32.c: New file.
3266 * elf32-or32.c: New file.
3267 * archures.c: Add support for or32.
3268 * targets.c: Add support for or32.
3269 * bfd-in2.h: Regenerate.
3270 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
3271 coff_write_object_contents): Add support for or32.
3272 * config.bfd: Add target.
3273 * configure.in: Add support for or32.
3274 * configure: Regenerate.
3275 * Makefile.am: Add support for or32.
3276 * Makefile.in: Regenerate.
3277 * po/SRC-POTFILES.in: Add or32 files.
3278 * po/bfd.pot: Regenerate.
3280 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
3281 Don Lindsay <lindsayd@cisco.com>
3283 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
3284 false' with a return of a bfd_reloc_ error code.
3286 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
3288 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
3289 unexport unreferenced symbols when --export-dynamic. Call
3290 _bfd_elf_strtab_delref when unexporting.
3292 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3294 * bfd-in.h: Include <stdbool.h> if it is available.
3295 * bfd-in2.h: Regenerated.
3297 2002-01-31 Alan Modra <amodra@bigpond.net.au>
3299 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
3302 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
3304 * archures.c: Tidy up formatting of embedded comments.
3305 * bfd.c: Tidy up formatting of embedded comments.
3306 * bfd-in.h: Fix formatting of comments.
3307 * reloc.c: Tidy up formatting of ordinary & embedded comments.
3308 * section.c: Tidy up formatting of embedded comments.
3309 * syms.c: Tidy up formatting of embedded comments.
3310 * targets.c: Tidy up formatting of embedded comments.
3312 * bfd-in2.h: Regenerate.
3314 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
3316 * vms-tir.c (cmd_name): New function.
3317 (tir_cmd_name): New function.
3318 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
3319 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
3322 * peXXigen.c (pe_print_idata): Rearrange message to aid in
3324 (pe_print_pdata): Rearrange message to aid in translation.
3326 * libbfd.c (warn_deprecated): Rearrange error message to aid in
3329 * ihex.c (ihex_write_object_contents): Fix spelling typo.
3331 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
3333 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
3334 message to aid in translation.
3336 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
3337 to aid in translation.
3339 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
3341 2002-01-30 Philipp Thomas <pthomas@suse.de>
3343 * coff-arm.c, elf32-elf.h: Unify messages.
3345 2002-01-30 Nick Clifton <nickc@redhat.com>
3347 * po/sv.po: Updated translation.
3349 2002-01-30 Philipp Thomas <pthomas@suse.de>
3351 * dwarf2.c (read_abbrev): Use full section name in error message.
3352 (decode_line_info): Likewise.
3354 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
3357 2002-01-30 Alan Modra <amodra@bigpond.net.au>
3359 * elf64-ppc.c (func_desc_adjust): Only provide missing function
3360 descriptor symbols for undefined function code syms. Clear
3361 ELF_LINK_NON_ELF so that they can stay weak.
3363 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3364 Mitch Lichtenberg <mpl@broadcom.com>
3366 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
3367 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
3368 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
3370 * bfd-in2.h: Regenerate.
3372 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3374 * elf32-mips.c: Add additional comments about HI16 relocation
3376 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
3377 pc-relative relocations. (Reverts change made on 2001-10-31.)
3378 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
3379 for pc-relative relocations.
3380 (mips_elf_calculate_relocation): Add a comment about a kludge
3381 in the R_MIPS_GNU_REL_HI16 handling.
3382 (_bfd_mips_elf_relocate_section): Implement that kludge;
3383 adjust pc-relative HI16 relocation for difference in HI16 and
3384 LO16 addresses, since it can't easily be done in
3385 mips_elf_calculate_relocation.
3387 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
3389 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
3390 relocations with PC32 relocations for undefined or weak symbols.
3391 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
3392 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
3394 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
3396 * elfcore.h (elf_core_file_p): Improve comment for last change.
3398 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3400 * configure: Regenerated.
3402 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
3404 * elfcore.h (elf_core_file_p): Set the machine architecture
3405 before processing the program headers.
3407 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3409 * configure.in <64-bit configuration>: If using gcc, check and
3410 emit error for egcs-1.1.2.
3411 * configure: Regenerate.
3413 2002-01-26 Egor Duda <deo@logos-m.ru>
3415 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
3416 as possible to avoid stack corruption.
3418 2002-01-26 Richard Henderson <rth@redhat.com>
3420 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
3421 for non-allocated sections.
3423 2002-01-25 Mark Kettenis <kettenis@gnu.org>
3425 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
3426 prstat.pr_reg even if it is a struct.
3428 2002-01-25 Steve Ellcey <sje@cup.hp.com>
3430 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
3432 2002-01-25 Philipp Thomas <pthomas@suse.de>
3434 * coffgen.c (coff_print_symbol): Don't mark info message
3437 2002-01-25 Nick Clifton <nickc@redhat.com>
3439 * po/fr.po: Updated translation.
3440 * po/es.po: Updated translation.
3442 2002-01-25 Philipp Thomas <pthomas@suse.de>
3444 * coff-alpha.c (alpha_relocate_section): Unify warning message
3445 for GP relative relocations without GP defined.
3446 * coff-mips.c (mips_relocate_section): Likewise.
3448 2002-01-25 Alan Modra <amodra@bigpond.net.au>
3450 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
3451 unsigned overflow when new_offset < old_offset.
3453 2002-01-24 Philipp Thomas <pthomas@suse.de>
3455 * bfd.c (_bfd_abort): Fix typo.
3457 2002-01-23 Richard Henderson <rth@redhat.com>
3459 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
3460 plt entries for undefweak symbols.
3462 2002-01-23 Steve Ellcey <sje@cup.hp.com>
3464 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
3466 (bfd_elf64_ia64_hpux_big_vec): Ditto.
3467 (bfd_elf32_h8300_vec): Ditto.
3469 2002-01-23 Alan Modra <amodra@bigpond.net.au>
3471 * elf64-ppc.c: Remove stale part of ABI comment.
3472 (NO_OPD_RELOCS): Define.
3473 (ppc64_elf_check_relocs): Use it.
3474 (ppc64_elf_relocate_section): Here too.
3475 (build_one_stub): Don't point function syms at the stub. Instead,
3477 (ppc64_elf_relocate_section): Check whether REL24 relocs should
3478 really go to the stub. Make all dynamic relocs in opd against
3480 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
3483 2002-01-22 Richard Henderson <rth@redhat.com>
3485 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
3487 2002-01-22 Alan Modra <amodra@bigpond.net.au>
3489 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
3490 TOC_BASE_OFF adjustment.
3492 * Makefile.am: Run "make dep-am".
3493 * Makefile.in: Regenerate.
3494 * po/SRC-POTFILES.in: Regenerate.
3496 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
3498 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
3501 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
3503 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
3504 Check for and emit error if sgot is NULL at this point.
3506 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3508 * config.bfd (ia64*-*-netbsd*): New target.
3510 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
3512 * som.c (som_write_space_strings): Comment typo fix.
3514 2002-01-21 Alan Modra <amodra@bigpond.net.au>
3516 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
3517 is_func_descriptor fields.
3518 (link_hash_newfunc): Init them.
3519 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
3520 dot are candidates for plt entries. When processing .opd relocs,
3521 set function descriptor strings to point inside function code
3522 string, and set new ppc_link_hash_entry fields.
3523 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
3524 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
3525 function descriptors. It's now done in..
3526 (func_desc_adjust): New.
3527 (ppc64_elf_func_desc_adjust): New.
3528 (define elf_backend_always_size_sections): Define.
3529 (ppc64_elf_hide_symbol): New.
3530 (define elf_backend_hide_symbol): Define.
3531 (allocate_dynrelocs): Remove code looking up function descriptors
3532 as that has been done earlier.
3533 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
3535 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
3536 up function descriptor.
3537 (build_one_stub): Look up the function code sym. Check for
3538 invalid plt offsets.
3539 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
3540 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
3542 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
3544 (_bfd_elf_link_hash_hide_symbol): Likewise.
3545 * elflink.h (elf_link_add_object_symbols): Adjust call to
3546 elf_backend_hide_symbol.
3547 (elf_fix_symbol_flags): Likewise.
3548 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
3550 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
3551 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
3552 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3553 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
3554 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
3556 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
3557 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
3558 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3560 2002-01-18 Alan Modra <amodra@bigpond.net.au>
3562 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
3563 dynamic function descriptor symbol, not the associated function
3566 2002-01-17 Eric Christopher <echristo@redhat.com>
3568 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
3570 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3572 * po/bfd.pot: Regenerate.
3573 * po/fr.po: Regenerate.
3575 2002-01-17 Alan Modra <amodra@bigpond.net.au>
3577 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
3578 Remove "Elf_Internal_Shdr *" param.
3579 (_bfd_mips_elf_section_from_bfd_section): Ditto.
3580 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
3581 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
3582 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
3583 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
3584 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
3585 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
3586 function to override special sections. Remove hdr arg from
3587 backend call, and don't loop.
3589 2002-01-16 Eric Christopher <echristo@redhat.com>
3591 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
3592 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
3593 relocations requiring gp0 and gp.
3595 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
3597 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
3599 (elf32_arm_print_private_bfd_data): Likewise.
3601 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
3603 * po/tr.po: Import new version.
3605 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3607 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
3608 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
3609 (ORI_R0_R0_0): Correct.
3611 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3613 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
3614 when plt_not_loaded.
3615 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
3616 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
3617 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
3618 (ppc64_elf_glink_code): Delete.
3619 (PPC64_ELF_GLINK_SIZE): Delete.
3620 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
3621 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
3622 ORI_R0_R0_0): Define.
3623 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
3624 (struct ppc_link_hash_table): Add sstub and plt_overflow.
3625 (ppc64_elf_link_hash_table_create): Init them.
3626 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
3627 Don't copy to shared lib.
3628 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
3629 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
3630 (allocate_dynrelocs <plt>): Don't change function sym here. Make
3631 room for .stub and .glink code.
3632 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
3634 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
3635 bfd_elf64_bfd_final_link.
3636 (bfd_elf64_bfd_final_link): Don't define.
3637 (ppc64_elf_size_stubs): New.
3638 (build_plt_stub): New.
3639 (build_one_stub): New.
3640 (ppc64_elf_build_stubs): New.
3641 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
3642 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
3643 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
3644 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
3645 case output sections not separate. Adjust DT_RELASZ to not
3646 include plt relocs. Set reserved got entry. Set got and plt
3648 (elf_backend_got_header_size): Set to 8.
3649 * elf64-ppc.h: New file.
3651 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3653 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
3654 sections, use bfd_section_list_remove.
3655 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3656 * elflink.h (elf_link_add_object_symbols): When removing all
3657 sections, use bfd_section_list_clear.
3659 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3661 * po/sv.po: New file: Swedish translation.
3662 * configure.in (ALL_LINGUAS): Add sv.
3663 * configure: Regenerate.
3665 2002-01-15 Jakub Jelinek <jakub@redhat.com>
3667 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
3668 * elf.c (merge_sections_remove_hook): New function.
3669 (_bfd_elf_merge_sections): Pass it as 3rd argument to
3670 _bfd_merge_sections.
3671 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
3672 * libbfd.h: Rebuilt.
3673 * merge.c (_bfd_merge_sections): Add remove_hook argument.
3674 Call remove_hook if a SEC_EXCLUDE section is encountered.
3676 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3678 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
3679 (xstormy16_reloc_map): Initialise new field with correct howto
3681 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
3684 2002-01-10 Michael Snyder <msnyder@redhat.com>
3686 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
3687 (elfcore_write_pstatus): Use long instead of pid_t;
3688 * elf-bfd.h: Change prototypes to use long instead of pid_t;
3690 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
3692 * elf.c: Update copyright years.
3693 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
3694 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
3696 2002-01-08 Michael Snyder <msnyder@redhat.com>
3698 Add capability to write corefile note sections, for gdb.
3699 * elf.c (elfcore_write_note): New function.
3700 (elfcore_write_prpsinfo): New function.
3701 (elfcore_write_prstatus): New function.
3702 (elfcore_write_pstatus): New function.
3703 (elfcore_write_prfpreg): New function.
3704 (elfcore_write_prxfpreg): New function.
3705 * elf-bfd.h: Add prototypes for above functions.
3707 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
3709 * elf.c (elf_fake_sections): Propagate errors from
3710 elf_backend_fake_section.
3712 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3714 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
3715 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
3716 (elf32-sh-nbsd.lo): New rule.
3717 * Makefile.in: Regenerate.
3718 * config.bfd (sh*le-*-netbsdelf*): New target.
3719 (sh*-*-netbsdelf*): New target.
3720 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
3721 (bfd_elf32_shnbsd_vec): New vector.
3722 (bfd_elf32_shlnbsd_vec): New vector.
3723 * configure: Regenerate.
3724 * elf32-sh-nbsd.c: New file.
3725 * targets.c: Update copyright years.
3726 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
3727 bfd_elf32_shnbsd_vec.
3729 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
3731 * coff-rs6000.c (READ20): Use bfd_scan_vma.
3733 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
3735 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
3736 of a symbol in a section that will be deleted.
3738 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3740 * po/es.po: New file: Spanish translation.
3741 * configure.in (ALL_LINGUAS): Add es.
3742 * configure: Regenerate.
3744 2002-01-06 Steve Ellcey <sje@cup.hp.com>
3746 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
3747 argument so we can handle HP-UX specially.
3748 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
3749 (elfNN_hpux_backend_section_from_bfd_section): New for support
3750 of SHN_IA_64_ANSI_COMMON.
3751 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
3752 (is_unwind_section_name): Add special HP-UX support.
3753 (elfNN_ia64_section_from_shdr): Add support for more sections.
3754 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
3755 add support for more sections.
3756 (elfNN_ia64_additional_program_headers): Modify
3757 is_unwind_section_name call.
3758 (elfNN_ia64_modify_segment_map): Remove assumption that there is
3759 only one unwind section in segment.
3761 2002-01-06 Alan Modra <amodra@bigpond.net.au>
3763 * syms.c (_bfd_generic_make_empty_symbol): New function.
3764 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
3765 _bfd_generic_make_empty_symbol.
3766 * libbfd.h: Regenerate.
3767 * bfd-in2.h: Regenerate.
3768 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
3769 (hppabsd_core_get_symtab_upper_bound): Don't define.
3770 (hppabsd_core_get_symtab): Likewise.
3771 (hppabsd_core_print_symbol): Likewise.
3772 (hppabsd_core_get_symbol_info): Likewise.
3773 (hppabsd_core_bfd_is_local_label_name): Likewise.
3774 (hppabsd_core_get_lineno): Likewise.
3775 (hppabsd_core_find_nearest_line): Likewise.
3776 (hppabsd_core_bfd_make_debug_symbol): Likewise.
3777 (hppabsd_core_read_minisymbols): Likewise.
3778 (hppabsd_core_minisymbol_to_symbol): Likewise.
3779 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
3781 * hpux-core.c: Similarly.
3782 * irix-core.c: Similarly.
3783 * osf-core.c: Similarly.
3784 * sco5-core.c: Similarly.
3785 * binary.c (binary_make_empty_symbol): Remove function, define as
3786 _bfd_generic_make_empty_symbol.
3787 * ihex.c (ihex_make_empty_symbol): Likewise.
3788 * mmo.c (mmo_make_empty_symbol): Likewise.
3789 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
3790 * srec.c (srec_make_empty_symbol): Likewise.
3791 * versados.c (versados_make_empty_symbol): Likewise.
3792 * vms.c (_bfd_vms_make_empty_symbol): Remove.
3793 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
3794 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
3795 rather than _bfd_vms_make_empty_symbol.
3796 * vms-misc.c (new_symbol): Likewise.
3798 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3800 * section.c (bfd_section_init): Remove unnecessary initialisations.
3801 (bfd_section_list_clear): New function.
3802 (bfd_section_list_remove, bfd_section_list_insert): New macros.
3803 (_bfd_strip_section_from_output): Use them.
3804 * coffcode.h (coff_set_alignment_hook): Likewise.
3805 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
3806 * elf64-mips.c (mips_elf64_final_link): Likewise.
3807 * elf64-mmix.c (mmix_elf_final_link): Likewise.
3808 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3809 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
3810 * bfd-in2.h: Regenerate.
3812 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
3813 rather than doing our own section handling. Clean up after errors
3814 with bfd_release and bfd_section_list_clear. Handle unexpected
3816 * aoutf1.h (sunos4_core_file_p): Likewise.
3817 * aix386-core.c (aix386_core_file_p): Likewise.
3818 * cisco-core.c (cisco_core_file_validate): Likewise.
3819 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
3820 * trad-core.c (trad_unix_core_file_p): Likewise.
3822 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
3823 with bfd_release and bfd_section_list_clear.
3824 * hpux-core.c (hpux_core_core_file_p): Likewise.
3825 * irix-core.c (irix_core_core_file_p): Likewise.
3826 * lynx-core.c (lynx_core_file_p): Likewise.
3827 * osf-core.c (osf_core_core_file_p): Likewise.
3828 * rs6000-core.c (rs6000coff_core_p): Likewise.
3829 * sco5-core.c (sco5_core_file_p): Likewise.
3831 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
3832 sign extension adjustments without conditionals.
3834 2002-01-04 Jakub Jelinek <jakub@redhat.com>
3836 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
3837 CIE at .eh_frame start is removed due to no FDEs referencing it.
3839 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3841 * config.bfd (x86_64-*-netbsd*): New target.
3842 * configure.in (x86_64-*-netbsd*): Set COREFILE
3844 * configure: Regenerated.
3846 2002-01-03 Tom Rix <trix@redhat.com>
3848 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
3849 for recent bfd_make_section_anyway change.
3851 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
3853 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3854 R_ARM_THM_PC11 reloc.
3856 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3858 * configure.in (LINGUAS): Add ja.
3859 * configure: Regenerate.
3860 * po/ja.po: Import from translation project's web site.
3862 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3864 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
3865 messages to ease translation into other languages.
3867 For older changes see ChangeLog-0001
3873 version-control: never