1 2004-08-06 Paul Brook <paul@codesourcery.com>
3 * elfarm-nabi.c (elf32_arm_howto_table): Add new EABI relocations.
4 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_RELABS32,
5 BFD_RELOC_ARM_ROSEGREL32 and BFD_RELOC_ARM_SBREL32.
6 * reloc.c: Add BFD_RELOC_ARM_RELABS32, BFD_RELOC_ARM_ROSEGREL32
7 and BFD_RELOC_ARM_SBREL32.
8 * bfd-in2.h, bbfd.h: Regenerate.
10 2004-08-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
12 * elfxx-mips.c (mips_elf_calculate_relocation): Test only for
13 the dynamic link symbol actually in use.
15 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
17 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Handle bfd_link_hash_new
19 2004-07-31 Joel Brobecker <brobecker@gnat.com>
20 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
22 * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle
23 SHN_MIPS_TEXT and SHN_MIPS_DATA.
25 2004-07-30 H.J. Lu <hongjiu.lu@intel.com>
26 Nick Clifton <nickc@redhat.com>
29 * bfd.c (_bfd_default_error_handler): Make it global.
31 * elf-bfd.h (elf_backend_data): Add link_order_error_handler.
33 * elf.c (assign_section_numbers): Cope gracefully with sections
34 which have SHF_LINK_ORDER set but no sh_link set up.
35 * elflink.c (elf_get_linked_section_vma): Likewise.
37 * elfxx-ia64.c (elf_backend_link_order_error_handler): New. Set
40 * elfxx-target.h (elf_backend_link_order_error_handler): New.
41 Set it to _bfd_default_error_handler.
42 (elfNN_bed): Add elf_backend_link_order_error_handler.
44 * libbfd-in.h (_bfd_default_error_handler): New.
46 * libbfd.h: Regenerated.
48 2004-07-30 Jakub Jelinek <jakub@redhat.com>
50 * archures.c (bfd_mach_sparc_64bit_p): Define.
51 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Use it.
54 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
56 Introduce SH2a support.
57 2004-02-18 Corinna Vinschen <vinschen@redhat.com>
58 * archures.c (bfd_mach_sh2a_nofpu): New.
60 * cpu-sh.c (SH2A_NOFPU_NEXT): New.
61 (arch_info_struct): Add sh2a_nofpu.
62 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a_nofpu.
63 2003-12-29 DJ Delorie <dj@redhat.com>
64 * reloc.c: Add relocs for sh2a.
65 * bfd-in2.h: Regenerate.
66 * libbfd.hh: Regenerate.
67 2003-12-01 Michael Snyder <msnyder@redhat.com>
68 * archures.c (bfd_mach_sh2a): New.
70 * cpu-sh.c (SH_NEXT, SH2_NEXT, etc.): Change defines to enums.
72 (arch_info_struct): Add sh2a.
73 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a.
75 2004-07-28 Nick Clifton <nickc@redhat.com>
76 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
79 * som.c (setup_sections): Improve estimation of space sizes in
82 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
83 * config.bfd (hppa*-*-netbsd*): Set targ_defvec to
84 bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec
86 * configure.in (bfd_elf32_hppa_nbsd_vec): Add case.
87 * configure: Regenerate.
88 * elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd"
89 case that accepts OSABI=NetBSD and OSABI=SysV.
90 (elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to
91 the base of .got or .data (if .got does not exist).
92 (elf32_hppa_post_process_headers): For elf32-hppa-netbsd,
94 (TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case.
95 (TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case.
96 * targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration.
97 (_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec.
99 2004-07-27 H.J. Lu <hongjiu.lu@intel.com>
102 * elf-bfd.h (bfd_elf_section_data): Add sec_group.
103 (elf_sec_group): Defined.
104 (bfd_elf_match_symbols_in_sections): New prototype.
105 (_bfd_elf_setup_group_pointers): Likewise.
107 * elf.c (bfd_elf_discard_group): Abort.
108 (bfd_elf_set_group_contents): Also include relocation sections.
109 Remove zero-fill for ld -r.
110 (_bfd_elf_setup_group_pointers): New function.
111 (elf_sort_elf_symbol): Likewise.
112 (elf_sym_name_compare): Likewise.
113 (bfd_elf_match_symbols_in_sections): Likewise.
115 * elfcode.h (elf_object_p): Call _bfd_elf_setup_group_pointers.
117 * elflink.c (match_group_member): New.
118 (elf_link_input_bfd): Check group member for discarded section.
119 (try_match_symbols_in_sections): New function.
120 (already_linked): Likewise.
121 (_bfd_elf_section_already_linked): Support mixing comdat group
122 and linkonce section.
124 * libbfd-in.h (bfd_section_already_linked_table_traverse): New.
125 * linker.c (bfd_section_already_linked_table_traverse): New.
127 * libbfd.h: Regenerated.
129 2004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
131 * reloc.c: Add BFD_RELOC_CRX_SWITCH8, BFD_RELOC_CRX_SWITCH16,
132 BFD_RELOC_CRX_SWITCH32.
133 * bfd-in2.h: Regenerate.
134 * libbfd.h: Regenerate.
135 * elf32-crx.c: Support relocation/relaxation of
136 BFD_RELOC_CRX_SWITCH* types.
138 2004-07-27 Alan Modra <amodra@bigpond.net.au>
140 * elf64-ppc.c: Correct "Linker stubs" comment.
142 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
144 * elf-bfd.h (bfd_elf_section_data): Add a pointer for the
146 (elf_linked_to_section): New.
148 * elf.c (assign_section_numbers): Set up sh_link for
151 * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info
152 to sh_link for SHT_IA_64_UNWIND sections.
154 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
156 * elflink.c (elf_fixup_link_order): Add _() to error message.
158 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
160 * elflink.c (elf_fixup_link_order): Issue a warning and flag
163 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
165 * aout-adobe.c (aout_32_section_already_linked): Defined.
166 * aout-target.h (MY_section_already_linked): Likewise.
167 * aout-tic30.c (MY_section_already_linked): Likewise.
168 * binary.c (binary_section_already_linked): Likewise.
169 * bout.c (b_out_section_already_linked): Likewise.
170 * coff-alpha.c (_bfd_ecoff_section_already_linked): Likewise.
171 * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
172 * coffcode.h (coff_section_already_linked): Likewise.
173 * i386msdos.c (msdos_section_already_linked): Likewise.
174 * i386os9k.c (os9k_section_already_linked): Likewise.
175 * ieee.c (ieee_section_already_linked): Likewise.
176 * ihex.c (ihex_section_already_linked): Likewise.
177 * mach-o.c (bfd_mach_o_section_already_linked): Likewise.
178 * mmo.c (mmo_section_already_linked): Likewise.
179 * nlm-target.h (nlm_section_already_linked): Likewise.
180 * oasys.c (oasys_section_already_linked): Likewise.
181 * pef.c (bfd_pef_section_already_linked): Likewise.
182 * ppcboot.c (ppcboot_section_already_linked): Likewise.
183 * som.c (som_bfd_discard_group): Likewise.
184 * srec.c (srec_section_already_linked): Likewise.
185 * tekhex.c (tekhex_section_already_linked): Likewise.
186 * versados.c (versados_section_already_linked): Likewise.
187 * vms.c (vms_section_already_linked): Likewise.
188 * coff-target.h (_bfd_xcoff_section_already_linked): Likewise.
189 * xsym.c (bfd_sym_section_already_linked): Likewise.
191 * bfd-in.h (bfd_section_already_linked_table_init): New.
192 (bfd_section_already_linked_table_free): Likewise.
194 * coff-rs6000.c (rs6000coff_vec): Add
195 _bfd_generic_section_already_linked.
196 (pmac_xcoff_vec): Likewise.
197 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
198 (aix5coff64_vec): Likewise.
200 * elf-bfd.h (_bfd_elf_section_already_linked): New prototype.
201 * elflink.c (_bfd_elf_section_already_linked): New function.
203 * elfxx-target.h (bfd_elfNN_section_already_linked): Defined.
205 * libbfd-in.h (_bfd_nolink_section_already_linked): Defined.
206 (_bfd_generic_section_already_linked): New.
207 (bfd_section_already_linked_hash_entry): Likewise.
208 (bfd_section_already_linked): Likewise.
209 (bfd_section_already_linked_table_lookup): Likewise.
210 (bfd_section_already_linked_table_insert): Likewise.
212 * linker.c (bfd_section_already_linked): New.
213 (_bfd_section_already_linked_table): Likewise.
214 (bfd_section_already_linked_table_lookup): Likewise.
215 (bfd_section_already_linked_table_insert): Likewise.
216 (already_linked_newfunc): Likewise.
217 (bfd_section_already_linked_table_init): Likewise.
218 (bfd_section_already_linked_table_free): Likewise.
219 (_bfd_generic_section_already_linked): Likewise.
221 * section.c (bfd_section): Remove comdat.
222 (bfd_comdat_info): Moved to ...
223 * bfd-in.h (coff_comdat_info): Here.
224 (bfd_coff_get_comdat_section): New.
225 * coffgen.c (bfd_coff_get_comdat_section): Likewise.
226 * libcoff-in.h (coff_section_tdata): Add comdat.
227 * coffcode.h (handle_COMDAT): Updated.
228 * cofflink.c (coff_link_add_symbols): Likewise.
229 * ecoff.c (bfd_debug_section): Likewise.
231 * targets.c (bfd_target): Add _section_already_linked.
232 (BFD_JUMP_TABLE_LINK): Updated.
234 * bfd-in2.h: Regenerated.
235 * libbfd.h: Likewise.
236 * libcoff.h: Likewise.
238 2003-07-21 Paul Brook <paul@codesourcery.com>
240 * elflink.c (elf_get_linked_section_vma, compare_link_order,
241 elf_fixup_link_order): New functions.
242 (bfd_elf_final_link): Call elf_fixup_link_order.
244 2004-07-21 Alexandre Oliva <aoliva@redhat.com>
246 * elf-bfd.h (ELF_COMMON_DEF_P): New.
247 * elflink.c (_bfd_elf_symbol_refs_local_p): Use it to handle
249 * elf-m10300.c: Use SYMBOL_REFERENCES_LOCAL instead of
250 _bfd_elf_symbol_refs_local_p.
251 * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove hack for common
254 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
256 * bfd-in.h (dynamic_lib_link_class): Add DYN_NO_ADD_NEEDED and
258 (bfd_elf_get_dyn_lib_class): New prototype.
259 * elf.c (bfd_elf_get_dyn_lib_class): New function.
261 * elflink.c (elf_link_add_object_symbols): Check DYN_AS_NEEDED,
262 DYN_DT_NEEDED and DYN_NO_NEEDED bits to see if a DT_NEEDED
263 entry is needed. Issue an error if a DT_NEEDED entry is needed
264 for a file marked DYN_NO_NEEDED.
265 (elf_link_check_versioned_symbol): Check the DYN_DT_NEEDED bit
268 * bfd-in2.h: Regenerated.
270 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
272 * elflink.c (elf_section_complain_discarded): Don't complain in
275 2004-07-10 James E Wilson <wilson@specifixinc.com>
277 * elfxx-ia64.c (elfNN_ia64_relax_ldxmov): Remove abfd parameter.
278 (elfNN_ia64_install_value, elfNN_ia64_relax_brl): Likewise.
279 (elfNN_ia64_relax_section, elfNN_ia64_relocate_section,
280 elfNN_ia64_finish_dynamic_symbol, elfNN_ia64_finish_dynamic_sections):
282 (elfNN_ia64_relax_brl): Change bfd_get_64 to bfd_getl64. Change
283 bfd_put_64 to bfd_putl64.
284 (elfNN_ia64_relax_ldxmov, elfNN_ia64_install_value): Likewise.
286 2004-07-09 H.J. Lu <hongjiu.lu@intel.com>
289 * elfxx-ia64.c (elfNN_ia64_relax_section): Only warn br in
290 .init/.fini sections when trying to relax it.
292 2004-07-09 Jie Zhang <zhangjie@magima.com.cn>
294 * elf.c (assign_file_positions_for_segments): Make sure the
295 .dynamic section is the first section in the PT_DYNAMIC segment.
297 2004-07-09 Nick Clifton <nickc@redhat.com>
299 * config.bfd: Change sh-sybmian-elf to sh-*-symbianelf.
300 * elf32-sh-symbian.c: Rename the sh_find_elf_flags and
301 sh_elf_get_flags_from_mach functions so that they do not conflict
302 when this target is built with other sh-elf targets.
303 * elf32-sh.c (sh_elf_get_flags_from_mach): Remove bogus
304 suppression of this function.
305 (sh_elf_find_flags): Likewise.
307 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
309 * Makefile.am (ALL_MACHINES): Add cpu-crx.lo.
310 (ALL_MACHINES_CFILES): Add cpu-crx.c.
311 (BFD32_BACKENDS): Add elf32-crx.lo.
312 (BFD32_BACKENDS_CFILES): Add elf32-crx.c.
313 (cpu-crx.lo): New target.
314 (elf32-crx.lo): New target.
315 * Makefile.in: Regenerate.
316 * archures.c (bfd_architecture): Add bfd_{arch,mach}_crx.
317 (bfd_archures_list): Add bfd_crx_arch.
318 * bfd-in2.h: Regenerate.
319 * config.bfd: Handle crx-*-elf*, crx*.
320 * configure.in: Handle bfd_elf32_crx_vec.
321 * configure: Regenerate.
322 * cpu-crx.c: New file.
323 * elf32-crx.c: Likewise.
324 * libbfd.h: Regenerate.
325 * reloc.c: Add BFD_RELOC_CRX_REL4, BFD_RELOC_CRX_REL8,
326 BFD_RELOC_CRX_REL8_CMP, BFD_RELOC_CRX_REL16, BFD_RELOC_CRX_REL24,
327 BFD_RELOC_CRX_REL32, BFD_RELOC_CRX_REGREL12, BFD_RELOC_CRX_REGREL22,
328 BFD_RELOC_CRX_REGREL28, BFD_RELOC_CRX_REGREL32, BFD_RELOC_CRX_ABS16,
329 BFD_RELOC_CRX_ABS32, BFD_RELOC_CRX_NUM8, BFD_RELOC_CRX_NUM16,
330 BFD_RELOC_CRX_NUM32, BFD_RELOC_CRX_IMM16 and BFD_RELOC_CRX_IMM32
331 * targets.c (bfd_elf32_crx_vec): Declare.
332 (bfd_target_vector): Add bfd_elf32_crx_vec.
334 2004-07-06 Nick Clifton <nickc@redhat.com>
336 * config.bfd: Add sh-symbian-elf target.
337 * configure.in: Add bfd_elf32_shl_symbian_vec.
338 * configure: Regenerate.
339 * elf-bfd.h (struct elf_backend_data): Add new field
341 * elflink.c (elf_link_add_object_symbols): Invoke the
342 check_directives function, if defined.
343 * elfxx-target.h: Provide a default, NULL definition for
345 * targets.c: Add bfd_elf32_shl_symbian_vec.
346 * elf32-sh.c (sh_elf_swap_insns): Protect against unnecessary
348 (elf32_shlin_grok_prstatus, elf32_shlib_grok_psinfo,
349 * sh_elf_get_flags_from_mach, sh_elf_find_flags): Likewise.
350 (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Only define if they have
351 not already been defined.
352 * elf32-sh64.c: Use SH_TARGET_ALREADY_DEFINED.
353 * sh-symbian.c: New file. Provide functions to support the
354 * sh-symbian-elf target.
355 * Makefile.am: Add elf32-sh-symbian.c
356 * Makefile.in: Regenerate.
358 2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
360 * elf32-sh.c: Include ../opcodes/sh-opc.h.
361 * Makefile.am: Ran make dep-am.
362 * Makefile.in: Ran make dep-in.
364 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
366 * cofflink.c (_bfd_coff_generic_relocate_section): Resolve PE weak
369 2004-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
371 * config.bfd: Add want64 to configuration target s390-*-linux*.
373 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
375 * bfd.c (bfd_get_section_ident): New.
377 * elflink.c (elf_link_read_relocs_from_section): Call
378 bfd_get_section_ident to identify the section when reporting
380 (_bfd_elf_link_output_relocs): Likewise.
381 (elf_link_output_extsym): Likewise.
382 (elf_link_input_bfd): Likewise.
383 (bfd_elf_gc_record_vtinherit): Likewise.
385 * bfd-in2.h: Regenerated.
387 2004-07-01 Jie Zhang <zhangjie@magima.com.cn>
388 Nick Clifton <nickc@redhat.com>
391 * elfxx-mips.c (_bfd_mips_elf_final_link): Pass the correct number
392 of section symbols to mips_elf_sort_hash_table ().
394 2004-07-01 Alan Modra <amodra@bigpond.net.au>
396 * elflink.c (elf_section_ignore_discarded_relocs): Revert last
398 (elf_section_complain_discarded): New function. Handle
399 .gcc_except_table too.
400 (elf_link_input_bfd): Rewrite handling of relocs against symbols
401 in discarded sections.
402 * elf-bfd.h (elf_discarded_section): Protect macro arg.
404 2004-06-30 James E Wilson <wilson@specifixinc.com>
406 * elfxx-ia64.c (elfNN_ia64_check_relocs): New local pltoff. Initialize
407 to NULL. Call get_pltoff if NULL and NEED_PLTOFF is true.
409 2004-06-30 H.J. Lu <hongjiu.lu@intel.com>
412 * elflink.c (elf_link_input_bfd): Issue an error for non-debug
413 local references to discarded sections and report their
416 2004-06-30 Alan Modra <amodra@bigpond.net.au>
418 * elflink.c (elf_section_ignore_discarded_relocs): Don't test
419 sec_info_type, test section name instead.
421 2004-06-29 H.J. Lu <hongjiu.lu@intel.com>
424 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't relax branch
425 in .init/.fini sections.
427 2004-06-29 Bob Wilson <bob.wilson@acm.org>
429 * elf32-xtensa.c (elf_xtensa_relocate_section): Use
430 bfd_get_section_limit.
432 2004-06-29 Bob Wilson <bob.wilson@acm.org>
434 * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Don't change the
437 2004-06-29 Alan Modra <amodra@bigpond.net.au>
439 * elf64-mmix.c (mmix_set_relaxable_size): Save original size in
441 (mmix_elf_perform_relocation): Adjust for above change.
442 (mmix_elf_relocate_section): Likewise.
443 (mmix_elf_relax_section): Likewise. Use output_section->rawsize.
444 (mmix_elf_get_section_contents): Delete.
445 (bfd_elf64_get_section_contents): Delete.
446 (mmix_elf_relocate_section): Zero stub area.
447 * linker.c (default_indirect_link_order): Alloc max of section size
449 * simple.c (bfd_simple_get_relocated_section_contents): Likewise.
450 * section.c (bfd_malloc_and_get_section): Likewise.
451 (struct bfd_section): Update rawsize comment.
452 * bfd-in2.h: Regenerate.
454 * reloc16.c (bfd_coff_reloc16_relax_section): Set rawsize.
456 2004-06-29 Alan Modra <amodra@bigpond.net.au>
458 * bfd-in.h (bfd_get_section_limit): Define.
459 * reloc.c (bfd_perform_relocation, bfd_install_relocation)
460 (_bfd_final_link_relocate): Use bfd_get_section_limit.
461 * aout-tic30.c (tic30_aout_final_link_relocate): Likewise.
462 * coff-arm.c (coff_arm_relocate_section): Likewise.
463 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): Likewise.
464 * cpu-ns32k.c (do_ns32k_reloc): Likewise.
465 (bfd_ns32k_final_link_relocate): Likewise.
466 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): Likwise.
467 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): Likewise.
468 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc)
469 (i860_howto_highadj_reloc, i860_howto_splitn_reloc): Likewise.
470 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc)
471 (m32r_elf_generic_reloc, m32r_elf_relocate_section): Likewise.
472 * elf32-m68hc1x.c (m68hc11_elf_special_reloc): Likewise.
473 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
474 * elf32-or32.c (or32_elf_consth_reloc): Likewise.
475 * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Likewise.
476 * elf32-s390.c (s390_elf_ldisp_reloc): Likewise.
477 * elf32-sh.c (sh_elf_reloc_loop): Likewise.
478 * elf32-sparc.c (sparc_elf_wdisp16_reloc): Likewise.
479 (sparc_elf_hix22_reloc, sparc_elf_lox10_reloc): Likwise.
480 * elf32-v850.c (v850_elf_reloc): Likewise.
481 * elf32-xstormy16.c (xstormy16_elf_24_reloc): Likewise.
482 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Likewise.
483 * elf64-alpha.c (elf64_alpha_reloc_gpdisp): Likewise.
484 * elf64-mips.c (mips_elf64_gprel32_reloc)
485 (mips16_gprel_reloc): Likewise.
486 * elf64-mmix.c (mmix_elf_reloc): Likewise.
487 * elf64-s390.c (s390_elf_ldisp_reloc): Likewise.
488 * elf64-sparc.c (init_insn_reloc): Likewise.
489 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
490 * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp)
491 (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc)
492 (_bfd_mips_elf_generic_reloc): Likewise.
493 * bfd-in2.h: Regenerate.
495 2004-06-28 Alan Modra <amodra@bigpond.net.au>
497 * bfd-in.h (struct stab_info): Move from stabs.c.
498 * stabs.c (struct stab_link_includes_table): Delete.
499 (stab_link_includes_lookup): Delete.
500 (_bfd_write_section_stabs, _bfd_write_stab_strings): Remove one
501 level of indirection from sinfo parm.
502 (_bfd_link_section_stabs): Likewise. Set SEC_LINKER_CREATED on
503 stabstr section. Adjust hash table accesses.
504 * coff-ppc.c (ppc_bfd_coff_final_link): Do include rawsize in contents
505 alloc. Adjust stab_info test.
506 * cofflink.c (_bfd_coff_link_hash_table_init): Clear stab_info.
507 (_bfd_coff_final_link): Adjust stab_info test.
508 (_bfd_coff_link_input_bfd): Ignore SEC_LINKER_CREATED sections.
509 * elf-bfd.h (struct elf_link_hash_table): Include struct stab_info
511 * libcoff-in.h (struct coff_link_hash_table): Likewise.
512 * elf.c (_bfd_elf_link_hash_table_init): Clear stab_info.
513 * elflink.c (bfd_elf_final_link): Don't attempt to link linker created
514 stabstr section. Adjust stab_info test.
515 * libbfd-in.h (_bfd_link_section_stabs, _bfd_write_section_stabs)
516 (_bfd_write_stab_strings): Adjust prototypes.
517 * libbfd.h: Regenerate.
518 * libcoff.h: Regenerate.
519 * bfd-in2.h: Regenerate.
521 2004-06-27 Mark Kettenis <kettenis@gnu.org>
523 From Miod Vallat <miod@online.fr>:
524 * aoutx.h (NAME(aout,machine_type)): Handle bfd_arch_m88k.
526 2004-06-26 Alexandre Oliva <aoliva@redhat.com>
528 * elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): Delete.
529 (struct elf32_mn10300_link_hash_entry): Remove
531 (mn10300_elf_check_relocs): Only reserve dynamic relocations for
532 R_MN10300_32. Don't adjust pcrel_relocs_copied.
533 (mn10300_elf_final_link_relocate): Fail for direct, pc-relative
534 and gotoff relocations if the symbol doesn't bind locally. Use
535 _bfd_elf_symbol_refs_local_p to test. Don't create dynamic
536 relocation for PCREL32.
537 (mn10300_elf_relocate_section): Use _bfd_elf_symbol_refs_local_p
538 to test whether a symbol binds locally.
539 (elf32_mn10300_link_hash_newfunc): Don't initialize
541 (_bfd_mn10300_elf_discard_copies): Delete.
542 (_bfd_mn10300_elf_size_dynamic_sections): Don't call it.
544 2004-06-26 Mark Kettenis <kettenis@gnu.org>
546 * config.bfd: Replace m88k-*-openbsd* with m88*-*-openbsd*.
548 2004-06-25 Joel Brobecker <brobecker@gnat.com>
550 * som.c (som_set_reloc_info): Correct small typo.
552 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
554 * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_GOTOFF.
555 (m32r_elf_relocate_section): Changed for R_M32R_GOTOFF.
556 (m32r_elf_gcsweep_hook): Likewise.
557 (m32r_elf_check_relocs): Likewise.
558 (m32r_elf_howto_table): Added R_M32R_GOTOFF_HI_ULO,
559 R_M32R_GOTOFF_HI_SLO and R_M32R_GOTOFF_LO.
560 * reloc.c: Added BFD_RELOC_M32R_GOTOFF_HI_ULO,
561 BFD_RELOC_M32R_GOTOFF_HI_SLO and BFD_RELOC_M32R_GOTOFF_LO.
562 * bfd-in2.h: Regenerated.
563 * libbfd.h: Regenerated.
565 2004-06-24 H.J. Lu <hongjiu.lu@intel.com>
567 * elf64-x86-64.c (elf64_x86_64_check_relocs): Warn overflow
569 (elf64_x86_64_relocate_section): Issue an error for
570 R_X86_64_PC8, R_X86_64_PC16 and R_X86_64_PC32 relocations
571 against global symbols when building shared library.
573 2004-06-24 Alan Modra <amodra@bigpond.net.au>
575 * section.c (struct sec): Rename "_cooked_size" to "size".
576 Rename "_raw_size" to "rawsize".
577 (STD_SECTION): Adjust comments.
578 (bfd_set_section_size, bfd_get_section_contents): Use size.
579 (bfd_malloc_and_get_section): New function.
580 * bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
581 * coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
582 Correctly free reloc and contents memory.
583 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
584 and fake CIE now that we can shink section size to zero.
585 (_bfd_elf_write_section_eh_frame): Likewise..
586 * elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
587 * elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
588 _bfd_stab_section_offset. Use _bfd_elf_section_offset.
589 * stabs.c (_bfd_stab_section_offset_): Remove unused args and
590 unneeded indirection.
591 * elf.c (_bfd_elf_section_offset): .. and update call.
592 * libbfd-in.h (_bfd_stab_section_offset): Update prototype.
593 * libbfd.h: Regenerate.
594 * bfd-in2.h: Regenerate.
596 Replace occurrences of "_raw_size" and "_cooked_size" in most places
597 with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
598 sections. Use "rawsize", if non-zero, for bfd_get_section_contents
599 calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
600 Similarly use "rawsize", if non-zero, in reloc functions to validate
601 reloc addresses. Use new bfd_malloc_and_get_section in most places
602 where bfd_get_section_contents was called. Expand all occurrences of
603 bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
604 grok_prstatus and similar functions to "size".
605 * aix386-core.c (aix386_core_file_p): ..
606 * aix5ppc-core.c (xcoff64_core_p): ..
607 * aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
608 aout_adobe_set_section_contents): ..
609 * aout-target.h (callback): ..
610 * aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
611 MY_bfd_final_link): ..
612 * aoutf1.h (sunos4_core_file_p): ..
613 * aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
614 adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
615 final_link, aout_link_input_section): ..
616 * binary.c (binary_object_p, binary_canonicalize_symtab,
617 binary_set_section_contents): ..
618 * bout.c (b_out_callback, b_out_write_object_contents,
619 b_out_set_section_contents, b_out_bfd_relax_section,
620 b_out_bfd_get_relocated_section_contents): ..
621 * cisco-core.c (cisco_core_file_validate): ..
622 * coff-alpha.c (alpha_ecoff_object_p,
623 alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
624 * coff-arm.c (coff_arm_relocate_section,
625 bfd_arm_allocate_interworking_sections): ..
626 * coff-h8300.c (h8300_reloc16_extra_cases,
627 h8300_bfd_link_add_symbols): ..
628 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
629 * coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
630 ppc_bfd_coff_final_link): ..
631 * coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
632 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
633 sh_align_loads, sh_coff_get_relocated_section_contents): ..
634 * coff64-rs6000.c (xcoff64_write_object_contents,
635 xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
636 * coffcode.h (coff_compute_section_file_positions,
637 coff_write_object_contents): ..
638 * coffgen.c (make_a_section_from_file, coff_write_symbols,
639 coff_section_symbol, build_debug_section): ..
640 * cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
641 process_embedded_commands, _bfd_coff_link_input_bfd,
642 _bfd_coff_write_global_sym): ..
643 * cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
644 * cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
645 * dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
646 * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
647 _bfd_dwarf2_find_nearest_line): ..
648 * ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
649 ecoff_compute_section_file_positions,
650 _bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
651 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
652 _bfd_elf_discard_section_eh_frame_hdr,
653 _bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
654 _bfd_elf_write_section_eh_frame,
655 _bfd_elf_write_section_eh_frame_hdr): ..
656 * elf-hppa.h (elf_hppa_sort_unwind): ..
657 * elf-m10200.c (mn10200_elf_relax_section,
658 mn10200_elf_relax_delete_bytes,
659 mn10200_elf_get_relocated_section_contents): ..
660 * elf-m10300.c (_bfd_mn10300_elf_create_got_section,
661 mn10300_elf_check_relocs, mn10300_elf_relax_section,
662 mn10300_elf_relax_delete_bytes,
663 mn10300_elf_get_relocated_section_contents,
664 _bfd_mn10300_elf_adjust_dynamic_symbol,
665 _bfd_mn10300_elf_discard_copies,
666 _bfd_mn10300_elf_size_dynamic_sections,
667 _bfd_mn10300_elf_finish_dynamic_sections): ..
668 * elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
669 _bfd_elf_make_section_from_phdr, elf_fake_sections,
670 bfd_elf_set_group_contents, map_sections_to_segments,
671 elf_sort_sections, assign_file_positions_for_segments,
672 SECTION_SIZE, copy_private_bfd_data,
673 _bfd_elf_get_dynamic_reloc_upper_bound,
674 _bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
675 _bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
676 elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
677 elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
678 _bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
679 * elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
680 bfd_elf32_arm_process_before_allocation,
681 elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
682 elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
683 elf32_arm_write_section): ..
684 * elf32-cris.c (cris_elf_grok_prstatus,
685 elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
686 elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
687 cris_elf_check_relocs, elf_cris_size_dynamic_sections,
688 elf_cris_discard_excess_dso_dynamics,
689 elf_cris_discard_excess_program_dynamics): ..
690 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
691 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
692 * elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
693 _frv_create_got_section, _frvfdpic_assign_plt_entries,
694 elf32_frvfdpic_size_dynamic_sections,
695 elf32_frvfdpic_modify_segment_map,
696 elf32_frvfdpic_finish_dynamic_sections): ..
697 * elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
698 elf32_h8_get_relocated_section_contents): ..
699 * elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
700 elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
701 allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
702 elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
703 elf32_hppa_finish_dynamic_sections): ..
704 * elf32-i370.c (i370_elf_adjust_dynamic_symbol,
705 i370_elf_size_dynamic_sections, i370_elf_check_relocs,
706 i370_elf_finish_dynamic_sections): ..
707 * elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
708 allocate_dynrelocs, elf_i386_size_dynamic_sections,
709 elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
710 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
711 i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
712 * elf32-ip2k.c (ip2k_is_switch_table_128,
713 ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
714 ip2k_relax_switch_table_256, ip2k_elf_relax_section,
715 adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
716 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
717 m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
718 allocate_dynrelocs, m32r_elf_size_dynamic_sections,
719 m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
720 m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
721 m32r_elf_get_relocated_section_contents): ..
722 * elf32-m68hc11.c (m68hc11_elf_build_one_stub,
723 m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
724 m68hc11_elf_relax_delete_bytes): ..
725 * elf32-m68hc12.c (m68hc12_elf_build_one_stub,
726 m68hc12_elf_size_one_stub): ..
727 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
728 elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
729 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
730 elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
731 elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
732 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
733 elf32_mips_grok_prstatus): ..
734 * elf32-or32.c (or32_elf_consth_reloc): ..
735 * elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
736 elf_create_pointer_linker_section, ppc_elf_create_linker_section,
737 ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
738 allocate_dynrelocs, ppc_elf_size_dynamic_sections,
739 ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
740 ppc_elf_final_write_processing): ..
741 * elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
742 allocate_dynrelocs, elf_s390_size_dynamic_sections,
743 elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
744 * elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
745 sh_elf_relax_delete_bytes, sh_elf_align_loads,
746 sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
747 sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
748 sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
749 * elf32-sh64-com.c (sh64_address_in_cranges,
750 sh64_get_contents_type): ..
751 * elf32-sh64.c (sh64_find_section_for_address,
752 sh64_elf_final_write_processing): ..
753 * elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
754 sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
755 allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
756 elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
757 * elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
758 * elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
759 elf_vax_size_dynamic_sections, elf_vax_discard_copies,
760 elf_vax_instantiate_got_entries, elf_vax_relocate_section,
761 elf_vax_finish_dynamic_sections): ..
762 * elf32-xstormy16.c (xstormy16_elf_24_reloc,
763 xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
764 xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
765 xstormy16_elf_finish_dynamic_sections): ..
766 * elf32-xtensa.c (xtensa_read_table_entries,
767 elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
768 elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
769 bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
770 elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
771 elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
772 get_relocation_opcode, retrieve_contents, find_relaxable_sections,
773 collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
774 relax_section, shrink_dynamic_reloc_sections, relax_property_section,
775 xtensa_callback_required_dependence): ..
776 * elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
777 elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
778 elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
779 elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
780 elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
781 elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
782 elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
783 elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
784 * elf64-hppa.c (allocate_dynrel_entries,
785 elf64_hppa_size_dynamic_sections,
786 elf64_hppa_finish_dynamic_sections): ..
787 * elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
788 mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
789 elf64_mips_grok_prstatus): ..
790 * elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
791 mmix_elf_relocate_section, mmix_elf_final_link,
792 mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
793 mmix_elf_relax_section, mmix_elf_get_section_contents): ..
794 * elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
795 ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
796 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
797 allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
798 ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
799 toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
800 ppc64_elf_build_stubs, ppc64_elf_relocate_section,
801 ppc64_elf_finish_dynamic_sections): ..
802 * elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
803 allocate_dynrelocs, elf_s390_size_dynamic_sections,
804 elf_s390_finish_dynamic_sections): ..
805 * elf64-sh64.c (sh_elf64_get_relocated_section_contents,
806 sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
807 sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
808 sh64_elf64_finish_dynamic_sections): ..
809 * elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
810 sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
811 sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
812 sparc64_elf_finish_dynamic_symbol,
813 sparc64_elf_finish_dynamic_sections): ..
814 * elf64-x86-64.c (elf64_x86_64_grok_prstatus,
815 elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
816 elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
817 elf64_x86_64_finish_dynamic_sections): ..
818 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
819 * elfcode.h (elf_slurp_reloc_table): ..
820 * elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
821 elf_finalize_dynstr, elf_link_add_object_symbols,
822 bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
823 elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
824 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
825 elf32_mips_grok_prstatus): ..
826 * elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
827 elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
828 elfNN_ia64_choose_gp, elfNN_ia64_final_link,
829 elfNN_ia64_finish_dynamic_sections): ..
830 * elfxx-mips.c (mips_elf_create_procedure_table,
831 mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
832 _bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
833 mips_elf_global_got_index, mips_elf_multi_got,
834 mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
835 mips_elf_allocate_dynamic_relocations,
836 mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
837 _bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
838 _bfd_mips_elf_always_size_sections,
839 _bfd_mips_elf_size_dynamic_sections,
840 _bfd_mips_elf_finish_dynamic_symbol,
841 _bfd_mips_elf_finish_dynamic_sections,
842 _bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
843 _bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
844 _bfd_elf_mips_get_relocated_section_contents,
845 _bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
846 * hp300hpux.c (callback): ..
847 * hppabsd-core.c (make_bfd_asection): ..
848 * hpux-core.c (make_bfd_asection): ..
849 * i386linux.c (linux_link_create_dynamic_sections,
850 bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
851 * i386msdos.c (msdos_write_object_contents): ..
852 * i386os9k.c (os9k_callback, os9k_write_object_contents,
853 os9k_set_section_contents): ..
854 * ieee.c (parse_expression, ieee_slurp_external_symbols,
855 ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
856 ieee_write_section_part, do_with_relocs, do_as_repeat,
857 do_without_relocs, ieee_write_debug_part, init_for_output,
858 ieee_set_section_contents): ..
859 * ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
860 * irix-core.c (do_sections, make_bfd_asection): ..
861 * libaout.h (aout_section_merge_with_text_p): ..
862 * libbfd.c (_bfd_generic_get_section_contents,
863 _bfd_generic_get_section_contents_in_window): ..
864 * linker.c (default_indirect_link_order): ..
865 * lynx-core.c (make_bfd_asection): ..
866 * m68klinux.c (linux_link_create_dynamic_sections,
867 bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
868 * mach-o.c (bfd_mach_o_make_bfd_section,
869 bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
870 bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
871 bfd_mach_o_scan_read_segment): ..
872 * merge.c (_bfd_add_merge_section, record_section, merge_strings,
873 _bfd_merge_sections): ..
874 * mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
875 mmo_map_set_sizes, mmo_canonicalize_symtab,
876 mmo_internal_write_section, mmo_write_object_contents): ..
877 * netbsd-core.c (netbsd_core_file_p): ..
878 * nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
879 nlm_alpha_set_public_section): ..
880 * nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
881 * nlm32-sparc.c (nlm_sparc_write_import): ..
882 * nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
883 nlm_compute_section_file_positions): ..
884 * oasys.c (oasys_object_p, oasys_slurp_section_data,
885 oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
886 * opncls.c (get_debug_link_info): ..
887 * osf-core.c (make_bfd_asection): ..
888 * pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
889 adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
890 final_link, aout_link_input_section): ..
891 * peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
892 pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
893 * pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
894 bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
895 * ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
896 * ptrace-core.c (ptrace_unix_core_file_p): ..
897 * reloc.c (bfd_perform_relocation, bfd_install_relocation,
898 _bfd_final_link_relocate, bfd_generic_relax_section,
899 bfd_generic_get_relocated_section_contents): ..
900 * reloc16.c (bfd_coff_reloc16_relax_section,
901 bfd_coff_reloc16_get_relocated_section_c): ..
902 * riscix.c (riscix_some_aout_object_p): ..
903 * rs6000-core.c (read_hdr, make_bfd_asection): ..
904 * sco5-core.c (make_bfd_asection): ..
905 * simple.c (bfd_simple_get_relocated_section_contents): ..
906 * som.c (som_object_setup, setup_sections, som_prep_headers,
907 som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
908 som_set_reloc_info, som_get_section_contents,
909 som_bfd_link_split_section): ..
910 * sparclinux.c (linux_link_create_dynamic_sections,
911 bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
912 * srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
913 * stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
914 _bfd_write_stab_strings, _bfd_stab_section_offset): ..
915 * sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
916 bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
917 sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
918 sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
919 sunos_finish_dynamic_link): ..
920 * syms.c (_bfd_stab_section_find_nearest_line): ..
921 * tekhex.c (first_phase, tekhex_set_section_contents,
922 tekhex_write_object_contents): ..
923 * trad-core.c (trad_unix_core_file_p): ..
924 * versados.c (process_esd, process_otr, process_otr): ..
925 * vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
926 * vms-misc.c (add_new_contents): ..
927 * vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
928 * vms.c (vms_set_section_contents): ..
929 * xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
930 xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
931 _bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
932 * xsym.c (bfd_sym_scan): .. See above.
934 2004-06-21 H.J. Lu <hongjiu.lu@intel.com>
936 * elfxx-ia64.c (elfNN_ia64_relax_section): Add addend when
937 calling _bfd_merged_section_offset only for section symbols.
939 2004-06-22 Alan Modra <amodra@bigpond.net.au>
941 * elf32-ppc.c (ppc_elf_relax_section): Implement reference code
942 for handling SEC_MERGE symbols in relax_section.
944 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
946 2003-05-15 Richard Sandiford <rsandifo@redhat.com>
947 * cpu-h8300.c (compatible): Allow h8300s and h8300sx code to be
948 linked together. Mark the result as h8300sx code.
950 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
952 * elf-bfd.h (struct elf_backend_data): Added
953 elf_backend_omit_section_dynsym.
954 (_bfd_elf_link_omit_section_dynsym): Declare.
955 * elf32-frv.c (_frvfdpic_link_omit_section_dynsym): New.
956 (elf_backend_omit_section_dynsym): Use it for frvfdpic.
957 * elflink.c (_bfd_elf_link_omit_section_dynsym): Split out of...
958 (_bfd_elf_link_renumber_dynsyms): ... this function.
959 * elfxx-target.h (elf_backend_omit_section_dynsym): Default to
960 _bfd_elf_link_omit_section_dynsym).
961 (elfNN_bed): Added elf_backend_omit_section_dynsym.
963 2004-06-21 Nick Clifton <nickc@redhat.com>
965 * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED
968 2004-06-17 Jerome Guitton <guitton@gnat.com>
970 * bfd-in.h (bfd_cache_close_all): New function declaration.
971 * bfd-in2.h: Regenerate.
972 * cache.c (bfd_cache_close_all): New function definition.
974 2004-06-16 Mark Kettenis <kettenis@gnu.org>
976 * configure.in: Don't set COREFILE to trad-core.lo for FreeBSD
978 * configure: Regenerate.
980 2004-06-16 Daniel Jacobowitz <dan@debian.org>
982 * elf32-ppc.c (ppc_elf_create_linker_section): Create symbols in
983 the pre-existing section.
985 2004-06-15 Alan Modra <amodra@bigpond.net.au>
987 * section.c (struct sec): Remove usused flags. Reorganize a little.
988 (bfd_get_section_size_before_reloc): Delete.
989 (bfd_get_section_size_after_reloc): Delete.
990 (STD_SECTION): Update.
991 (bfd_get_section_size_now): Delete.
992 (bfd_set_section_contents): Don't referece reloc_done.
993 (bfd_get_section_contents): Remove reloc_done comment.
994 * bout.c (b_out_bfd_get_relocated_section_contents): Don't set
996 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise.
997 * ecoff.c (bfd_debug_section): Update initializer.
998 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Ditto.
999 * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
1000 * bfd-in.h (bfd_section_size): Expand.
1001 (bfd_get_section_size): New macro.
1002 * bfd-in2.h: Regenerate.
1003 * coff64-rs6000.c (xcoff64_write_object_contents): Replace
1004 bfd_get_section_size_before_reloc with bfd_get_section_size.
1005 * coffcode.h (coff_write_object_contents): Likewise.
1006 * coffgen.c (build_debug_section): Likewise.
1007 * dwarf1.c (parse_line_table): Likewise.
1008 (_bfd_dwarf1_find_nearest_line): Likewise.
1009 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
1010 * i386msdos.c (msdos_write_object_contents): Likewise.
1011 * pdp11.c (squirt_out_relocs): Likewise.
1012 * elf32-sh64.c (sh64_find_section_for_address): Remove comment.
1013 * elf64-mmix.c (mmix_elf_final_link): Update comment.
1015 2004-06-14 Chris Demetriou <cgd@broadcom.com>
1017 * elf32-mips.c (elf_mips_gnu_pcrel32): Add (undoing 2004-04-24
1018 removal) with updated comment.
1019 (bfd_elf32_bfd_reloc_type_lookup): Add back case for
1021 (mips_elf32_rtype_to_howto): Add back case for R_MIPS_PC32.
1022 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
1024 2004-06-12 Alan Modra <amodra@bigpond.net.au>
1026 * elf64-x86-64.c (elf64_x86_64_relocate_section): Ignore reloc
1027 overflow on branches to undefweaks.
1029 2004-06-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1031 * coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly
1032 as ecoff_section_data() does not return a valid lvalue.
1034 2004-06-09 Alexandre Oliva <aoliva@redhat.com>
1036 * elflink.c (elf_sort_symbol): Compare section id, not pointers.
1037 (elf_link_add_object_symbols): Likewise.
1039 * elf-m10300.c (_bfd_mn10300_elf_reloc_type_class): New.
1040 (elf_backend_reloc_type_class): New.
1042 2004-06-08 Mark Kettenis <kettenis@gnu.org>
1044 * configure.in (hppa*-*-netbsd*, hppa*-*-openbsd): Set COREFILE to
1046 * configure: Regenerate.
1048 2004-06-07 Daniel Jacobowitz <dan@debian.org>
1050 From: Albert Chin-A-Young <china@thewrittenword.com>
1051 * bfd/elf-bfd.h (struct eh_cie_fde): Convert unsigned char bitfields
1054 2004-05-29 H.J. Lu <hongjiu.lu@intel.com>
1056 * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last
1059 2004-05-28 DJ Delorie <dj@redhat.com>
1061 * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend
1062 for linking, but otherwise adjust reloc for merged sections.
1064 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
1066 * elfxx-ia64.c (elfNN_ia64_relax_section): Properly call
1067 _bfd_merged_section_offset for local symbols.
1069 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1071 * Makefile.am: Regenerate dependencies.
1072 * Makefile.in: Regenerate.
1073 * archures.c: Add bfd_mach_sh3_nommu .
1074 * bfd-in2.h: Regenerate.
1075 * cpu-sh.c: Add sh3-nommu architecture.
1076 (bfd_to_arch_table): Create new table.
1077 (sh_get_arch_from_bfd_mach): Create new function.
1078 (sh_get_arch_up_from_bfd_mach): Create new function.
1079 (sh_merge_bfd_arch): Create new function.
1080 * elf32-sh.c (sh_ef_bfd_table): Add table.
1081 (sh_elf_check_relocs): Replace switch statement with
1082 use of sh_ef_bfd_table .
1083 (sh_elf_get_flags_from_mach): Add new function.
1084 (sh_find_elf_flags): Likewise.
1085 (sh_elf_copy_private_data): Replace most of non-elf contents
1086 with a call to sh_merge_bfd_arch() .
1088 2004-05-27 Michael Chastain <mec.gnu@mindspring.com>
1090 * Makefile.am (bfdver.h): Use explicit filename, not $< .
1091 * Makefile.in: Regenerate.
1093 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
1095 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Avoid
1096 custom calling conventions for dynamic symbols.
1097 (mn10300_elf_relax_section): Avoid relaxing a function as a local
1098 symbol if it's an alias to a global one.
1100 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1102 * elf.c (_bfd_elf_make_section_from_shdr): Undo the last
1105 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
1107 * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
1110 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1112 * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
1113 for SHT_GROUP sections.
1115 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1117 * elflink.c (elf_link_add_object_symbols): Don't set up merge
1119 * elf.c (_bfd_elf_merge_sections): .. Do it here instead.
1120 * merge.c: Formatting. Remove unnecessary casts. Expand
1121 bfd_get_section_alignment macro.
1122 (struct sec_merge_sec_info): Rename "first" to "first_str". Update
1123 use throughout file.
1124 (_bfd_add_merge_section): Rename from _bfd_merge_section. Update
1125 comment. Abort on dynamic or non-SEC_MERGE input. Don't test
1126 section name to determine sinfo group, instead test output section
1128 (_bfd_merge_sections): Add struct bfd_link_info param. Call
1129 _bfd_strip_section_from_output rather than just twiddling flags.
1130 * libbfd-in.h (_bfd_add_merge_section): Rename, update comment.
1131 (_bfd_merge_sections): Update prototype.
1132 * libbfd.h: Regenerate.
1134 2004-05-24 Mark Kettenis <kettenis@gnu.org>
1136 * netbsd-core.c: Correctly indent section that sets architecture
1139 From Miod Vallat <miod@online.fr>:
1140 * m88kopenbsd.c: New file.
1141 * targets.c (m88k_openbsd_vec): New.
1142 * config.bfd: Add m88k-*-openbsd*.
1143 * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo.
1144 (m88kopenbsd_vec): New.
1145 * configure: Regenerate.
1146 * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo.
1147 (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c.
1149 * Makefile.in: Regenerate.
1150 * po/SRC-POTFILES.in: Regenerate.
1152 2004-05-24 Nick Clifton <nickc@redhat.com>
1154 * hash.c: Remove bogus node "Changing the default Hash Table Size"
1155 introduced by hash table size patch.
1157 2004-05-22 Ben Elliston <bje@au.ibm.com>
1159 * configure.in (is_release): Remove.
1160 (bfd_version_date, bfd_version, bfd_version_string): Likewise.
1161 (AC_OUTPUT): Don't output bfdver.h from version.h.
1162 * configure: Regenerate.
1163 * Makefile.am (RELEASE): New variable.
1164 (bfdver.h): New target.
1165 * Makefile.in: Regenerate.
1166 * doc/Makefile.in: Likewise.
1168 2004-05-22 Ben Elliston <bje@au.ibm.com>
1170 * Makefile.am (config.status): Don't depend on version.h.
1171 * Makefile.in: Regenerate.
1173 2004-05-22 Alan Modra <amodra@bigpond.net.au>
1175 * merge.c (_bfd_merged_section_offset): Remove "addend" param.
1176 * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype.
1177 * libbfd.h: Regenerate.
1178 * elf.c (_bfd_elf_rela_local_sym): Adjust call.
1179 (_bfd_elf_rel_local_sym): Likewise.
1180 * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise.
1181 (elf_link_input_bfd): Likewise.
1182 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
1183 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1184 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
1185 (elfNN_ia64_relocate_section): Likewise.
1187 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1189 * hash.c (bfd_default_hash_table_size): New variable.
1190 (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE.
1191 (bfd_hash_set_default_size): New function. Set the default size
1192 to a selected prime number close to the argument. Document new
1194 * bfd-in.h: Add prototype for bfd_hash_set_default_size.
1195 * bfd-in2.h: Regenerate.
1196 * Makefile.am (hash.lo): Add dependency upon libiberty.h.
1197 * Makefile.in: Regenerate.
1199 2004-05-21 Mark Kettenis <kettenis@gnu.org>
1201 * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
1202 * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
1203 arm, m68k, m88k and hppa core files.
1205 2004-05-21 Nick Clifton <nickc@redhat.com>
1207 * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
1208 (bfd_bwrite): Likewise.
1209 (bfd_tell): Likewise.
1210 (bfd_flush): Likewise.
1211 (bfd_stat): Likewise.
1212 (bfd_seek): Likewise.
1213 (bfd_get_mtime): Likewise.
1214 (bfd_get_size): Likewise.
1216 2004-05-19 Ben Elliston <bje@au.ibm.com>
1218 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
1220 2004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
1222 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
1223 (bfd_generic_openr_next_archived_file): Likewise.
1225 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1227 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
1228 section names by inserting a new substring after .gnu.linkonce, except
1229 for .gnu.linkonce.t.* where the "t." is replaced.
1231 2004-05-17 Adam Nemet <anemet@lnxw.com>
1233 * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
1234 (m68-*-lynxos* case): Likewise.
1235 (powerpc-*-lyxnos* case): New case.
1236 (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
1238 2004-05-17 David Heine <dlheine@tensilica.com>
1240 * aout-target.h (MY_bfd_copy_private_header_data): Define.
1241 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
1242 * bfd.c (bfd_copy_private_header_data): Define.
1243 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
1245 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
1246 * coffcode.h (coff_bfd_copy_private_header_data): Define.
1247 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
1248 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
1249 segments by calling copy_private_bfd_data.
1250 (_bfd_elf_copy_private_header_data): Define.
1251 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
1252 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
1253 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
1254 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
1255 * mmo.c (mmo_bfd_copy_private_header_data): Define.
1256 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
1257 * som.c (som_bfd_copy_private_header_data): Define.
1258 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
1259 * vms.c (vms_bfd_copy_private_header_data): Define.
1260 * bfd-in2.h: Regenerate.
1261 * libbfd.h: Regenerate.
1263 2004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1265 * elfxx-mips.c (MINUS_TWO): Define.
1266 (mips_elf_higher, mips_elf_highest,
1267 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
1268 some bfd_vma values.
1269 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
1271 2004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1273 * som.c (log2): Rename to exact_log2. Adjust all callers.
1275 2004-05-13 Paul Brook <paul@codesourcery.com>
1277 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
1278 dwarf3 format CIE entries. Remove comment about the size of the
1279 ra_column field. It is now correctly deduced.
1281 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1283 * config.bfd (or32-*-rtems*): Switch to elf.
1285 2004-05-13 Nick Clifton <nickc@redhat.com>
1287 * po/fr.po: Updated French translation.
1289 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1291 * elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol
1292 into .dynsym if elf_section_data (sec)->dynindx <= 0.
1293 Adjust counting of last_local.
1294 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
1295 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
1296 created by the linker nor !SHF_ALLOC.
1298 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
1299 DT_PLTGOT to the start of the .got.plt section instead of the
1300 .got output section. Set sh_entsize for .got section in addition
1302 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
1303 is at sgot->output_section->vma.
1304 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
1305 DT_PLTGOT to the start of the .got.plt section instead of the
1306 .got output section.
1307 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
1308 is at sgot->output_section->vma. Set sh_entsize for .got section
1309 in addition to .got.plt.
1310 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
1311 (bfd_section_from_phdr): Likewise.
1312 (map_sections_to_segments): Likewise.
1313 (assign_file_positions_for_segments): Likewise.
1314 (get_program_header_size): Likewise.
1315 * elflink.c (bfd_elf_size_dynamic_sections): Set
1316 elf_tdata (output_bfd)->relro from info->relro.
1317 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
1319 2004-05-08 Alexandre Oliva <aoliva@redhat.com>
1321 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
1322 a zero symndx for which we hadn't accounted a dynamic relocation.
1323 (_frvfdpic_add_rofixup): Likewise.
1325 2004-05-07 Brian Ford <ford@vss.fsi.com>
1326 DJ Delorie <dj@redhat.com>
1328 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
1329 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
1330 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
1331 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
1333 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
1335 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
1336 immediately if there's no link info.
1337 (elf32_frvfdpic_copy_private_bfd_data): New.
1338 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
1340 2004-05-06 Zack Weinberg <zack@codesourcery.com>
1342 * dwarf2.c (add_line_info): Also set info->filename to NULL if
1343 filename argument is null; do not call strlen on a null pointer.
1345 2004-05-06 Daniel Jacobowitz <drow@mvista.com>
1347 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
1350 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1352 * configure.in (bfd_elf32_frvfdpic_vec): New.
1353 * configure: Rebuilt.
1354 * targets.c (bfd_elf32_frvfdpic_vec): New.
1355 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
1357 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
1358 frvfdpic instead of frv. Rearrange elf-target macros such that
1359 the FDPIC-specific ones are only defined for this new target
1361 (bfd_elf32_frvfdpic_vec): Declare.
1363 (elf32_frv_relocate_section): Use it to enable segment checking
1364 and to control rofixup emission. Add output section vma to
1365 applied relocation in non-LOAD non-ALLOC sections. Use
1366 _bfd_error_handler for errors.
1367 (_frv_create_got_section): Create .rel.got and .rofixup only in
1368 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
1370 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
1371 (elf32_frvfdpic_modify_segment_map): Likewise.
1372 (elf32_frv_finish_dynamic_sections): New, do-nothing.
1373 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
1374 error message if we miscompute the rofixup size.
1375 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
1376 (frvfdpic_elf_encode_eh_address): Likewise.
1377 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
1378 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
1379 relocs. Reject unknown relocation types.
1380 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
1381 (frv_elf_merge_private_bfd_data): Likewise.
1382 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
1383 0x4000 for newly-added elf32-frvfdpic.
1385 2004-05-05 Nick Clifton <nickc@redhat.com>
1388 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
1389 returning NULL as most users of this function do not check its
1391 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
1392 of bfd_cache_lookup().
1393 * sco5-core.c (sco5_core_file_p): Likewise.
1394 * trad-core.c (trad_unix_core_file_p): Likewise.
1396 2004-05-05 Nick Clifton <nickc@redhat.com>
1398 * cache.c (bfd_cache_lookup): Improve formatting.
1399 * archive.c: Fix formatting.
1401 2004-05-05 Peter Barada <peter@the-baradas.com>
1403 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
1404 * cpu-m68k.c(bfd_m68k_arch): Likewise.
1405 * bfd-in2.h(bfd_architecture): Regenerate.
1407 2004-05-03 Alan Modra <amodra@bigpond.net.au>
1409 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
1411 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
1412 those against discarded link-once and SEC_MERGE section symbols.
1414 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
1416 * section.c (bfd_get_section_by_name_if): New.
1417 * bfd-in2.h: Regenerated.
1419 2004-05-02 Alan Modra <amodra@bigpond.net.au>
1421 * som.c (som_bfd_is_group_section): Define.
1423 2004-05-01 Alan Modra <amodra@bigpond.net.au>
1425 * section.c (bfd_make_section_anyway): Copy the whole
1426 bfd_hash_entry, not just "next" from existing entry.
1428 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
1430 * elf.c (bfd_section_from_shdr): Maintain the section order in
1432 (special_sections): Add ".note.GNU-stack".
1433 (elf_fake_sections): Handle section group for relocatable
1436 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
1438 * section.c (bfd_sections_find_if): New.
1439 * bfd-in2.h: Regenerated.
1441 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1443 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
1445 * elf-bfd.h (bfd_elf_is_group_section): Declare.
1446 * elf.c (bfd_elf_is_group_section): New function.
1447 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
1448 * section.c (bfd_generic_is_group_section): New function.
1449 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
1450 (BFD_JUMP_TABLE_LINK): Adjust.
1451 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
1452 * aout-target.h (MY_bfd_is_group_section): Define.
1453 * aout-tic30.c (MY_bfd_is_group_section): Define.
1454 * bfd.c (bfd_is_group_section): Define.
1455 * binary.c (binary_bfd_is_group_section): Define.
1456 * bout.c (b_out_bfd_is_group_section): Define.
1457 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
1458 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
1459 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
1460 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
1461 * coffcode.h (coff_bfd_is_group_section): Define.
1462 * i386msdos.c (msdos_bfd_is_group_section): Define.
1463 * i386os9k.c (os9k_bfd_is_group_section): Define.
1464 * ieee.c (ieee_bfd_is_group_section): Define.
1465 * ihex.c (ihex_bfd_is_group_section): Define.
1466 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
1467 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
1468 * mmo.c (mmo_bfd_is_group_section): Define.
1469 * nlm-target.h (nlm_bfd_is_group_section): Define.
1470 * oasys.c (oasys_bfd_is_group_section): Define.
1471 * pef.c (bfd_pef_bfd_is_group_section): Define.
1472 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
1473 * srec.c (srec_bfd_is_group_section): Define.
1474 * tekhex.c (tekhex_bfd_is_group_section): Define.
1475 * versados.c (versados_bfd_is_group_section): Define.
1476 * vms.c (vms_bfd_is_group_section): Define.
1477 * xsym.c (bfd_sym_bfd_is_group_section): Define.
1478 * bfd-in2.h: Regenerate.
1479 * libbfd.h: Regenerate.
1481 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1483 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
1485 2004-04-30 Hans-Peter Nilsson <hp@axis.com>
1487 * configure.in: Update version to 2.15.91.
1488 * configure: Regenerate.
1490 2004-04-29 Brian Ford <ford@vss.fsi.com>
1492 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
1493 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
1494 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
1495 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
1496 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
1497 .gnu.linkonce.wi. sections.
1498 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
1499 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
1501 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
1502 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1504 2004-04-28 Chris Demetriou <cgd@broadcom.com>
1506 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
1507 * bfd-in2.h: Regenerate.
1508 * libbfd.h: Likewise.
1510 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1512 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
1514 (setup_sections): Use som_subspace_dictionary_record struct instead
1515 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
1516 is_comdat, is_common or dup_common.
1517 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
1518 is_comdat, is_common and dup_common in section subspace_dict from
1520 (som_begin_writing): Use som_subspace_dictionary_record struct.
1521 (som_finish_writing): Likewise.
1522 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
1523 is_common and dup_common flags in info for symbol. Add comment
1524 regarding linker support for these fields. Slightly reorganize
1526 (som_build_and_write_symbol_table): Set is_comdat, is_common and
1527 dup_common fields in symbol table from symbol info.
1528 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
1529 arguments. Set corresponding fields in copy_data. Change all callers.
1530 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
1532 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
1533 * som.h (som_subspace_dictionary_record): Define.
1534 (som_copyable_section_data_struct): Add is_comdat, is_common and
1536 (som_section_data_struct): Use som_subspace_dictionary_record struct
1537 instead of subspace_dictionary_record.
1538 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
1540 2004-04-27 Bob Wilson <bob.wilson@acm.org>
1542 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
1543 if set. Check reloc_done flag before applying relocations. Use
1544 output addresses, both when applying relocations and when comparing
1545 against the specified section.
1546 (elf_xtensa_relocate_section): Use output address to check if dynamic
1547 reloc is in a literal pool. Set section's reloc_done flag.
1549 2004-04-27 H.J. Lu <hongjiu.lu@intel.com>
1551 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
1552 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
1554 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
1557 2004-04-27 Alan Modra <amodra@bigpond.net.au>
1559 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
1560 structure field removed in 2004-04-24 patch.
1561 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
1563 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
1565 * elf32-arm.h (elf32_arm_section_flags): Likewise.
1566 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
1567 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
1568 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
1569 field before calling elf_backend_section_flags.
1571 2004-04-24 Chris Demetriou <cgd@broadcom.com>
1573 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
1574 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
1575 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
1576 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
1577 and BFD_RELOC_32_PCREL.
1578 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
1579 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
1580 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
1581 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
1582 (mips_elf_next_relocation): Move comment about matching HI/LO
1584 (_bfd_mips_elf_relocate_section): Here. Remove handling for
1585 R_MIPS_GNU_REL_HI16.
1587 2004-04-23 Chris Demetriou <cgd@broadcom.com>
1589 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
1590 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
1591 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
1592 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
1593 and update comments to reflect current usage.
1594 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
1595 and MIPS_R_SWITCH, as well as several empty entries. Update comment
1597 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
1598 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
1599 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
1600 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
1601 type number to be MIPS_R_PCREL16.
1602 (mips_relocate_section): Remove support for link-time relaxation
1603 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
1604 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
1605 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
1606 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
1607 relaxation of branches used by embedded-PIC.
1608 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
1609 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
1610 related members, update comment.
1611 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
1612 code related to embedded-PIC.
1613 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
1614 initialization of now-removed 'adjust' member of
1615 'struct ecoff_debug_info'.
1617 2004-04-23 Chris Demetriou <cgd@broadcom.com>
1619 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
1621 2004-04-21 Philip Blundell <pb@nexus.co.uk>
1623 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
1624 relocs for locally defined symbols during -shared final link.
1625 (elf32_arm_final_link_relocate): Likewise.
1627 2004-04-22 Jakub Jelinek <jakub@redhat.com>
1629 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
1630 ELF_LINK_POINTER_EQUALITY_NEEDED.
1631 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
1632 if r_type is not R_X86_64_PC32.
1633 (elf64_x86_64_finish_dynamic_symbol): If
1634 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
1637 2004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1639 * elf32-sh.c (sh_elf_plt_sym_val): New function.
1640 (elf_backend_plt_sym_val): Define.
1642 2004-04-22 Andrew Cagney <cagney@redhat.com>
1644 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
1646 2004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1648 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
1650 * som.c (som_set_section_contents): Constantify second argument.
1651 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
1652 (som_object_setup): Rework to avoid warning.
1653 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
1656 2004-04-22 Andrew Cagney <cagney@redhat.com>
1658 * cache.c (bfd_cache_close): Check for a previously closed file.
1660 2004-04-22 Jakub Jelinek <jakub@redhat.com>
1662 * bfd.c (bfd_get_synthetic_symtab): Define.
1663 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
1664 NAME##_get_synthetic_symtab.
1665 (struct bfd_target): Add _bfd_get_synthetic_symtab.
1666 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
1667 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
1669 (_bfd_elf_get_synthetic_symtab): New prototype.
1670 * elfcode.h (elf_get_synthetic_symtab): Define.
1671 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
1672 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
1673 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
1674 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
1675 * bfd-in2.h: Rebuilt.
1676 * libbfd.h: Rebuilt.
1677 * elf32-i386.c (elf_i386_plt_sym_val): New function.
1678 (elf_backend_plt_sym_val): Define.
1679 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
1680 (elf_backend_plt_sym_val): Define.
1681 * elf32-s390.c (elf_s390_plt_sym_val): New function.
1682 (elf_backend_plt_sym_val): Define.
1683 * elf64-s390.c (elf_s390_plt_sym_val): New function.
1684 (elf_backend_plt_sym_val): Define.
1685 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
1686 (elf_backend_plt_sym_val): Define.
1687 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
1688 (elf_backend_plt_sym_val): Define.
1689 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
1690 (elf_backend_plt_sym_val): Define.
1691 * aout-target.h (MY_get_synthetic_symtab): Define.
1692 * aout-tic30.c (MY_get_synthetic_symtab): Define.
1693 * coff-rs6000.c (rs6000coff_vec): Add
1694 _bfd_nodynamic_get_synthetic_symtab.
1695 (pmac_xcoff_vec): Likewise.
1696 * coff64-rs6000.c (rs6000coff64_vec): Add
1697 _bfd_nodynamic_get_synthetic_symtab.
1698 (aix5coff64_vec): Likewise.
1699 * sunos.c (MY_get_synthetic_symtab): Define.
1700 * vms.c (vms_get_synthetic_symtab): Define.
1702 2004-04-22 Nick Clifton <nickc@redhat.com>
1704 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
1706 2004-04-22 Peter Barada <peter@the-baradas.com>
1708 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
1709 * bfd2-in.h: Regenerate.
1710 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
1712 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1714 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
1715 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
1716 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
1717 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
1718 * bfd-in2.h: Regenerate.
1720 2004-04-21 Bob Wilson <bob.wilson@acm.org>
1722 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
1723 require relocations against a weak symbol to reference the same
1724 symbol hash entry if not a final, static link.
1725 (get_cached_value, add_value_map): Add final_static_link argument.
1726 (remove_literals): Pass final_static_link argument as needed.
1728 2004-04-21 Andrew Cagney <cagney@redhat.com>
1730 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
1731 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
1732 (opncls_bwrite, opncls_bclose, opncls_bflush)
1733 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
1734 bfd iovec that uses function callbacks.
1735 (bfd_close): Use the iovec's bclose.
1736 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
1737 (cache_bclose, cache_bflush, cache_bstat)
1738 (cache_iovec): New functions and global variable, implement a
1739 cache "iovec", where applicable set bfd_error.
1740 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
1741 * bfdio.c (struct bfd_iovec): Define.
1742 (real_read): Delete function.
1743 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
1744 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
1745 assume that bread and bwrite set bfd_error.
1746 * bfd.c (struct bfd): Add "iovec", update comments.
1747 * bfd-in2.h, libbfd.h: Re-generate.
1749 2004-04-21 Andrew Cagney <cagney@redhat.com>
1751 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
1753 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1755 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
1756 (bfd_elf_gc_sections): Fail if a shared object is being created.
1757 Do not fail if dynamic sections have been created. Instead call
1758 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
1759 dynamically referenced symbols. Do not mark the whole graph
1760 rooted at .eh_frame, only the section proper.
1762 2004-04-20 DJ Delorie <dj@redhat.com>
1764 * reloc.c: Add BFD_RELOC_32_SECREL.
1765 * bfd-in2.h: Regenerate.
1766 * libbfd.h: Likewise.
1767 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
1768 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
1769 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
1771 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1773 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
1774 relocs against hidden/protected undefweak symbols properly.
1775 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1777 2004-04-18 Mark Kettenis <kettenis@gnu.org>
1779 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
1780 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
1783 2004-04-17 Brian Ford <ford@vss.fsi.com>
1785 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
1786 filepos for the SizeOfHeaders field.
1787 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
1789 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
1791 2004-04-16 Alan Modra <amodra@bigpond.net.au>
1793 * simple.c (bfd_simple_get_relocated_section_contents): Don't
1794 change reloc_done. Set and restore _cooked_size.
1797 2004-04-15 Mark Kettenis <kettenis@gnu.org>
1799 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
1802 2004-04-15 Nick Clifton <nickc@redhat.com>
1804 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
1806 2004-04-15 Alan Modra <amodra@bigpond.net.au>
1808 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
1810 2004-04-15 H.J. Lu <hongjiu.lu@intel.com>
1812 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
1813 when it is a definition.
1815 2004-04-14 Alan Modra <amodra@bigpond.net.au>
1817 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
1818 when statically linking PIC code.
1819 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1821 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1823 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
1824 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
1825 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
1826 * configure: Regenerate.
1828 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1830 * elflink.c: Include libiberty.h.
1831 * Makefile.am (elflink.lo): Depend on libiberty.h.
1832 * Makefile.in: Regenerate.
1834 2004-04-06 Daniel Jacobowitz <drow@mvista.com>
1836 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
1839 2004-04-05 H.J. Lu <hongjiu.lu@intel.com>
1841 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
1842 reserve the memory for dynamic linker
1844 2004-04-05 Mark Kettenis <kettenis@gnu.org>
1846 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
1847 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
1849 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
1851 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
1852 RELOC_FOR_GLOBAL_SYMBOL.
1853 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
1855 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
1857 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
1858 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
1860 2004-04-01 Paul Brook <paul@codesourcery.com>
1862 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
1863 * elf32-arm.h (struct elf32_elf_section_map): New.
1864 (struct _arm_elf_section_data): New.
1865 (elf32_arm_section_data): Define.
1866 (struct elf32_arm_link_hash_table): Add byteswap_code.
1867 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
1868 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
1869 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
1870 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
1871 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
1872 (bfd_elf32_new_section_hook, elf_backend_write_section,
1873 elf_backend_link_output_symbol_hook): Define.
1875 2004-04-01 Andy Chittenden <achittenden@bluearc.com>
1877 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
1878 that keeps the characters in a B_INCL..B_EINCL range.
1879 (_bfd_link_section_stabs): When computing the sum of the
1880 characters in a B_INCL..B_EINCL range also keep a copy of those
1881 characters. Use this information to distinguish between
1882 include sections that have the same sum and the same length
1883 but which are nevertheless unique.
1885 2004-03-31 Paul Brook <paul@codesourcery.com>
1887 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
1888 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
1890 2004-03-31 Andy Chittenden <achittenden@bluearc.com>
1892 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
1893 to 'sum_chars' and add field 'num_chars'.
1894 (_bfd_link_section_stabs): When computing the sum of the
1895 characters in a B_INCL..B_EINCL range also keep a count of the
1896 number of characters. Use this information to help distinguish
1897 between include sections when have the same sum but which
1898 nevertheless are still unique.
1900 2004-03-31 Mattias Engdegård <mattias@virtutech.se>
1902 * stabs.c (_bfd_link_section_stabs): Do not skip N_EXCL stabs.
1904 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1905 Tomer Levi <Tomer.Levi@nsc.com>
1907 * Makefile.am (ALL_MACHINES): Add cpu-cr16c.lo.
1908 (ALL_MACHINES_CFILES): Add cpu-cr16c.c.
1909 (BFD32_BACKENDS): Add elf32-cr16c.lo.
1910 (BFD32_BACKENDS_CFILES): Add elf32-cr16c.c.
1911 (cpu-cr16c.lo): New target.
1912 (elf32-cr16c.lo): Likewise.
1913 * Makefile.in: Regenerate.
1914 * archures.c (bfd_architecture): Add bfd_{arch,mach}_cr16c.
1915 (bfd_archures_list): Add bfd_cr16c_arch.
1916 * config.bfd: Handle cr16c-*-elf*.
1917 * configure.in: Handle bfd_elf32_cr16c_vec.
1918 * configure: Regenerate.
1919 * reloc.c: Add BFD_RELOC_16C_NUM08, BFD_RELOC_16C_NUM08_C,
1920 BFD_RELOC_16C_NUM16, BFD_RELOC_16C_NUM16_C,
1921 BFD_RELOC_16C_NUM32, BFD_RELOC_16C_NUM32_C,
1922 BFD_RELOC_16C_DISP04, BFD_RELOC_16C_DISP04_C,
1923 BFD_RELOC_16C_DISP08, BFD_RELOC_16C_DISP08_C,
1924 BFD_RELOC_16C_DISP16, BFD_RELOC_16C_DISP16_C,
1925 BFD_RELOC_16C_DISP24, BFD_RELOC_16C_DISP24_C,
1926 BFD_RELOC_16C_DISP24a, BFD_RELOC_16C_DISP24a_C,
1927 BFD_RELOC_16C_REG04, BFD_RELOC_16C_REG04_C,
1928 BFD_RELOC_16C_REG04a, BFD_RELOC_16C_REG04a_C,
1929 BFD_RELOC_16C_REG14, BFD_RELOC_16C_REG14_C,
1930 BFD_RELOC_16C_REG16, BFD_RELOC_16C_REG16_C,
1931 BFD_RELOC_16C_REG20, BFD_RELOC_16C_REG20_C,
1932 BFD_RELOC_16C_ABS20, BFD_RELOC_16C_ABS20_C,
1933 BFD_RELOC_16C_ABS24, BFD_RELOC_16C_ABS24_C,
1934 BFD_RELOC_16C_IMM04, BFD_RELOC_16C_IMM04_C,
1935 BFD_RELOC_16C_IMM16, BFD_RELOC_16C_IMM16_C,
1936 BFD_RELOC_16C_IMM20, BFD_RELOC_16C_IMM20_C,
1937 BFD_RELOC_16C_IMM24, BFD_RELOC_16C_IMM24_C,
1938 BFD_RELOC_16C_IMM32, BFD_RELOC_16C_IMM32_C.
1939 * targets.c (bfd_elf32_cr16c_vec): Declare.
1940 (bfd_target_vector): Add bfd_elf32_cr16c_vec.
1941 * cpu-cr16c.c: New file.
1942 * elf32-cr16c.c: Likewise.
1943 * libbfd.h: Regenerate.
1944 * bfd-in2.h: Likewise.
1946 2004-03-30 Jakub Jelinek <jakub@redhat.com>
1948 * elf.c (map_sections_to_segments): Fix handling of .tbss.
1950 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1952 * Makefile.am: Remove all mention of elflink.h.
1953 * Makefile.in: Regenerate.
1954 * bfd-in.h (bfd_elf_discard_info): Declare.
1955 (bfd_elf32_discard_info, bfd_elf64_discard_info): Delete.
1956 * bfd-in2.h: Regenerate.
1957 * elf-bfd.h (bfd_elf32_print_symbol, bfd_elf64_print_symbol,
1958 bfd_elf32_link_record_dynamic_symbol,
1959 bfd_elf64_link_record_dynamic_symbol,
1960 _bfd_elf_link_record_dynamic_symbol, bfd_elf32_bfd_final_link,
1961 bfd_elf64_bfd_final_link, elf_link_record_local_dynamic_symbol,
1962 _bfd_elf32_link_record_local_dynamic_symbol,
1963 _bfd_elf64_link_record_local_dynamic_symbol,
1964 _bfd_elf32_gc_sections, _bfd_elf32_gc_common_finalize_got_offsets,
1965 _bfd_elf32_gc_common_final_link, _bfd_elf64_gc_common_final_link,
1966 _bfd_elf32_gc_record_vtinherit, _bfd_elf32_gc_record_vtentry,
1967 _bfd_elf64_gc_sections, _bfd_elf64_gc_common_finalize_got_offsets,
1968 _bfd_elf64_gc_record_vtinherit, _bfd_elf64_gc_record_vtentry,
1969 _bfd_elf32_reloc_symbol_deleted_p,
1970 _bfd_elf64_reloc_symbol_deleted_p): Delete.
1971 (bfd_elf_link_record_dynamic_symbol,
1972 bfd_elf_link_record_local_dynamic_symbol,
1973 bfd_elf_final_link, bfd_elf_gc_sections,
1974 bfd_elf_gc_record_vtinherit, bfd_elf_gc_record_vtentry,
1975 bfd_elf_gc_common_finalize_got_offsets, bfd_elf_gc_common_final_link,
1976 bfd_elf_reloc_symbol_deleted_p): Declare.
1977 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1978 * elf32-arm.h: Update for changed function names. Remove local
1979 WILL_CALL_FINISH_DYNAMIC_SECTION define.
1980 * elf-hppa.h, elf-m10300.c, elf32-cris.c, elf32-d10v.c, elf32-dlx.c,
1981 * elf32-fr30.c, elf32-frv.c, elf32-h8300.c, elf32-hppa.c, elf32-i386.c,
1982 * elf32-iq2000.c, elf32-m32r.c, elf32-m68hc1x.c, elf32-m68k.c,
1983 * elf32-mcore.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
1984 * elf32-sh.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
1985 * elf32-xstormy16.c, elf32-xtensa.c, elf64-alpha.c, elf64-hppa.c,
1986 * elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
1987 * elf64-x86-64.c, elfxx-ia64.c, elfxx-mips.c, elfxx-target.h: Likewise.
1988 * elfxx-target.h (bfd_elfNN_bfd_final_link): Define.
1989 (bfd_elfNN_print_symbol): Define.
1990 * elfcode.h: Don't include elflink.h.
1991 (elf_bfd_discard_info, elf_reloc_symbol_deleted_p,
1992 elf_link_record_dynamic_symbol, elf_bfd_final_link, elf_gc_sections,
1993 elf_gc_common_finalize_got_offsets, elf_gc_common_final_link,
1994 elf_gc_record_vtinherit, elf_gc_record_vtentry,
1995 elf_link_record_local_dynamic_symbol): Don't define.
1996 * elflink.c: Update for changed function names. Move elflink.h
1998 * elflink.h: Delete file.
1999 * po/SRC-POTFILES.in: Regenerate.
2000 * po/bfd.pot: Regenerate.
2002 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2004 * elf64-mmix.c (mmix_elf_relocate_section): Restore code setting
2005 "name" for global syms accidentally removed in 2004-03-20 change.
2007 2004-03-27 Alan Modra <amodra@bigpond.net.au>
2009 * elf-bfd.h (struct elf_reloc_cookie): Add r_sym_shift field.
2010 * elflink.h: Replace all occurrences of sizeof (Elf_External_*)
2011 where Elf_External_* is different for 64 and 32 bit, with
2012 corresponding elf_size_info field.
2013 (struct elf_final_link_info): Use "bfd_byte *" instead
2014 of "Elf_External_Sym *" for external_syms and symbuf.
2015 (elf_link_adjust_relocs): Set up r_type_mask and r_sym_shift local
2016 vars and use instead of ELF_R_INFO and ELF_R_TYPE macros.
2017 (struct elf_link_sort_rela): Add "sym_mask" alias for "offset".
2018 (elf_link_sort_cmp1): Use sym_mask field instead of ELF_R_SYM.
2019 (elf_link_sort_cmp2): Adjust.
2020 (elf_link_sort_relocs): Set up r_sym_mask local var instead of
2021 using ELF_R_SYM macro. Set u.sym_mask.
2022 (elf_bfd_final_link): Call _bfd_elf_stringtab_init instead of macro
2023 version, elf_stringtab_init. Ditto for bfd_section_from_elf_index
2024 vs. section_from_elf_index. Adjust Elf_External_Sym pointer
2025 arithmetic. Pass bed to elf_link_flush_output_syms. Adjust
2026 Elf_External_Dyn pointer arithmentic. Use bed swap_dyn_in and
2027 swap_syn_out functions. Rearrange dyn swap in/out switch.
2028 (elf_link_output_sym): Adjust Elf_External_Sym pointer arithmentic.
2029 Pass bed to elf_link_flush_output_syms. Use bed swap_symbol_out.
2030 (elf_link_flush_output_syms): Add elf_backend_data arg.
2031 (elf_link_check_versioned_symbol): Likewise.
2032 (elf_link_output_extsym): Pass bed to elf_link_check_versioned_symbol.
2033 Adjust Elf_External_Sym pointer arithmetic. Use bed swap_symbol_out.
2034 (elf_link_input_bfd): Use bfd_section_from_elf_index. Set up
2035 r_type_mask and r_sym_shift local vars and use instead of ELF_R_SYM,
2036 ELF_R_TYPE and ELF_R_INFO macros.
2037 (elf_reloc_link_order): Select ELF32_R_INFO or ELF64_R_INFO invocation
2038 based on size rather than using ELF_R_INFO.
2039 (elf_gc_mark): Set up r_sym_shift local var and use instead of
2041 (struct alloc_got_off_arg): New.
2042 (elf_gc_common_finalize_got_offsets): Use elf_size_info instead of
2043 ARCH_SIZE. Pass get entry size down to elf_gc_allocate_got_offsets.
2044 (elf_gc_allocate_got_offsets): Adjust.
2045 (elf_reloc_symbol_deleted_p): Usee cookie.r_sym_shift instead of
2046 ELF_R_SYM. Use bfd_section_from_elf_index.
2047 (elf_bfd_discard_info): Set cookie.r_sym_shift.
2048 * elfcode.h (elf_stringtab_init, section_from_elf_index): Delete.
2049 (elf_slurp_symbol_table): Use bfd_section_from_elf_index.
2051 2004-03-26 Stan Shebs <shebs@apple.com>
2053 Remove MPW support, no longer used.
2054 * config.bfd (powerpc-*-mpw*): Remove configuration.
2055 * mpw-config.in, mpw-make.sed: Remove files.
2056 * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
2058 2004-03-26 Alan Modra <amodra@bigpond.net.au>
2060 * elf64-ppc.c (elf_backend_add_symbol_hook): Define.
2061 (ppc64_elf_add_symbol_hook): New function.
2062 * elf-bfd.h (struct elf_backend_data <elf_add_symbol_hook>): Remove
2063 const from Elf_Internal_Sym param.
2064 * elflink.c (elf_link_add_object_symbols): Adjust.
2065 * elf-hppa.h (elf_hppa_add_symbol_hook): Adjust.
2066 * elf32-frv.c (elf32_frv_add_symbol_hook): Adjust.
2067 * elf32-i370.c (elf_backend_add_symbol_hook): Adjust.
2068 * elf32-m32r.c (m32r_elf_add_symbol_hook): Adjust.
2069 * elf32-m68hc1x.c (elf32_m68hc11_add_symbol_hook): Adjust.
2070 * elf32-m68hc1x.h (elf32_m68hc11_add_symbol_hook): Adjust.
2071 * elf32-ppc.c (ppc_elf_add_symbol_hook): Adjust.
2072 * elf32-sh64.c (sh64_elf_add_symbol_hook): Adjust.
2073 * elf32-v850.c (v850_elf_add_symbol_hook): Adjust.
2074 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Adjust.
2075 * elf64-mmix.c (mmix_elf_add_symbol_hook): Adjust.
2076 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Adjust.
2077 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Adjust.
2078 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Adjust.
2079 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Adjust.
2080 * elfxx-mips.h (_bfd_mips_elf_add_symbol_hook): Adjust.
2082 2004-03-26 Alan Modra <amodra@bigpond.net.au>
2084 * elfxx-target.h (bfd_elfNN_bfd_link_add_symbols): Define.
2085 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): Delete.
2086 (_bfd_elf_sort_symbol, _bfd_elf_add_dt_needed_tag): Delete.
2087 (_bfd_elf_finalize_dynstr, bfd_elf32_bfd_link_add_symbols): Delete.
2088 (bfd_elf64_bfd_link_add_symbols): Delete.
2089 (bfd_elf_link_add_symbols): Declare.
2090 * elfcode.h (elf_bfd_link_add_symbols): Delete.
2091 * elflink.c: Include safe-ctype.h.
2092 (elf_add_dt_needed_tag): Rename from _bfd_elf_add_dt_needed_tag,
2094 (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static.
2095 (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make
2097 (elf_link_add_archive_symbols): Rename from
2098 _bfd_elf_link_add_archive_symbols, make static.
2099 (elf_link_add_object_symbols): New function. Corresponding
2100 elflink.h function converted to use elf_size_info.
2101 (bfd_elf_link_add_symbols): Likewise.
2102 (bfd_elf_size_dynamic_sections): Adjust.
2103 * elflink.h (elf_bfd_link_add_symbols): Delete.
2104 (elf_link_add_object_symbols): Delete.
2105 * elf32-gen.c (elf32_generic_link_add_symbols): Call
2106 bfd_elf_link_add_symbols.
2107 * elf64-gen.c (elf64_generic_link_add_symbols): Likewise.
2109 2004-03-25 Alan Modra <amodra@bigpond.net.au>
2111 * elflink.h (elf_link_add_object_symbols): Add DT_NEEDED for as-needed
2112 and chained shared libs only if dynsym. Clear dynsym on forced-local.
2114 * elf-bfd.h (_bfd_elf_add_dynamic_entry): Declare.
2115 (bfd_elf32_add_dynamic_entry, bfd_elf64_add_dynamic_entry): Delete.
2116 (_bfd_elf_add_dt_needed_tag): Declare.
2117 (_bfd_elf_sort_symbol): Declare.
2118 (_bfd_elf_finalize_dynstr): Declare.
2119 (RELOC_FOR_GLOBAL_SYM): Formatting.
2120 * elfcode.h (elf_add_dynamic_entry): Delete.
2121 * elflink.c (_bfd_elf_add_dynamic_entry): New function. Corresponding
2122 elflink.h function converted to use elf_size_info.
2123 (_bfd_elf_add_dt_needed_tag): Likewise.
2124 (_bfd_elf_sort_symbol): Likewise.
2125 (_bfd_elf_finalize_dynstr): Likewise.
2126 (compute_bucket_count): Likewise.
2127 (bfd_elf_size_dynamic_sections): Likewise. Check result of
2128 _bfd_elf_strtab_add before calling _bfd_elf_strtab_addref.
2129 (elf_adjust_dynstr_offsets, elf_collect_hash_codes): Moved from..
2130 * elflink.h: ..here.
2131 (sort_symbol, add_dt_needed_tag): Delete.
2132 (elf_add_dynamic_entry, elf_finalize_dynstr): Delete.
2133 (compute_bucket_count, NAME(bfd_elf,size_dynamic_sections)): Delete.
2135 * elf32-arm.h (add_dynamic_entry): Update. Remove casts.
2136 * elf32-cris.c (add_dynamic_entry): Likewise.
2137 * elf32-hppa.c (add_dynamic_entry): Likewise.
2138 * elf32-i370.c (add_dynamic_entry): Likewise.
2139 * elf32-i386.c (add_dynamic_entry): Likewise.
2140 * elf32-m32r.c (add_dynamic_entry): Likewise.
2141 * elf32-m68k.c (add_dynamic_entry): Likewise.
2142 * elf32-ppc.c (add_dynamic_entry): Likewise.
2143 * elf32-s390.c (add_dynamic_entry): Likewise.
2144 * elf32-sh.c (add_dynamic_entry): Likewise.
2145 * elf32-sparc.c (add_dynamic_entry): Likewise.
2146 * elf32-vax.c (add_dynamic_entry): Likewise.
2147 * elf32-xtensa.c (add_dynamic_entry): Likewise.
2148 * elf64-alpha.c (add_dynamic_entry): Likewise.
2149 * elf64-hppa.c (add_dynamic_entry): Likewise.
2150 * elf64-ppc.c (add_dynamic_entry): Likewise.
2151 * elf64-s390.c (add_dynamic_entry): Likewise.
2152 * elf64-sparc.c (add_dynamic_entry): Likewise.
2153 * elf64-x86-64.c (add_dynamic_entry): Likewise.
2154 * elfxx-ia64.c (add_dynamic_entry): Likewise.
2155 * elfxx-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
2156 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
2157 * elf32-frv.c (elf32_frv_size_dynamic_sections): Likewise.
2158 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
2160 2004-03-23 Paul Brook <paul@codesourcery.com>
2162 * elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
2164 2004-03-22 Bob Wilson <bob.wilson@acm.org>
2166 * elf32-xtensa.c (elf_xtensa_check_relocs): Remove code to read
2167 literal tables and check for relocs outside of literal pools.
2168 (elf_xtensa_make_sym_local): Don't clear ELF_LINK_NON_GOT_REF flag.
2169 (elf_xtensa_fix_refcounts): Don't check ELF_LINK_NON_GOT_REF or
2171 (elf_xtensa_size_dynamic_sections): Don't add DT_TEXTREL entry.
2172 (elf_xtensa_relocate_section): Read literal tables and check for
2173 dynamic relocations in read-only sections and not in literal pools.
2175 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2178 * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char.
2180 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
2182 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
2183 R_CRIS_16_GOTPLT>: Also error if there's no PLT for a symbol
2184 not defined by the executable, or defined in a DSO.
2185 <eliding run-time relocation of .got>: Initialize GOT entry for a
2186 function symbol or ELF_LINK_HASH_NEEDS_PLT statically in an
2188 (cris_elf_gc_sweep_hook): Improve fallthrough marking.
2189 (elf_cris_try_fold_plt_to_got): Improve head comment. Do not fold
2190 a PLT reloc to GOT for an executable.
2191 (elf_cris_adjust_dynamic_symbol): Only fold a .got.plt entry with
2192 .got for a DSO and explain why.
2193 (elf_cris_discard_excess_program_dynamics): Also lose GOT-relocs
2194 and unreferenced symbols for which a PLT is defined. Adjust
2195 dynamic-symbol pruning correspondingly, to make sure we don't lose
2196 a dynamic symbol also defined by a DSO.
2198 2004-03-22 Alan Modra <amodra@bigpond.net.au>
2200 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Add input_bfd, input_section
2201 and rel args. Group input and output args. Wrap to 80 columns.
2202 * elf-m10200.c, elf-m10300.c, elf32-arm.h, elf32-avr.c,
2203 elf32-cris.c, elf32-d10v.c, elf32-fr30.c, elf32-h8300.c,
2204 elf32-hppa.c, elf32-i386.c, elf32-i860.c, elf32-ip2k.c,
2205 elf32-iq2000.c, elf32-m68hc1x.c, elf32-m68k.c, elf32-mcore.c,
2206 elf32-msp430.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
2207 elf32-sparc.c, elf32-v850.c, elf32-vax.c, elf32-xstormy16.c,
2208 elf32-xtensa.c, elf64-alpha.c, elf64-mmix.c, elf64-ppc.c,
2209 elf64-s390.c, elf64-sparc.c, elf64-x86-64.c, elfxx-ia64.c: Update
2210 RELOC_FOR_GLOBAL_SYMBOL invocation.
2212 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2214 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if
2215 unresolved symbols in objects aren't allowed.
2217 * elf-hppa.h (elf_hppa_relocate_section): Properly handle
2219 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
2220 (elf_hppa_unmark_useless_dynamic_symbols):
2221 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
2222 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
2223 (elf32_hppa_relocate_section): Likewise.
2224 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2225 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
2226 * elf32-sh.c (sh_elf_relocate_section): Likewise.
2227 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
2228 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
2230 * elf-m10200.c (mn10200_elf_relocate_section): Use
2231 RELOC_FOR_GLOBAL_SYMBOL.
2232 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
2233 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
2234 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
2235 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
2236 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
2237 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Likewise.
2238 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2239 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
2240 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
2241 * elf32-v850.c (v850_elf_relocate_section): Likewise.
2242 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
2243 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
2245 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2247 * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
2248 (final_link_relocate): Likewise.
2249 * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
2250 R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
2252 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2254 * Makefile.am: Run "make dep-am".
2255 * Makefile.in: Regenerate.
2256 * aclocal.m4: Regenerate.
2257 * config.in: Regenerate.
2258 * po/bfd.pot: Regenerate.
2260 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2261 H.J. Lu <hongjiu.lu@intel.com>
2263 * elflink.c (_bfd_elf_merge_symbol): Revert last change. Move
2264 type and size change code to where it was previously. Remove
2265 dt_needed param. Treat old weak syms as strong if new sym is
2266 from a shared lib, even when old sym is from another shared
2267 lib. Remove unnecessary tests of oldweak and newweak. Correct
2269 (_bfd_elf_add_default_symbol): Remove dt_needed param. Update
2270 _bfd_elf_merge_symbol calls.
2271 * elflink.h (elf_link_add_object_symbols): Update calls. Remove
2272 dt_needed local var. Update comments.
2273 * elf-bfd.h (_bfd_elf_merge_symbol): Update prototype.
2274 (_bfd_elf_add_default_symbol): Likewise.
2276 * elflink.c (_bfd_elf_merge_symbol): Reinstate code to handle
2277 strong syms in one shared object overriding weak syms in another.
2279 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2281 * elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field. Add
2282 dyn_lib_class field. Rearrange for better packing.
2283 (elf_dt_soname): Delete.
2284 (elf_dyn_lib_class): Define.
2285 * elf.c (bfd_elf_set_dt_needed_name): Update comment.
2286 (bfd_elf_set_dt_needed_soname): Delete.
2287 (bfd_elf_set_dyn_lib_class): New function.
2288 * elflink.h (add_dt_needed_tag): New function. Split out from..
2289 (elf_link_add_object_symbols): ..here. Rename "name" to "soname".
2290 Use elf_dyn_lib_class to set dt_needed and add_needed. Move fallback
2291 initialization of soname.
2292 (elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of
2294 * bfd-in.h (enum dynamic_lib_link_class): New.
2295 (bfd_elf_set_dt_needed_soname): Delete.
2296 (bfd_elf_set_dyn_lib_class): Declare.
2297 * bfd-in2.h: Regenerate.
2299 * elflink.c (_bfd_elf_merge_symbol): Rewrite weak symbol handling.
2300 (_bfd_elf_add_default_symbol): Remove indirect BFD_ASSERTs.
2301 * elflink.h (elf_link_add_object_symbols): Don't clear dt_needed in
2302 symbol loop. Instead use add_needed to flag tag as written.
2304 2004-03-17 Nathan Sidwell <nathan@codesourcery.com>
2306 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
2307 logic for null_input_bfd detection.
2309 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2311 * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2313 2004-03-16 Mark Kettenis <kettenis@gnu.org>
2315 * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
2318 2004-03-16 Alan Modra <amodra@bigpond.net.au>
2320 * elflink.c (elf_link_read_relocs_from_section): Don't use
2321 NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check..
2322 (_bfd_elf_link_read_relocs): ..to here.
2323 * elf32-ppc.c (ppc_elf_relax_section): Formatting.
2325 2004-03-16 Alan Modra <amodra@bigpond.net.au>
2327 * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override
2328 values selected in configure.host. Require both to be defined
2329 before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to
2330 corresponding BFD_HOST vars with quotes.
2331 <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc;
2332 Always require BFD_HOST_64_BIT_DEFINED.
2333 <file_ptr type>: Find off_t size before emitting message. Combine
2334 off_t and ftello64 conditional.
2335 * configure: Regenerate.
2337 2004-03-16 Alan Modra <amodra@bigpond.net.au>
2339 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
2340 aliasing warning. Remove trailing whitespace throughout file.
2342 2004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2344 * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of
2345 input_section in calls to get_dyn_name.
2346 * elf64-hppa.c (get_dyn_name): Change type of first argument to "bfd *". Use section id of first section in input BFD to build dynamic name for
2348 (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
2350 2004-03-15 Alan Modra <amodra@bigpond.net.au>
2352 * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types.
2353 (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here.
2354 (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t.
2355 (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t.
2356 (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t.
2357 * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8.
2358 (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set
2360 * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t.
2361 (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT.
2362 (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
2363 (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT.
2364 (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise.
2365 * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t.
2366 (read_8_bytes, read_indirect_string, read_address): Likewise.
2367 (read_abbrevs, parse_comp_unit): Likewise.
2368 * targets.c (struct bfd_target): Likewise.
2369 * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use.
2370 * hppabsd-core.c: Likewise. Formatting.
2371 * hpux-core.c: Likewise.
2372 * irix-core.c: Likewise.
2373 * netbsd-core.c: Likewise.
2374 * osf-core.c: Likewise.
2375 * ptrace-core.c: Likewise.
2376 * sco5-core.c: Likewise.
2377 * trad-core.c: Likewise.
2378 * configure: Regenerate.
2379 * bfd-in2.h: Regenerate.
2381 2004-03-15 Alan Modra <amodra@bigpond.net.au>
2383 * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
2384 (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
2385 (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
2386 (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
2387 (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
2388 (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
2389 (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
2390 * libbfd.c: Likewise in function definitions.
2391 (bfd_put_8): Mask with 0xff rather than casting to char.
2392 (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
2393 (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
2394 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
2395 (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
2396 (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
2397 (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
2398 * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
2399 (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
2400 (H_GET_64, H_GET_32, H_GET_16): Likewise.
2401 (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
2402 * archive.c (do_slurp_coff_armap): Update swap prototype.
2403 * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
2404 (tic54x_getl_signed_32): Likewise.
2405 (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
2406 * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
2407 * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
2408 (bfd_getp_signed_32, bfd_putp32): Likewise.
2409 * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
2410 bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
2411 bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
2412 bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
2413 bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
2414 bfd_h_getx_signed_16, bfd_h_putx16.
2415 * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
2416 * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
2417 * hpux-core.c: Likewise.
2418 * irix-core.c: Likewise.
2419 * netbsd-core.c: Likewise.
2420 * osf-core.c: Likewise.
2421 * ptrace-core.c: Likewise.
2422 * sco5-core.c: Likewise.
2423 * trad-core.c: Likewise.
2424 * bfd-in2.h: Regenerate.
2426 2004-03-15 Matt Thomas <matt@3am-software.com>
2428 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
2431 2004-03-13 Mark Kettenis <kettenis@gnu.org>
2433 * config.bfd: Add x86_64-*-openbsd*.
2434 * configure.in (x86_64-*-openbsd*): Set COREFILE to
2436 * configure: Regenerate.
2438 2004-03-12 Nick Clifton <nickc@redhat.com>
2439 Dave Murphy <wintermute2k4@ntlworld.com>
2441 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
2442 if the input bfd does not contain any code.
2444 2004-03-09 Steve Ellcey <sje@cup.hp.com>
2446 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
2448 2004-03-05 Fred Fish <fnf@redhat.com>
2450 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
2451 mips16 symbols to be even rather than testing first for even/odd.
2452 (_bfd_mips_elf_link_output_symbol_hook): Ditto.
2454 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2456 * elf.c (map_sections_to_segments): Ignore .tbss sections for
2459 2004-03-03 Alexandre Oliva <aoliva@redhat.com>
2461 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
2462 undefined symbols as hash_new.
2464 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
2466 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
2468 * elf32-sh.c: Ditto.
2469 * bfd-in2.h: Regenerate.
2471 2004-03-02 Alexandre Oliva <aoliva@redhat.com>
2473 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
2475 (_frv_count_got_plt_entries): Initialize them.
2476 (frv_pic_relocs_info_find): Add insert argument. Adjust all
2478 (frv_pic_relocs_info_for_global): Likewise.
2479 (frv_pic_relocs_info_for_local): Likewise.
2480 (frv_pic_merge_early_relocs_info): New.
2481 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
2483 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
2484 Check that we don't exceed the allocated count for entry.
2485 (_frv_add_rofixup): Likewise.
2486 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
2487 (elf32_frv_finish_dynamic_sections): Improve error message in case
2488 we emit too few rofixup entries.
2490 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
2492 * archures.c (bfd_mach_fr450): New.
2493 * bfd-in2.h: Regenerate.
2494 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
2495 (arch_info_500): Link to it.
2496 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
2497 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
2498 (frv_elf_arch_extension_p): New function.
2499 (frv_elf_merge_private_bfd_data): Use it.
2501 2004-02-28 H.J. Lu <hongjiu.lu@intel.com>
2503 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
2505 * elflink.h (is_global_data_symbol_definition): Moved to
2507 (elf_link_is_defined_archive_symbol): Likewise.
2508 (elf_link_add_archive_symbols): Likewise. Renamed to
2509 _bfd_elf_link_add_archive_symbols.
2511 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
2512 of ELF symbol table entry from backend.
2513 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
2514 instead of elf_link_add_object_symbols.
2516 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
2518 * elf-bfd.h (struct elf_backend_data): Added
2519 elf_backend_can_make_relative_eh_frame,
2520 elf_backend_can_make_lsda_relative_eh_frame and
2521 elf_backend_encode_eh_address.
2522 (_bfd_elf_encode_eh_address): Declare.
2523 (_bfd_elf_can_make_relative): Declare.
2524 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
2525 hooks to decide whether to attempt to make_relative and
2527 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
2528 (_bfd_elf_can_make_relative): New.
2529 (_bfd_elf_encode_eh_address): New.
2530 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
2531 (frv_elf_encode_eh_address): New.
2532 (elf_backend_can_make_relative_eh_frame): Define.
2533 (elf_backend_can_make_lsda_relative_eh_frame): Define.
2534 (elf_backend_encode_eh_address): Define.
2536 (elf_backend_can_make_relative_eh_frame): Define.
2537 (elf_backend_can_make_lsda_relative_eh_frame): Define.
2538 (elf_backend_encode_eh_address): Define.
2539 (elfNN_bed): Add them.
2541 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
2543 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
2544 complain_on_overflow to signed.
2546 2004-02-27 H.J. Lu <hongjiu.lu@intel.com>
2548 * elflink.h (sort_symbol): New.
2549 (elf_link_add_object_symbols): Use a sorted symbol array for
2552 2004-02-27 Jakub Jelinek <jakub@redhat.com>
2554 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
2555 for pc relative relocs.
2556 (elf_s390_relocate_section): Likewise.
2557 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
2558 for pc relative relocs.
2559 (elf_s390_relocate_section): Likewise.
2561 2004-02-26 H.J. Lu <hongjiu.lu@intel.com>
2563 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
2566 2004-02-25 H.J. Lu <hongjiu.lu@intel.com>
2568 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
2569 field to track if a relocation is against readonly section.
2570 (count_dyn_reloc): Take a new argument for rent->reltext.
2571 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
2572 (get_reloc_section): Don't set ia64_info->reltext here.
2573 (allocate_dynrel_entries): Set ia64_info->reltext here.
2575 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
2577 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
2578 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
2579 function's descriptor to symbol+offset, and map local undefweak
2580 symbol to NULL function descriptor.
2581 (elf32_frv_relocate_section): Likewise.
2583 2004-02-23 Mark Kettenis <kettenis@gnu.org>
2585 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
2587 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
2588 (netbsd_core_file_p): Set architecture from machine ID for
2591 2004-02-23 Jakub Jelinek <jakub@redhat.com>
2593 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
2594 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
2596 2004-02-21 H.J. Lu <hongjiu.lu@intel.com>
2598 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
2599 symbols with non-default visibility.
2601 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
2603 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
2604 IMAGE_SCN_MEM_WRITE on known sections only.
2606 2004-02-20 Jakub Jelinek <jakub@redhat.com>
2608 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
2609 symbols used in PIE relocs.
2611 2004-02-19 Jakub Jelinek <jakub@redhat.com>
2613 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
2616 2004-02-18 Daniel Jacobowitz <drow@mvista.com>
2618 * configure.in: Update version to 2.15.90.
2619 * configure: Regenerate.
2621 2004-02-17 Daniel Jacobowitz <drow@mvista.com>
2622 Richard Sandiford <rsandifo@redhat.com>
2624 * elfxx-mips.c (mips_elf_calculate_relocation): Use
2625 _bfd_elf_symbol_refs_local_p to decide whether to decay
2626 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
2627 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
2628 relocs if the symbol wasn't defined by a regular object file.
2629 Don't check the symbol's dynindx.
2631 2004-02-16 Andrew Cagney <cagney@redhat.com>
2633 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
2635 * bfd-in2.h: Re-generate.
2637 2004-02-14 Andrew Cagney <cagney@redhat.com>
2639 * configure.host (HDEFINES): When hppa*-*-hpux*, define
2640 _LARGEFILE64_SOURCE.
2642 2004-02-13 Andrew Cagney <cagney@redhat.com>
2644 * elf.c (vma_page_aligned_bias): New function.
2645 (assign_file_positions_except_relocs)
2646 (assign_file_positions_for_segments): Replace broken modulo
2647 arithmetic with call to vma_page_aligned_bias.
2649 2004-02-11 Andrew Cagney <cagney@redhat.com>
2651 * bfd-in.h: Update copyright.
2652 (bfd_tell): Change return type to file_ptr.
2653 * bfd-in2.h: Re-generate.
2654 * cache.c: Update copyright.
2655 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
2657 (close_one): Use real_ftell.
2658 * bfdio.c: Update copyright.
2659 (real_ftell, real_fseek): New functions.
2660 (bfd_tell): Use real_fseek and real_ftell, change return type to
2662 (bfd_seek): Use real_ftell and real_fseek, change type of
2663 file_position to a file_ptr.
2664 * libbfd-in.h: Update copyright.
2665 (real_ftell, real_fseek): Declare.
2666 * libbfd.h: Re-generate.
2668 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
2669 fseeko and fseeko64. Determine bfd_file_ptr.
2670 * configure: Re-generate.
2671 * config.in: Re-generate.
2673 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
2675 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
2676 * elf32-h8300.c: Likewise.
2678 2004-02-09 Christian Vogel <vogelchr@vogel.cx>
2679 Nick Clifton <nickc@redhat.com>
2681 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
2682 GOT entries with no associated GOT subsection.
2684 2004-02-09 Richard Sandiford <rsandifo@redhat.com>
2686 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
2687 * elf.c (swap_out_syms): Use it to decide whether local section
2688 symbols should be named.
2689 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
2690 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
2691 (elf_backend_name_local_section_symbols): Define.
2692 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
2694 2004-01-30 H.J. Lu <hongjiu.lu@intel.com>
2696 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
2697 (elfNN_ia64_relax_section): Optimize brl to br during the relax
2700 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
2702 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
2703 to bfd_link_hash_entry passed by reference to
2704 _bfd_generic_link_add_one_symbol.
2706 2004-01-25 H.J. Lu <hongjiu.lu@intel.com>
2708 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
2709 relocations against dynamic symbols.
2711 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
2713 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
2716 2004-01-21 Tom Rix <tcrix@worldnet.att.net>
2718 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
2719 * bfd-in2.h, libbfd.h: Rebuilt.
2721 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2723 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
2724 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
2725 flag has been cleared.
2727 2004-01-19 Kazu Hirata <kazu@cs.umass.edu>
2729 * coff-h8300.c: Add and adjust comments about relaxation.
2730 * elf32-h8300.c: Likewise.
2732 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
2734 * coff-h8300.c: Fix comment typos.
2735 * elf32-h8300.c: Likewise.
2737 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
2739 * coff-h8300.c: Add comments about relaxation.
2740 * elf32-h8300.c: Likewise.
2742 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2744 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
2746 * aclocal.m4: Regenerate.
2747 * configure: Regenerate.
2749 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
2751 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
2752 mips_elf64_rtype_to_howto instead of using howto_table.
2754 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
2756 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
2758 (elf32_arm_check_relocs): Don't increment the PLT refcount for
2759 relocs which would not use the PLT.
2761 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2763 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
2764 (ppc64_elf_gc_sweep_hook): Likewise.
2765 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
2767 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
2769 Adds linker relaxation support for bit manipulation insns like
2770 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
2772 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
2773 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
2774 * coff-h8300.c: Opcode for bit manipulation insn is checked in
2775 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
2777 2004-01-12 Alan Modra <amodra@bigpond.net.au>
2779 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
2781 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
2783 * elf32-h8300.c: Fix formatting.
2785 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
2787 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
2788 dynamic object is present. Declare r_symndx and h in an inner
2790 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
2792 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
2794 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
2795 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
2796 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
2797 identically. Do not emit PC24 relocations for shared libraries.
2798 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
2799 identically. Don't adjust pc_count.
2800 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
2801 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
2802 adjust count for branch relocations.
2803 (allocate_dynrelocs): Correct typo in call to
2804 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
2805 PC24 or PLT32 relocs when linking.
2807 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
2809 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
2810 relocation howto with ARM_26 one for consistency.
2811 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
2812 that will be converted to ARM_26D ones, since we always want 'done'
2813 relocations to be reflected in section's data.
2814 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
2816 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
2819 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
2821 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
2822 are not partial_inplace during a relocatable link.
2824 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
2826 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
2827 if no dynamic object is present. Declare r_symndx and h in an
2830 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
2832 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
2833 trampoline if it is known out of range.
2835 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2837 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
2838 * elf32-frv.c (_frv_osec_readonly_p): New.
2839 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
2841 (_frv_count_got_plt_entries): Adjust expected count accordingly.
2842 (elf32_frv_relocate_section): Likewise. Error out if attempting
2843 to emit rofixups or dynamic relocs in read-only segments. Use
2844 _bfd_elf_section_offset to adjust r_offsets in rofixups and
2845 dynamic relocations.
2846 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
2847 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
2848 relocations or fixups involving merged sections correctly. Avoid
2849 crash when undefined symbol is referenced by R_FRV_32 or
2850 R_FRV_FUNCDESC_VALUE.
2851 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
2852 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
2853 input section holding local symbol to addend of R_FRV_32 or
2854 R_FRV_FUNCDESC_VALUE dynamic relocation.
2855 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
2856 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
2857 (elf32_frv_always_size_sections): Don't store pointer to
2858 __stacksize symbol in sec_info.
2859 (elf32_frv_modify_segment_map): Look it up here.
2860 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
2861 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
2862 of the lazy PLT entry, not only its offset, as the low word of a
2863 function descriptor.
2864 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
2865 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
2866 if a hash table entry already exists but is not a definition.
2867 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2868 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
2869 (_frv_add_rofixup): Don't inline.
2870 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
2871 for undefweak symbols.
2872 (elf32_frv_relocate_section): Avoid crash while computing
2873 relocation when linking with shared library. Only emit rofixups
2874 and dynamic relocations for alloc&load sections. Mark binaries
2875 with inter-segment relocations for relocation as a unit.
2876 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
2877 (DEFAULT_STACK_SIZE): New.
2878 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
2879 emit rofixups or dynamic relocs when linking dynamic non-PIE
2881 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
2882 shared libs too. Reserve the last entry for the GOT pointer.
2883 (elf32_frv_finish_dynamic_sections): Emit it.
2884 (elf32_frv_always_size_sections): New.
2885 (elf32_frv_modify_segment_map): New.
2886 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
2888 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
2889 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
2890 (elf_backend_always_size_sections): New.
2891 (elf_backend_modify_segment_map): New.
2892 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2893 * config.bfd: Added frv-*-*linux*.
2894 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
2895 ABS section, instead of crashing.
2896 (elf32_frv_relocate_section): Don't crash before warning about
2897 different segments in non-PIC relocation.
2898 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
2899 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
2900 relocs to undefweak symbols.
2901 (elf32_frv_relocate_section): Ditto for undefined symbols.
2902 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
2903 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
2904 gotfixup section was created.
2905 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2906 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
2907 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
2908 complain_overflow_signed.
2909 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
2910 have not been allocated.
2911 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
2912 privfd only if dynamic sections were created.
2913 (elf32_frv_relocate_section): Compute gprel_segment, and use it
2914 for GPREL relocs. When linking relocatable FDPIC executables,
2915 emit warnings for relocations that would be illegal on PIE or
2916 shared libraries. Emit rofixup for R_FRV_32 only if input object
2918 (_frv_create_got_section): Define _gp symbol in the rofixup
2920 (elf32_frv_finish_dynamic_sections): If rofixups needed but
2921 dynamic sections missing, error out requesting -melf32frvfd.
2922 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
2923 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
2924 computation of addends from section and global or local symbol
2925 value. Change return type to bfd_boolean, and return a failure if
2926 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
2927 nonzero addend is required.
2928 (elf32_frv_relocate_section): Likewise. Print error for
2929 unsupported nonzero addends.
2930 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2931 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
2932 force everything local.
2933 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
2934 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
2935 (frv_gotfixup_section): New.
2936 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
2937 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
2939 (_frv_add_rofixup): New.
2940 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
2941 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
2942 improve some ugly conditions.
2943 (elf32_frv_relocate_section): Likewise. Reject inter-segment
2944 relocations in fdpic.
2945 (_frv_create_got_section): Create .rofixup.got section.
2946 (struct _frv_dynamic_got_info): Added fixups.
2947 (_frv_count_got_plt_entries): Account in-GOT relocations into
2948 relocs32, relocsfd and relocsfdv. Account them into relocs or
2949 fixups, as appropriate.
2950 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
2952 (elf32_frv_finish_dynamic_sections): Verify that the right number
2953 of relocations and fixups was generated.
2954 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
2956 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
2957 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
2958 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
2959 descriptor of a (formerly-)global symbol is local.
2960 (struct frv_pic_relocs_info): Adjust comments.
2961 (_frv_emit_got_relocs_plt_entries): Adjust.
2962 (elf32_frv_relocate_section): Likewise.
2963 (_frv_count_got_plt_entries): Likewise.
2964 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
2965 symbol's value to addend in the common preamble. Decay dynamic
2966 symbols to section+offset if they bind or call locally, for GOT
2967 and FUNCDESC_VALUE, respectively.
2968 (elf32_frv_relocate_section): Likewise.
2969 (elf32_frv_check_relocs): Don't register as dynamic symbols of
2970 internal or hidden visibility.
2971 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
2972 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
2973 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
2974 (elf32_frv_relocate_section): Pass relocation addend in. Use
2975 original relocation addend to look up the got relocs/plt entries
2976 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
2977 processing relocations that reference .scommon symbols.
2978 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2979 Introduce support for dynamic linking.
2980 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
2981 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
2982 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
2983 (frv_reloc_type_lookup): Return REL howtos for executables and
2985 (frv_info_to_howto_rel): New.
2986 (struct frv_elf_link_hash_table): New.
2987 (frv_hash_table, frv_got_section, frv_gotrel_section,
2988 frv_plt_section, frv_pltrel_section, frv_relocs_info,
2989 frv_got_initial_offset, frv_plt_initial_offset): New macros.
2990 (frv_elf_link_hash_table_create): New.
2991 (struct frv_pic_relocs_info): New.
2992 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
2993 (frv_pic_relocs_info_find): New.
2994 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
2996 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
2997 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
2998 (_frv_emit_got_relocs_plt_entries): New.
2999 (elf32_frv_relocate_section): Add support for dynamic linking.
3000 Handle new relocations.
3001 (_frv_create_got_section): New.
3002 (elf32_frv_create_dynamic_sections): New.
3003 (ELF_DYNAMIC_INTERPRETER): New.
3004 (struct _frv_dynamic_got_info): New.
3005 (_frv_count_got_plt_entries): New.
3006 (struct _frv_dynamic_got_plt_info): New.
3007 (_frv_compute_got_alloc_data): New.
3008 (_frv_get_got_entry, _frv_get_fd_entry): New.
3009 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
3010 (_frv_resolve_final_relocs_info): New.
3011 (elf32_frv_size_dynamic_sections): New.
3012 (elf32_frv_finish_dynamic_sections): New.
3013 (elf32_frv_adjust_dynamic_symbol): New.
3014 (elf32_frv_finish_dynamic_symbol): New.
3015 (elf32_frv_check_relocs): Handle new relocs. Explain how the
3017 (elf_info_to_howto_rel): Define.
3018 (bfd_elf32_bfd_link_hash_table_create): Define.
3019 (elf_backend_create_dynamic_sections): Define.
3020 (elf_backend_adjust_dynamic_symbol): Define.
3021 (elf_backend_size_dynamic_sections): Define.
3022 (elf_backend_finish_dynamic_symbol): Define.
3023 (elf_backend_finish_dynamic_sections): Define.
3024 (elf_backend_want_got_sym): Define.
3025 (elf_backend_got_header_size): Define.
3026 (elf_backend_want_got_plt): Define.
3027 (elf_backend_plt_readonly): Define.
3028 (elf_backend_want_plt_sym): Define.
3029 (elf_backend_plt_header_size): Define.
3030 (elf_backend_may_use_rel_p): Define.
3031 (elf_backend_may_use_rela_p): Define.
3032 (elf_backend_default_use_rela_p): Define.
3033 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
3034 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
3035 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
3036 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
3037 (frv_reloc_map): Map the corresponding BFD relocs to them.
3038 (frv_reloc_type_lookup): ... and back to BFD relocs.
3039 * reloc.c: New relocs.
3040 * bfd-in2.h, libbfd.h: Rebuilt.
3041 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
3042 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
3043 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
3044 R_FRV_FUNCDESC_GOTLO): New.
3045 (frv_reloc_map): Map the corresponding BFD relocs to them.
3046 (frv_reloc_type_lookup): ... and back to BFD relocs.
3047 * reloc.c: New relocs.
3048 * bfd-in2.h, libbfd.h: Rebuilt.
3050 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3052 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
3053 targets to support pages of up to 64kB.
3054 (elf32_bed): Redefine to get a separate backend data structure for
3055 traditional targets.
3056 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
3057 targets to support pages of up to 64kB.
3058 (elf64_bed): Redefine to get a separate backend data structure for
3059 traditional targets.
3060 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
3061 targets to support pages of up to 64kB.
3062 (elf32_bed): Redefine to get a separate backend data structure for
3063 traditional targets.
3065 2004-01-04 Mark Kettenis <kettenis@gnu.org>
3067 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
3069 2004-01-02 Mark Kettenis <kettenis@gnu.org>
3071 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
3072 (elf_i386_grok_psinfo): Likewise.
3074 2004-01-02 Bernardo Innocenti <bernie@develer.com>
3076 * config.bfd: Add m68k-uClinux target.
3078 2004-01-01 Grant Edwards <grante@visi.com>
3080 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
3081 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
3082 (elf32_h8_gc_sweep_hook): New function.
3083 (elf_backend_gc_mark_hook): Define.
3084 (elf_backend_gc_sweep_hook): Define.
3085 (elf_backend_can_gc_sections): Define.
3087 For older changes see ChangeLog-0203
3093 version-control: never