1 2002-07-15 Denis Chertykov <denisc@overta.ru>
2 Frank Ch. Eigler <fche@redhat.com>
3 Ben Elliston <bje@redhat.com>
4 Alan Lehotsky <alehotsky@cygnus.com>
5 John Healy <jhealy@redhat.com>
6 Graham Stott <grahams@redhat.com>
7 Jeff Johnston <jjohnstn@redhat.com>
9 * Makefile.am: Add support for ip2k.
10 * Makefile.in: Regenerate.
11 * doc/Makefile.in: Regenerate.
12 * archures.c: Add support for ip2k.
13 * config.bfd: Add support for ip2k.
14 * configure.in: Add support for ip2k.
15 * configure: Regenerate.
16 * reloc.c: Add support for ip2k.
17 * targets.c: Add support for ip2k.
18 * bfd-in2.h: Regenerate.
19 * libbfd.h: Regenerate.
20 * cpu-ip2k.c: New file.
21 * elf32-ip2k.c: New file.
23 2002-07-17 Ian Rickards <irickard@arm.com>
25 * dwarf2.c (concat_filename): If we can't establish the directory
26 just return the filename.
28 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
30 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Correct order of memset args.
32 2002-07-16 Alan Modra <amodra@bigpond.net.au>
34 * elflink.h: Formatting fixes, tidy prototypes.
35 (elf_link_assign_sym_version): Move common code out of loop.
37 2002-07-16 Alan Modra <amodra@bigpond.net.au>
39 * elflink.h (elf_link_input_bfd): Don't call reloc_emitter when
40 reloc section size is zero. Correct reloc output location.
42 2002-07-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
44 * elf-hppa.h (elf_hppa_reloc_final_type): Use R_PARISC_PCREL16F as
45 the final type for the e_fsel selector when generating PA2.0W code.
46 (elf_hppa_relocate_insn): Provide support for PA2.0W 16-bit format 1
49 2002-07-14 H.J. Lu <hjl@gnu.org>
51 * elflink.h (elf_link_assign_sym_version): Hide the default
52 definition if there is a hidden versioned definition.
54 2002-07-12 Hans-Peter Nilsson <hp@axis.com>
56 * elf32-cris.c (cris_elf_relocate_section): Drop nonsensical
57 dynamic reference test in assertion when initializing GOT with
58 static contents. Just assert that there are either no dynamic
59 sections, the symbol is defined in the regular objects or that the
60 symbol is undef weak. Tweak comment.
61 (elf_cris_finish_dynamic_symbol): Emit .got reloc for a program
62 only if the symbol isn't defined in the program and isn't undef
64 (elf_cris_adjust_dynamic_symbol): Simplify condition for getting
65 rid of PLT entry: only do it if the symbol isn't defined in a DSO.
66 When doing so, clear ELF_LINK_HASH_NEEDS_PLT. Tweak comments.
67 (elf_cris_discard_excess_program_dynamics): Don't consider
68 ELF_LINK_HASH_REF_DYNAMIC when omitting .got runtime relocs.
70 2002-07-11 Alan Modra <amodra@bigpond.net.au>
72 * elf32-i386.c (elf_i386_relocate_section): Don't complain about
73 unresolved debugging relocs in dynamic applications.
74 * elf32-s390.c (elf_s390_relocate_section): Likewise.
75 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
76 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
77 * elf64-s390.c (elf_s390_relocate_section): Likewise.
78 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
79 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
81 2002-07-10 Alan Modra <amodra@bigpond.net.au>
83 * elf64-ppc.c (ONES): Define.
84 (ppc64_elf_howto_table): Use ONES here to avoid warnings. Fill in
85 missing src_mask fields. Tweak R_PPC64_NONE, R_PPC64_COPY. Fill
86 in missing dst_mask fields on R_PPC64_PLT32, R_PPC64_PLTREL32.
88 * elf64-ppc.c (ppc64_elf_get_symbol_info): Delete.
89 (ppc64_elf_set_private_flags): Delete.
90 (ppc64_elf_section_from_shdr): Delete.
91 (ppc64_elf_merge_private_bfd_data): Remove flag checking/merging code.
92 (ppc64_elf_fake_sections): Delete.
93 (bfd_elf64_bfd_set_private_flags): Don't define.
94 (bfd_elf64_get_symbol_info): Likewise.
95 (elf_backend_section_from_shdr): Likewise.
96 (elf_backend_fake_sections): Likewise.
98 2002-07-10 Marco Walther <Marco.Walther@sun.com>
100 * elf.c: (assign_section_numbers) Set sh_entsize for .stab only
101 when not already set.
102 * elf64-sparc.c: (sparc64_elf_fake_sections): New function.
103 (elf_backend_fake_sections): Define.
105 2002-07-10 Alan Modra <amodra@bigpond.net.au>
107 * merge.c (_bfd_merge_section): Remove redundant output_section check.
109 (_bfd_merge_sections): Don't set SEC_EXCLUDE on unused sections.
111 2002-07-09 Hans-Peter Nilsson <hp@axis.com>
113 * elf32-cris.c (cris_elf_relocate_section): Move sanity-check for
114 NULL sym_hashes to just before use.
115 <case R_CRIS_32_GOTREL>: In test for local symbol, accept also
116 symbol with non-default visibility.
117 <case R_CRIS_32_GOTREL, case R_CRIS_32_PLT_GOTREL>: Ditto.
118 <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
120 (cris_elf_gc_sweep_hook): Only decrease h->plt.refcount for
121 symbol with non-default visibility.
122 (cris_elf_check_relocs): At tests for local symbol before
123 increasing h->plt.refcount, also check for non-default
124 visibility. Ditto when checking for local symbol to eliminate
125 pc-relative runtime relocs.
127 2002-07-08 Alan Modra <amodra@bigpond.net.au>
130 (IS_SOLARIS_PT_INTERP): Add p_paddr and p_memsz checks.
131 (INCLUDE_SECTION_IN_SEGMENT): Remove IS_SOLARIS_PT_INTERP.
132 (copy_private_bfd_data): Set p_vaddr on broken Solaris PT_INTERP
135 2002-07-07 Mark Mitchell <mark@codesourcery.com>
136 Alan Modra <amodra@bigpond.net.au>
138 * cofflink.c (_bfd_coff_final_link): On PE COFF systems, take into
139 account the impact of relocation count overflow when computing
141 * coffcode.h (coff_write_relocs): Use obj_pe when deciding whether
142 or not to apply the PE COFF reloc overflow handling. Fix a
143 fencepost error in deciding whether or not to use that technique.
145 2002-07-07 Alan Modra <amodra@bigpond.net.au>
147 * elf-bfd.h (struct elf_reloc_cookie): Remove locsym_shndx,
148 change type of locsyms.
149 (bfd_elf_get_elf_syms): Declare.
150 * elf.c (bfd_elf_get_elf_syms): New function.
151 (group_signature): Use bfd_elf_get_elf_syms.
152 (bfd_section_from_r_symndx): Likewise.
153 * elfcode.h (elf_slurp_symbol_table): Likewise.
154 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
155 (elf_link_add_object_symbols): Likewise. Reorganise to increase
156 locality of various data structures. Properly free internal relocs.
157 (elf_bfd_final_link): Properly free internal relocs.
158 (elf_link_check_versioned_symbol): Use bfd_elf_get_elf_syms.
159 (elf_link_input_bfd): Likewise.
160 (elf_gc_mark): Likewise. Properly free internal relocs.
161 (elf_gc_sweep): Properly free internal relocs.
162 (elf_reloc_symbol_deleted_p): No need to swap syms in.
163 (elf_bfd_discard_info): Use bfd_elf_get_elf_syms. Properly free
165 * elf-m10200.c (mn10200_elf_relax_section): Use bfd_elf_get_elf_syms.
166 Properly free possibly cached info.
167 (mn10200_elf_relax_delete_bytes): Remove symbol swapping code.
168 (mn10200_elf_symbol_address_p): Pass in internal syms. Remove
169 symbol swapping code.
170 (mn10200_elf_get_relocated_section_contents): Use bfd_elf_get_elf_syms.
171 Properly free possibly cached info.
172 * elf-m10300.c (mn10300_elf_relax_section): As above for elf-m10200.c.
173 (mn10300_elf_relax_delete_bytes): Likewise.
174 (mn10300_elf_symbol_address_p): Likewise.
175 (mn10300_elf_get_relocated_section_contents): Likewise.
176 * elf32-h8300.c (elf32_h8_relax_section): As above for elf-m10200.c.
177 (elf32_h8_relax_delete_bytes): Likewise.
178 (elf32_h8_symbol_address_p): Likewise.
179 (elf32_h8_get_relocated_section_contents): Likewise.
180 * elf32-m32r.c (m32r_elf_relax_section): As above for elf-m10200.c.
181 (m32r_elf_relax_delete_bytes): Likewise.
182 (m32r_elf_get_relocated_section_contents): Likewise.
183 * elf32-sh.c (sh_elf_reloc_loop): Free section contents using
184 elf_section_data to determine whether cached.
185 (sh_elf_relax_section): As above for elf-m10200.c.
186 (sh_elf_relax_delete_bytes): Likewise.
187 (sh_elf_get_relocated_section_contents): Likewise.
188 * elf32-xstormy16.c (xstormy16_elf_relax_section): As above.
189 * elf64-alpha.c (elf64_alpha_relax_section): As above. Also delay
190 reading of local syms.
191 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
192 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): As above.
193 * elfxx-ia64.c (elfNN_ia64_relax_section): As above.
194 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Properly free internal
196 * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Properly
197 free internal relocs and section contents. Don't read symbols.
198 * elf32-hppa.c (get_local_syms): Use bfd_elf_get_elf_syms.
199 (elf32_hppa_size_stubs): Don't free local syms.
200 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Delay
201 reading of local syms. Use bfd_elf_get_elf_syms. Properly free
202 possibly cached info.
203 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
204 * elf64-hppa.c (elf64_hppa_check_relocs): Use bfd_elf_get_elf_syms.
205 * elf64-ppc.c (struct ppc_link_hash_table): Delete bfd_count and
207 (get_local_syms): Delete function.
208 (edit_opd): Use bfd_elf_get_elf_syms. Free on error exit. Cache
210 (ppc64_elf_size_stubs): Use bfd_elf_get_elf_syms. Free/cache on exit.
212 2002-07-05 Jim Wilson <wilson@redhat.com>
214 * syms.c (decode_section_type): New.
215 (bfd_decode_symclass): Call decode_section_type.
217 2002-07-04 Jakub Jelinek <jakub@redhat.com>
219 * merge.c (_bfd_merged_section_offset): Avoid accessing byte before
220 section content start.
221 Reported by Michael Schumacher <mike@hightec-rt.com>.
223 2002-07-04 Alan Modra <amodra@bigpond.net.au>
225 * section.c (_bfd_strip_section_from_output): Remove unnecessary
226 link order code. Don't actually remove the output section here;
227 Just set a flag for the linker to do so.
228 * elflink.c (_bfd_elf_link_renumber_dynsyms): Test for removed
229 sections when setting up output section dynsyms.
231 2002-07-04 Alan Modra <amodra@bigpond.net.au>
233 * elflink.h (elf_link_add_object_symbols): Revert 1999-09-02 hpux
235 * elf.c (bfd_section_from_shdr): Work around broken hpux shared
238 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
240 * elf64-s390.c (create_got_section): Set .got section alignment to
242 (elf_s390_check_relocs): Set .rela.dyn section alignment to 8 bytes.
244 2002-07-02 Alan Modra <amodra@bigpond.net.au>
246 * elf.c (_bfd_elf_reloc_type_class): Fix comment grammar.
248 2002-07-01 Matt Thomas <matt@3am-software.com>
250 * elf32-vax.c (elf32_vax_print_private_bfd_data): Change EF_*
253 2002-07-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
255 * elfxx-mips.c (ABI_64_P): Fix comment.
256 (MIPS_ELF_OPTIONS_SECTION_NAME,MIPS_ELF_STUB_SECTION_NAME): Use the
257 new section names for N64 ABI.
258 (mips_elf_output_extsym): No special _gp_disp handling for NewABI.
259 (mips_elf_calculate_relocation): Code formatting.
260 (mips_elf_create_dynamic_relocation): Likewise.
261 (_bfd_mips_elf_fake_sections): IRIX6 needs this hack, too.
262 (_bfd_mips_elf_size_dynamic_sections): Handle GOT_PAGE for any NewABI.
263 (_bfd_mips_elf_relocate_section): No special handling for R_MIPS_64
265 (_bfd_mips_elf_finish_dynamic_symbol): No special _gp_disp handling
267 (_bfd_mips_elf_modify_segment_map): Handle any N64 ABI.
268 (_bfd_mips_elf_gc_sweep_hook): NewABI GOT relocs should be handled
271 2002-07-01 Andreas Schwab <schwab@suse.de>
273 * elf64-x86-64.c (elf64_x86_64_relocate_section): Only convert
274 R_X86_64_64 to R_X86_64_RELATIVE.
276 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
278 * vaxbsd.c: New BFD backend for VAX BSD and Ultrix.
279 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Add new backend.
281 * config.bfd (vax-*-bsd* | vax-*-ultrix*): Use vaxbsd_vec instead of
283 * configure.in (vaxbsd_vec): Add.
284 * targets.c (vaxbsd_vec): Add.
285 * Makefile.in: Rebuild.
286 * configure: Rebuild.
287 * po/SRC-POTFILES.in: Rebuild.
289 2002-07-01 Alan Modra <amodra@bigpond.net.au>
291 * elflink.h (elf_gc_mark): Pass in the section whose relocs we are
292 examining to gc_mark_hook, rather than the bfd.
293 (elf_gc_sections): Adjust.
294 * elf-bfd.h (struct elf_backend_data <gc_mark_hook>): Likewise.
295 * elf-m10300.c (mn10300_elf_gc_mark_hook): Likewise.
296 * elf32-arm.h (elf32_arm_gc_mark_hook): Likewise.
297 * elf32-avr.c (elf32_avr_gc_mark_hook): Likewise.
298 * elf32-cris.c (cris_elf_gc_mark_hook): Likewise.
299 * elf32-d10v.c (elf32_d10v_gc_mark_hook): Likewise.
300 * elf32-fr30.c (fr30_elf_gc_mark_hook): Likewise.
301 * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise.
302 * elf32-i386.c (elf_i386_gc_mark_hook): Likewise.
303 * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise.
304 * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise.
305 * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise.
306 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Likewise.
307 * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise.
308 * elf32-s390.c (elf_s390_gc_mark_hook): Likewise.
309 * elf32-sh.c (sh_elf_gc_mark_hook): Likewise.
310 * elf32-sparc.c (elf32_sparc_gc_mark_hook): Likewise.
311 * elf32-v850.c (v850_elf_gc_mark_hook): Likewise.
312 * elf32-vax.c (elf_vax_gc_mark_hook): Likewise.
313 * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Likewise.
314 * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise.
315 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
316 * elf64-s390.c (elf_s390_gc_mark_hook): Likewise.
317 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
318 * elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise.
319 * elfxx-mips.h (_bfd_mips_elf_gc_mark_hook): Likewise.
320 * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise.
321 * elf32-frv.c (elf32_frv_gc_mark_hook): Likewise. Also remove
322 redundant local sym tests.
323 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_entry.
324 (link_hash_newfunc): Init is_entry.
325 (ppc64_elf_copy_indirect_symbol): Copy is_entry.
326 (ppc64_elf_link_hash_table_create): Init all_local_syms.
327 (create_linkage_sections): Use bfd_make_section_anyway rather than
329 (ppc64_elf_mark_entry_syms): New function.
330 (ppc64_elf_check_relocs): Don't bother testing elf_bad_symtab. Set
331 up opd entry to function section map.
332 (ppc64_elf_gc_mark_hook): Special case opd section relocs, and
333 relocs that reference the opd section.
334 (edit_opd): New function.
335 (ppc64_elf_size_dynamic_sections): Call get_local_syms and edit_opd.
336 (ppc64_elf_setup_section_lists): Don't calculate htab->bfd_count here.
337 (get_local_syms): Do so here. Exit if we already have local syms.
338 Remove bogus comment imported from elf32-hppa.c. Don't attempt to
339 read local syms on non-ELF input.
340 (ppc64_elf_size_stubs): Call _bfd_elf64_link_read_relocs rather
341 than duplicating it's function here. Adjust free of internal
343 (ppc64_elf_relocate_section): Adjust local syms in opd section.
344 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Declare.
345 * elf32-hppa.c (elf32_hppa_size_stubs): Call
346 _bfd_elf32_link_read_relocs rather than duplicating it's function
347 here. Adjust free of internal relocs to suit.
349 2002-07-01 Andreas Jaeger <aj@suse.de>
351 * elf64-x86-64.c (elf64_x86_64_check_relocs): Certain relocations
352 are not allowed in shared libs code, enforce -fPIC.
354 2002-06-29 Hans-Peter Nilsson <hp@bitrange.com>
356 * mmo.c (mmo_write_loc_chunk): Don't eliminate leading and
357 trailing zero-sequences when there's previous left-over data.
359 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>
361 * elf64-hppa.c (elf64_hppa_reloc_type_class): New function.
362 (elf64_hppa_finish_dynamic_sections): Check other_rel_sec, dlt_rel_sec
363 and opd_rel_sec in order for starting rela section. Check _raw_size.
364 (elf_backend_reloc_type_class): Define.
366 2002-06-27 Kevin Buettner <kevinb@redhat.com>
368 * dwarf2.c (decode_line_info): Handle older, non-standard, 64-bit
371 2002-06-27 Alan Modra <amodra@bigpond.net.au>
373 * cpu-powerpc.c: Comment on ordering of arch_info.
374 * elf32-ppc.c (ppc_elf_object_p): New function.
375 (elf_backend_object_p): Define.
376 * elf64-ppc.c (ppc64_elf_object_p): New function.
377 (elf_backend_object_p): Define.
379 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
381 * configure.in (vax-*-netbsd*): Set COREFILE to netbsd-core.lo.
382 * configure: Regenerate.
384 2002-06-25 Jason Eckhardt <jle@rice.edu>
386 * dwarf2.c (decode_line_info): Check unit->addr_size
387 to read in the proper number of prologue bytes.
389 2002-06-25 Nick Clifton <nickc@cambridge.redhat.com>
391 * config.bfd (powerpc-*-aix5*): Only create a selvecs for
392 aix5coff64_vec if 64-bit bfd support has been enabled.
393 (powerpc64-*-aix5*): Only define if 64-bit bfd support has
396 * targets.c (_bfd_target_vector[]): Only include
397 aix5coff64_vec if 64-bit bfd support has been enabled.
399 2002-06-25 Alan Modra <amodra@bigpond.net.au>
401 * elf64-ppc.c (ppc_add_stub): Replace strcpy/strncpy with memcpy.
402 * elf32-hppa.c (hppa_add_stub): Likewise.
403 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
404 * elflink.h (elf_add_default_symbol): Fix comment typo.
405 (elf_add_default_symbol): Replace strcpy and strncpy with memcpy.
406 (elf_link_add_object_symbols): Likewise.
407 (elf_link_assign_sym_version): Likewise.
408 * hash.c (bfd_hash_lookup): Likewise.
409 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
410 * section.c (bfd_get_unique_section_name): Likewise.
411 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
412 * elf.c (_bfd_elf_make_section_from_phdr): Likewise.
413 (assign_section_numbers): Likewise.
414 (_bfd_elfcore_make_pseudosection): Likewise.
415 (elfcore_grok_lwpstatus): Likewise.
416 (elfcore_grok_win32pstatus): Likewise.
417 (elfcore_write_note): Constify input params. Use PTR instead of
418 void *. Include terminating NUL in namesz. Correct padding.
419 Support NULL "name" param. Use memcpy instead of strcpy.
420 (elfcore_write_prpsinfo): Constify input params.
421 (elfcore_write_prstatus): Likewise. Use PTR instead of void *.
422 (elfcore_write_lwpstatus): Likewise.
423 (elfcore_write_pstatus): Likewise.
424 (elfcore_write_prfpreg): Likewise.
425 (elfcore_write_prxfpreg): Likewise.
426 * elf-bfd.h (elfcore_write_note): Update declaration.
427 (elfcore_write_prpsinfo): Likewise.
428 (elfcore_write_prstatus): Likewise.
429 (elfcore_write_pstatus): Likewise.
430 (elfcore_write_prfpreg): Likewise.
431 (elfcore_write_prxfpreg): Likewise.
432 (elfcore_write_lwpstatus): Likewise.
434 2002-06-25 Jason Eckhardt <jle@rice.edu>
436 * ecoff.c (ecoff_set_symbol_info): Set BSF_FUNCTION for
437 symbols of type stProc and stStaticProc.
439 2002-06-25 Nick Clifton <nickc@redhat.com>
441 * ecoff.c: VArious formatting fixes.
443 2002-06-25 Alan Modra <amodra@bigpond.net.au>
445 * coff-rs6000.c (xcoff_generate_rtinit): Fix typo.
447 2002-06-25 Alan Modra <amodra@bigpond.net.au>
449 * aout-adobe.c: Don't compare against "true" or "false.
450 * aout-target.h: Likewise.
452 * archive.c: Likewise.
455 * coff-a29k.c: Likewise.
456 * coff-alpha.c: Likewise.
457 * coff-i386.c: Likewise.
458 * coff-mips.c: Likewise.
459 * coff-or32.c: Likewise.
460 * coff64-rs6000.c: Likewise.
461 * coffcode.h: Likewise.
462 * coffgen.c: Likewise.
463 * cpu-ns32k.c: Likewise.
465 * ecofflink.c: Likewise.
467 * elf32-arm.h: Likewise.
468 * elf32-cris.c: Likewise.
469 * elf32-d30v.c: Likewise.
470 * elf32-i386.c: Likewise.
471 * elf32-mcore.c: Likewise.
472 * elf32-ppc.c: Likewise.
473 * elf32-sh.c: Likewise.
474 * elf32-sh64.c: Likewise.
475 * elf32-v850.c: Likewise.
476 * elf64-alpha.c: Likewise.
477 * elf64-sh64.c: Likewise.
478 * elfcode.h: Likewise.
479 * elfcore.h: Likewise.
480 * elflink.h: Likewise.
481 * elfxx-mips.c: Likewise.
482 * i386os9k.c: Likewise.
484 * libbfd.c: Likewise.
485 * linker.c: Likewise.
487 * nlm32-alpha.c: Likewise.
488 * nlm32-i386.c: Likewise.
489 * nlm32-ppc.c: Likewise.
490 * nlm32-sparc.c: Likewise.
491 * nlmcode.h: Likewise.
494 * peicode.h: Likewise.
498 * tekhex.c: Likewise.
500 * xcofflink.c: Likewise.
501 * elf64-sparc.c: Edit comment to not use "== false".
503 * aoutf1.h: Don't use "? true : false".
505 * format.c: Likewise.
507 * linker.c: Likewise.
511 2002-06-23 H.J. Lu <hjl@gnu.org>
513 * elflink.h (elf_link_add_archive_symbols): For the default
514 version, check references with only one `@' first.
516 2002-06-23 John David Anglin <dave@hiauly1.hia.nrc.ca>
518 * elf64-hppa.c (elf64_hppa_mark_milli_and_exported_functions): New
520 (allocate_global_data_dlt): Don't add millicode symbols to dynamic
522 (allocate_global_data_opd, allocate_dynrel_entries): Likewise.
523 (elf64_hppa_size_dynamic_sections): Revise to use
524 elf64_hppa_mark_milli_and_exported_functions.
525 (elf64_hppa_finish_dynamic_symbol): Remove code to keep millicode
526 symbols out of dynamic symbol table.
528 2002-06-23 Alan Modra <amodra@bigpond.net.au>
530 * Makefile.in: Regenerate.
531 * libbfd.h: Regenerate.
532 * bfd-in2.h: Regenerate.
533 * configure: Regenerate.
534 * po/SRC-POTFILES.in: Regenerate.
536 * elflink.h: Comment typo fixes.
538 2002-06-23 H.J. Lu <hjl@gnu.org>
540 * elf-bfd.h (elf_link_loaded_list): New structure.
541 (elf_link_hash_table): Add "loaded".
542 * elf.c (_bfd_elf_link_hash_table_init): Initialize "loaded".
543 * elflink.h (elf_link_check_versioned_symbol): New function.
544 (elf_link_output_extsym): Call elf_link_check_versioned_symbol.
546 2002-06-19 Nick Clifton <nickc@cambridge.redhat.com>
548 * elflink.h (size_dynamic_sections): If the target does not
549 support an ELF style hash table, return true, indicating that
550 nothing needed to be done, rather than false, indicating that the
551 section's size could not be computed.
553 2002-06-18 Dave Brolley <brolley@redhat.com>
555 From Catherine Moore, Michael Meissner, Dave Brolley:
556 * po/SRC-POTFILES.in: Add cpu-frv.c and elf32-frv.c
557 * targets.c: Support bfd_elf32_frv_vec.
558 * reloc.c: Add FRV relocs.
559 * configure.in: Add support for bfd-elf32-frv-vec.
560 * config.bfd (targ_cpu): Add support for frv-*-elf.
561 * archures.c: Add frv arch and machines.
562 * Makefile.am (ALL_MACHINES): Add cpu-frv.lo.
563 (ALL_MACHINES_CFILES): Add cpu-frv.c.
564 (BFD32_BACKENDS): Add elf32-frv.lo.
565 (BFD32_BACKENDS_CFILES): Add elf32-frv.c
566 (cpu-frv.lo): New target.
567 (elf32-frv.lo): New target.
568 * cpu-frv.c: New file.
569 * elf32-frv.c: New file.
571 2002-06-18 Jakub Jelinek <jakub@redhat.com>
573 * elfcode.h (elf_object_p): Sanity check eh_shoff == 0 implies
575 Only read the first section header if e_shoff is non-zero.
576 Don't consider e_shstrndx if there are no sections.
578 2002-06-17 Tom Rix <trix@redhat.com>
580 * elf32-d10v.c (elf_d10v_howto_table): Change R_D10V_10_PCREL_R,
581 R_D10V_10_PCREL_L and R_D10V_18_PCREL to use
582 complain_overflow_bitfield.
584 2002-06-17 Alan Modra <amodra@bigpond.net.au>
586 * opncls.c (bfd_openr): Remove redundant bfd_set_error.
587 (bfd_fdopenr): Likewise.
588 (bfd_openstreamr): Likewise.
589 (bfd_openw): Likewise.
591 * targets.c: Sort target vecs.
592 (_bfd_target_vector): Add aix5coff64_vec, bfd_elf32_sh64_vec,
593 bfd_elf32_sh64l_vec, bfd_elf32_sh64lnbsd_vec,
594 bfd_elf32_sh64nbsd_vec, bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec,
595 bfd_elf64_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec.
596 * configure.in: Sort target vecs. Add m88kmach3_vec.
597 * configure: Regenerate.
599 2002-06-16 Hans-Peter Nilsson <hp@bitrange.com>
601 * elf64-mmix.c (bpo_reloc_request_sort_fn): Use member
602 bpo_reloc_no to break sort order ties, not address of items.
604 2002-06-16 John David Anglin <dave@hiauly1.hia.nrc.ca>
606 * elf-hppa.h (elf_hppa_final_link): Fix formatting in comment.
607 Skip excluded sections in determing __gp value.
608 (elf_hppa_final_link_relocate): Use the symbol's address in
609 R_PARISC_FPTR64 relocations that don't need an opd entry.
610 * elf64-hppa.c (allocate_dynrel_entries): Simplify code.
611 (elf64_hppa_finalize_dynreloc): Likewise.
612 (elf64_hppa_size_dynamic_sections): Move comments and fix typo.
613 (elf64_hppa_finish_dynamic_symbol): Break up assert.
615 2002-06-14 Sergey Grigoriev <serge@leopold.Physik.Uni-Augsburg.DE>
617 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
618 alignment for .bss, .data and .text sections so that sse and sse2
620 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
622 2002-06013 J"orn Rennecke <joern.rennecke@superh.com>
624 config.bfd: Add support for sh[1234]l*-*-elf* | sh3el*-*-elf*,
627 2002-06-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
629 * elflink.h (elf_bfd_final_link): Improve error handling for missing
632 * elf64-hppa.c (allocate_global_data_opd): We don't need an opd entry
633 for a symbol that has no output section.
634 (allocate_dynrel_entries): Correct comment.
635 (elf64_hppa_finalize_dynreloc): Likewise. Don't create an opd entry
637 (elf64_hppa_finalize_opd): Prevent segfault if dyn_h is NULL.
638 (elf64_hppa_finalize_dlt): Likewise. Prevent segfault for symbols
639 with no section. Remove unnecessary parentheses.
641 2002-06-11 Tom Rix <trix@redhat.com>
643 * coffcode.h (coff_compute_section_file_positions): Add data
644 section to AIX loader alignment check.
646 * coff-rs6000.c (_bfd_xcoff_mkobject): Set default text section
647 alignment to 4 bytes.
648 (_bfd_xcoff_copy_private_bfd_data): Use text and data alignment
649 power accessor macro.
650 (do_shared_object_padding): Remove invalid assertion.
652 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
654 * section.c (_bfd_strip_section_from_output): Set SEC_EXCLUDE
655 for removed output sections.
657 2002-06-10 Geoffrey Keating <geoffk@redhat.com>
659 * merge.c (merge_strings): Use htab_create_alloc with calloc, not
661 * elf-strtab.c (_bfd_elf_strtab_finalize): Likewise.
663 2002-06-08 H.J. Lu <hjl@gnu.org>
665 * elf.c (copy_private_bfd_data): Don't cast to bfd_size_type to
666 work around a long long bug in gcc 2.96 on mips.
668 2002-06-08 Jason Thorpe <thorpej@wasabisystems.com>
670 * Makefile.am (BFD32_BACKENDS): Add vax1knetbsd.lo.
671 (BFD32_BACKENDS_CFILES): Add vax1knetbsd.c.
672 Regenerate dependency lists.
673 * Makefile.in: Regenerate.
674 * config.bfd (vax-*-netbsdelf*, vax-*-netbsdaout*): Add
675 vax1knetbsd_vec to targ_selvecs.
676 * configure.in: Add vax1knetbsd_vec.
677 * configure: Regenerate.
678 * targets.c (_bfd_target_vector): Add vax1knetbsd_vec.
679 * vax1knetbsd.c: New file.
680 * vaxnetbsd.c: Update copyright years.
681 (TARGET_PAGE_SIZE): Set to 0x1000.
682 (DEFAULT_MID): Set to M_VAX4K_NETBSD.
684 2002-06-08 Matt Thomas <matt@3am-software.com>
686 * libaout.h (enum machine_type): Add M_VAX4K_NETBSD.
688 2002-06-08 Alan Modra <amodra@bigpond.net.au>
690 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Make static.
692 2002-06-08 Alan Modra <amodra@bigpond.net.au>
694 * Makefile.am: Run "make dep-am".
695 * Makefile.in: Regenerate.
697 * armnetbsd.c: Replace CONST with const.
698 * corefile.c: Likewise.
699 * elf32-dlx.c: Likewise.
700 * elf64-mips.c: Likewise.
702 * ns32knetbsd.c: Likewise.
704 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Check the hash
705 table is elf64-sparc.
707 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
709 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Simplify code.
710 Fix RELA addends to get not shifted in the result. Don't do special
711 handling of R_MIPS_64 for NewABI.
713 2002-06-07 Alan Modra <amodra@bigpond.net.au>
715 * aoutx.h (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
716 (NAME(aout,slurp_reloc_table)): Likewise.
717 * coff-mips.c (mips_relax_section): Use bfd_zalloc.
718 * coff-rs6000.c (xcoff_write_armap_big): Use bfd_zmalloc.
719 (xcoff_write_archive_contents_big): Likewise.
720 (xcoff_generate_rtinit): Likewise.
721 (xcoff_generate_rtinit): Likewise, and check error return.
722 * coff64-rs6000.c (xcoff64_generate_rtinit): Likewise.
723 * coffgen.c (coff_section_symbol): Use bfd_zalloc.
724 (coff_get_normalized_symtab): Likewise.
725 (coff_make_empty_symbol): Likewise.
726 (bfd_coff_set_symbol_class): Likewise.
727 * cofflink.c (coff_link_add_symbols): Likewise.
728 * ecoff.c (_bfd_ecoff_make_empty_symbol): Likewise.
729 * ecofflink.c (ecoff_write_shuffle): Use bfd_zmalloc.
730 (bfd_ecoff_write_accumulated_debug): Likewise.
731 * elf64-alpha.c (get_got_entry): Use bfd_zalloc.
732 * i386linux.c (bfd_i386linux_size_dynamic_sections): Likewise.
733 * i386lynx.c (NAME(lynx,slurp_reloc_table)): Use bfd_zmalloc.
734 * ieee.c (do_with_relocs): Use bfd_zalloc.
735 * m68klinux.c (bfd_m68klinux_size_dynamic_sections): Likewise.
736 * pdp11.c (NAME(aout,slurp_symbol_table)): Use bfd_zmalloc.
737 (NAME(aout,slurp_reloc_table)): Likewise.
738 (NAME(aout,squirt_out_relocs)): Don't memset when zalloc'd.
739 * reloc16.c (bfd_coff_reloc16_relax_section): Use bfd_zmalloc.
740 * som.c (som_build_and_write_symbol_table): Likewise.
741 (som_slurp_string_table): Likewise.
742 (som_slurp_symbol_table): Likewise.
743 (som_bfd_ar_write_symbol_stuff): Likewise.
744 * sparclinux.c (bfd_sparclinux_size_dynamic_sections): Use bfd_zalloc.
745 * sunos.c (bfd_sunos_size_dynamic_sections): Likewise.
746 * tekhex.c (find_chunk): Likewise. Get rid of unused "sname".
747 * vms-gsd.c (_bfd_vms_slurp_gsd): Use bfd_zmalloc.
748 * xcofflink.c (xcoff_link_add_symbols): Use bfd_zalloc/bfd_zmalloc.
750 2002-06-07 Alan Modra <amodra@bigpond.net.au>
752 * elf-bfd.h (struct bfd_elf_section_data <group_name>): Replace with
754 (elf_group_name): Update.
755 (elf_group_id): Define.
756 (bfd_elf_set_group_contents): Declare.
757 * elf.c (elf_fake_sections): Qualify use of elf_group_name.
758 (set_group_contents): Rename to bfd_elf_set_group_contents. Remove
759 ATTRIBUTE_UNUSED from failedptrarg. If elf_group_id is set, use
760 that sym for the signature.
761 (_bfd_elf_compute_section_file_positions): Don't call
762 set_group_contents for "ld -r" case.
763 (swap_out_syms): Use bfd_zalloc.
764 * elflink.h (elf_link_add_archive_symbols): Likewise.
765 (NAME(bfd_elf,size_dynamic_sections)): Likewise.
766 (elf_bfd_final_link): Call bfd_elf_set_group_contents.
768 2002-06-07 Alan Modra <amodra@bigpond.net.au>
770 * elf64-ppc.c (ppc64_elf_relocate_section): Allow unresolved
771 relocs in opd for non-shared too.
773 2002-06-06 Jeffrey Law <law@redhat.com
775 * elf32-h8300.c (elf32_h8_relax_section): Ignore uninteresting
778 2002-06-06 Nick Clifton <nickc@cambridge.redhat.com>
780 * merge.c: Include libiberty.h.
781 * elf-strtab.c: Include libiberty.h.
783 2002-06-06 Elias Athanasopoulos <eathan@otenet.gr>
785 * peXXigen.c (pe_print_idata): Remove unused variable.
787 2002-06-06 David Heine <dlheine@tensilica.com>
789 * elf.c (assign_file_positions_for_segments): Remove unallocated
790 sections from the section to segment mapping for PT_LOAD segments.
791 Update comment about empty loadable segments.
793 2002-06-06 Richard Sandiford <rsandifo@redhat.com>
795 * stabs.c (_bfd_link_section_stabs): Check that the symbol offset
796 is within the .stabstr section.
798 2002-06-06 Alan Modra <amodra@bigpond.net.au>
800 * elf-bfd.h (struct elf_size_info <swap_symbol_in>): Function args
801 are "const PTR", not "const PTR *".
802 (bfd_elf32_swap_symbol_in): Likewise.
803 (bfd_elf64_swap_symbol_in): Likewise.
804 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR.
805 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
806 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
807 (elf_link_add_object_symbols): Likewise.
808 (elf_link_record_local_dynamic_symbol): Likewise.
809 (elf_link_input_bfd): Likewise.
810 (elf_gc_mark): Likewise.
811 (elf_reloc_symbol_deleted_p): Likewise.
812 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
813 (mn10200_elf_relax_delete_bytes): Likewise.
814 (mn10200_elf_symbol_address_p): Likewise.
815 (mn10200_elf_get_relocated_section_contents): Likewise.
816 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
817 (mn10300_elf_relax_section): Likewise.
818 (mn10300_elf_relax_delete_bytes): Likewise.
819 (mn10300_elf_symbol_address_p): Likewise.
820 (mn10300_elf_get_relocated_section_contents): Likewise.
821 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
822 (elf32_h8_relax_delete_bytes): Likewise.
823 (elf32_h8_symbol_address_p): Likewise.
824 (elf32_h8_get_relocated_section_contents): Likewise.
825 * elf32-hppa.c (get_local_syms): Likewise.
826 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
827 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
828 * elf32-sh.c (sh_elf_relax_section): Likewise.
829 (sh_elf_relax_delete_bytes): Likewise.
830 (sh_elf_get_relocated_section_contents): Likewise.
831 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
832 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
833 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
834 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
835 * elf64-ppc.c (get_local_syms): Likewise.
836 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
837 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
839 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
841 * config.bfd (sh64l*-*-elf*, shl*-*-elf*): New configurations.
843 2002-06-05 Alan Modra <amodra@bigpond.net.au>
845 * elf.c (group_signature): Swap in the whole symbol, and handle
846 extracting section symbol names.
847 (setup_group): Add comment.
848 (set_group_contents): When called from objcopy or ld, arrange for
849 section contents to be written. Write group member output section
850 indices to allow objcopy to reorganize sections.
851 (_bfd_elf_copy_private_section_data): Copy group info.
853 * elf-bfd.h (struct elf_size_info): Add swap_symbol_in field.
854 (bfd_elf32_swap_symbol_in): Update prototype.
855 (bfd_elf64_swap_symbol_in): Likewise.
856 * elfcode.h (elf_swap_symbol_in): Change input args to const PTR *.
857 (elf_slurp_symbol_table): Adjust call to elf_swap_symbol_in.
858 * elflink.h (elf_link_is_defined_archive_symbol): Likewise.
859 (elf_link_add_object_symbols): Likewise.
860 (elf_link_record_local_dynamic_symbol): Likewise.
861 (elf_link_input_bfd): Likewise.
862 (elf_gc_mark): Likewise.
863 (elf_reloc_symbol_deleted_p): Likewise.
864 * elf-m10200.c (mn10200_elf_relax_section): Likewise.
865 (mn10200_elf_relax_delete_bytes): Likewise.
866 (mn10200_elf_symbol_address_p): Likewise.
867 (mn10200_elf_get_relocated_section_contents): Likewise.
868 * elf-m10300.c (mn10300_elf_relax_section): Likewise.
869 (mn10300_elf_relax_section): Likewise.
870 (mn10300_elf_relax_delete_bytes): Likewise.
871 (mn10300_elf_symbol_address_p): Likewise.
872 (mn10300_elf_get_relocated_section_contents): Likewise.
873 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
874 (elf32_h8_relax_delete_bytes): Likewise.
875 (elf32_h8_symbol_address_p): Likewise.
876 (elf32_h8_get_relocated_section_contents): Likewise.
877 * elf32-hppa.c (get_local_syms): Likewise.
878 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): Likewise.
879 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Likewise.
880 * elf32-sh.c (sh_elf_relax_section): Likewise.
881 (sh_elf_relax_delete_bytes): Likewise.
882 (sh_elf_get_relocated_section_contents): Likewise.
883 * elf32-xstormy16.c (xstormy16_elf_relax_section): Likewise.
884 * elf64-alpha.c (elf64_alpha_relax_section): Likewise.
885 * elf64-hppa.c (elf64_hppa_check_relocs): Likewise.
886 * elf64-mmix.c (mmix_elf_relax_section): Likewise.
887 * elf64-ppc.c (get_local_syms): Likewise.
888 * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
889 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
890 * elfcode.h (NAME(_bfd_elf,size_info)): Update initialiser.
891 * elf64-alpha.c (alpha_elf_size_info): Likewise.
892 * elf64-hppa.c (hppa64_elf_size_info): Likewise.
893 * elf64-mips.c (mips_elf64_size_info): Likewise.
894 * elf64-s390.c (s390_elf64_size_info): Likewise.
895 * elf64-sparc.c (sparc64_elf_size_info): Likewise.
897 2002-06-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
899 * elf32-mips.c (elf32_mips_ignore_discarded_relocs): Move to...
900 elfxx-mips.c (_bfd_mips_elf_ignore_discarded_relocs): ... here.
901 elf64-mips.c (elf_backend_ignore_discarded_relocs): Use
902 _bfd_mips_elf_ignore_discarded_relocs.
903 elfxx-mips.h (_bfd_mips_elf_ignore_discarded_relocs): Declare.
905 2002-06-05 H.J. Lu <hjl@gnu.org>
907 * elfxx-mips.c (mips_elf_calculate_relocation): Call
908 _bfd_elf_rel_local_sym for STT_SECTION relocations against
909 the SEC_MERGE section.
911 2002-06-05 Alan Modra <amodra@bigpond.net.au>
913 * coff-alpha.c: Update copyright date.
914 * coff-mips.c: Likewise.
915 * xcoff-target.h: Likewise.
917 * bfd-in.h: Remove "taken from the source" comment.
918 * libbfd-in.h: Likewise.
919 * libcoff-in.h: Likewise.
920 * bfd-in2.h: Regenerate.
921 * libbfd.h: Regenerate.
922 * libcoff.h: Regenerate.
924 * elf.c (bfd_elf_discard_group): Return true.
925 * elf-bfd.h (bfd_elf_discard_group): Declare.
926 * bfd-in.h (bfd_elf_discard_group): Don't declare here.
927 * section.c (bfd_discard_group): Rename to bfd_generic_discard_group.
928 * bfd.c (bfd_discard_group): Define.
929 * targets.c (struct bfd_target): Add _bfd_discard_group.
930 (BFD_JUMP_TABLE_LINK): Here too.
931 * libbfd-in.h (_bfd_nolink_bfd_discard_group): Define.
932 * aout-adobe.c (aout_32_bfd_discard_group): Define.
933 * aout-target.h (MY_bfd_discard_group): Define.
934 * aout-tic30.c (MY_bfd_discard_group): Define.
935 * binary.c (binary_bfd_discard_group): Define.
936 * bout.c (b_out_bfd_discard_group): Define.
937 * coff-alpha.c (_bfd_ecoff_bfd_discard_group): Define.
938 * coffcode.h (coff_bfd_discard_group): Define.
939 * coff-mips.c (_bfd_ecoff_bfd_discard_group): Define.
940 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Define.
941 * i386msdos.c (msdos_bfd_discard_group): Define.
942 * i386os9k.c (os9k_bfd_discard_group): Define.
943 * ieee.c (ieee_bfd_discard_group): Define.
944 * ihex.c (ihex_bfd_discard_group): Define.
945 * mmo.c (mmo_bfd_discard_group): Define.
946 * nlm-target.h (nlm_bfd_discard_group): Define.
947 * oasys.c (oasys_bfd_discard_group): Define.
948 * ppcboot.c (ppcboot_bfd_discard_group): Define.
949 * som.c (som_bfd_discard_group): Define.
950 * srec.c (srec_bfd_discard_group): Define.
951 * tekhex.c (tekhex_bfd_discard_group): Define.
952 * versados.c (versados_bfd_discard_group): Define.
953 * vms.c (vms_bfd_discard_group): Define.
954 * xcoff-target.h (_bfd_xcoff_bfd_discard_group): Define.
955 * coff64-rs6000.c (rs6000coff64_vec): Update initialiser.
956 (aix5coff64_vec): Likewise.
957 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
959 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
961 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-com.lo.
962 (BFD32_BACKENDS_CFILES): Add elf32-sh64-com.c.
963 (elf32-sh64-com.lo): New dependency list.
964 * Makefile.in: Regenerate.
965 * configure.in (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec)
966 (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec): Add
968 * configure: Regenerate.
969 * elf32-sh64.c (sh64_address_in_cranges)
970 (sh64_get_contents_type, sh64_address_is_shmedia): Move to...
971 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb):
972 (crange_bsearch_cmpl): Prepend _bfd_sh64_ to name and move to...
973 * elf32-sh64-com.c: ...here. New file.
975 2002-06-04 Alan Modra <amodra@bigpond.net.au>
977 * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Remove
978 ATTRIBUTE_UNUSED on used params.
979 * elf32-vax.c (elf_vax_gc_mark_hook): Remove unnecessary checks
980 before calling bfd_section_from_elf_index on local syms.
981 * elf64-sh64.c (sh_elf64_gc_mark_hook): Likewise.
983 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
985 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64-nbsd.lo.
986 (BFD32_BACKENDS_CFILES): Add elf32-sh64-nbsd.c.
987 (BFD64_BACKENDS): Add elf64-sh64-nbsd.lo.
988 (BFD64_BACKENDS_CFILES): Add elf64-sh64-nbsd.c.
989 (elf32-sh64-nbsd.lo, elf64-sh64-nbsd.lo): New rules.
990 * Makefile.in: Regenerate.
991 * config.bfd (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
992 (sh64-*-netbsd*): New targets.
993 * configure.in: Add bfd_elf32_sh64nbsd_vec, bfd_elf32_sh64lnbsd_vec,
994 bfd_elf64_sh64nbsd_vec, and bfd_elf64_sh64lnbsd_vec.
995 * configure: Regenerate.
996 * elf32-sh64-nbsd.c: New file.
997 * elf64-sh64-nbsd.c: New file.
998 * targets.c: Add extern decls for bfd_elf32_sh64nbsd_vec,
999 bfd_elf32_sh64lnbsd_vec, bfd_elf64_sh64nbsd_vec, and
1000 bfd_elf64_sh64lnbsd_vec.
1002 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1004 * elf.c (setup_group): Set SEC_LINK_ONCE on GRP_COMDAT groups.
1005 (bfd_section_from_shdr): Likewise. Set section name of group
1006 sections from signature.
1007 (group_signature): Split out from setup_group. Ensure symbol table
1009 (bfd_elf_discard_group): New function.
1010 (_bfd_elf_make_section_from_shdr): Don't set SEC_LINK_ONCE on
1011 .gnu.linkonce* sections if they are members of a group.
1012 (set_group_contents): Set GRP_COMDAT flag.
1013 * section.c (bfd_discard_group): New function.
1014 * bfd-in.h (bfd_elf_discard_group): Declare.
1015 * bfd-in2.h: Regenerate.
1016 * elf-bfd.h (struct bfd_elf_section_data): Add linkonce_p field.
1017 (elf_linkonce_p): Define.
1019 2002-06-04 Alan Modra <amodra@bigpond.net.au>
1021 * elf.c (bfd_section_from_shdr): Make "name" const.
1022 * elf-bfd.h (elf_backend_section_from_shdr): Likewise.
1023 * elf32-i370.c (i370_elf_section_from_shdr): Likewise.
1024 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
1025 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
1026 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
1027 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
1028 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
1029 * elf64-ppc.c (ppc64_elf_section_from_shdr): Likewise.
1030 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
1031 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
1032 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
1034 2002-06-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1036 * elfxx-mips.c (ABI_64_P): Use backend's data to determine the
1039 2002-06-02 Kazu Hirata <kazu@cs.umass.edu>
1041 * elf32-arc.c: Fix formatting.
1042 * elf32-arm.h: Likewise.
1043 * elf32-cris.c: Likewise.
1044 * elf32-dlx.c: Likewise.
1045 * elf32-hppa.c: Likewise.
1046 * elf32-i386.c: Likewise.
1047 * elf32-i386qnx.c: Likewise.
1048 * elf32-or32.c: Likewise.
1049 * elf32-s390.c: Likewise.
1050 * elf32-sh64.c: Likewise.
1051 * elf32-vax.c: Likewise.
1052 * elf32-xstormy16.c: Likewise.
1053 * elf64-alpha.c: Likewise.
1054 * elf64-mmix.c: Likewise.
1055 * elf64-ppc.c: Likewise.
1056 * elf64-s390.c: Likewise.
1057 * elf64-sh64.c: Likewise.
1058 * elf64-x86-64.c: Likewise.
1060 2002-06-02 Richard Henderson <rth@redhat.com>
1062 * elf64-alpha.c (elf64_alpha_relocate_section): Don't dereference
1063 null when there are no got entries for a symbol.
1064 (elf64_alpha_relax_find_tls_segment): Rearrange to avoid
1065 uninitialized variable warning.
1067 2002-06-01 Richard Henderson <rth@redhat.com>
1069 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Don't test for
1070 undefined symbols here.
1071 (elf64_alpha_relax_section): Do it here. Also test for not
1072 defined in the current module.
1073 (elf64_alpha_relocate_section_r): Split out of ...
1074 (elf64_alpha_relocate_section): ... here. Don't dereference
1075 NULL when looking up local got entries.
1077 2002-06-01 Richard Henderson <rth@redhat.com>
1079 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Reject undefined
1080 symbols from JSR relaxation.
1081 (elf64_alpha_size_plt_section_1): New.
1082 (elf64_alpha_calc_dynrel_sizes): Split out .rela.got bits ...
1083 (elf64_alpha_size_rela_got_1): ... here.
1084 (elf64_alpha_size_dynamic_sections): Split out .rela.got bits ...
1085 (elf64_alpha_size_rela_got_section): ... here.
1086 (elf64_alpha_size_plt_section): New.
1087 (elf64_alpha_relax_section): Call them.
1088 (elf64_alpha_size_got_sections): Remove output_bfd arg.
1089 (elf64_alpha_finish_dynamic_symbol): Check gotent use_count.
1091 2002-06-01 Richard Henderson <rth@redhat.com>
1093 * elf64-alpha.c (alpha_get_dtprel_base, alpha_get_tprel_base): New.
1094 (elf64_alpha_relocate_section): Use them. Reject LE TLS relocs
1095 in shared libraries. Fix DTPRELHI and TPRELHI value.
1096 (INSN_ADDQ, INSN_RDUNIQ): New.
1097 (struct alpha_relax_info): Add symtab_hdr, tls_segment, first_gotent.
1098 (elf64_alpha_relax_with_lituse): Return boolean. Remove irelend
1099 argument. Reject dynamic symbols. Use LITUSE symbolic constants.
1100 (elf64_alpha_relax_got_load): Rename from relax_without_lituse.
1101 Handle GOTDTPREL and GOTTPREL relocations.
1102 (elf64_alpha_relax_gprelhilo): New.
1103 (elf64_alpha_relax_tls_get_addr): New.
1104 (elf64_alpha_relax_find_tls_segment): New.
1105 (elf64_alpha_relax_section): Handle TLS relocations.
1106 (ALPHA_ELF_LINK_HASH_TLS_IE): New.
1107 (elf64_alpha_check_relocs): Set it.
1109 2002-06-01 Richard Henderson <rth@redhat.com>
1111 * elf64-alpha.c (elf64_alpha_relax_section): Don't store computed gp.
1113 * elf64-alpha.c (elf64_alpha_check_relocs): Fix typo on maybe_dynamic
1114 check; don't suppress dynamic relocs for non-allocated sections.
1116 * elf64-alpha.c: Remove dead code.
1118 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1120 * bfd-in2.h: Regenerate.
1121 * libbfd.h: Regenerate.
1122 * po/SRC-POTFILES.in: Regenerate.
1124 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Don't allocate
1127 2002-05-31 Graeme Peterson <gp@qnx.com>
1129 * Makefile.am (BFD32_BACKENDS): Add elf32-i386qnx.lo.
1130 (BFD32_BACKENDS_CFILES): Add elf32-i386qnx.c.
1132 * Makefile.in: Regenerate.
1133 * config.bfd: Add i[3456]86-*-nto-qnx* support.
1134 * configure.in: Add bfd_elf32_i386qnx_vec support.
1135 * configure: Regenerate.
1136 * elf-bfd.h (struct elf_backend_data): Add set_nonloadable_filepos,
1137 is_contained_by_filepos, and copy_private_bfd_data_p.
1138 * elf.c (assign_file_positions_for_segments): Call backend
1139 set_nonloadable_filepos. Fix non-K&R call to _bfd_error_handler.
1140 (IS_CONTAINED_BY_FILEPOS): Define.
1141 (INCLUDE_SECTION_IN_SEGMENT): Also test IS_CONTAINED_BY_FILEPOS.
1142 (copy_private_bfd_data): Use IS_CONTAINED_BY_FILEPOS. Typo fix.
1143 Fix non-K&R call to _bfd_error_handler.
1144 (_bfd_elf_copy_private_section_data): Use backend
1145 copy_private_bfd_data_p.
1146 * elf32-i386.c: Don't include elfxx-target.h when
1147 ELF32_I386_C_INCLUDED is defined.
1148 * elf32-i386qnx.c: New QNX elf backend file.
1149 * elfxx-target.h: Add elf_backend_set_nonloadable_filepos,
1150 elf_backend_is_contained_by_filepos, and
1151 elf_backend_do_copy_private_bfd_data.
1152 * targets.c: Add bfd_target bfd_elf32_i386qnx_vec.
1154 2002-05-31 Alan Modra <amodra@bigpond.net.au>
1156 * elfarm-oabi.c (bfd_elf32_arm_add_glue_sections_to_bfd): Define.
1157 Move other similar defines to start of file.
1159 2002-05-30 Tom Rix <trix@redhat.com>
1161 * coff-rs6000.c (xcoff_rtype2howto): Handle 16 bit R_RBA.
1162 * coff64-rs6000.c (xcoff64_rtype2howto): Same.
1164 2002-05-30 Richard Henderson <rth@redhat.com>
1166 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_TLSGD,
1167 ALPHA_ELF_LINK_HASH_LU_TLSLDM, ALPHA_ELF_LINK_HASH_LU_FUNC): New.
1168 (ALPHA_ELF_GOT_ENTRY_RELOCS_DONE): Remove.
1169 (ALPHA_ELF_GOT_ENTRY_RELOCS_XLATED): Remove.
1170 (struct alpha_elf_got_entry): Add reloc_type, reloc_done, reloc_xlated.
1171 (struct alpha_elf_obj_tdata): Rename total_got_entries and
1172 n_local_got_entries to total_got_size and local_got_size.
1173 (elf64_alpha_howto, elf64_alpha_reloc_map): Update for TLS relocs.
1174 (alpha_got_entry_size): New.
1175 (elf64_alpha_relax_with_lituse): Use it.
1176 (elf64_alpha_relax_without_lituse): Likewise.
1177 (MAX_GOT_SIZE): Rename from MAX_GOT_ENTRIES.
1178 (get_got_entry): New.
1179 (elf64_alpha_check_relocs): Handle TLS relocs. Reorganize.
1180 (elf64_alpha_adjust_dynamic_symbol): Test LU_FUNC as a mask.
1181 (elf64_alpha_merge_ind_symbols): Check gotent->reloc_type.
1182 (elf64_alpha_can_merge_gots, elf64_alpha_merge_gots): Likewise.
1183 (elf64_alpha_calc_got_offsets_for_symbol): Use alpha_got_entry_size.
1184 (elf64_alpha_calc_got_offsets): Likewise.
1185 (alpha_dynamic_entries_for_reloc): New.
1186 (elf64_alpha_calc_dynrel_sizes): Use it.
1187 (elf64_alpha_size_dynamic_sections): Likewise.
1188 (elf64_alpha_relocate_section): Handle TLS relocations.
1189 * reloc.c: Add Alpha TLS relocations.
1190 * bfd-in2.h, libbfd.h: Rebuild.
1192 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
1194 * peXXigen.c (pe_print_idata): Remove double printed
1195 import table lines; add Bound-To comment.
1197 2002-05-29 Matt Thomas <matt@3am-software.com>
1199 * Makefile.am (BFD32_BACKENDS): Add elf32-vax.lo.
1200 (BFD32_BACKENDS_CFILES): Add elf32-vax.c.
1201 (elf32-vax.lo): New rule.
1202 * Makefile.in: Regenerate.
1203 * configure.in (bfd_elf32_vax_vec)
1204 (vaxnetbsd_vec): New vectors.
1205 * configure: Regenerate.
1206 * config.bfd (vax-*-netbsdelf*)
1208 (vax-*-netbsd*): New targets.
1209 * elf32-vax.c: New file.
1210 * reloc.c: Add VAX relocations.
1211 * bfd-in2.h: Regenerate.
1212 * targets.c (_bfd_target_vector): Add bfd_elf32_vax_vec.
1214 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
1216 * config.bfd (arm-*-netbsd*): Add bfd_elf32_littlearm_vec
1217 and bfd_elf32_bigarm_vec to targ_selvecs.
1219 2002-05-29 Ralf Habacker <ralf.habacker@freenet.de>
1221 * peXXigen.c (pe_print_idata): Fix seg faults on printing import tables
1222 with auto-imported symbols.
1224 2002-05-29 Adam Nemet <anemet@lnxw.com>
1226 * elf32-arm.h (bfd_elf32_arm_get_bfd_for_interworking): Don't add glue
1227 sections only record bfd.
1228 (bfd_elf32_arm_add_glue_sections_to_bfd): New function.
1229 * bfd-in.h (bfd_elf32_arm_add_glue_sections_to_bfd): Declare it.
1230 * bfd-in2.h: Regenerate.
1232 2002-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1234 * syms.c (_bfd_stab_section_find_nearest_line): Move
1235 declaration and initialisation of saw_line and saw_func out of
1238 2002-05-29 Alan Modra <amodra@bigpond.net.au>
1240 * elf64-ppc.c (ppc64_elf_get_symbol_info): New function.
1241 (bfd_elf64_get_symbol_info): Define.
1242 * elfxx-target.h (bfd_elfNN_get_symbol_info): Only define if undef.
1244 2002-05-29 Andrey Volkov <avolkov@transas.com>
1246 * cpu-h8300.c: Make default h8300 machine first in machine list.
1248 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
1250 * config.bfd: Added DLX configuraton.
1251 * Makefile.am: Added DLX configuraton.
1252 * configure.in: Added DLX configuraton.
1253 * archures.c: Add DLX architecure.
1254 * reloc.c: Add DLX relocs.
1255 * targets.c: Added DLX target vector.
1256 * configure: Regenerate.
1257 * Makefile.in: Regenreate.
1258 * bfd-in2.h: Regenreate.
1259 * elf32-dlx.c: New file: Support DLX target.
1260 * cpu-dlx.c: New file: Support DLX target.
1262 2002-05-25 Alan Modra <amodra@bigpond.net.au>
1264 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Formatting.
1266 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Revert last change.
1267 (ppc64_elf_check_relocs): Don't set up function descriptor symbol
1268 strings to point inside function code sym string.
1269 (func_desc_adjust): Likewise.
1270 (ppc64_elf_hide_symbol): Rewrite code to look up function code sym.
1272 2002-05-24 Michal Ludvig <mludvig@suse.cz>
1274 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Added.
1275 (elf64_x86_64_grok_psinfo): Added.
1277 2002-05-24 TAMURA Kent <kent@netbsd.org>
1279 * config.bfd: Add a target for i386-netbsdpe.
1281 2002-05-24 Alan Modra <amodra@bigpond.net.au>
1283 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Don't copy is_func
1284 and is_func_descriptor.
1285 (func_desc_adjust): Hide function code sym in shared libs unless
1286 there is a matching exported function descriptor sym.
1288 2002-05-23 Jakub Jelinek <jakub@redhat.com>
1290 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_THREAD_LOCAL
1291 for symbols from SHF_TLS section.
1292 (_bfd_elf_print_private_bfd_data): Add PT_TLS.
1293 (elf_fake_sections): Set SHF_TLS for SEC_THREAD_LOCAL sections.
1294 (map_sections_to_segments): Build PT_TLS segment if necessary.
1295 (assign_file_positions_for_segments): Likewise.
1296 (get_program_header_size): Account for PT_TLS segment.
1297 (swap_out_syms): Set type of BSF_THREAD_LOCAL symbols and symbols from
1298 SEC_THREAD_LOCAL sections to STT_TLS.
1299 * reloc.c: Add 386 and IA-64 TLS relocs.
1300 * section.c (SEC_THREAD_LOCAL): Define.
1301 (SEC_CONSTRUCTOR_TEXT, SEC_CONSTRUCTOR_DATA, SEC_CONSTRUCTOR_BSS):
1303 * elflink.h (elf_link_add_object_symbols): Support .tcommon.
1304 (size_dynamic_sections): If DF_STATIC_TLS, set DF_FLAGS
1306 (struct elf_final_link_info): Add first_tls_sec.
1307 (elf_bfd_final_link): Set first_tls_sec.
1308 Compute elf_hash_table (info)->tls_segment.
1309 (elf_link_output_extsym): Handle STT_TLS symbols.
1310 (elf_link_input_bfd): Likewise.
1311 * syms.c (BSF_THREAD_LOCAL): Define.
1312 * bfd-in2.h: Rebuilt.
1313 * libbfd.h: Rebuilt.
1314 * elf32-i386.c (elf_i386_tls_transition, dtpoff_base, tpoff,
1315 elf_i386_mkobject, elf_i386_object_p): New functions.
1316 (elf_howto_table): Add TLS relocs.
1317 (elf_i386_reloc_type_lookup): Support TLS relocs.
1318 (elf_i386_info_to_howto_rel): Likewise.
1319 (struct elf_i386_link_hash_entry): Add tls_type.
1320 (struct elf_i386_obj_tdata): New.
1321 (elf_i386_hash_entry, elf_i386_tdata, elf_i386_local_got_tls_type):
1323 (struct elf_i386_link_hash_table): Add tls_ldm_got.
1324 (link_hash_newfunc): Clear tls_type.
1325 (elf_i386_check_relocs): Support TLS relocs.
1326 (elf_i386_gc_sweep_hook): Likewise.
1327 (allocate_dynrelocs): Likewise.
1328 (elf_i386_size_dynamic_sections): Likewise.
1329 (elf_i386_relocate_section): Likewise.
1330 (elf_i386_finish_dynamic_symbol): Likewise.
1331 (bfd_elf32_mkobject, elf_backend_object_p): Define.
1332 * elfxx-ia64.c (struct elfNN_ia64_dyn_sym_info): Add tprel_offset,
1333 dtpmod_offset, dtprel_offset, tprel_done, dtpmod_done, dtprel_done,
1334 want_tprel, want_dtpmod, want_dtprel.
1335 (elfNN_ia64_tprel_base, elfNN_ia64_dtprel_base): New functions.
1336 (ia64_howto_table): Add TLS relocs, rename R_IA64_LTOFF_TP22 to
1337 R_IA64_LTOFF_TPREL22.
1338 (elf_code_to_howto_index): Add TLS relocs.
1339 (elfNN_ia64_check_relocs): Support TLS relocs.
1340 (allocate_global_data_got): Account for TLS .got data.
1341 (allocate_dynrel_entries): Account for TLS dynamic relocations.
1342 (elfNN_ia64_install_value): Supprt TLS relocs.
1343 (set_got_entry): Support TLS relocs.
1344 (elfNN_ia64_relocate_section): Likewise.
1346 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
1348 * elf32-arm.h (elf32_arm_final_link_relocate): For the Thumb
1349 BLX reloc round the relocation up rather than down.
1350 * coff-arm.c (coff_arm_relocate_section): Likewise.
1352 2002-05-21 H.J. Lu (hjl@gnu.org)
1354 * linker.c (_bfd_generic_link_add_one_symbol): Allow multiple
1357 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1359 * elf64-ppc.c (ppc64_elf_size_stubs): Don't strip .branch_lt.
1360 (ppc64_elf_relocate_section): Handle unresolved relocs in opd.
1362 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1364 * elf64-ppc.c (ppc64_elf_relocate_section): Return false for
1366 (ppc64_elf_size_dynamic_sections): Check for splt NULL.
1368 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1370 * bfd/bfd.c (bfd_get_arch_size): Remove bfd_set_error call for
1373 2002-05-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1375 * elf-bfd.h (elf_backend_emit_relocs): Change prototype to return
1377 * elflink.h (elf_link_output_relocs): Likewise. Improve error message.
1378 return with false on error.
1379 (elf_link_input_bfd): Check reloc_emitter return value.
1381 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1383 * config.bfd (armeb-*-netbsdelf*): New target.
1385 2002-05-20 Alan Modra <amodra@bigpond.net.au>
1387 * elf64-ppc.c (ppc_build_one_stub): Point undefined function syms
1388 at the plt call stub.
1390 2002-05-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1392 * cpu-mips.c (mips_compatible): Don't try to check machine
1395 2002-05-18 Tom Rix <trix@redhat.com>
1397 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_out): Fix C_FILE auxent.
1399 2002-05-17 Alan Modra <amodra@bigpond.net.au>
1401 * elf64-ppc.c (ppc64_elf_info_to_howto): Formatting.
1402 (ppc64_elf_relocate_section): Don't warn about reloc overflow when
1403 we've already warned about an undefined symbol. Report more
1404 detail on reloc errors.
1406 2002-05-17 Alan Modra <amodra@bigpond.net.au>
1408 * acinclude.m4 (AM_INSTALL_LIBBFD): New.
1409 * configure.in: Invoke AM_INSTALL_LIBBFD.
1410 * Makefile.am (install-data-local): Revert 2002-05-13. Move to..
1411 (install_libbfd): .. New target.
1412 (uninstall_libbfd): Likewise.
1413 (install-bfdlibLTLIBRARIES): Likewise.
1414 (uninstall-bfdlibLTLIBRARIES): Likewise.
1416 (bfdincludedir): New.
1417 (lib_LTLIBRARIES): Rename to bfdlib_LTLIBRARIES.
1418 * aclocal.m4: Regenerate.
1419 * configure: Regenerate.
1420 * Makefile.in: Regenerate.
1422 2002-05-17 Stuart Balfour <sbalfour@cisco.com>
1424 * hash.c (bfd_hash_lookup): Remove computation of len from inside
1427 2002-05-16 Nick Clifton <nickc@cambridge.redhat.com>
1429 * config.bfd: Add targets for sh64-linux (little endian and
1432 2002-05-15 Laurent Pinchart <laurent.pinchart@skynet.be>
1434 * peXXigen.c (pe_print_idata): Do not assume that the first thunk
1435 is located in the same section as the import table. Instead
1436 check, and if necessary load the section containing the thunk.
1438 2002-05-15 Nick Clifton <nickc@cambridge.redhat.com>
1440 * aix5ppc-core.c (xcoff64_core_p): Replace bfd_read with
1442 (xcoff64_core_file_matches_executable_p): Replace bfd_read
1445 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1447 * aix5ppc-core.c: Warning fixes.
1448 * aout-adobe.c (aout_32_bfd_link_just_syms): Define.
1449 * aout-target.h (MY_bfd_link_just_syms): Define.
1450 * aout-tic30.c (MY_bfd_link_just_syms): Define.
1451 * bfd.c (bfd_link_just_syms): Define.
1452 * binary.c (binary_bfd_link_just_syms): Define.
1453 * bout.c (b_out_bfd_link_just_syms): Define.
1454 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Update initializer.
1455 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
1456 * coffcode.h (coff_bfd_link_just_syms): Define.
1457 * elf-bfd.h (enum elf_link_info_type): Add ELF_INFO_TYPE_JUST_SYMS.
1458 (elf_discarded_section): Check for ELF_INFO_TYPE_JUST_SYMS.
1459 (_bfd_elf_link_just_syms): Declare.
1460 * elf.c (_bfd_elf_link_just_syms): New function.
1461 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Check that
1462 sections haven't already been discarded by the linker.
1463 * elflink.h (elf_link_add_object_symbols): Likewise for stab
1464 sections and SEC_MERGE sections.
1465 (elf_bfd_discard_info): Similarly here.
1466 * elfxx-target.h (bfd_elfNN_bfd_link_just_syms): Define.
1467 * i386msdos.c (msdos_bfd_link_just_syms): Define.
1468 * i386os9k.c (os9k_bfd_link_just_syms): Define.
1469 * ieee.c (ieee_bfd_link_just_syms): Define.
1470 * ihex.c (ihex_bfd_link_just_syms): Define.
1471 * libbfd-in.h (_bfd_nolink_bfd_link_just_syms): Define.
1472 (_bfd_generic_link_just_syms): Declare.
1473 * libecoff.h (_bfd_ecoff_bfd_link_just_syms): Define.
1474 * linker.c (_bfd_generic_link_just_syms): New function.
1475 * mmo.c (mmo_bfd_link_just_syms): Define.
1476 * nlm-target.h (nlm_bfd_link_just_syms): Define.
1477 * oasys.c (oasys_bfd_link_just_syms): Define.
1478 * ppcboot.c (ppcboot_bfd_link_just_syms): Define.
1479 * som.c (som_bfd_link_just_syms): Define.
1480 * srec.c (srec_bfd_link_just_syms): Define.
1481 * targets.c (struct bfd_target): Add _bfd_link_just_syms.
1482 (BFD_JUMP_TABLE_LINK): And here.
1483 * tekhex.c (tekhex_bfd_link_just_syms): Define.
1484 * versados.c (versados_bfd_link_just_syms): Define.
1485 * vms.c (vms_bfd_link_just_syms): Define.
1486 * libbfd.h: Regenerate.
1487 * bfd-in2.h: Regenerate.
1489 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1491 * elf32-mips.c: Remove superfluous definitions copied from
1493 (bfd_elf32_bigmips_vec,bfd_elf32_littlemips_vec): Use the
1494 SGIish vectors to check the special case.
1495 (mips_elf_hi16_reloc): Fix comment.
1496 (mips_elf_got16_reloc): Likewise.
1497 (_bfd_mips_elf32_gprel16_reloc): Likewise.
1498 (elf_reloc_map): Code cleanup.
1499 (mips_reloc_map): Add comment.
1500 (bfd_elf23_bfd_reloc_type_lookup): Code cleanup.
1501 (mips_elf32_rtype_to_howto): Likewise.
1502 (mips_elf32_discard_info): Likewise.
1503 (elf32_mips_irix_compat): Invert logic: Only SGIish vectors
1504 lead to IRIX compatibility now.
1506 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1508 * elfxx-mips.c: Call it IRIX, not Irix in comments.
1510 2002-05-13 Jason Thorpe <thorpej@wasabisystems.com>
1512 * config.bfd (shle-*-netbsdelf*): Add target which includes
1515 2002-05-13 David Edelsohn <edelsohn@gnu.org>
1517 * configure.in: Revert 2002-04-07. Instead, auto-configure
1519 * configure: Regenerate.
1520 * config.in: Regenerate.
1521 * rs6000-core.c (CNEW_IMPL): Guard use of c_impl with HAVE_ST_C_IMPL
1524 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
1526 * configure.in (sparc*-*-openbsd*): Support sparc64-openbsd
1528 * configure: Regenerate.
1530 2002-05-13 Alan Modra <amodra@bigpond.net.au>
1532 * Makefile.am (install-data-local): Install headers to
1533 $(exec_prefix)/include.
1534 * Makefile.in: Regenerate.
1536 2002-05-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1537 Daniel Jacobowitz <drow@mvista.com>
1539 * coff-sh.c (sh_reloc_map): Map to R_SH_IMM32 for non-PE. Don't
1542 2002-05-11 Federico G. Schwindt <fgsch@olimpo.com.br>
1544 * config.bfd (alpha*-*-openbsd*, sparc64*-*-openbsd*,
1545 hppa*-*-openbsd*): New targets.
1546 * configure.in (alpha*-*-openbsd*): Set COREFILE.
1547 * configure: Regenerate.
1549 2002-05-10 Tom Rix <trix@redhat.com>
1551 * coff64-rs6000.c (xcoff64_reloc_type_br): New function for
1552 xcoff64_ppc_relocate_section.
1553 * coff-rs6000.c : Extern common xcoff_reloc_type functions.
1554 * libxcoff.h: Common xcoff_reloc_type function declaration.
1556 2002-05-10 Alan Modra <amodra@bigpond.net.au>
1558 * elf32-i386.c (elf_i386_relocate_section): Remove overflow checks
1559 added in 2002-05-09 commit.
1561 * elf32-hppa.c (elf32_hppa_size_stubs): Revert part of 2002-05-04,
1562 don't look for stubs on all undefined syms.
1564 2002-05-09 Alan Modra <amodra@bigpond.net.au>
1566 * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
1567 (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
1570 * elf32-i386.c (elf_howto_table): Comments.
1571 (elf_i386_relocate_section): Handle more relocs for relocatable
1572 linking and against SEC_MERGE sections.
1574 2002-05-08 Alan Modra <amodra@bigpond.net.au>
1576 * elf32-ppc.c (ppc_elf_create_got): New function.
1577 (ppc_elf_create_dynamic_sections): Call ppc_elf_create_got before
1578 _bfd_elf_create_dynamic_sections. Correct .plt flags.
1579 (ppc_elf_check_relocs): Use ppc_elf_create_got in place of
1580 _bfd_elf_create_got_section.
1582 2002-05-07 Alan Modra <amodra@bigpond.net.au>
1584 * elf-bfd.h (struct elf_backend_data): Add rela_normal.
1585 * elfxx-target.h (elf_backend_rela_normal): Define.
1586 (elfNN_bed): Init rela_normal.
1587 * elflink.h (elf_link_input_bfd <emit_relocs>): Handle adjustment
1588 for section symbols here if rela_normal. Simplify abs section test.
1589 * elf-m10200.c (mn10200_elf_relocate_section): If relocatable,
1590 return immediately. Remove code handling relocatable linking.
1591 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1592 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1593 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1594 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
1595 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1596 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1597 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1598 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1599 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1600 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1601 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1602 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1603 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1604 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
1605 * elf32-arm.h (elf32_arm_relocate_section): Likewise #ifndef USE_REL.
1606 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1607 * elf-m10200.c (elf_backend_rela_normal): Define.
1608 * elf-m10300.c (elf_backend_rela_normal): Define.
1609 * elf32-fr30.c (elf_backend_rela_normal): Define.
1610 * elf32-i370.c (elf_backend_rela_normal): Define.
1611 * elf32-i860.c (elf_backend_rela_normal): Define.
1612 * elf32-m68k.c (elf_backend_rela_normal): Define.
1613 * elf32-mcore.c (elf_backend_rela_normal): Define.
1614 * elf32-openrisc.c (elf_backend_rela_normal): Define.
1615 * elf32-ppc.c (elf_backend_rela_normal): Define.
1616 * elf32-s390.c (elf_backend_rela_normal): Define.
1617 * elf32-xstormy16.c (elf_backend_rela_normal): Define.
1618 * elf64-ppc.c (elf_backend_rela_normal): Define.
1619 * elf64-s390.c (elf_backend_rela_normal): Define.
1620 * elf64-x86-64.c (elf_backend_rela_normal): Define.
1621 * elfxx-ia64.c (elf_backend_rela_normal): Define.
1622 * elf32-arm.h (elf_backend_rela_normal): Define #ifndef USE_REL.
1623 * elf32-m32r.c (elf_backend_rela_normal): Likewise.
1625 2002-05-06 Nick Clifton <nickc@cambridge.redhat.com>
1627 * elf32-arm.h (elf32_arm_final_link_relocate): Convert
1628 'reloc_signed_max' and 'reloc_signed_min' into half-word offsets.
1630 2002-05-06 Alan Modra <amodra@bigpond.net.au>
1632 * elflink.h (elf_link_input_bfd <emit_relocs>): Adjust r_offset
1633 when not relocatable. Fix reloc_emitter call for K&R.
1635 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1637 * elf64-ppc.c (ppc64_elf_relocate_section): Reinstate code
1638 reloading local sym addend mistakenly removed in 2002-05-01 change.
1640 * dwarf2.c (struct line_head): Make prologue_length a bfd_vma.
1641 (read_abbrevs): Change "offset" param to bfd_vma.
1642 (parse_comp_unit): Change "version" and addr_size to unsigned ints.
1643 Change "abbrev_offset" to bfd_vma.
1644 (read_indirect_string): Use correct conversion chars in error
1645 message format string, cast bfd_vma's to unsigned long.
1646 (read_abbrevs): Likewise.
1647 (read_attribute_value): Likewise.
1648 (decode_line_info): Likewise.
1649 (scan_unit_for_functions): Likewise.
1650 (parse_comp_unit): Likewise.
1652 2002-05-04 Tom Rix <trix@redhat.com>
1654 * coffswap.h (coff_swap_reloc_in): Remove XCOFF support.
1655 (coff_swap_reloc_out): Same.
1656 * coff-rs6000.c: (xcoff_swap_reloc_in): Moved from coffswap.h.
1657 (xcoff_swap_reloc_out): Same.
1658 (xcoff_rtype2howto): Renamed from _bfd_xcoff_rtype2howto. Special
1659 case some 16 bit relocs. Add reloc value to output.
1660 (xcoff_howto_table): Remove 64 bit R_POS, add 16 bit
1661 R_RBR. Improve names.
1662 (_bfd_xcoff_reloc_type_lookup): Adjust for removal of 64 bit R_POS.
1663 (bfd_xcoff_backend_data): Update with new reloc swap names.
1664 (bfd_pmac_xcoff_backend_data) : Same.
1665 * coff64-rs6000.c: (xcoff64_swap_reloc_in): Moved from coffswap.h.
1666 (xcoff64_swap_reloc_out): Same.
1667 (xcoff64_rtype2howto): Special case some 16 bit relocs and 32 bit
1668 R_POS. Add reloc value to output.
1669 (xcoff64_howto_table): Move 64 bit R_POS to first entry. Add 16
1670 bit R_RBR. Improve names, masks.
1671 (xcoff64_reloc_type_lookup): Adjust for move of 64 bit R_POS.
1672 (bfd_xcoff_backend_data): Update with new reloc swap names.
1673 (bfd_xcoff_aix5_backend_data) : Same.
1675 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1677 * elf32-hppa.c (struct elf32_hppa_link_hash_table): Add
1678 bfd_count top_index, input_list, all_local_syms.
1679 (elf32_hppa_setup_section_lists): New function, split from
1680 elf32_hppa_size_stubs.
1681 (elf32_hppa_next_input_section): Likewise.
1682 (group_sections): Likewise.
1683 (get_local_syms): Likewise.
1684 (elf32_hppa_size_stubs): Adjust for split out functions. Look for
1685 stubs on undefined syms too.
1686 (elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
1687 Only access htab elf fields when we have an elf hash table.
1688 * elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
1689 (elf32_hppa_next_input_section): Declare.
1691 2002-05-04 Bob Byrnes <byrnes@curl.com>
1693 * opncls.c (_bfd_new_bfd_contained_in): Check return value of
1696 2002-05-03 H.J. Lu (hjl@gnu.org)
1698 * elfxx-mips.c (mips_elf_link_hash_entry): Add forced_local.
1699 (mips_elf_link_hash_newfunc): Initialize forced_local to false.
1700 (mips_elf_record_global_got_symbol): Call _bfd_mips_elf_hide_symbol
1701 to hide a global symbol.
1702 (_bfd_mips_elf_hide_symbol): Return if forced_local is true. Set
1703 forced_local to true.
1705 2002-05-02 Richard Henderson <rth@redhat.com>
1707 * elf64-alpha.c (elf64_alpha_relocate_section): Force relative relocs
1708 vs SHN_UNDEF to zero.
1710 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1712 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_SECTOFF>): Change to a
1714 <R_PPC64_SECTOFF_DS>: Likewise.
1715 (ppc64_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
1717 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_SECTOFF>): Correct.
1718 (ppc_elf_reloc_type_lookup): Map from BFD_RELOC_16_BASEREL to
1721 * elf64-ppc.c (ppc64_elf_addr16_ha_reloc): Delete.
1722 (ppc64_elf_ha_reloc): New function.
1723 (ppc64_elf_brtaken_reloc): New function.
1724 (ppc64_elf_sectoff_reloc): New function.
1725 (ppc64_elf_sectoff_ha_reloc): New function.
1726 (ppc64_elf_toc_reloc): New function.
1727 (ppc64_elf_toc_ha_reloc): New function.
1728 (ppc64_elf_toc64_reloc): New function.
1729 (ppc64_elf_unhandled_reloc): New function.
1730 (ppc64_elf_howto_raw): Use the above.
1731 <R_PPC64_RELATIVE>: Mark pc_relative, pcrel_offset.
1732 <R_PPC64_SECTOFF>: Not pc_relative or pcrel_offset. Fix dst_mask.
1733 <R_PPC64_SECTOFF_DS>: Likewise.
1734 (IS_ABSOLUTE_RELOC): Update.
1735 (struct ppc_link_hash_table): Add have_undefweak.
1736 (ppc64_elf_link_hash_table_create): Init.
1737 (func_desc_adjust): Set have_undefweak.
1738 (ppc64_elf_func_desc_adjust): Call func_desc_adjust earlier. Only
1739 add the .sfpr blr when have_undefweak.
1740 (ppc64_elf_setup_section_lists): Check hash table flavour.
1741 (ppc64_elf_next_input_section): Move output_section->owner test to
1743 (ppc64_elf_set_toc): Rename to ppc64_elf_toc, remove info param
1744 and relocatable test. Return TOCstart and don't set elf_gp.
1745 (ppc64_elf_relocate_section): Correct BRTAKEN/BRNTAKEN branch
1746 offset calculation. Add assert on weak sym branch tweaks.
1747 * elf64-ppc.h (ppc64_elf_set_toc): Delete.
1748 (ppc64_elf_toc): Declare.
1749 (ppc64_elf_next_input_section): Update.
1751 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1753 * syms.c (_bfd_stab_section_find_nearest_line): Don't bomb on NULL
1756 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1758 * elf64-ppc.c (CROR_151515, CROR_313131): Define.
1759 (ppc64_elf_relocate_section): Use them. Don't look for plt calls
1760 on R_PPC64_ADDR24 relocs. Require a nop or no link reg on plt
1761 call branches. Correct undefined weak destination.
1762 (ppc64_elf_func_desc_adjust): Always create at least one blr in
1763 .sfpr, and correct case where either only savef* or restf* is
1766 Long branch stubs, multiple stub sections.
1767 * elf64-ppc.h (ppc64_elf_setup_section_lists): Declare.
1768 (ppc64_elf_next_input_section): Declare.
1769 * elf64-ppc.c: Move linker-only prototypes.
1770 (STUB_SUFFIX): Define.
1771 (enum ppc_stub_type): New.
1772 (struct ppc_stub_hash_entry): New.
1773 (struct ppc_branch_hash_entry): New.
1774 (struct ppc_link_hash_entry): Add stub_cache, oh.
1775 (struct ppc_link_hash_table): Add stub_hash_table etc. Remove
1776 sstub. Add sbrlt, srelbrlt, has_14bit_branch, stub_iteration.
1777 Rename plt_overflow to stub_error.
1778 (ppc_stub_hash_lookup): Define.
1779 (ppc_branch_hash_lookup): Define.
1780 (stub_hash_newfunc): New function.
1781 (branch_hash_newfunc): New function.
1782 (link_hash_newfunc): Init new fields.
1783 (ppc64_elf_link_hash_table_create): Likewise.
1784 (ppc64_elf_link_hash_table_free): New function.
1785 (ppc_stub_name): New function.
1786 (ppc_get_stub_entry): New function.
1787 (ppc_add_stub): New function.
1788 (create_linkage_sections): Use bfd_make_section_anyway. Create
1789 .branch_lt and .rela.branch_lt sections. Don't create .stub.
1790 (ppc64_elf_check_relocs): Set has_14bit_branch on R_PPC64_REL14*,
1791 and set up for plt call stubs. Link func and func desc syms.
1792 (ppc64_elf_gc_sweep_hook): Handle REL14* as per REL24.
1793 (func_desc_adjust): Avoid hash lookup when func desc sym available
1794 via shortcut, and set links when processing.
1795 (ppc64_elf_hide_symbol): Likewise.
1796 (allocate_dynrelocs): Don't allocate stub section here.
1797 (ppc64_elf_size_dynamic_sections): Handle sbrlt and srelbrlt.
1799 (ppc_type_of_stub): New function.
1800 (build_one_stub): Delete.
1801 (ppc_build_one_stub): New function.
1802 (ppc_size_one_stub): New function.
1803 (ppc64_elf_setup_section_lists): New function.
1804 (ppc64_elf_next_input_section): New function.
1805 (group_sections): New function.
1806 (get_local_syms): New function.
1807 (ppc64_elf_size_stubs): Rewrite.
1808 (ppc64_elf_build_stubs): Rewrite.
1809 (ppc64_elf_relocate_section): Look up stub entry for REL24
1810 relocs. Don't propagate REL14* to dynamic objects. Look for long
1811 branch stubs if REL14* or REL24 relocs won't reach.
1812 (bfd_elf64_bfd_link_hash_table_free): Define.
1814 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1816 * bfd/config.bfd: Add support for powerpc-*-windiss.
1818 2002-04-30 Tom Rix <trix@redhat.com>
1820 * xcofflink.c (xcoff_link_add_symbols): Always copy undef C_EXT
1821 symbol names into the hash table.
1823 2002-04-28 Tom Rix <trix@redhat.com>
1825 * coff-rs6000.c (xcoff_calculate_relocation) : Function table for
1826 calulating relocations.
1827 (xcoff_complain_overflow) : Function table for relocation errors.
1828 (xcoff_ppc_relocate_section): Use relocation and complain function
1830 (xcoff_complain_overflow_unsigned_func): New complain function.
1831 (xcoff_complain_overflow_signed_func): Same.
1832 (xcoff_complain_overflow_bitfield_func): Same.
1833 (xcoff_complain_overflow_dont_func): Same.
1834 (xcoff_reloc_type_crel): New recot function.
1835 (xcoff_reloc_type_br): Same.
1836 (xcoff_reloc_type_ba): Same.
1837 (xcoff_reloc_type_toc): Same.
1838 (xcoff_reloc_type_rel): Same.
1839 (xcoff_reloc_type_neg): Same.
1840 (xcoff_reloc_type_pos): Same.
1841 (xcoff_reloc_type_fail): Same.
1842 (xcoff_reloc_type_noop): Same.
1843 * libxcoff.h : Declare common parts for xcoff64.
1844 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Use relocation
1845 and complain function tables.
1847 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1849 * elf64-x86-64.c (struct elf64_x86_64_dyn_relocs): Comment typo.
1850 * elf32-hppa.c (elf32_hppa_final_link): Formatting.
1852 2002-04-26 Alan Modra <amodra@bigpond.net.au>
1854 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.
1855 * xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
1857 * elflink.h (elf_bfd_final_link): Ensure input bfd class is the
1858 same as the output before calling elf_link_input_bfd.
1860 * coffcode.h (coff_compute_section_file_positions): Set
1861 section_tail after shuffling section list.
1863 2002-04-24 Christian Groessler <chris@groessler.org>
1865 * coff-z8k.c (extra_case): Fix R_IMM32 relocations: The
1866 addresses are 23bit with a special layout, not plain 32bit
1867 values. Prevent relocation of immediate values.
1869 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
1871 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): If MDMX or
1872 MIPS-16 ASE flags are set, print something to indicate that.
1874 2002-04-23 Alan Modra <amodra@bigpond.net.au>
1876 * elf32-hppa.c (hppa_type_of_stub): Correct and simplify condition
1877 under which a plt call stub is used.
1878 (final_link_relocate): Similarly.
1879 (allocate_plt_static): Clear h-plabel except when plt entry is
1880 exclusively used for a plabel.
1881 (allocate_dynrelocs): Use the above to simplify plt sizing.
1882 (struct elf32_hppa_link_hash_table): Add has_22bit_branch.
1883 (elf32_hppa_link_hash_table_create): Init.
1885 (hppa_build_one_stub): Use BL22_RP if has_22bit_branch.
1886 (elf32_hppa_check_relocs): Set has_22bit_branch.
1888 * elf32-hppa.c (elf32_hppa_check_relocs): Remove debug message.
1889 (final_link_relocate): Likewise.
1891 2002-04-22 Jakub Jelinek <jakub@redhat.com>
1893 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't build
1894 search table if some FDE is DW_EH_PE_aligned encoded either.
1895 (_bfd_elf_write_section_eh_frame): Handle terminating FDE specially.
1897 2002-04-22 Richard Smith <richard@ex-parrot.com>
1898 Jakub Jelinek <jakub@redhat.com>
1900 * elf-eh-frame.c (struct eh_cie_fde): Add per_encoding_relative.
1901 (_bfd_elf_discard_section_eh_frame): Set it for CIEs with pcrel
1902 encoded personality.
1903 (_bfd_elf_write_section_eh_frame): Adjust pcrel encoded personality
1904 for CIE/FDE removal.
1906 2002-04-20 Tom Rix <trix@redhat.com>
1908 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Fix C_FILE auxent.
1910 2002-04-20 Alan Modra <amodra@bigpond.net.au>
1912 * archures.c (bfd_lookup_arch): Move the list order comment..
1913 (struct bfd_arch_info): ..to where it belongs.
1914 * bfd-in2.h: Regenerate.
1916 * archures.c (bfd_lookup_arch): Add comment on list order.
1917 (bfd_default_set_arch_mach): Use bfd_lookup_arch.
1918 * cpu-powerpc.c (bfd_powerpc_archs): Re-order so that the default
1919 is always at head of list.
1921 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1923 * coff-arm.c (coff_thumb_pcrel_12, coff_thumb_pcrel_9,
1924 insert_thumb_branch, record_thumb_to_arm_glue): Suppress
1925 definition of these functions for ARM_WINCE builds as they are
1927 (SWAP_IN_RELOC_OFFSET, SWAP_OUT_RELOC_OFFSET): Do not define
1928 for ARM_WINCE builds.
1930 2002-04-18 Nick Clifton <nickc@cambridge.redhat.com>
1932 * coff-arm.c (bfd_arm_process_before_allocation):
1934 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1936 * cpu-sh.c (scan_mach): Delete.
1937 (arch_info_struct): Replace scan_mach with bfd_default_scan.
1938 (bfd_sh_arch): Likewise.
1940 2002-04-16 Nick Clifton <nickc@cambridge.redhat.com>
1942 * ihex.c (ihex_write_object_contents): Fix check for records
1943 crossing 64K boundaries.
1945 2002-04-16 Alan Modra <amodra@bigpond.net.au>
1947 * elf32-m32r.c (m32r_elf_add_symbol_hook): Check the hash table
1948 type rather than just assuming entries are ELF.
1949 * elf32-sh64.c (sh64_elf_add_symbol_hook): Likewise.
1950 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Likewise.
1951 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Likewise.
1952 * elf64-mmix.c (mmix_elf_add_symbol_hook): Use bfd_link_hash_entry
1953 rather than elf_link_hash_entry.
1955 2002-04-15 Richard Henderson <rth@redhat.com>
1957 * elf32-mips.c (mips_elf32_object_p): Revert 0404 fragment: allow
1960 2002-04-15 Michael Snyder <msnyder@redhat.com>
1962 * opncls.c (bfd_close): Write contents if writeable.
1963 Minor formatting tidy-ups.
1965 2002-04-15 Alan Modra <amodra@bigpond.net.au>
1967 * elf32-ppc.c (ppc_elf_add_symbol_hook): Check the hash table type.
1969 2002-04-12 Michael Snyder <msnyder@redhat.com>
1971 * bfd-in.h (bfd_get_section_lma): New access macro.
1972 Minor white-space fix-up.
1974 2002-04-12 Alan Modra <amodra@bigpond.net.au>
1976 * elf.c (prep_headers): Don't zero EI_OSABI, EI_ABIVERSION or
1979 2002-04-09 DJ Delorie <dj@redhat.com>
1981 * elfarm-nabi.c (elf32_arm_howto_table): Fix ABS16 masks.
1983 2002-04-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
1985 * coffcode.h (coff_read_word): New.
1986 (coff_compute_checksum): New.
1987 (coff_apply_checksum): New.
1988 (coff_write_object_contents): Call coff_apply_checksum () to
1989 apply checksum to PE image.
1991 2002-04-08 Randolph Chung <tausq@debian.org>
1993 * elf32-hppa.c (hppa_unwind_entry_compare): Move to elf-hppa.h.
1994 (elf32_hppa_final_link): Split out sorting logic to..
1995 * elf-hppa.h (elf_hppa_sort_unwind): ..here.
1996 (elf_hppa_final_link): Call elf_hppa_sort_unwind.
1998 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2000 * configure.in: Add missing ``|'' to powerpc-*-aix4.[4-9]*
2002 * configure: Re-generate.
2004 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2006 * configure.in: Only define AIX_CORE_DUMPX_CORE when AIX version
2007 is greater or equal to 4.3.3.
2008 * configure: Regenerate.
2011 2002-04-05 Hans-Peter Nilsson <hp@axis.com>
2013 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_16_PCREL,
2014 R_CRIS_32_PCREL>: Fix typo in name.
2015 (cris_elf_check_relocs): Always create .rela.got here when
2016 R_CRIS_16_GOTPLT or R_CRIS_32_GOTPLT is seen.
2017 (elf_cris_adjust_gotplt_to_got): Don't create .rela.got here;
2018 assume it's created.
2020 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
2022 * aout-adobe.c (aout_32_bfd_link_hash_table_free): Define.
2023 * aout-target.h (MY_bfd_link_hash_table_free): Conditionally
2025 * aout-tic30.c (MY_bfd_link_hash_table_free): Likewise.
2026 * bfd.c (bfd_link_hash_table_free): Define.
2027 * binary.c (binary_bfd_link_hash_table_free): Define.
2028 * bout.c (b_out_bfd_link_hash_table_free): Define.
2029 * coff-rs6000.c (rs6000coff_vec): Include
2030 _bfd_generic_link_hash_table_free.
2031 (pmac_xcoff_vec): Likewise.
2032 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2033 (aix5coff64_vec): Likewise.
2034 * coffcode.h (coff_bfd_link_hash_table_free): Conditionally define.
2035 * elf-m10300.c (elf32_mn10300_link_hash_table_free): New function.
2036 (bfd_elf32_bfd_link_hash_table_free): Define.
2037 * elf32-hppa.c (elf32_hppa_link_hash_table_free): New function.
2038 (bfd_elf32_bfd_link_hash_table_free): Define.
2039 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_free): Conditionally
2041 * i386msdos.c (msdos_bfd_link_hash_table_free): Define.
2042 * i386os9k.c (os9k_bfd_link_hash_table_free): Define.
2043 * ieee.c (ieee_bfd_link_hash_table_free): Define.
2044 * ihex.c (ihex_bfd_link_hash_table_free): Define.
2045 * libbfd-in.h (_bfd_nolink_bfd_link_hash_table_free): Define.
2046 (_bfd_generic_link_hash_table_free): Add prototype.
2047 * libcoff-in.h (_bfd_xcoff_bfd_link_hash_table_free): Add prototype.
2048 * libecoff.h (_bfd_ecoff_bfd_link_hash_table_free): Define.
2049 * linker.c (_bfd_generic_link_hash_table_free): New function.
2050 * mmo.c (mmo_bfd_link_hash_table_free): Define.
2051 * nlm-target.h (nlm_bfd_link_hash_table_free): Define.
2052 * oasys.c (oasys_bfd_link_hash_table_free): Define.
2053 * ppcboot.c (ppcboot_bfd_link_hash_table_free): Define.
2054 * som.c (som_bfd_link_hash_table_free): Define.
2055 * srec.c (srec_bfd_link_hash_table_free): Define.
2056 * tekhex.c (tekhex_bfd_link_hash_table_free): Define.
2057 * versados.c (versados_bfd_link_hash_table_free): Define.
2058 * vms.c (vms_bfd_link_hash_table_free): New function.
2059 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_free): New function.
2061 * coff-arm.c (coff_arm_link_hash_table_create): Use bfd_malloc
2062 instead of bfd_alloc.
2063 * coff-h8300.c (h8300_coff_link_hash_table_create): Likewise.
2064 * coff-mcore.c (coff_mcore_link_hash_table_create): Likewise.
2065 * coff-ppc.c (ppc_coff_link_hash_table_create): Likewise.
2066 * cofflink.c (_bfd_coff_link_hash_table_create): Likewise.
2067 * ecoff.c (_bfd_ecoff_bfd_link_hash_table_create): Likewise.
2068 * elf-m10300.c (elf32_mn10300_link_hash_table_create): Likewise.
2069 * elf.c (_bfd_elf_link_hash_table_create): Likewise.
2070 * elf32-arm.h (elf32_arm_link_hash_table_create): Likewise.
2071 * elf32-cris.c (elf_cris_link_hash_table_create): Likewise.
2072 * elf32-hppa.c (elf32_hppa_link_hash_table_create): Likewise.
2073 * elf32-i386.c (elf_i386_link_hash_table_create): Likewise.
2074 * elf32-m68k.c (elf_m68k_link_hash_table_create): Likewise.
2075 * elf32-s390.c (elf_s390_link_hash_table_create): Likewise.
2076 * elf32-sh.c (sh_elf_link_hash_table_create): Likewise.
2077 * elf64-alpha.c (elf64_alpha_bfd_link_hash_table_create): Likewise.
2078 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
2079 * elf64-s390.c (elf_s390_link_hash_table_create): Likewise.
2080 * elf64-sh64.c (sh64_elf64_link_hash_table_create): Likewise.
2081 * elf64-sparc.c (sparc64_elf_bfd_link_hash_table_create): Likewise.
2082 * elf64-x86-64.c (elf64_x86_64_link_hash_table_create): Likewise.
2083 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
2084 * linker.c (_bfd_generic_link_hash_table_create): Likewise.
2085 * m68klinux.c (linux_link_hash_table_create): Likewise.
2086 * sparclinux.c (linux_link_hash_table_create): Likewise.
2087 * sunos.c (sunos_link_hash_table_create): Likewise.
2088 * xcofflink.c (_bfd_xcoff_bfd_link_hash_table_create): Likewise.
2090 * targets.c: Add _bfd_link_hash_table_free to xvec.
2092 * bfd-in2.h: Regenerate.
2093 * libbfd.h: Regenerate.
2094 * libcoff.h: Regenerate.
2096 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2098 * dep-in.sed: Cope with absolute paths.
2099 * Makefile.am (dep.sed): Subst TOPDIR, and not INCDIR.
2101 * Makefile.in: Regenerate.
2102 * coff-arm.c: Fix copyright date.
2103 * cpu-h8300.c: Likewise.
2104 * cpu-i370.c: Likewise.
2105 * cpu-s390.c: Likewise.
2106 * cpu-mips.c: Likewise.
2107 * po/SRC-POTFILES.in: Regenerate.
2109 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2111 * Makefile.am: Add elfxx-mips.c to the known backends.
2112 (elf32-mips.lo): remove dependency to coff/external.h.
2113 * Makefile.in: Regenerate.
2114 * configure.in: Add elfxx-mips.lo to all vectors using elf32-mips.lo
2115 Remove elf32-mips.lo from 64 bit vectors. Update dependencies
2117 * configure: Regenerate.
2118 * elf-bfd.h: Move all MIPS ELF specific prototypes to elfxx-mips.h.
2119 (irix_compat_t): IRIX compatibility level, moved from elf32-mips.c.
2120 (elf_backend_mips_irix_compat, elf_backend_mips_rtype_to_howto): New
2121 MIPS specific backend functions.
2122 * elf32-mips.c: Moved most code to elfxx-mips.c.
2123 (mips_elf_hi16_reloc): Rename from _bfd_mips_elf_hi16_reloc and make
2125 (mips_elf_lo16_reloc): Likewise, was _bfd_mips_elf_lo16_reloc.
2126 (mips_elf_got16_reloc): Likewise, was _bfd_mips_elf_got16_reloc.
2127 (mips_elf_gprel32_reloc): Likewise, was _bfd_mips_elf_gprel32_reloc.
2128 (mips_elf32_rtype_to_howto): Rename from mips_rtype_to_howto. Changed
2129 interface to allow selection of the right REL or RELA howto table.
2130 (mips_elf32_object_p): Rename from _bfd_mips_elf_object_p and made
2131 static. Let it refuse n32 objects.
2132 (elf32_mips_grok_prstatus): Rename from _bfd_elf32_mips_grok_prstatus.
2133 (elf32_mips_grok_psinfo): Rename from _bfd_elf32_mips_grok_psinfo.
2134 (elf32_mips_discard_info): Rename from _bfd_elf32_mips_discard_info.
2135 (elf32_mips_ignore_discarded_relocs): Rename from
2136 _bfd_elf32_mips_ignore_discarded_relocs.
2137 (elf32_mips_write_section): Rename from _bfd_elf32_mips_write_section.
2138 (elf32_mips_irix_compat): New function, replaces IRIX_COMPAT.
2139 (elf_mips_howto_table_rela): Remove.
2140 * elf64-mips.c: Moved most code to elfxx-mips.c.
2141 (bfd_elf64_bfd_reloc_type_lookup): Make static.
2142 (mips_elf64_rtype_to_howto): New function.
2143 (mips_elf64_object_p): Likewise.
2144 (elf64_mips_irix_compat): Likewise.
2145 * elfxx-mips.c: New file containing common code merged together from
2146 elf32-mips.c and elf64-mips.c.
2147 * elfxx-mips.h: New file containing MIPS specific prototypes from
2149 * elfxx-target.h: Add handling for elf_backend_mips_irix_compat and
2150 elf_backend_mips_rtype_to_howto.
2152 2002-04-04 Alan Modra <amodra@bigpond.net.au>
2154 * srec.c (MAXCHUNK, Chunk): Revise comments.
2155 (srec_write_record): Correct buffer size.
2156 (srec_write_header): Do without intermediate buffer.
2157 (srec_write_section): Validate Chunk.
2158 (srec_write_terminator): Pass NULL instead of dummy buffer.
2159 (srec_write_symbols): Pass file and symbol names directly to
2160 bfd_bwrite so sprintf won't overflow buffer.
2162 2002-04-03 Jakub Jelinek <jakub@redhat.com>
2164 * elf32-sparc.c (elf32_sparc_relocate_section): Don't emit dynamic
2165 PC relative relocs against hidden symbols.
2166 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2168 2002-04-03 Alan Modra <amodra@bigpond.net.au>
2170 * elf.c (_bfd_elf_make_section_from_shdr): When setting section
2171 LMAs, loop over segments until p_vaddr and p_memsz specify an
2172 extent enclosing the section.
2174 2002-04-02 Nick Clifton <nickc@cambridge.redhat.com>
2176 * ihex.c (ihex_write_object_contents): Do not allow records to
2177 cross a 64K boundary - wrap if necessary.
2179 2002-04-01 Nathan Williams <nathanw@wasabisystems.com>
2181 * elf.c (elfcore_netbsd_get_lwpid): Fix off-by-one error
2182 which caused the returned LWP ID to always be 0.
2184 2002-04-01 Richard Henderson <rth@redhat.com>
2186 * elf32-sparc.c (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
2187 (elf32_sparc_relocate_section): Use it to figure out when to
2188 initialize .got entries.
2189 * elf64-sparc.c: Similarly.
2191 2002-03-28 Alan Modra <amodra@bigpond.net.au>
2193 * linker.c (link_action): Ignore duplicate warning syms.
2194 (_bfd_generic_link_write_global_symbol): Follow warning symbol link.
2195 * elflink.h (elf_adjust_dynstr_offsets): Likewise.
2196 (elf_adjust_dynamic_symbol): Likewise.
2197 (elf_export_symbol): Likewise.
2198 (elf_link_find_version_dependencies): Likewise.
2199 (elf_link_assign_sym_version): Likewise.
2200 (elf_link_sec_merge_syms): Likewise.
2201 (elf_link_output_extsym): Likewise.
2202 (elf_gc_sweep_symbol): Likewise.
2203 (elf_gc_propagate_vtable_entries_used): Likewise.
2204 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2205 (elf_gc_allocate_got_offsets): Likewise.
2206 (elf_collect_hash_codes): Likewise.
2207 * elflink.c (elf_link_renumber_hash_table_dynsyms): Likewise.
2208 * elf-hppa.h (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
2209 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
2210 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
2211 * elf32-arm.h (elf32_arm_discard_copies): Likewise.
2212 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Likewise.
2213 (elf_cris_discard_excess_dso_dynamics): Likewise.
2214 * elf32-hppa.c (clobber_millicode_symbols): Likewise.
2215 (mark_PIC_calls): Likewise.
2216 (allocate_plt_static): Likewise.
2217 (allocate_dynrelocs): Likewise.
2218 (readonly_dynrelocs): Likewise.
2219 * elf32-i386.c (allocate_dynrelocs): Likewise.
2220 (readonly_dynrelocs): Likewise.
2221 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
2222 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
2223 * elf32-mips.c (mips_elf_output_extsym): Likewise.
2224 (mips_elf_sort_hash_table_f): Likewise.
2225 (mips_elf_check_mips16_stubs): Likewise.
2226 * elf32-s390.c (allocate_dynrelocs): Likewise.
2227 (readonly_dynrelocs): Likewise.
2228 * elf32-sh.c (sh_elf_discard_copies): Likewise.
2229 * elf32-xstormy16.c (xstormy16_relax_plt_check): Likewise.
2230 (xstormy16_relax_plt_realloc): Likewise.
2231 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Likewise.
2232 (elf64_alpha_output_extsym): Likewise.
2233 * elf64-hppa.c (elf64_hppa_mark_exported_functions): Likewise.
2234 * elf64-mips.c (mips_elf64_sort_hash_table_f): Likewise.
2235 (mips_elf64_check_mips16_stubs): Likewise.
2236 (mips_elf64_output_extsym): Likewise.
2237 * elf64-ppc.c (func_desc_adjust): Likewise.
2238 (allocate_dynrelocs): Likewise.
2239 (readonly_dynrelocs): Likewise.
2240 * elf64-s390.c (allocate_dynrelocs): Likewise.
2241 (readonly_dynrelocs): Likewise.
2242 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
2243 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
2244 (readonly_dynrelocs): Likewise.
2245 * elfxx-ia64.c (elfNN_ia64_global_dyn_sym_thunk): Likewise.
2246 * aoutx.h (aout_link_write_other_symbol): Likewise.
2247 * cofflink.c (_bfd_coff_write_task_globals): Likewise.
2248 (_bfd_coff_write_global_sym): Likewise.
2249 * i386linux.c (linux_tally_symbols): Likewise.
2250 * m68klinux.c (linux_tally_symbols): Likewise.
2251 * sparclinux.c (linux_tally_symbols): Likewise.
2252 * pdp11.c (aout_link_write_other_symbol): Likewise.
2253 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
2254 * xcofflink.c (xcoff_build_ldsyms): Likewise.
2255 (xcoff_write_global_symbol): Likewise.
2257 * cofflink.c (_bfd_coff_final_link): Formatting.
2258 * cpu-mips.c (mips_compatible): Make static, prototype.
2259 * elf32-i386.c (elf_i386_check_relocs): Formatting.
2260 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
2261 * elf64-alpha.c (elf64_alpha_output_extsym): Likewise.
2262 * elf64-mips.c (mips_elf64_sort_hash_table): Likewise.
2263 (mips_elf64_final_link): Likewise.
2264 * elflink.h (elf_link_find_version_dependencies): Remove duplicate
2267 2002-03-27 Nick Clifton <nickc@cambridge.redhat.com>
2269 * coff-arm.c (SWAP_IN_RELOC_OFFSET): Define.
2270 (SWAP_OUT_RELOC_OFFSET): Define.
2272 2002-03-27 Gregory Steuck <greg@nest.cx>
2274 * elf.c (_bfd_elf_get_symtab_upper_bound): Leave space for
2275 terminating NULL if empty symbol table.
2276 (_bfd_elf_get_dynamic_symtab_upper_bound): Likewise.
2278 2002-03-26 H.J. Lu (hjl@gnu.org)
2280 * elflink.h (elf_link_input_bfd): Revert the last change since
2281 the gcc exception handling isn't fixed yet.
2283 2002-03-26 H.J. Lu (hjl@gnu.org)
2285 * elflink.h (elf_link_input_bfd): Complain about relocations
2286 against local symbols in discarded sections.
2288 2002-03-26 Alan Modra <amodra@bigpond.net.au>
2290 * elflink.h (elf_gc_mark): Don't recurse into non-ELF sections.
2292 2002-03-23 Alan Modra <amodra@bigpond.net.au>
2294 * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
2295 section file offset for !SEC_LOAD sections.
2297 2002-03-21 Richard Earnshaw <rearnsha@arm.com>
2299 * elf32-arm.h (elf32_arm_final_link_relocate <case R_ARM_GOTOFF>,
2300 <case R_ARM_GOT>): Handle relocations to Thumb functions.
2302 2002-03-21 Alan Modra <amodra@bigpond.net.au>
2304 * coff64-rs6000.c (_bfd_xcoff64_put_symbol_name): Prototype.
2306 * archive.c: Update copyright date.
2307 * bfd-in2.h: Regenerate.
2308 * libbfd.h: Regenerate.
2309 * Makefile.am: Run "make dep-am"
2310 * Makefile.in: Regenerate.
2311 * po/SRC-POTFILES.in: Regenerate.
2313 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
2315 * dwarf2.c (struct funcinfo): Move up.
2316 (lookup_address_in_function_table): New argument function_ptr.
2318 (lookup_address_in_line_table): New argument function. If function
2319 is non-NULL, use it to handle ``addr'' before the first line note of
2321 (comp_unit_find_nearest_line): Update and swap calls to
2322 lookup_address_in_function_table and lookup_address_in_line_table.
2323 * syms.c (_bfd_stab_section_find_nearest_line): Use the first
2324 N_SLINE encountered if we see an N_FUN before any N_SLINE.
2326 2002-03-20 Tom Rix <trix@redhat.com>
2328 * coff-rs6000.c (_bfd_xcoff_stat_arch_elt): Renamed from
2329 _bfd_xcoff_generic_stat_arch_elt. Fix format check.
2330 * coff64-rs6000.c : Use _bfd_xcoff_stat_arch_elt.
2332 2002-03-19 Tom Rix <trix@redhat.com>
2334 * xcofflink.c (_bfd_xcoff_bfd_link_add_symbols): Look through all
2335 dynamic objects in archives.
2337 2002-03-19 Hans-Peter Nilsson <hp@bitrange.com>
2339 * elflink.h (NAME(bfd_elf,record_link_assignment)): Don't set
2340 STT_NOTYPE symbols to STT_OBJECT.
2342 2002-03-18 Jan Hubicka <jh@suse.cz>
2344 * cpu-i386.c (bfd_x86_64_arch): Rename to "i386:x86-64"
2346 2002-03-18 Tom Rix <trix@redhat.com>
2348 * aix5ppc.core.c : New file for AIX 5 64 bit core support.
2349 * bfd-in.h : Add bfd_xcoff_ar_archive_set_magic declaration.
2350 * coff-rs6000 (do_pad) : New function for archive padding.
2351 (do_copy) : New function for object file copying in archives.
2352 (do_shared_object_padding) : New function for padding shared
2353 objects to their text section alignment in archives.
2354 (bfd_xcoff_ar_achive_set_magic) : Stub.
2355 (xcoff_write_armap_big) : Use do_copy and do_pad.
2356 (xcoff_write_archive_contents_big) : Use do_shared_object_padding,
2358 * coff64-rs6000.c (xcoff64_write_ojbect_contents) : Use
2359 bfd_xcoff_magic_number.
2360 (xcoff64_bad_format_hook) : New function for _bfd_bad_format_hook
2362 (xcoff_backend_data_r) : Use xcoff64_bad_format_hook.
2363 (bfd_xcoff_aix5_backend_data) : New Aix 5 backend data.
2364 (aix5coff64_vec) : New Aix 5 target aix5coff64-rs6000.
2365 * rs6000-core.c : Update copyright date.
2366 * xcofflink.c (bfd_xcoff_size_dynamic_sections): Check for NULL
2368 * coffcode.h (coff_new_section_hook) : Use new accessor macros.
2369 (coff_set_arch_mach_hook) : Add Aix 5 U64_TOCMAGIC magic #.
2370 (coff_set_flags) : Use bfd_xcoff_magic_number.
2371 * libxcoff.h (bfd_xcoff_is_xcoff64): Add U64_TOCMAGIC.
2372 * configure.in : Add powerpc-*-aix5 and rs6000-*-aix5 support.
2373 * Makefile.am : Same.
2374 * config.bfd : Same.
2376 * configure : Regnerate.
2377 * Makefile.in : Same.
2380 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
2382 * po/fr.po: Updated version.
2384 2002-03-18 Alan Modra <amodra@bigpond.net.au>
2386 * libbfd.c (bfd_write_bigendian_4byte_int): Return true iff success.
2387 * libbfd.h: Regenerate.
2388 * archive.c (coff_write_armap): Pass on failures from
2389 bfd_write_bigendian_4byte_int.
2391 2002-03-14 H.J. Lu <hjl@gnu.org>
2393 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the BFD
2394 error to bfd_error_nonrepresentable_section for reinit_array
2397 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
2399 * coffcode.h (coff_slurp_symbol_table): When adding BSF_WEAK flag,
2400 OR it in rather than replacing previously selected flags.
2402 * elfxx-target.h (TARGET_BIG_SYM): Set ar_max_namelen to 15.
2403 (TARGET_LITTLE_SYM): Set ar_max_namelen to 15.
2405 2002-03-14 Alan Modra <amodra@bigpond.net.au>
2407 * cpu-mips.c (mips_compatible): New. Don't check bits_per_word.
2409 * elflink.h (elf_bfd_final_link): Revert last change. Instead,
2410 ensure reloc size matches before calling elf_link_input_bfd.
2411 Add an assert to check reloc size when counting output relocs.
2413 2002-03-14 Nick Clifton <nickc@cambridge.redhat.com>
2415 * mmo.c (mmo_get_loc): Return NULL rather than false.
2417 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
2419 * po/fr.po: Updated version.
2421 2002-03-13 Alan Modra <amodra@bigpond.net.au>
2423 * archures.c (bfd_default_compatible): Test bits_per_word.
2424 * cpu-i386.c (i386_compatible): Remove. Replace occurrences with
2425 bfd_default_compatible.
2426 * cpu-i370.c (i370_compatible): Likewise.
2427 * cpu-sparc.c (sparc_compatible): Likewise.
2428 * cpu-h8300.c (compatible): Test in->arch == out->arch.
2430 * elflink.h: Formatting fixes.
2431 (elf_link_output_extsym): Merge undefined and undef weak cases.
2433 * elflink.h (elf_bfd_final_link): Only call elf_link_input_bfd
2434 when word size of input matches output word size.
2436 2002-03-12 Andreas Jaeger <aj@suse.de>
2438 * cpu-i386.c (i386_compatible): New. Use it instead of
2439 bfd_default_compatible.
2441 2002-03-07 H.J. Lu (hjl@gnu.org)
2443 * coff-sh.c (shcoff_reloc_map): Use bfd_reloc_code_real_type
2444 as the type for bfd_reloc_val.
2446 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
2448 * elf-hppa.h (elf_hppa_is_dynamic_loader_symbol): New function.
2449 (elf_hppa_relocate_section): Ignore undefined dynamic loader symbols.
2450 (elf_hppa_final_link_relocate): Correct relocations for indirect
2451 references to local data through the DLT. Fix .opd creation for
2452 local symbols using R_PARISC_LTOFF_FPTR32 and R_PARISC_FPTR64
2453 relocations. Use e_lsel selector for R_PARISC_DLTIND21L,
2454 R_PARISC_LTOFF_FPTR21L and R_PARISC_LTOFF_TP21L as per
2455 "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2456 Similarly, use e_rsel for DLT and LTOFF 'R' relocations.
2457 * elf32-hppa.c (final_link_relocate): Revise relocation selectors
2458 as per "Processor-Specific ELF for PA_RISC, Version 1.43" document.
2460 2002-03-05 Jakub Jelinek <jakub@redhat.com>
2462 * merge.c (_bfd_merge_sections): Don't segfault if there
2463 is nothing to merge due to GC.
2465 2002-03-05 Alan Modra <amodra@bigpond.net.au>
2467 * elf32-hppa.c (clobber_millicode_symbols): Remove hack to keep
2468 symbols that have been forced local.
2470 * elflink.h (elf_bfd_final_link): Call elf_link_output_extsym
2471 to output forced local syms for non-shared link.
2472 (elf_link_output_extsym): Tweak condition for calling backend
2473 adjust_dynamic_symbol so that previous behaviour is kept.
2474 Whitespace changes throughout file.
2476 2002-03-04 H.J. Lu <hjl@gnu.org>
2478 * elf.c (bfd_section_from_shdr): Handle special sections,
2479 .init_array, .fini_array and .preinit_array.
2480 (elf_fake_sections): Likewise.
2482 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Create the
2483 DT entry only if the section is in output for .init_array,
2484 .fini_array and .preinit_array. Complain about .preinit_array
2486 (elf_bfd_final_link): Warn zero size for .init_array,
2487 .fini_array and .preinit_array sections.
2489 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Remove
2490 SHT_INIT_ARRAY, SHT_FINI_ARRAY and SHT_PREINIT_ARRAY.
2491 (elfNN_ia64_fake_sections): Remove .init_array, .fini_array and
2494 2002-03-04 Alan Modra <amodra@bigpond.net.au>
2496 * configure.in (WIN32LIBADD): Don't eval PICFLAG assignment.
2497 * configure: Regenerate.
2499 2002-03-02 Tom Rix <trix@redhat.com>
2501 * coff64-rs6000.c (xcoff64_howto_table): Replace howto types with
2503 * coff-rs6000.c (xcoff_howto_table): Same.
2505 2002-03-01 David Mosberger <davidm@hpl.hp.com>
2507 * elflink.h (size_dynamic_sections): If section named
2508 ".preinit_array" exists, create DT_PREINIT_ARRAY and
2509 DT_PREINIT_ARRAYSZ entries in dynamic table. Analogously for
2510 ".init_array" and ".fini_array".
2511 (elf_bfd_final_link): Handle DT_PREINIT_ARRAYSZ, DT_INIT_ARRAYSZ,
2512 DT_FINI_ARRAYSZ, DT_PREINIT_ARRAY, DT_INIT_ARRAY, and
2515 2002-02-26 Andrew Macleod <amacleod@cygnus.com>
2517 * elflink.h (elf_bfd_final_link): Don't crash on SHN_UNDEF local
2520 2002-02-25 Alan Modra <amodra@bigpond.net.au>
2522 * elf64-hppa.h: Update copyright date.
2524 * elf64-ppc.c (ppc64_elf_check_relocs): Warning fix.
2525 (ppc64_elf_relocate_section): Don't generate power4 style branch
2526 hints for *_BRTAKEN and *_BRNTAKEN relocs.
2528 2002-02-22 Jakub Jelinek <jakub@redhat.com>
2530 * elf64-sh64.c (sh_elf64_relocate_section): Fix a typo from my
2532 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2534 2002-02-21 Andreas Jaeger <aj@suse.de>
2536 * elf64-x86-64.c: Major rework that introduces all recent changes
2537 to the x86-64 backend. Get a closer match to elf32-i386.
2538 (struct elf64_x86_64_dyn_relocs): Rename from
2539 elf64_x86_64_pcrel_relocs_copied, add additional fields. Change
2541 (struct elf64_x86_64_link_hash_table): Add short cuts to some
2543 (link_hash_newfunc): Rename from elf64_x86_64_link_hash_newfunc,
2544 remove casts, initialize new hash members.
2545 (create_got_section): New.
2546 (elf64_x86_64_create_dynamic_sections): New.
2547 (elf64_x86_64_copy_indirect_symbol): New.
2548 (elf64_x86_64_check_relocs): Don't allocate space for dynamic
2549 relocs, .got or .relgot here but do it in allocate_dynrelocs.
2550 Reference count possible .plt and .got entries. Don't test input
2551 section SEC_READONLY here to try to avoid copy relocs, and keep
2552 dyn_relocs regardless of ELF_LINK_NON_GOT_REF. Don't set
2553 DF_TEXTREL here. Delay setting of variables until needed. Cache
2554 pointer to "sreloc" section in elf_section_data. Tweak condition
2555 under which .got created. Report files with bad relocation
2557 (elf64_x86_64_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
2558 Reference count possible .plt entries. Don't deallocate .got and
2560 (elf64_x86_64_adjust_dynamic_symbol): Handle nocopyreloc. Don't
2561 do copy reloc processing for weakdefs. Remove redundant casts and
2562 aborts. Delay setting of vars until needed. Move creation of
2563 dynamic symbols and allocation of .plt and .rela.plt to
2564 allocate_dynrelocs. Replace BFD_ASSERT with abort.
2565 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): New.
2566 (allocate_dynrelocs): New.
2567 (readonly_dynrelocs): New.
2568 (elf64_x86_64_size_dynamic_sections): Call readonly_dynrelocs.
2569 Allocate space for dyn relocs. Replace BFD_ASSERT with abort.
2570 Zero out the dynamic allocated content space.
2571 (elf64_x86_64_discard_copies): Removed.
2572 (elf64_x86_64_relocate_section): Make use of dynamic section
2573 short-cuts. Localise vars, and delay setting. Better error
2574 reporting, replace BFD_ASSERT with abort. Check
2575 ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined in the
2576 regular object file and tread the weak definition as the normal
2577 one. Don't discard relocs for undefweak or undefined symbols and
2578 check !DEF_REGULAR as well as DEF_DYNAMIC in test for avoided copy
2580 (elf64_x86_64_finish_dynamic_symbol): Don't copy relocs for
2581 symbols that have been forced local. Use same test to decide if
2582 we can use a relative reloc for got as relocate_section. Expand
2583 SHN_UNDEF comment. Move expressions out of function calls.
2584 Replace BFD_ASSERT with abort.
2585 (bfd_elf64_bfd_final_link): Removed.
2586 (elf_backend_copy_indirect_symbol): Define.
2588 2002-02-20 Tom Rix <trix@redhat.com>
2590 * coff-rs6000.c (xcoff_howto_table): Add 16 bit R_BA.
2591 (_bfd_xcoff_reloc_type_lookup): Use it.
2592 * coff64-rs6000.c (xcoff64_howto_table): Same.
2593 (xcoff64_reloc_type_lookup): Same.
2595 2002-02-20 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2597 * osf-core.c (osf_core_vec): OSF/1 (Digital Unix) core files are
2600 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2602 * archures.c (bfd_mach_s390_esa): Rename to bfd_mach_s390_31.
2603 (bfd_mach_s390_esame): Rename to bfd_mach_s390_64.
2604 * bfd-in2.h: Regenerate.
2605 * cpu-s390.c (arch_info_struct): Use renamed architecture defines.
2606 Replace architecture name "s390" with "s390:31-bit" and "s390:esame"
2608 * elf32-s390.c (elf_howto_table): Add 32 bit pc relative relocations.
2609 (elf_s390_reloc_type_lookup): Likewise.
2610 (elf_s390_check_relocs): Likewise.
2611 (elf_s390_gc_sweep_hook): Likewise.
2612 (elf_s390_relocate_section): Likewise.
2613 (elf_s390_object_p): Use renamed architecture define.
2614 * elf64-s390.c (elf_s390_object_p): Use renamed architecture define.
2616 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
2618 * syms.c (stt[]): Sorted. Added .init/.fini -> "t" mapping.
2620 2002-02-19 Jakub Jelinek <jakub@redhat.com>
2622 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Enable
2623 absptr -> pcrel optimization for shared libs.
2624 Only create minimal .eh_frame_hdr if absptr FDE encoding in shared
2625 library cannot be converted to pcrel.
2626 (_bfd_elf_eh_frame_section_offset): Return -2 if making absptr
2628 * elf32-i386.c (elf_i386_relocate_section): If
2629 _bfd_elf_section_offset returned -2, skip, but make sure the
2630 relocation is installed.
2631 * elf32-arm.h (elf32_arm_final_link_relocate): Likewise.
2632 * elf32-cris.c (cris_elf_relocate_section): Likewise.
2633 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
2634 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2635 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
2636 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2637 * elf32-s390.c (elf_s390_relocate_section): Likewise.
2638 * elf32-sh.c (sh_elf_relocate_section): Likewise.
2639 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
2640 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
2641 * elf64-s390.c (elf_s390_relocate_section): Likewise.
2642 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
2643 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
2644 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
2645 * elf64-alpha.c (elf64_alpha_relocate_section): Handle
2646 _bfd_elf_section_offset returning -2 the same way as -1.
2647 * elfxx-ia64.c (elfNN_ia64_install_dyn_reloc): Likewise.
2648 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add FIXME
2650 * elf64-mips.c (mips_elf64_create_dynamic_relocation): Likewise.
2652 2002-02-18 Tom Rix <trix@redhat.com>
2654 * xcofflink.c (bfd_xcoff_link_gernate_rtinit): Add -brtl support.
2655 (bfd_xcoff_size_dynamic_sections): Same.
2656 * bfd-in.h (bfd_xcoff_link_generate_rtinit): Same.
2657 (bfd_xcoff_size_dynamic_sections): Same.
2658 * coff-rs6000.c (xcoff_generate_rtinit): Same.
2659 * coff-rs646000.c (xcoff64_generate_rtinit): Same.
2660 * libxcoff.h (struct xcoff_backend_data_rec): Same.
2661 * xcofflink.c (xcoff_build_ldsyms, xcoff_link_add_symbols): Clean.
2662 * bfd-in2.h: Regenerate.
2664 2002-02-18 Alan Modra <amodra@bigpond.net.au>
2666 * elf64-ppc.c (STFD_FR0_0R1, LFD_FR0_0R1, BLR): Define.
2667 (struct ppc_link_hash_table): Add sfpr.
2668 (ppc64_elf_link_hash_table_create): Init it.
2669 (ppc64_elf_create_dynamic_sections): Split creation of .stub and
2671 (create_linkage_sections): ..here. Make .sfpr too.
2672 (ppc64_elf_check_relocs): Call create_linkage_sections, and set
2674 (MIN_SAVE_FPR, MAX_SAVE_FPR): Define.
2675 (ppc64_elf_func_desc_adjust): Look for missing ._savef* and
2676 ._restf* functions, and create as needed.
2677 (func_desc_adjust): Only force_local for shared libs.
2679 2002-02-18 David O'Brien <obrien@FreeBSD.org>
2681 * configure.in: Bump version number post 2.12 branching.
2682 * configure: Regenerate.
2684 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
2686 * mmo.c: Correct and improve comments.
2687 (mmo_write_chunk): Store trailing byte in bfd buffer; don't
2688 zero-pad. Use input to fill up non-empty bfd buffer.
2689 (mmo_flush_chunk): New function.
2690 (mmo_write_loc_chunk): Add parameter last_vmap, all callers
2691 changed. Don't emit location specifier if VMA is same as
2692 *LAST_VMAP after omitting leading zero contents. Call
2693 mmo_flush_chunk before emitting location specifier.
2694 (mmo_write_loc_chunk_list): Call mmo_flush_chunk when finished
2695 with mmo_write_loc_chunk calls.
2696 (mmo_internal_write_section): Call mmo_flush_chunk after
2698 (mmo_write_symbols_and_terminator): Move :Main to first position
2699 in symbol array. Add faked one if it does not exist if there are
2700 other symbols. Don't add it if there are no symbols at all. Move
2701 out test for value of :Main from symbol loop. Rename table
2702 fakemain to maintable and variable mainsym to fakemain.
2704 2002-02-15 Richard Henderson <rth@redhat.com>
2706 * elf64-alpha.c (elf64_alpha_relocate_section) [BRSGP]: A target
2707 section with no got matches any got. Simplify error generaion.
2709 2002-02-15 Alan Modra <amodra@bigpond.net.au>
2711 Support arbitrary length fill patterns.
2712 * linker.c (bfd_new_link_order): Zero all fields with bfd_zalloc.
2713 (_bfd_default_link_order): Remove bfd_fill_link_order code.
2714 Call default_data_link_order.
2715 (default_fill_link_order): Delete.
2716 (default_data_link_order): New function.
2717 * elf32-mips.c (_bfd_mips_elf_final_link): Replace occurrences
2718 of bfd_fill_link_order with bfd_data_link_order.
2719 * elf64-alpha.c (elf64_alpha_final_link): Likewise.
2720 * elf64-mips.c (mips_elf64_final_link): Likewise.
2722 * bfd.c (bfd_scan_vma): Clamp overflows to max bfd_vma value.
2723 Correct value returned in "end" for "0x<non-hex>".
2725 2002-02-14 Nick Clifton <nickc@cambridge.redhat.com>
2727 * cpu-arm.c (processors): Replace 'arch' field with 'mach'.
2728 (scan): Test against 'mach' field in info structure.
2730 2002-02-14 Alan Modra <amodra@bigpond.net.au>
2732 * elf.c (elf_fake_sections): Use SHT_NOBITS when SEC_NEVER_LOAD.
2734 2002-02-14 Matt Fredette <fredette@netbsd.org>
2736 * elf32-m68k.c (elf32_m68k_print_private_bfd_data): Recognize
2739 2002-02-13 Nick Clifton <nickc@cambridge.redhat.com>
2741 * elf.c (_bfd_elf_make_section_from_shdr): Do not insist on
2742 non-zero physical addresses when adjusting the LMAs of new
2745 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
2747 * elf-hppa.h (elf_hppa_reloc_final_type): New function stripped
2748 from _bfd_elf_hppa_gen_reloc_type.
2749 (_bfd_elf_hppa_gen_reloc_type): Remove duplicate prototype.
2750 * elf32-hppa.h (elf32_hppa_reloc_final_type): Add protptype.
2751 * elf32-hppa.c: Include elf32-hppa.h before elf-hppa.h.
2752 * elf64-hppa.h (elf64_hppa_reloc_final_type): Add protptype.
2754 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
2756 * elf-m10300.c (mn10300_elf_relax_section): Skip section before
2757 loading its contents if there's nothing to do in it.
2759 2002-02-12 Alan Modra <amodra@bigpond.net.au>
2761 * elf64-ppc.c (ppc64_elf_size_stubs): Correct test for crossing
2764 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Add dynamic
2765 DT_PPC64_OPD and DT_PPC64_OPDSZ tags.
2766 (ppc64_elf_finish_dynamic_sections): Set values for them.
2768 2002-02-11 Michael Snyder <msnyder@redhat.com>
2770 * elf-bfd.h (elfcore_write_lwpstatus): Add prototype.
2771 * elf.c (elfcore_grok_pstatus): Add prototype.
2772 (elfcore_grok_lwpstatus): Add prototype.
2773 (elfcore_write_lwpstatus): New function.
2774 (elfcore_write_pstatus): Fix typo, eliminate unnecessary memcpy.
2776 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
2778 * elf32-sh.c: Added missing prototypes.
2779 * elf32-sh64.c: Likewise.
2780 (sh_elf_align_loads): Mark unused args as such.
2781 * elf64-sh64.c: Added missing prototypes.
2782 (struct elf_sh64_link_hash_entry): Fix typo.
2783 (sh_elf64_relocate_section): Fix info argument passed to
2784 _bfd_elf_section_offset.
2786 2002-02-11 Alan Modra <amodra@bigpond.net.au>
2788 * Makefile.am: "make dep-am".
2789 * Makefile.in: Regenerate.
2790 * aclocal.m4: Regenerate.
2791 * config.in: Regenerate.
2792 * configure: Regenerate.
2794 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2796 * coff-rs6000.c (xcoff_generate_rtinit): Silence uninitialized
2798 * elf32-sh.c (sh_elf_relax_section): Silence signed/unsigned
2800 * trad-core.c (trad_unix_core_file_p): Silence pointer/integer
2801 cast warnings for the common case.
2803 2002-02-10 Hans-Peter Nilsson <hp@bitrange.com>
2805 * config.bfd (sh-*-linux*, sh-*-elf* | sh-*-rtemself*): Add sh64
2807 (sh-*-netbsdelf*): New, to trump sh*-*-netbsdelf* and add sh64
2810 2002-02-09 Richard Henderson <rth@redhat.com>
2812 * elf64-alpha.c (elf64_alpha_howto): Add R_ALPHA_BRSGP.
2813 (elf64_alpha_reloc_map, elf64_alpha_check_relocs): Likewise.
2814 (elf64_alpha_relocate_section): Likewise.
2815 * reloc.c (BFD_RELOC_ALPHA_BRSGP): New.
2816 * bfd-in2.h, libbfd.h: Rebuild.
2818 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
2820 * elf64-mmix.c (_bfd_mmix_finalize_linker_allocated_gregs): Check
2821 that base-plus-offset reloc accounting is consistent.
2822 (mmix_elf_relax_section): Keep base-plus-offset reloc accounting
2823 up to date for undefined symbols.
2825 2002-02-08 Eric Christopher <echristo@redhat.com>
2827 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2829 * elf32-mips.c (_bfd_mips_elf_fake_sections): Don't create .rela
2830 sections for the O32 ABI.
2832 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2834 * elf32-arm.h: Fix formatting of _("...").
2835 * elf32-d10v.c: Likewise.
2836 * elf32-m68k.c: Likewise.
2837 * elf32-mips.c: Likewise.
2839 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
2841 * coff-or32.c: Fix compile time warning messages.
2843 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
2845 Contribute sh64-elf.
2846 2002-01-23 Alexandre Oliva <aoliva@redhat.com>
2847 * reloc.c (R_SH_GOTPLT32, R_SH_GOT_LOW16, R_SH_GOT_MEDLOW16,
2848 R_SH_GOT_MEDHI16, R_SH_GOT_HI16, R_SH_GOTPLT_LOW16,
2849 R_SH_GOTPLT_MEDLOW16, R_SH_GOTPLT_MEDHI16, R_SH_GOTPLT_HI16,
2850 R_SH_PLT_LOW16, R_SH_PLT_MEDLOW16, R_SH_PLT_MEDHI16,
2851 R_SH_PLT_HI16, R_SH_GOTOFF_LOW16, R_SH_GOTOFF_MEDLOW16,
2852 R_SH_GOTOFF_MEDHI16, R_SH_GOTOFF_HI16, R_SH_GOTPC_LOW16,
2853 R_SH_GOTPC_MEDLOW16, R_SH_GOTPC_MEDHI16, R_SH_GOTPC_HI16,
2854 R_SH_GOT10BY4, R_SH_GOTPLT10BY4, R_SH_GOT10BY8, R_SH_GOTPLT10BY8,
2855 R_SH_COPY64, R_SH_GLOB_DAT64, R_SH_JMP_SLOT64, R_SH_RELATIVE64):
2857 * libbfd.h, bfd-in2.h: Rebuilt.
2858 * elf32-sh.c (sh_elf_howto_table): Define new relocs.
2859 (sh_reloc_map): Map them.
2860 (PLT_ENTRY_SIZE, elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
2861 elf_sh_plt_entry_be, elf_sh_plt_entry_le, elf_sh_pic_plt_entry_be,
2862 elf_sh_pic_plt_entry_le, elf_sh_plt0_entry, elf_sh_plt_entry,
2863 elf_sh_pic_plt_entry, elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
2864 elf_sh_plt0_gotplt_offset, elf_sh_plt_temp_offset,
2865 elf_sh_plt_symbol_offset, elf_sh_plt_reloc_offset,
2866 movi_shori_putval) [INCLUDE_SHMEDIA]: New.
2867 (elf_sh_link_hash_entry) [INCLUDE_SHMEDIA]: Add
2868 datalabel_got_offset.
2869 (sh_elf_link_hash_newfunc): Initialize it.
2870 (sh_elf_relocate_section): Augment the scope of
2871 seen_stt_datalabel. Introduce GOTPLT support. Extend GOTPC, PLT,
2872 GOT and GOTOFF handling to new SHmedia relocation types. Support
2874 (sh_elf_check_relocs): Likewise.
2875 (sh_elf_finish_dynamic_symbol) [TARGET_SHMEDIA]: Set up values in
2876 PLT entries using movi_shori_putval. Support GOT_BIAS.
2877 (sh_elf_finish_dynamic_sections): Likewise.
2878 * elf32-sh64.c (shmedia_prepare_reloc): Do not add addend to
2879 relocation, it's now done by the caller.
2881 * elf64-sh64.c (GOT_BIAS, PLT_ENTRY_SIZE, elf_sh64_sizeof_plt,
2882 elf_sh64_plt_plt0_offset, elf_sh64_plt0_gotplt_offset,
2883 elf_sh64_plt_temp_offset, elf_sh64_plt_symbol_offset,
2884 elf_sh64_plt_reloc_offset, ELF_DYNAMIC_INTERPRETER,
2885 elf_sh64_pcrel_relocs_copied, elf_sh64_link_hash_entry,
2886 elf_sh64_link_hash_table, sh64_elf64_link_hash_traverse,
2887 sh64_elf64_hash_table): New.
2888 (sh_elf64_howto_table): Introduce new relocs.
2889 (sh_elf64_info_to_howto): Accept new PIC relocs.
2890 (sh_elf64_relocate_section): Augment the scope of
2891 seen_stt_datalabel. Support new PIC relocs.
2892 (sh_elf64_check_relocs): Support new PIC relocs.
2893 (elf_sh64_plt0_entry_be, elf_sh64_plt0_entry_le,
2894 elf_sh64_plt_entry_be, elf_sh64_plt_entry_le,
2895 elf_sh64_pic_plt_entry_be, elf_sh64_pic_plt_entry_le,
2896 elf_sh64_plt0_entry, elf_sh64_plt_entry, elf_sh64_pic_plt_entry,
2897 sh64_elf64_link_hash_newfunc, sh64_elf64_link_hash_table_create,
2898 movi_shori_putval, movi_3shori_putval,
2899 sh64_elf64_create_dynamic_sections,
2900 sh64_elf64_adjust_dynamic_symbol, sh64_elf64_discard_copies,
2901 sh64_elf64_size_dynamic_sections,
2902 sh64_elf64_finish_dynamic_symbol,
2903 sh64_elf64_finish_dynamic_sections): New.
2904 (elf_backend_create_dynamic-sections,
2905 bfd_elf64_bfd_link_hash_table_create,
2906 elf_backend_adjust_dynamic_symbol,
2907 elf_backend_size_dynamic_sections,
2908 elf_backend_finish_dynamic_symbol,
2909 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
2910 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2911 elf_backend_got_header_size, elf_backend_plt_header_size):
2913 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
2914 * elf32-sh.c: Renumbered and renamed some SH5 relocations to
2915 match official numbers and names; moved unmaching ones to the
2917 * elf32-sh64.c, elf64-sh64.c: Likewise.
2918 2001-03-12 DJ Delorie <dj@redhat.com>
2919 * elf32-sh.c (sh_elf_relax_section): Don't relax SHmedia
2921 2001-03-12 DJ Delorie <dj@redhat.com>
2922 * elf32-sh64.c (shmedia_prepare_reloc): Validate relocs that must
2924 * elf64-sh64.c (sh_elf64_relocate_section): Ditto.
2925 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
2926 * elf32-sh64.c (bfd_elf32_bfd_copy_private_section_data): Define.
2927 (sh64_elf_fake_sections): Set type to SHT_SH5_CR_SORTED for a
2928 .cranges section with SEC_SORT_ENTRIES set.
2929 (sh64_backend_section_from_shdr): Set SEC_SORT_ENTRIES on an
2930 incoming sorted .cranges section.
2931 (sh64_bfd_elf_copy_private_section_data): New.
2932 (sh64_elf_final_write_processing): Only sort .cranges and modify
2933 start address if called by linker.
2934 2001-01-08 Ben Elliston <bje@redhat.com>
2935 * elf32-sh64.c (sh64_elf_final_write_processing): Activate
2936 Hans-Peter Nilsson's set bit 0 patch from 2001-01-06.
2937 * elf64-sh64.c (sh64_elf64_final_write_processing): Ditto.
2938 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2939 * elf64-sh64.c (sh_elf64_howto_table): No open brace at start of
2940 line. Add comments before all entries.
2941 <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct and clarify describing
2943 (sh_elf64_reloc): Correct head comment.
2944 (sh_elf64_relocate_section): Correct spacing.
2945 <relocating for a local symbol>: Do not honour STO_SH5_ISA32;
2946 instead call reloc_dangerous callback.
2947 <case R_SH_SHMEDIA_CODE>: New case.
2948 (sh_elf64_gc_mark_hook): Correct spacing.
2949 (sh_elf64_check_relocs): Ditto.
2950 * elf32-sh64.c (shmedia_prepare_reloc) <case R_SH_SHMEDIA_CODE>:
2952 * elf32-sh.c: Correct #endif comments for #ifndef-wrapped
2954 (sh_elf_howto_table) <R_SH_PT_16, R_SH_SHMEDIA_CODE>: Correct,
2955 clarify describing comment. Add comments before all entries.
2956 (sh_elf_relocate_section) <relocating for a local symbol>: Do not
2957 honour STO_SH5_ISA32; instead call reloc_dangerous callback.
2958 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
2959 Sort .cranges section in final link. Prepare to set bit 0 on
2961 * elf32-sh64.c (struct sh64_find_section_vma_data): New.
2962 (sh64_elf_link_output_symbol_hook): Fix typo in prototype.
2963 (sh64_elf_set_mach_from_flags): Set SEC_DEBUGGING on incoming
2965 (sh64_backend_section_from_shdr): New, to recognize
2966 SHT_SH5_CR_SORTED on incoming .cranges section.
2967 (elf_backend_section_from_shdr): Define.
2968 (sh64_elf_final_write_processing): Sort outgoing .cranges
2969 section. (New, temporarily disabled:) Set bit 0 on entry address
2970 according to ISA type.
2971 (sh64_find_section_for_address): New.
2972 (crange_qsort_cmpb, crange_qsort_cmpl, crange_bsearch_cmpb,
2973 crange_bsearch_cmpl): Move here from opcodes/sh64-dis.c.
2974 (sh64_address_in_cranges): Move here from opcodes/sh64-dis.c. Use
2975 bfd_malloc, not xmalloc.
2976 (sh64_get_contents_type): Move here from opcodes/sh64-dis.c. Make
2978 * elf32-sh64.c (sh64_elf64_final_write_processing): New, (but
2979 temporarily disabled) setting bit 0 on entry address.
2980 (elf_backend_final_write_processing): Define.
2981 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
2982 * elf32-sh.c (sh_elf_howto_table) <R_SH_PT_16>: Adjust fields to
2983 be a proper relocation for PTA and PTB rather than a marker.
2984 <R_SH_IMMU5, R_SH_IMMS6, R_SH_IMMU6, R_SH_IMMS10, R_SH_IMMS10BY2,
2985 R_SH_IMMS10BY4, R_SH_IMMS10BY8, R_SH_IMMS16, R_SH_IMMU16,
2986 R_SH_IMM_LOW16, R_SH_IMM_LOW16_PCREL, R_SH_IMM_MEDLOW16,
2987 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16, R_SH_IMM_MEDHI16_PCREL,
2988 R_SH_IMM_HI16, R_SH_IMM_HI16_PCREL, R_SH_64, R_SH_64_PCREL>:
2990 * elf64-sh64.c: Ditto.
2991 (sh_elf64_relocate_section) <case R_SH_PT_16>: New case.
2992 * elf32-sh64.c: Include opcodes/sh64-opc.h
2993 (shmedia_prepare_reloc): Take a bfd_link_info pointer as first
2994 argument. Drop const qualifiers from "bfd *" and "bfd_byte *"
2995 parameters. No unused parameters. Caller changed.
2996 <case R_SH_PT_16>: New case.
2997 * Makefile.am (elf32-sh64.lo): Add dependency on sh64-opc.h.
2998 * Makefile.in: Regenerate.
2999 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
3000 * elf64-sh64.c (sh64_elf64_fake_sections): Set SHF_SH5_ISA32 for
3002 (sh_elf64_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
3003 (sh64_elf_merge_private_data): Ditto.
3004 * elf32-sh64.c (sh64_elf_fake_sections): Use sh64_elf_section_data
3005 to access stored section flags.
3006 (sh64_elf_final_write_processing): Return immediately unless
3007 called by linker. Use sh64_elf_section_data (cranges) to get size
3008 of linker-generated cranges entries.
3009 (sh64_elf_copy_private_data): Add missing "return true".
3010 (sh64_elf_set_mach_from_flags): Change from EF_SH64 to EF_SH5.
3011 (sh_elf64_merge_private_data): Ditto.
3012 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
3013 * elf64-sh64.c (sh64_elf64_fake_sections): New, copy of
3014 elf64-sh64.c:sh64_elf_fake_sections.
3015 (elf_backend_fake_sections): Define as sh64_elf64_fake_sections.
3016 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
3017 * elf32-sh64.c (sh64_elf_copy_private_data_internal): Delete.
3018 (sh64_elf_final_write_processing): New.
3019 (elf_backend_final_write_processing): Define.
3020 (sh64_elf_fake_sections): Get header flags from tdata field.
3021 (sh64_elf_copy_private_data): Do not call
3022 sh64_elf_copy_private_data_internal, just copy e_flags field.
3023 (sh64_elf_merge_private_data): Do not call
3024 sh64_elf_copy_private_data_internal.
3025 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
3026 Remove EF_SH64_ABI64, let ELF size make difference.
3027 Remove SH64-specific BFD section flag.
3028 * elf32-sh64.c (sh64_elf_fake_sections): Recognize section as
3029 containing SHmedia through elf_section_data (asect)->tdata
3030 non-zero, not using a BFD section flag.
3031 (sh64_elf_set_mach_from_flags): Don't recognize EF_SH64_ABI64.
3032 (sh64_elf_merge_private_data): Similar.
3033 (elf_backend_section_flags): Don't define.
3034 (sh64_elf_backend_section_flags): Delete.
3035 * elf64-sh64.c (sh_elf64_set_mach_from_flags): Recognize EF_SH64,
3037 (sh_elf64_merge_private_data): Similar.
3038 * section.c (Section flags definitions): Don't define
3040 (bfd-in2.h): Regenerate.
3041 2000-12-09 Hans-Peter Nilsson <hpn@cygnus.com>
3042 Make DataLabel references work with partial linking.
3043 * elf32-sh64.c: Fix formatting.
3044 (sh64_elf_link_output_symbol_hook): New.
3045 (elf_backend_link_output_symbol_hook): Define to
3046 sh64_elf_link_output_symbol_hook.
3047 (sh64_elf_add_symbol_hook): Make DataLabel symbol just global
3048 undefined if partial linking. Adjust sanity check.
3049 * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): New.
3050 (elf_backend_link_output_symbol_hook): Define to
3051 sh64_elf64_link_output_symbol_hook.
3052 (sh64_elf64_add_symbol_hook): Make DataLabel symbol just global
3053 undefined if partial linking. Adjust sanity check.
3054 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
3055 Implement semantics for inter-file DataLabel references.
3056 * elf64-sh64.c (DATALABEL_SUFFIX): Define.
3057 (sh64_elf64_add_symbol_hook): New.
3058 (sh_elf64_relocate_section): If passing an indirect symbol with
3059 st_type STT_DATALABEL on the way to a symbol with st_other
3060 STO_SH5_ISA32, do not bitor 1 to the relocation.
3061 (elf_backend_add_symbol_hook): Define to
3062 sh64_elf64_add_symbol_hook.
3063 * elf64-sh32.c: Tweak comments.
3064 (DATALABEL_SUFFIX): Define.
3065 (sh64_elf_add_symbol_hook): New.
3066 (elf_backend_add_symbol_hook): Define to sh64_elf_add_symbol_hook.
3067 * elf32-sh.c (sh_elf_relocate_section): If passing an indirect
3068 symbol with st_type STT_DATALABEL on the way to a symbol with
3069 st_other STO_SH5_ISA32, do not bitor 1 to the relocation.
3070 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
3071 Pass through STT_DATALABEL.
3072 * elf32-sh64.c (sh64_elf_get_symbol_type): New.
3073 (elf_backend_get_symbol_type): Define.
3074 * elf64-sh64.c (sh64_elf64_get_symbol_type): New.
3075 (elf_backend_get_symbol_type): Define.
3076 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
3077 * elf32-sh64.c: Tweak comments.
3078 (sh64_elf_copy_private_data_internal): Add prototype.
3079 (bfd_elf32_bfd_set_private_flags): Define.
3080 (sh64_elf_copy_private_data_internal): Compare machine name, not
3081 textual BFD target name, to check whether to copy section flag
3083 (sh64_elf_merge_private_data): Validize bfd_get_arch_size.
3084 Tweak section-contents-type-mismatch message.
3085 (shmedia_prepare_reloc): Add ATTRIBUTE_UNUSED markers.
3086 Validize reloc-types.
3087 * elf64-sh64.c: New file.
3088 * targets.c (bfd_elf64_sh64_vec, bfd_elf64_sh64l_vec): Declare.
3089 * Makefile.am (BFD64_BACKENDS): Add elf64-sh64.lo.
3090 (BFD64_BACKENDS_CFILES): Add elf64-sh64.c.
3091 Regenerate dependencies.
3092 * Makefile.in: Regenerate.
3093 * config.bfd (sh64-*-elf*): Add bfd_elf64_sh64_vec and
3094 bfd_elf64_sh64l_vec.
3095 * configure.in: Handle bfd_elf64_sh64_vec and
3096 bfd_elf64_sh64l_vec.
3097 * configure: Regenerate.
3098 * po/POTFILES.in: Regenerate.
3099 * po/bfd.pot: Regenerate.
3100 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
3101 * elf32-sh64.c (sh64_elf_set_mach_from_flags): Do not recognize
3102 anything else but EF_SH64 and EF_SH64_ABI64.
3103 (sh64_elf_merge_private_data): Emit error for anything else but
3104 EF_SH64 and EF_SH64_ABI64.
3105 * config.bfd: Remove bfd_elf32_shblin_vec and bfd_elf32_shlin_vec
3107 * configure.in: Add cofflink.lo to bfd_elf32_sh64_vec and
3108 bfd_elf32_sh64l_vec as a temporary measure.
3109 * configure: Regenerate.
3110 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
3111 * cpu-sh.c (arch_info_struct): Include sh5 item
3113 * config.bfd (sh64-*-elf*): Do not set targ_cflags.
3114 Add targ_selvecs bfd_elf32_sh_vec, bfd_elf32_shl_vec,
3115 bfd_elf32_shblin_vec and bfd_elf32_shlin_vec.
3116 * elf32-sh64.c: Tweak comments.
3117 (sh64_elf_set_mach_from_flags): Recognize all machine flags that
3118 are proper subsets of SH64 as bfd_mach_sh5. Add EF_SH64_ABI64.
3119 (sh64_elf_copy_private_data_internal): Wrap long line.
3120 (sh64_elf_merge_private_data): Rewrite to allow objects from
3121 SH64 subsets to be linked together.
3122 (INCLUDE_SHMEDIA): Define.
3123 * elf32-sh.c (sh_elf_relocate_section) <local symbol>:
3124 Parenthesize plus-expression inside or-expression.
3125 <global symbol>: Ditto.
3126 (sh_elf_set_mach_from_flags): Remove code refusing
3127 deleted EF_SH64_32BIT_ABI flag.
3128 2000-11-26 Hans-Peter Nilsson <hpn@cygnus.com>
3129 * elf32-sh.c (sh_elf_howto_table) <R_SH_IMM_LOW16_PCREL,
3130 R_SH_IMM_MEDLOW16_PCREL, R_SH_IMM_MEDHI16_PCREL,
3131 R_SH_IMM_HI16_PCREL, R_SH_64_PCREL>: Set pcrel_offset to true.
3132 (sh_elf_relocate_section) <local symbol>: Or 1 in
3133 calculation of relocation if sym->st_other & STO_SH5_ISA32.
3134 <global symbol>: Ditto if h->other & STO_SH5_ISA32.
3135 * elf32-sh64.c (shmedia_prepare_reloc): Add rel->r_addend to
3137 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
3138 * Makefile.am (BFD32_BACKENDS): Add elf32-sh64.lo.
3139 (BFD32_BACKENDS_CFILES): Add elf32-sh64.c.
3140 Regenerate dependencies.
3141 * Makefile.in: Regenerate.
3142 * archures.c: Add bfd_mach_sh5.
3143 * config.bfd: Map targ_cpu sh* to bfd_sh_arch.
3144 Handle sh64-*-elf*. Set targ_cflags to -DINCLUDE_SHMEDIA.
3145 * configure.in: Handle bfd_elf32_sh64_vec and bfd_elf32_sh64l_vec.
3146 * configure: Regenerate.
3147 * reloc.c (BFD_RELOC_SH_SHMEDIA_CODE, BFD_RELOC_SH_IMMU5,
3148 BFD_RELOC_SH_IMMS6, BFD_RELOC_SH_IMMS6BY32, BFD_RELOC_SH_IMMU6,
3149 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
3150 BFD_RELOC_SH_IMMS10BY4, BFD_RELOC_SH_IMMS10BY8,
3151 BFD_RELOC_SH_IMMS16, BFD_RELOC_SH_IMMU16, BFD_RELOC_SH_IMM_LOW16,
3152 BFD_RELOC_SH_IMM_LOW16_PCREL, BFD_RELOC_SH_IMM_MEDLOW16,
3153 BFD_RELOC_SH_IMM_MEDLOW16_PCREL, BFD_RELOC_SH_IMM_MEDHI16,
3154 BFD_RELOC_SH_IMM_MEDHI16_PCREL, BFD_RELOC_SH_IMM_HI16,
3155 BFD_RELOC_SH_IMM_HI16_PCREL, BFD_RELOC_SH_PT_16): New relocations.
3156 * cpu-sh.c [INCLUDE_SHMEDIA] (arch_info_struct): Define and link
3158 * elf32-sh.c [INCLUDE_SHMEDIA] (sh_elf_howto_table): Add howto items
3160 [INCLUDE_SHMEDIA] (sh_rel): Add mappings for SHmedia relocs.
3161 [INCLUDE_SHMEDIA] (sh_elf_relocate_section) [default]: Call
3162 shmedia_prepare_reloc, goto final_link_relocate if it returns
3163 non-zero, else fail as before.
3164 (sh_elf_set_mach_from_flags): Provide function only if not defined
3165 as macro. Do not recognize objects with EF_SH64_32BIT_ABI set.
3166 (sh_elf_set_private_flags): Provide function only if not defined
3168 (sh_elf_copy_private_data): Similar.
3169 (sh_elf_merge_private_data): Similar.
3170 * section.c (SEC_SH_ISA_SHMEDIA): New.
3171 * targets.c (bfd_elf32_sh64_vec, bfd_elf32_sh64l_vec): Declare.
3172 * elf32-sh64.c: New file.
3173 * libbfd.h: Regenerate.
3174 * bfd-in2.h: Regenerate.
3175 * po/POTFILES.in: Regenerate.
3176 * po/bfd.pot: Regenerate.
3177 * bfd-in2.h: Regenerate.
3178 * libbfd.h: Regenerate.
3180 2002-02-07 Daniel Jacobowitz <drow@mvista.com>
3182 * bfd-in.h: Update <stdbool.h> check to only see if <stdbool.h> has
3183 been included, not drag it in.
3184 * bfd-in2.h: Regenerate.
3186 2002-02-06 H.J. Lu (hjl@gnu.org)
3188 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Update
3189 the mach and ISA fields if necessary.
3191 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3193 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
3194 ARM architecture when an F_ARM_5 flag is detected, since we cannot
3195 be sure exactly which architecture this represents.
3197 2002-02-05 Nick Clifton <nickc@redhat.com>
3199 * po/tr.po: Updated translation.
3201 2002-02-05 Alan Modra <amodra@bigpond.net.au>
3203 From Jimi X <jimix@watson.ibm.com>
3204 * archures (bfd_mach_ppc64): Define.
3205 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
3206 (bfd_powerpc_arch): Define.
3207 * bfd-in2.h: Regenerate.
3208 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
3209 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
3210 (bfd_powerpc_archs): Add default powerpc64 arch.
3212 2002-02-05 Alan Modra <amodra@bigpond.net.au>
3214 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
3215 against section syms in readonly sections. Don't do the global
3216 sym check if we find one.
3217 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
3218 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
3219 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
3220 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
3221 (elf_s390_grok_prstatus): Add missing prototype.
3223 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
3225 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
3226 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
3227 Call bfd_get_section_by_name only once. Initialize
3228 bpodata->n_bpo_relocs_this_section.
3229 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
3231 (bpo_reloc_request_sort_fn): Don't use difference of values as
3234 2002-02-02 David O'Brien <obrien@FreeBSD>
3236 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
3237 version 4.5 and later the same as 5-CURRENT.
3238 * configure: Re-generate.
3240 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
3242 * config.bfd (hppa*-*-netbsd*): New target.
3244 2002-01-31 Philipp Thomas <pthomas@suse.de>
3246 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
3247 to front of message. Unify messages with elf32-arm.h. Use
3248 commas where neccessary.
3249 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
3250 ERROR in messages. Unify messages with coff-arm.c. Correct
3251 VFP/FPA error message.
3252 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
3253 APCS-32 for translation.
3255 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
3257 Perform on-demand global register allocation from
3258 R_MMIX_BASE_PLUS_OFFSET relocs.
3259 * elf64-mmix.c (struct bpo_reloc_section_info, struct
3260 bpo_reloc_request, struct bpo_greg_section_info): New.
3261 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
3262 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
3263 _bfd_mmix_check_all_relocs,
3264 _bfd_mmix_prepare_linker_allocated_gregs,
3265 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
3266 (elf_mmix_howto_table): Correct src_mask for most relocs.
3267 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
3269 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
3270 case. Fix typo in comment. New label do_mmix_reloc.
3271 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
3272 store first object file with a base-plus-offset reloc. Call
3273 mmix_elf_check_common_relocs for the part common with mmo.
3274 (mmix_elf_final_link): Write out linker-allocated register
3276 (elf_backend_gc_sweep_hook): Define.
3277 (bfd_elf64_bfd_relax_section): Define.
3279 * mmo.c: Don't include <ctype.h>
3280 (mmo_init): Correct init-once logic.
3282 2002-02-01 Tom Rix <trix@redhat.com>
3284 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
3286 2002-02-01 Alan Modra <amodra@bigpond.net.au>
3288 * Makefile.am: Run "make dep-am"
3289 * Makefile.in: Regenerate.
3291 2002-01-31 David O'Brien <obrien@FreeBSD>
3293 * configure.in: Recognize the differences in core files from FreeBSD
3294 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
3296 * configure: Regenerate.
3298 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
3300 * coff-or32.c: New file.
3301 * cpu-or32.c: New file.
3302 * elf32-or32.c: New file.
3303 * archures.c: Add support for or32.
3304 * targets.c: Add support for or32.
3305 * bfd-in2.h: Regenerate.
3306 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
3307 coff_write_object_contents): Add support for or32.
3308 * config.bfd: Add target.
3309 * configure.in: Add support for or32.
3310 * configure: Regenerate.
3311 * Makefile.am: Add support for or32.
3312 * Makefile.in: Regenerate.
3313 * po/SRC-POTFILES.in: Add or32 files.
3314 * po/bfd.pot: Regenerate.
3316 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
3317 Don Lindsay <lindsayd@cisco.com>
3319 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
3320 false' with a return of a bfd_reloc_ error code.
3322 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
3324 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
3325 unexport unreferenced symbols when --export-dynamic. Call
3326 _bfd_elf_strtab_delref when unexporting.
3328 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
3330 * bfd-in.h: Include <stdbool.h> if it is available.
3331 * bfd-in2.h: Regenerated.
3333 2002-01-31 Alan Modra <amodra@bigpond.net.au>
3335 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
3338 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
3340 * archures.c: Tidy up formatting of embedded comments.
3341 * bfd.c: Tidy up formatting of embedded comments.
3342 * bfd-in.h: Fix formatting of comments.
3343 * reloc.c: Tidy up formatting of ordinary & embedded comments.
3344 * section.c: Tidy up formatting of embedded comments.
3345 * syms.c: Tidy up formatting of embedded comments.
3346 * targets.c: Tidy up formatting of embedded comments.
3348 * bfd-in2.h: Regenerate.
3350 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
3352 * vms-tir.c (cmd_name): New function.
3353 (tir_cmd_name): New function.
3354 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
3355 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
3358 * peXXigen.c (pe_print_idata): Rearrange message to aid in
3360 (pe_print_pdata): Rearrange message to aid in translation.
3362 * libbfd.c (warn_deprecated): Rearrange error message to aid in
3365 * ihex.c (ihex_write_object_contents): Fix spelling typo.
3367 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
3369 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
3370 message to aid in translation.
3372 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
3373 to aid in translation.
3375 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
3377 2002-01-30 Philipp Thomas <pthomas@suse.de>
3379 * coff-arm.c, elf32-elf.h: Unify messages.
3381 2002-01-30 Nick Clifton <nickc@redhat.com>
3383 * po/sv.po: Updated translation.
3385 2002-01-30 Philipp Thomas <pthomas@suse.de>
3387 * dwarf2.c (read_abbrev): Use full section name in error message.
3388 (decode_line_info): Likewise.
3390 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
3393 2002-01-30 Alan Modra <amodra@bigpond.net.au>
3395 * elf64-ppc.c (func_desc_adjust): Only provide missing function
3396 descriptor symbols for undefined function code syms. Clear
3397 ELF_LINK_NON_ELF so that they can stay weak.
3399 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3400 Mitch Lichtenberg <mpl@broadcom.com>
3402 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
3403 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
3404 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
3406 * bfd-in2.h: Regenerate.
3408 2002-01-29 Chris Demetriou <cgd@broadcom.com>
3410 * elf32-mips.c: Add additional comments about HI16 relocation
3412 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
3413 pc-relative relocations. (Reverts change made on 2001-10-31.)
3414 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
3415 for pc-relative relocations.
3416 (mips_elf_calculate_relocation): Add a comment about a kludge
3417 in the R_MIPS_GNU_REL_HI16 handling.
3418 (_bfd_mips_elf_relocate_section): Implement that kludge;
3419 adjust pc-relative HI16 relocation for difference in HI16 and
3420 LO16 addresses, since it can't easily be done in
3421 mips_elf_calculate_relocation.
3423 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
3425 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
3426 relocations with PC32 relocations for undefined or weak symbols.
3427 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
3428 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
3430 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
3432 * elfcore.h (elf_core_file_p): Improve comment for last change.
3434 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
3436 * configure: Regenerated.
3438 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
3440 * elfcore.h (elf_core_file_p): Set the machine architecture
3441 before processing the program headers.
3443 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
3445 * configure.in <64-bit configuration>: If using gcc, check and
3446 emit error for egcs-1.1.2.
3447 * configure: Regenerate.
3449 2002-01-26 Egor Duda <deo@logos-m.ru>
3451 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
3452 as possible to avoid stack corruption.
3454 2002-01-26 Richard Henderson <rth@redhat.com>
3456 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
3457 for non-allocated sections.
3459 2002-01-25 Mark Kettenis <kettenis@gnu.org>
3461 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
3462 prstat.pr_reg even if it is a struct.
3464 2002-01-25 Steve Ellcey <sje@cup.hp.com>
3466 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
3468 2002-01-25 Philipp Thomas <pthomas@suse.de>
3470 * coffgen.c (coff_print_symbol): Don't mark info message
3473 2002-01-25 Nick Clifton <nickc@redhat.com>
3475 * po/fr.po: Updated translation.
3476 * po/es.po: Updated translation.
3478 2002-01-25 Philipp Thomas <pthomas@suse.de>
3480 * coff-alpha.c (alpha_relocate_section): Unify warning message
3481 for GP relative relocations without GP defined.
3482 * coff-mips.c (mips_relocate_section): Likewise.
3484 2002-01-25 Alan Modra <amodra@bigpond.net.au>
3486 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
3487 unsigned overflow when new_offset < old_offset.
3489 2002-01-24 Philipp Thomas <pthomas@suse.de>
3491 * bfd.c (_bfd_abort): Fix typo.
3493 2002-01-23 Richard Henderson <rth@redhat.com>
3495 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
3496 plt entries for undefweak symbols.
3498 2002-01-23 Steve Ellcey <sje@cup.hp.com>
3500 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
3502 (bfd_elf64_ia64_hpux_big_vec): Ditto.
3503 (bfd_elf32_h8300_vec): Ditto.
3505 2002-01-23 Alan Modra <amodra@bigpond.net.au>
3507 * elf64-ppc.c: Remove stale part of ABI comment.
3508 (NO_OPD_RELOCS): Define.
3509 (ppc64_elf_check_relocs): Use it.
3510 (ppc64_elf_relocate_section): Here too.
3511 (build_one_stub): Don't point function syms at the stub. Instead,
3513 (ppc64_elf_relocate_section): Check whether REL24 relocs should
3514 really go to the stub. Make all dynamic relocs in opd against
3516 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
3519 2002-01-22 Richard Henderson <rth@redhat.com>
3521 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
3523 2002-01-22 Alan Modra <amodra@bigpond.net.au>
3525 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
3526 TOC_BASE_OFF adjustment.
3528 * Makefile.am: Run "make dep-am".
3529 * Makefile.in: Regenerate.
3530 * po/SRC-POTFILES.in: Regenerate.
3532 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
3534 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
3537 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
3539 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
3540 Check for and emit error if sgot is NULL at this point.
3542 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
3544 * config.bfd (ia64*-*-netbsd*): New target.
3546 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
3548 * som.c (som_write_space_strings): Comment typo fix.
3550 2002-01-21 Alan Modra <amodra@bigpond.net.au>
3552 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
3553 is_func_descriptor fields.
3554 (link_hash_newfunc): Init them.
3555 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
3556 dot are candidates for plt entries. When processing .opd relocs,
3557 set function descriptor strings to point inside function code
3558 string, and set new ppc_link_hash_entry fields.
3559 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
3560 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
3561 function descriptors. It's now done in..
3562 (func_desc_adjust): New.
3563 (ppc64_elf_func_desc_adjust): New.
3564 (define elf_backend_always_size_sections): Define.
3565 (ppc64_elf_hide_symbol): New.
3566 (define elf_backend_hide_symbol): Define.
3567 (allocate_dynrelocs): Remove code looking up function descriptors
3568 as that has been done earlier.
3569 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
3571 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
3572 up function descriptor.
3573 (build_one_stub): Look up the function code sym. Check for
3574 invalid plt offsets.
3575 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
3576 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
3578 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
3580 (_bfd_elf_link_hash_hide_symbol): Likewise.
3581 * elflink.h (elf_link_add_object_symbols): Adjust call to
3582 elf_backend_hide_symbol.
3583 (elf_fix_symbol_flags): Likewise.
3584 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
3586 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
3587 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
3588 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
3589 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
3590 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
3592 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
3593 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
3594 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
3596 2002-01-18 Alan Modra <amodra@bigpond.net.au>
3598 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
3599 dynamic function descriptor symbol, not the associated function
3602 2002-01-17 Eric Christopher <echristo@redhat.com>
3604 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
3606 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
3608 * po/bfd.pot: Regenerate.
3609 * po/fr.po: Regenerate.
3611 2002-01-17 Alan Modra <amodra@bigpond.net.au>
3613 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
3614 Remove "Elf_Internal_Shdr *" param.
3615 (_bfd_mips_elf_section_from_bfd_section): Ditto.
3616 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
3617 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
3618 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
3619 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
3620 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
3621 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
3622 function to override special sections. Remove hdr arg from
3623 backend call, and don't loop.
3625 2002-01-16 Eric Christopher <echristo@redhat.com>
3627 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
3628 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
3629 relocations requiring gp0 and gp.
3631 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
3633 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
3635 (elf32_arm_print_private_bfd_data): Likewise.
3637 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
3639 * po/tr.po: Import new version.
3641 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3643 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
3644 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
3645 (ORI_R0_R0_0): Correct.
3647 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3649 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
3650 when plt_not_loaded.
3651 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
3652 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
3653 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
3654 (ppc64_elf_glink_code): Delete.
3655 (PPC64_ELF_GLINK_SIZE): Delete.
3656 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
3657 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
3658 ORI_R0_R0_0): Define.
3659 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
3660 (struct ppc_link_hash_table): Add sstub and plt_overflow.
3661 (ppc64_elf_link_hash_table_create): Init them.
3662 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
3663 Don't copy to shared lib.
3664 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
3665 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
3666 (allocate_dynrelocs <plt>): Don't change function sym here. Make
3667 room for .stub and .glink code.
3668 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
3670 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
3671 bfd_elf64_bfd_final_link.
3672 (bfd_elf64_bfd_final_link): Don't define.
3673 (ppc64_elf_size_stubs): New.
3674 (build_plt_stub): New.
3675 (build_one_stub): New.
3676 (ppc64_elf_build_stubs): New.
3677 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
3678 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
3679 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
3680 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
3681 case output sections not separate. Adjust DT_RELASZ to not
3682 include plt relocs. Set reserved got entry. Set got and plt
3684 (elf_backend_got_header_size): Set to 8.
3685 * elf64-ppc.h: New file.
3687 2002-01-16 Alan Modra <amodra@bigpond.net.au>
3689 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
3690 sections, use bfd_section_list_remove.
3691 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3692 * elflink.h (elf_link_add_object_symbols): When removing all
3693 sections, use bfd_section_list_clear.
3695 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3697 * po/sv.po: New file: Swedish translation.
3698 * configure.in (ALL_LINGUAS): Add sv.
3699 * configure: Regenerate.
3701 2002-01-15 Jakub Jelinek <jakub@redhat.com>
3703 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
3704 * elf.c (merge_sections_remove_hook): New function.
3705 (_bfd_elf_merge_sections): Pass it as 3rd argument to
3706 _bfd_merge_sections.
3707 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
3708 * libbfd.h: Rebuilt.
3709 * merge.c (_bfd_merge_sections): Add remove_hook argument.
3710 Call remove_hook if a SEC_EXCLUDE section is encountered.
3712 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
3714 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
3715 (xstormy16_reloc_map): Initialise new field with correct howto
3717 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
3720 2002-01-10 Michael Snyder <msnyder@redhat.com>
3722 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
3723 (elfcore_write_pstatus): Use long instead of pid_t;
3724 * elf-bfd.h: Change prototypes to use long instead of pid_t;
3726 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
3728 * elf.c: Update copyright years.
3729 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
3730 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
3732 2002-01-08 Michael Snyder <msnyder@redhat.com>
3734 Add capability to write corefile note sections, for gdb.
3735 * elf.c (elfcore_write_note): New function.
3736 (elfcore_write_prpsinfo): New function.
3737 (elfcore_write_prstatus): New function.
3738 (elfcore_write_pstatus): New function.
3739 (elfcore_write_prfpreg): New function.
3740 (elfcore_write_prxfpreg): New function.
3741 * elf-bfd.h: Add prototypes for above functions.
3743 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
3745 * elf.c (elf_fake_sections): Propagate errors from
3746 elf_backend_fake_section.
3748 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
3750 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
3751 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
3752 (elf32-sh-nbsd.lo): New rule.
3753 * Makefile.in: Regenerate.
3754 * config.bfd (sh*le-*-netbsdelf*): New target.
3755 (sh*-*-netbsdelf*): New target.
3756 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
3757 (bfd_elf32_shnbsd_vec): New vector.
3758 (bfd_elf32_shlnbsd_vec): New vector.
3759 * configure: Regenerate.
3760 * elf32-sh-nbsd.c: New file.
3761 * targets.c: Update copyright years.
3762 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
3763 bfd_elf32_shnbsd_vec.
3765 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
3767 * coff-rs6000.c (READ20): Use bfd_scan_vma.
3769 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
3771 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
3772 of a symbol in a section that will be deleted.
3774 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
3776 * po/es.po: New file: Spanish translation.
3777 * configure.in (ALL_LINGUAS): Add es.
3778 * configure: Regenerate.
3780 2002-01-06 Steve Ellcey <sje@cup.hp.com>
3782 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
3783 argument so we can handle HP-UX specially.
3784 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
3785 (elfNN_hpux_backend_section_from_bfd_section): New for support
3786 of SHN_IA_64_ANSI_COMMON.
3787 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
3788 (is_unwind_section_name): Add special HP-UX support.
3789 (elfNN_ia64_section_from_shdr): Add support for more sections.
3790 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
3791 add support for more sections.
3792 (elfNN_ia64_additional_program_headers): Modify
3793 is_unwind_section_name call.
3794 (elfNN_ia64_modify_segment_map): Remove assumption that there is
3795 only one unwind section in segment.
3797 2002-01-06 Alan Modra <amodra@bigpond.net.au>
3799 * syms.c (_bfd_generic_make_empty_symbol): New function.
3800 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
3801 _bfd_generic_make_empty_symbol.
3802 * libbfd.h: Regenerate.
3803 * bfd-in2.h: Regenerate.
3804 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
3805 (hppabsd_core_get_symtab_upper_bound): Don't define.
3806 (hppabsd_core_get_symtab): Likewise.
3807 (hppabsd_core_print_symbol): Likewise.
3808 (hppabsd_core_get_symbol_info): Likewise.
3809 (hppabsd_core_bfd_is_local_label_name): Likewise.
3810 (hppabsd_core_get_lineno): Likewise.
3811 (hppabsd_core_find_nearest_line): Likewise.
3812 (hppabsd_core_bfd_make_debug_symbol): Likewise.
3813 (hppabsd_core_read_minisymbols): Likewise.
3814 (hppabsd_core_minisymbol_to_symbol): Likewise.
3815 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
3817 * hpux-core.c: Similarly.
3818 * irix-core.c: Similarly.
3819 * osf-core.c: Similarly.
3820 * sco5-core.c: Similarly.
3821 * binary.c (binary_make_empty_symbol): Remove function, define as
3822 _bfd_generic_make_empty_symbol.
3823 * ihex.c (ihex_make_empty_symbol): Likewise.
3824 * mmo.c (mmo_make_empty_symbol): Likewise.
3825 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
3826 * srec.c (srec_make_empty_symbol): Likewise.
3827 * versados.c (versados_make_empty_symbol): Likewise.
3828 * vms.c (_bfd_vms_make_empty_symbol): Remove.
3829 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
3830 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
3831 rather than _bfd_vms_make_empty_symbol.
3832 * vms-misc.c (new_symbol): Likewise.
3834 2002-01-05 Alan Modra <amodra@bigpond.net.au>
3836 * section.c (bfd_section_init): Remove unnecessary initialisations.
3837 (bfd_section_list_clear): New function.
3838 (bfd_section_list_remove, bfd_section_list_insert): New macros.
3839 (_bfd_strip_section_from_output): Use them.
3840 * coffcode.h (coff_set_alignment_hook): Likewise.
3841 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
3842 * elf64-mips.c (mips_elf64_final_link): Likewise.
3843 * elf64-mmix.c (mmix_elf_final_link): Likewise.
3844 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3845 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
3846 * bfd-in2.h: Regenerate.
3848 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
3849 rather than doing our own section handling. Clean up after errors
3850 with bfd_release and bfd_section_list_clear. Handle unexpected
3852 * aoutf1.h (sunos4_core_file_p): Likewise.
3853 * aix386-core.c (aix386_core_file_p): Likewise.
3854 * cisco-core.c (cisco_core_file_validate): Likewise.
3855 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
3856 * trad-core.c (trad_unix_core_file_p): Likewise.
3858 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
3859 with bfd_release and bfd_section_list_clear.
3860 * hpux-core.c (hpux_core_core_file_p): Likewise.
3861 * irix-core.c (irix_core_core_file_p): Likewise.
3862 * lynx-core.c (lynx_core_file_p): Likewise.
3863 * osf-core.c (osf_core_core_file_p): Likewise.
3864 * rs6000-core.c (rs6000coff_core_p): Likewise.
3865 * sco5-core.c (sco5_core_file_p): Likewise.
3867 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
3868 sign extension adjustments without conditionals.
3870 2002-01-04 Jakub Jelinek <jakub@redhat.com>
3872 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
3873 CIE at .eh_frame start is removed due to no FDEs referencing it.
3875 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
3877 * config.bfd (x86_64-*-netbsd*): New target.
3878 * configure.in (x86_64-*-netbsd*): Set COREFILE
3880 * configure: Regenerated.
3882 2002-01-03 Tom Rix <trix@redhat.com>
3884 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
3885 for recent bfd_make_section_anyway change.
3887 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
3889 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
3890 R_ARM_THM_PC11 reloc.
3892 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3894 * configure.in (LINGUAS): Add ja.
3895 * configure: Regenerate.
3896 * po/ja.po: Import from translation project's web site.
3898 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
3900 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
3901 messages to ease translation into other languages.
3903 For older changes see ChangeLog-0001
3909 version-control: never