1 2005-08-12 Dmitry Diky <diwil@spec.ru>
3 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust relocations
4 referenced by .section + DISPLACEMENT.
6 2005-08-10 James E. Wilson <wilson@specifix.com>
8 * dwarf2.c (scan_unit_for_symbols, case DT_AT_location): Verify that
9 DW_OP_addr is only opcode in location before using it.
11 2005-08-09 H.J. Lu <hongjiu.lu@intel.com>
13 * elfxx-ia64.c (elfNN_ia64_final_link): Reset gp.
15 2005-08-09 Rodney Brown <rbrown@bravurasolutions.com.au>
16 Nick Clifton <nickc@redhat.com>
18 * aix5ppc-core.c (xcoff64_core_p): Constify return_value
19 variable. Also, do not use core_hdr macro as it evaluates to a
20 cast of an lvalue which is no longer supported by GCC 4.0.
22 2005-08-08 Eric Dönges <Eric.Doenges@betty-tv.com>
24 * archures.c (bfd_mach_msp21): New MSP430 machine number.
25 * bfd-in2.h: Regenerate.
26 * cpu-msp430.c (arch_info_struct): Add support for msp430x21xx
29 2005-08-07 Nick Clifton <nickc@redhat.com>
30 Paul Brook <paul@codesourcery.com>
33 * elf32-arm.c (bfd_elf32_close_and_cleanup): Define.
34 (elf32_arm_close_and_cleanup): New function - walk over the
35 sections in the bfd that is being closed removing them from the
36 list of recorded sections.
37 (unrecord_section_via_map_over_sections): New helper function.
38 (record_section_with_arm_elf_section_data): Call bfd_malloc
39 instead of bfd_alloc. Remove unneeded abfd parameter.
40 (elf32_arm_new_section_hook): Do not pass bfd to
41 record_section_with_arm_elf_section_data.
43 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Only define if not
44 already defined by the target.
46 2005-08-05 Fred Fish <fnf@specifix.com>
48 * dwarf2.c (read_rangelist): Use addr_size instead of offset_size
49 to determine how many bytes to read from each rangelist entry.
51 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
53 * bfd.c (bfd_hide_symbol): New.
54 * bfd-in2.h: Regenerated.
56 2005-08-04 H.J. Lu <hongjiu.lu@intel.com>
58 * elf64-x86-64.c (elf64_x86_64_merge_symbol): When mixing a
59 large common symbol and a normal common symbol, always turn
60 the large common symbol into a normal one.
62 2005-08-04 Alan Modra <amodra@bigpond.net.au>
64 * elf32-ppc.c (struct elf_linker_section): Replace sym_val field
66 (ppc_elf_relocate_section): Adjust for above.
67 (create_sdata_sym): New function.
68 (ppc_elf_create_linker_section): Call it.
69 (ppc_elf_check_relocs): Correct has_sda_refs and non_got_refs.
70 Create sdata syms for all SDA relocs.
71 (ppc_elf_adjust_dynamic_symbol): Don't special case _SDA_BASE_
73 (ppc_elf_set_sdata_syms): Delete.
74 * elflink.c (bfd_elf_size_dynamic_sections): Don't create DT_INIT
75 and DT_FINI tags unless associated section has input.
76 (bfd_elf_set_symbol, _bfd_elf_provide_symbol): Delete.
77 (_bfd_elf_provide_section_bound_symbols): Delete.
78 * bfd-in.h (_bfd_elf_provide_symbol): Delete.
79 (_bfd_elf_provide_section_bound_symbols): Delete.
80 * bfd-in2.h: Regenerate.
82 2005-08-04 Alan Modra <amodra@bigpond.net.au>
84 * elflink.c (fix_syms, _bfd_elf_fix_excluded_sec_syms): Move to..
85 * linker.c (fix_syms, _bfd_fix_excluded_sec_syms): ..here.
86 * bfd-in.h (_bfd_fix_excluded_sec_syms): Rename.
87 * bfd-in2.h: Regenerate.
89 2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
91 * elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got
92 only if it isn't NULL.
94 2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
96 * elf32-i386.c (elf_howto_table): Undo the overflow change for
97 R_386_PC16 made on 2005-07-18.
99 * elf64-x86-64.c (x86_64_elf_howto_table): Undo the overflow
100 change for R_X86_64_PC16 made on 2005-07-18.
102 2005-08-03 Alan Modra <amodra@bigpond.net.au>
104 * elf32-ppc.c (struct ppc_elf_link_hash_table): Remove hgot. Use
105 elf.hgot throughout file.
107 2005-08-03 Alan Modra <amodra@bigpond.net.au>
109 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Correct value of
110 _GLOBAL_OFFSET_TABLE_ for > 32k GOT.
112 2005-08-02 Andreas Schwab <schwab@suse.de>
114 * elfxx-ia64.c (struct elfNN_ia64_allocate_data): Add only_got.
115 (elfNN_ia64_relax_section): Reallocate .rela.got when .got has
117 (allocate_dynrel_entries): Look only at GOT relocations when
119 (elfNN_ia64_size_dynamic_sections): Set only_got to false before
120 calling allocate_dynrel_entries.
122 2005-08-02 Nick Clifton <nickc@redhat.com>
125 * elf32-arm.c (struct _arm_elf_section_data): Turn into a typedef
126 and make the mapcount field unsigned.
127 (struct section_list): New: Used to keep track of which sections
128 have an _arm_elf_section_data structure.
129 (record_section_with_arm_elf_section_data): New function.
130 (get_arm_elf_section_data): New function.
131 (unrecord_section_with_arm_elf_section_data): New function.
132 (elf32_arm_output_symbol_hook): Use get_arm_elf_section_data.
133 (elf32_arm_new_section_hook): Call
134 record_section_with_arm_elf_section_data.
135 (elf32_arm_write_section): Use get_arm_elf_section_data and
136 unrecord_section_with_arm_elf_section_data.
138 2005-08-01 Richard Sandiford <richard@codesourcery.com>
140 * elfxx-mips.c (mips_mach_extends_p): Treat MIPS64 as an extension
141 of MIPS32 and MIPS64r2 as an extension of MIPS32r2.
143 2005-07-30 David Daney <ddaney@avtrex.com>
145 * elflink.c (elf_gc_sweep): Set dynsymcount to correct value.
147 2005-07-29 David Daney <ddaney@avtrex.com>
149 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Ignore _gp_disp
150 if it is in the *ABS* section.
152 2005-07-29 Paul Brook <paul@codesourcery.com>
154 * reloc.c: Add BFD_RELOC_ARM_T32_ADD_PC12.
155 * bfd-in2.h: Regenerate.
156 * libbfd.h: Regenerate.
158 2005-07-29 Paul Brook <paul@codesourcery.com>
160 * reloc.c (BFD_RELOC_ARM_T32_IMM12): Add.
161 * bfd-in2.h: Regeenrate.
162 * libbfd.h: Regenerate.
164 2005-07-29 Pavel Kankovsky <peak@argo.troja.mff.cuni.cz>
166 * peXXigen.c (pe_print_edata): Compute the size of the export
167 table from the size field in the DataDictionary and not the size
168 of the section. Some linkers embed the export table inside a
171 2005-07-29 Alan Modra <amodra@bigpond.net.au>
173 * elf-bfd.h (struct elf_backend_data): Add action_discarded.
174 (enum action_discarded): Move from..
175 * elflink.c (enum action_discarded): ..here.
176 (_bfd_elf_default_action_discarded): Rename from elf_action_discarded.
177 Remove target specific section checks.
178 (elf_link_input_bfd): Adjust.
179 * elfxx-target.h (elf_backend_action_discarded): Define.
180 (elfNN_bed): Init new field.
181 * bfd-in.h (_bfd_elf_default_action_discarded): Declare.
182 * bfd-in2.h: Regenerate.
183 * elf-hppa.h (elf_hppa_action_discarded): New function.
184 * elf32-hppa.c (elf_backend_action_discarded): Define.
185 * elf64-hppa.c (elf_backend_action_discarded): Define.
186 * elf32-ppc.c (ppc_elf_action_discarded): New function.
187 (elf_backend_action_discarded): Define.
189 2005-07-27 Alan Modra <amodra@bigpond.net.au>
191 * elflink.c (fix_syms): Handle symbols defined in input sections.
193 2005-07-27 Jan Beulich <jbeulich@novell.com>
195 * elf64-x86-64.c (R_X86_64_standard, R_X86_64_vt_offset): New.
196 (elf64_x86_64_info_to_howto): Use them.
198 2005-07-27 Alan Modra <amodra@bigpond.net.au>
200 * elflink.c (_bfd_elf_merge_symbol): Skip weak redefinition
201 regardless of strength of previous definition.
203 2005-07-26 Alan Modra <amodra@bigpond.net.au>
205 * elflink.c (elf_gc_mark_dynamic_ref_symbol): Handle -shared.
206 (bfd_elf_gc_sections): Allow -gc-sections when -shared.
207 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Correct for -shared.
209 2005-07-26 Alan Modra <amodra@bigpond.net.au>
211 * elflink.c (elf_gc_sweep): Move gcc_except_table code..
212 (bfd_elf_gc_sections): ..to here.
214 2005-07-25 DJ Delorie <dj@redhat.com>
216 * reloc.c: Remove unused M32C relocs, add BFD_RELOC_M32C_HI8.
217 * libbfd.h: Regenerate.
218 * bfd-in2.h: Regenerate.
220 * elf32-m32c.c (m32c_elf_howto_table): Add R_M32C_8, R_M32C_LO16,
221 R_M32C_HI8, R_M32C_HI16.
222 (m32c_reloc_map): Likewise.
223 (m32c_elf_relocate_section): Add R_M32C_HI8 and R_M32C_HI16.
225 2005-07-25 Jan Hubicka <jh@suse.cz>
226 H.J. Lu <hongjiu.lu@intel.com>
228 * elf-bfd.h (_bfd_elf_large_com_section): New.
229 * elf.c (_bfd_elf_large_com_section): New. Defined.
231 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): New.
232 (elf64_x86_64_elf_section_from_bfd_section): New.
233 (elf64_x86_64_symbol_processing): New.
234 (elf64_x86_64_common_definition): New.
235 (elf64_x86_64_common_section_index): New.
236 (elf64_x86_64_common_section): New.
237 (elf64_x86_64_merge_symbol): New.
238 (elf64_x86_64_additional_program_headers): New.
239 (elf64_x86_64_special_sections): New.
240 (elf_backend_section_from_bfd_section): New. Defined.
241 (elf_backend_add_symbol_hook): Likewise.
242 (elf_backend_common_section_index): Likewise.
243 (elf_backend_common_section): Likewise.
244 (elf_backend_common_definition): Likewise.
245 (elf_backend_merge_symbol): Likewise.
246 (elf_backend_special_sections): Likewise.
247 (elf_backend_additional_program_headers): Likewise.
249 2005-07-25 H.J. Lu <hongjiu.lu@intel.com>
251 * elf-bfd.h (elf_backend_data): Add common_definition,
252 common_section_index, common_section, and merge_symbol.
253 (_bfd_elf_common_definition): New.
254 (_bfd_elf_common_section_index): New.
255 (_bfd_elf_common_section): New.
257 * elf.c (elf_fake_sections): Don't clear sh_flags.
259 * elflink.c (_bfd_elf_merge_symbol): Call backend merge_symbol
261 (is_global_data_symbol_definition): Call backend
262 common_definition instead of checking SHN_COMMON.
263 (elf_link_add_object_symbols): Likewise.
264 (elf_link_output_extsym): Call backend common_section_index
265 for common section index.
266 (_bfd_elf_common_definition): New.
267 (_bfd_elf_common_section_index): New.
268 (_bfd_elf_common_section): New.
270 * elfxx-target.h (elf_backend_common_definition): New.
271 (elf_backend_common_section_index): New.
272 (elf_backend_common_section): New.
273 (elf_backend_merge_symbol): New.
274 (elfNN_bed): Initialize common_definition, common_section_index,
275 common_section, and merge_symbol.
277 * section.c (BFD_FAKE_SECTION): New.
278 (STD_SECTION): Use it.
279 * bfd-in2.h: Regenerated.
281 2005-07-23 Olaf Hering <olh@suse.de>
283 * elflink.c (elf_link_input_bfd): Add '\n' for linker einfo
286 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
288 * config.bfd: Remove i[3-7]86-*-rtemself*.
289 Remove sparc-*-rtemself*.
291 2005-07-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
293 * elf32-m32r.c (m32r_elf_check_relocs): Fix pc count for
296 2005-07-21 Ben Elliston <bje@gnu.org>
298 * Makefile.am (BFD32_BACKENDS): Remove cf-m68klynx.lo.
299 (BFD32_BACKENDS): Likewise, remove m68klynx.lo.
300 (BFD32_BACKENDS_CFILES): Remove cf-m68klynx.c, m68klynx.c.
301 (cf-m68klynx.lo, m68klynx.lo): Remove targets.
302 * Makefile.in: Regenerate.
303 * cf-m68klynx.c: Remove.
304 * m68klynx.c: Likewise.
305 * configure.in (m68klynx_aout_vec): Remove vector.
306 (m68klynx_coff_vec): Likewise.
307 * configure: Regenerate.
308 * targets.c (m68klynx_aout_vec): Remove extern.
309 (m68klynx_coff_vec): Likewise.
310 (_bfd_target_vector): Remove m68klynx_{aout,coff}_vec.
311 * po/SRC-POTFILES.in: Remove cf-m68klynx.c, m68klynx.c.
313 2005-07-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
315 * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_REL32.
316 (m32r_reloc_map): Likewise.
317 (m32r_elf_relocate_section): Likewise.
318 (m32r_elf_gc_sweep_hook): Likewise.
319 (m32r_elf_check_relocs): Likewise.
321 2005-07-18 Nick Clifton <nickc@redhat.com>
323 * reloc.c: Add M32C and MS1 relocs.
324 * bfd-in2.h: Regenerate.
325 * libbfd.h: Regenerate.
327 2005-07-18 Nick Clifton <nickc@redhat.com>
329 * config.bfd: Move m32c entry to correct location.
330 * archures.c: Likewise.
331 * configure.in: Likewise.
332 * configure: Regenerate.
333 * targets.c: Move ms1 vector to correct location.
335 2005-07-18 Jan Beulich <jbeulich@novell.com>
337 * elf32-i386.c (elf_howto_table): Adjust overflow complaint handler
339 * elf64-x86-64.c (x86_64_elf_howto_table): Adjust overflow complaint
340 handler for R_X86_64_PC16, R_X86_64_8, and R_X86_64_DTPOFF.
342 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
346 * elflink.c (elf_link_add_object_symbols): Also append the version
347 name to non-hidden absolute symbols that are functions.
349 2005-07-16 Alan Modra <amodra@bigpond.net.au>
351 * elf32-ppc.c (ppc_elf_set_sdata_syms): Return void. Remove hack
352 for zero size sections. Don't set .sbss syms here.
353 * elf32-ppc.h (ppc_elf_set_sdata_syms): Adjust prototype.
355 2005-07-16 Alan Modra <amodra@bigpond.net.au>
357 * Makefile.am: Run "make dep-am".
358 * Makefile.in: Regenerate.
360 2005-07-15 Bob Wilson <bob.wilson@acm.org>
362 * elf32-xtensa.c (vsprint_msg): Add prototype.
363 (build_encoding_error_message): Delete. Code moved into....
364 (elf_xtensa_do_reloc): ....here, and changed to give better
365 error messages for out of range literals.
367 2005-07-15 Alan Modra <amodra@bigpond.net.au>
369 * elflink.c (bfd_elf_record_link_assignment): Remove output_bfd param.
370 (_bfd_elf_provide_symbol): Allow redefinition of weak syms and those
371 defined in output sections. Call bfd_elf_record_link_assignment.
372 * bfd-in.h (bfd_elf_record_link_assignment): Update prototype.
373 * bfd-in2.h: Regenerate.
375 2005-07-14 Jim Blandy <jimb@redhat.com>
377 Add support for m32c-*-elf (Renesas m32c and m16c).
378 * Makefile.am (ALL_MACHINES): Add cpu-m32c.lo.
379 (ALL_MACHINES_CFILES): Add cpu-m32c.c.
380 (BFD32_BACKENDS): Add elf32-m32c.lo.
381 (BFD32_BACKENDS_CFILES): Add elf32-m32c.c.
382 (cpu-m32c.lo, elf32-m32c.lo): New rules, generated by 'make dep-am'.
383 * Makefile.in: Regenerated.
384 * archures.c (bfd_arch_m32c, bfd_mach_m16c, bfd_mach_m32c): New
386 (bfd_m32c_arch): New arch info object.
387 (bfd_archures_list): List bfd_m32c_arch.
388 * bfd-in2.h: Regenerated.
389 * config.bfd: Add case for the m32c.
390 * configure.in: Add case for the m32c.
391 * configure: Regenerated.
392 * cpu-m32c.c, elf32-m32c.c: New files.
393 * libbfd.h: Regenerated.
394 * targets.c (bfd_elf32_m32c_vec): Declare.
395 (_bfd_target_vector): List bfd_elf32_m32c_vec.
397 2005-07-14 Alan Modra <amodra@bigpond.net.au>
399 * bfd-in.h (_bfd_elf_fix_excluded_sec_syms): Declare.
400 (_bfd_elf_provide_section_bound_symbols): Remove param name.
402 * bfd-in2.h: Regenerate.
403 * elflink.c (bfd_elf_gc_sections): Don't call generic function.
404 (_bfd_elf_provide_symbol): Formatting.
405 (_bfd_elf_provide_section_bound_symbols): Remove all hacks, just
406 create section relative syms.
407 (fix_syms, _bfd_elf_fix_excluded_sec_syms): New functions.
408 * elf32-ppc.c (ppc_elf_set_sdata_syms): Use
409 _bfd_elf_provide_section_bound_symbols.
410 * reloc.c (bfd_mark_used_section): Delete.
411 (bfd_generic_gc_sections): Don't call the above.
413 2005-07-14 Paul Woegerer <paul.woegerer@nsc.com>
416 * cache.c (bfd_last_cache): Initialise to NULL.
418 2005-07-14 Daniel Marques <marques@cs.cornell.edu>
419 Nick Clifton <nickc@redhat.com>
421 * coff-alpha.c (alpha_ecoff_bad_format_hook): Detect compressed
422 Alpha binaries and issue a helpful error message.
423 (alpha_ecoff_swap_reloc_out): Increase maximum allowed internal
424 symbol index to 15 to allow for binaries produced by DEC
427 2005-07-13 Steve Ellcey <sje@cup.hp.com>
429 * bfd.m4 (BFD_NEED_DECLARATION): Remove.
431 2005-07-12 Alan Modra <amodra@bigpond.net.au>
433 * elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub
436 2005-07-12 Alan Modra <amodra@bigpond.net.au>
438 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Warning fix.
440 2005-07-12 Alan Modra <amodra@bigpond.net.au>
442 * elf32-ppc.c (ppc_elf_set_sdata_syms): Correct __sbss_start value.
444 2005-07-11 H.J. Lu <hongjiu.lu@intel.com>
446 * elflink.c (_bfd_elf_symbol_refs_local_p): Revert the last
449 2005-07-08 Paul Koning <pkoning@equallogic.com>
451 * dwarf2.c (read_address): Check sign_extend_vma to handle targets
452 where addresses are sign extended.
454 2005-07-08 Ralf Corsepius <ralf.corsepius@rtems.org>
456 * config.bfd: Mark i960-*-rtems*, or32-*-rtems* as obsolete.
457 Mark a29k-*rtems*, hppa*-*-rtems*, *-go32-rtems*,
458 i[3-7]86*-*-rtemscoff*, mips*el-*-rtems*, powerpcle-*-rtems*,
459 sparc*-*-rtemsaout* as removed
461 2005-07-08 Alan Modra <amodra@bigpond.net.au>
463 * elf-hppa.h (elf_hppa_final_link): Use gp val of zero when none
464 of the usual sections are found.
465 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Tidy.
466 Strip .dynbss if it is zero size.
467 * elf32-arm.c (elf32_arm_size_dynamic_sections): Likewise.
468 * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
469 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
470 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise, and
472 (i370_elf_finish_dynamic_sections): Don't attempt to write .got
473 when it is zero size.
474 * elf32-i386.c (elf_i386_size_dynamic_sections): Correct handling
475 of .dynbss and zero size sections.
476 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Strip .dynbss if
478 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Tidy. Strip
479 .dynbss if zero size.
480 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise, .dynsbss
482 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
483 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
484 * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
485 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Tidy. Strip
486 .plt.* and .got.plt.* if zero size.
487 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Tidy. Strip
488 .got* and .dynbss if zero size.
489 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Tidy. Strip
490 * elf64-ppc.c (create_linkage_sections): Create branch lookup table
491 in .data.rel.ro.brlt or .rodata.brlt, and similarly for associated
493 (create_got_section): Always create new .got and .rela.got sections.
494 (ppc64_elf_size_dynamic_sections): Tidy. Strip .dynbss if zero size.
495 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
496 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
497 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Handle
498 dynamic bss sections correctly.
499 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Tidy.
500 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Tidy. Strip
501 .dynbss if zero size.
503 2005-07-08 Ben Elliston <bje@au.ibm.com>
505 * elf32-xtensa.c: Include <stdarg.h> unconditionally, not only
506 when ANSI_PROTOTYPES is defined. Remove #ifdef logic.
508 2005-07-07 H.J. Lu <hongjiu.lu@intel.com>
510 * elf-bfd.h (elf_backend_data): Add special_sections.
512 * elf.c (_bfd_elf_get_sec_type_attr): Check special_sections
515 * elf32-arm.c (elf_backend_get_sec_type_attr): Removed.
516 (elf_backend_special_sections): New. Defined.
517 * elf32-m32r.c: Likewise.
518 * elf32-m68hc11.c: Likewise.
519 * elf32-m68hc12.c: Likewise.
520 * elf32-mcore.c: Likewise.
521 * elf32-sh64.c: Likewise.
522 * elf32-v850.c: Likewise.
523 * elf32-xtensa.c: Likewise.
524 * elf64-alpha.c: Likewise.
525 * elf64-hppa.c: Likewise.
526 * elf64-ppc.c: Likewise.
527 * elf64-sh64.c: Likewise.
528 * elfxx-ia64.c: Likewise.
529 * elfxx-mips.c: Likewise.
530 * elfxx-mips.h: Likewise.
532 * elfxx-target.h (elf_backend_special_sections): New.
533 (elfNN_bed): Initialize special_sections.
535 2005-07-07 Bob Wilson <bob.wilson@acm.org>
537 * xtensa-modules.c: Update tables with Xtensa MMU features.
539 2005-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
541 * elf32-xtensa.c (vsprint_msg): Add format attribute. Fix
543 * vms.h (_bfd_vms_debug): Add format attribute.
544 (_bfd_vms_debug, _bfd_hexdump): Fix typos.
546 2005-07-07 H.J. Lu <hongjiu.lu@intel.com>
549 * elflink.c (_bfd_elf_symbol_refs_local_p): Only undefined
550 symbol with default visibility is local.
552 2005-07-07 Ben Elliston <bje@gnu.org>
554 * config.bfd: Mark m68*-*-rtemscoff as obsolete.
556 2005-07-06 H.J. Lu <hongjiu.lu@intel.com>
558 * dwarf2.c (varinfo): Add addr.
559 (lookup_symbol_in_variable_table): Also check addr.
560 (scan_unit_for_symbols): Set addr for variable.
561 (comp_unit_find_line): Updated.
563 2005-07-06 Nick Clifton <nickc@redhat.com>
565 * coff-alpha.c (alpha_adjust_reloc_in): Issue an informative error
566 message if an unknown reloc is encountered.
567 (alpha_relocate_section): Likewise.
569 * ecoff.c (_bfd_ecoff_write_object_contents): Cope with a reloc
570 with a missing howto field.
572 2005-07-06 Alan Modra <amodra@bigpond.net.au>
574 * po/SRC-POTFILES.in: Add cpu-ms1.c, elf32-ms1.c, elf-vxworks.c,
577 2005-07-05 Paul Brook <paul@codesourcery.com>
579 * elf32-ppc.c (ppc_elf_vxworks_special_sections): Remove.
580 (ppc_elf_vxworks_get_sec_type_attr): New function.
581 (elf_backend_special_sections): Remove vxwords definition.
582 (elf_backend_get_sec_type_attr): Define for vxworks.
584 2005-07-05 Nick Clifton <nickc@redhat.com>
586 * elf64-ppc.c (ppc64_elf_info_to_howto): Fix typo.
588 2005-07-05 Paul Brook <paul@codesourcery.com>
590 * config.bfd: Add separate case for ppc-vxworks.
591 * configure: Regenerate.
592 * configure.in: Include elf-vxworks.lo on ppc targets.
593 * elf-vxworks.c (elf_vxworks_final_write_processing): Handle
595 * elf32-ppc.c: Add VxWorks target vec. Include elf-vxworks.h.
596 (PLT_ENTRY_SIZE, PLT_INITIAL_ENTRY_SIZE, PLT_SLOT_SIZE): Remove.
597 (VXWORKS_PLT_ENTRY_SIZE, ppc_elf_vxworks_plt_entry,
598 ppc_elf_vxworks_pic_plt_entry, VXWORKS_PLT_INITIAL_ENTRY_SIZE,
599 ppc_elf_vxworks_plt0_entry, ppc_elf_vxworks_pic_plt0_entry,
600 VXWORKS_PLT_NON_JMP_SLOT_RELOCS, VXWORKS_PLTRESOLVE_RELOCS,
601 VXWORKS_PLTRESOLVE_RELOCS_SHLIB): New.
602 (ppc_elf_link_hash_table): Add srelplt2, sgotplt, hgot, hplt,
603 is_vxworks, plt_entry_size, plt_slot_size, plt_initial_entry_size.
604 (ppc_elf_link_hash_table_create): Initialize hadtab plt fields.
605 (ppc_elf_create_got): Create .got.plt for VxWorks.
606 (ppc_elf_create_dynamic_sections): Create unloaded plt relocation
608 (ppc_elf_select_plt_layout): Handle VxWorks plt format.
609 (allocate_got): VxWorks does not need a got header.
610 (allocate_dynrelocs): Handle VxWorks plt format.
611 (ppc_elf_size_dynamic_sections): Save _G_O_T_ and _P_L_T_ symbols for
612 VxWorks. Handle VxWorks plt/got.
613 (ppc_elf_finish_dynamic_sections): Fill in VxWorks plt.
614 (ppc_elf_vxworks_special_sections): New.
615 (ppc_elf_vxworks_link_hash_table_create,
616 ppc_elf_vxworks_add_symbol_hook,
617 elf_i386_vxworks_link_output_symbol_hook,
618 ppc_elf_vxworks_final_write_processing): New functions.
619 * targets.c (bfd_elf32_powerpc_vxworks_vec): Declare.
620 (_bfd_target_vector): Use it.
622 2005-07-05 Jakub Jelinek <jakub@redhat.com>
624 * libbfd-in.h (struct artdata): Add extended_names_size field.
626 * coff-rs600.c (_bfd_xcoff_archive_p): Don't clear fields in freshly
627 allocated object by bfd_zalloc.
628 * coff64-rs6000.c (xcoff64_archive_p): Likewise.
629 * ecoff.c (_bfd_ecoff_archive_p): Likewise.
630 * archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p): Likewise.
631 (get_extended_arelt_filename): Fail if index is bigger or equal to
633 (_bfd_generic_read_ar_hdr_mag): Don't set bfd_error_malformed_archive,
634 get_extended_arelt_filename already did that.
635 (_bfd_slurp_extended_name_table): Initialize extended_names_size field.
636 Allocate one extra byte and clear it, in case extended names table
639 * libbfd-in.h (bfd_malloc2, bfd_realloc2, bfd_zmalloc2, bfd_alloc2,
640 bfd_zalloc2): New prototypes.
641 * bfd-in.h (HALF_BFD_SIZE_TYPE): Define.
642 * libbfd.c (bfd_malloc2, bfd_realloc2, bfd_zmalloc2): New functions.
643 * opncls.c (bfd_alloc2, bfd_zalloc2): New functions.
644 * elf.c (bfd_elf_get_elf_syms, setup_group, assign_section_numbers,
645 elf_map_symbols, map_sections_to_segments,
646 assign_file_positions_for_segments, copy_private_bfd_data,
647 swap_out_syms, _bfd_elf_slurp_version_tables): Use bfd_*alloc2
649 * bfd-in2.h: Rebuilt.
652 * elf.c (_bfd_elf_print_private_bfd_data): Don't crash on bogus
653 verdef or verneed section.
654 (_bfd_elf_slurp_version_tables): Handle corrupt verdef and/or
655 verneed sections gracefully.
656 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto_ptr): Don't crash on
657 bogus relocation values.
658 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
659 * elf64-s390.c (elf_s390_info_to_howto): Likewise.
660 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
661 * elf64-x86-64.c (elf64_x86_64_info_to_howto): Likewise.
662 * elfxx-ia64.c (lookup_howto): Likewise.
664 * elf.c (bfd_elf_get_str_section): Allocate an extra byte after
665 the end of strtab and clear it.
668 2005-07-05 Nick Clifton <nickc@redhat.com>
670 * po/vi.po: New Vietnamese translation.
671 * configure.in (ALL_LINGUAS): Add vi.
672 * configure: Regenerate.
674 2005-07-05 Peter S. Mazinger <ps.m@gmx.net>
676 * elf32-arm.c (elf32_arm_size_dynamic_sections): Fix a typo and
677 touchup logic like i386/ppc.
679 2005-07-05 Alan Modra <amodra@bigpond.net.au>
681 * elf.c (special_sections): Move const qualifier.
682 (special_sections_b..special_sections_t): Likewise.
683 * elf32-arm.c (elf32_arm_symbian_get_sec_type_attr): Remove duplicate
685 (elf32_arm_symbian_special_sections): Move const qualifier.
686 * elf32-m32r.c: Similarly.
687 * elf32-m68hc11.c: Similarly.
688 * elf32-m68hc12.c: Similarly.
689 * elf32-mcore.c: Similarly.
690 * elf32-ppc.c: Similarly.
691 * elf32-sh64.c: Similarly.
692 * elf32-v850.c: Similarly.
693 * elf32-xtensa.c: Similarly.
694 * elf64-alpha.c: Similarly.
695 * elf64-hppa.c: Similarly.
696 * elf64-ppc.c: Similarly.
697 * elf64-sh64.c: Similarly.
698 * elfxx-ia64.c: Similarly.
699 * elfxx-mips.c: Similarly.
701 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
703 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Use
704 info->executable instead of !info->shared where appropriate.
706 2005-07-04 Alan Modra <amodra@bigpond.net.au>
709 * elf.c (assign_file_positions_for_segments): Remove excluded
710 sections from the segment map.
712 2005-07-04 Alan Modra <amodra@bigpond.net.au>
715 * elf-bfd.h (struct elf_backend_data): Add get_sec_type_attr. Delete
717 (_bfd_elf_get_special_section): Declare.
718 (bfd_elf_special_section): Update prototype.
719 * elf.c (special_sections): Remove unused outer entries.
720 (get_special_section): Delete.
721 (_bfd_elf_get_special_section): New function.
722 (_bfd_elf_get_sec_type_attr): Replace "name" arg with "sec". Update
723 special_sections indexing.
724 (_bfd_elf_new_section_hook): Call backend get_sec_type_attr.
725 * elf32-arm.c (symbian_special_sections_d): Delete.
726 (symbian_special_sections_g, symbian_special_sections_h): Delete.
727 (symbian_special_sections_i, symbian_special_sections_f): Delete.
728 (symbian_special_sections_p): Delete.
729 (elf32_arm_symbian_special_sections): Merge above to here.
730 (elf32_arm_symbian_get_sec_type_attr): New function.
731 (elf_backend_special_sections): Don't define.
732 (elf_backend_get_sec_type_attr): Define.
733 * elf32-m32r.c: Similarly to elf32-arm.c.
734 * elf32-m68hc11.c: Likewise.
735 * elf32-m68hc12.c: Likewise.
736 * elf32-mcore.c: Likewise.
737 * elf32-sh64.c: Likewise.
738 * elf32-v850.c: Likewise.
739 * elf32-xtensa.c: Likewise.
740 * elf64-alpha.c: Likewise.
741 * elf64-hppa.c: Likewise.
742 * elf64-ppc.c: Likewise.
743 * elf64-sh64.c: Likewise.
744 * elfxx-ia64.c: Likewise.
745 * elfxx-mips.c: Likewise.
746 * elf32-ppc.c: Likewise.
747 (bfd_elf_special_section ppc_alt_plt): New. Use it if .plt loadable.
748 * elfxx-mips.h (_bfd_mips_elf_get_sec_type_attr): Declare.
749 (_bfd_mips_elf_special_sections, elf_backend_special_sections): Delete.
750 (elf_backend_get_sec_type_attr): Define.
751 * elfxx-target.h (elf_backend_get_sec_type_attr): Define.
752 (elf_backend_special_sections): Don't define.
755 2005-07-01 Nick Clifton <nickc@redhat.com>
757 * cpu-d10v.c: Update to ISO C90 style function declarations and
759 * cpu-d30v.c: Likewsie.
760 * cpu-i370.c: Likewsie.
761 * cpu-xstormy16.c: Likewsie.
762 * elf32-arc.c: Likewsie.
763 * elf32-d10v.c: Likewsie.
764 * elf32-d30v.c: Likewsie.
765 * elf32-dlx.c: Likewsie.
766 * elf32-i370.c: Likewsie.
767 * elf32-i960.c: Likewsie.
768 * elf32-ip2k.c: Likewsie.
769 * elf32-m32r.c: Likewsie.
770 * elf32-mcore.c: Likewsie.
771 * elf32-openrisc.c: Likewsie.
772 * elf32-or32.c: Likewsie.
773 * elf32-pj.c: Likewsie.
774 * elf32-v850.c: Likewsie.
775 * elf32-xstormy16.c: Likewsie.
777 2005-07-01 Alan Modra <amodra@bigpond.net.au>
779 * elf64-alpha.c (elf64_alpha_create_got_section): Always create
781 (elf64_alpha_create_dynamic_sections): Always make new sections
782 by using bfd_make_section_anyway_with_flags. Check that .got not
784 (elf64_alpha_check_relocs): Delete "got_created". Use tdata->gotobj
787 2005-06-30 Alan Modra <amodra@bigpond.net.au>
789 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Ignore dynamic
790 _SDA_BASE_ and _SDA2_BASE_ symbols.
791 * elflink.c (_bfd_elf_provide_symbol): Correct comment. Define
792 sym if not def_regular.
793 (_bfd_elf_provide_section_bound_symbols): Similarly.
795 2005-06-30 Ben Elliston <bje@gnu.org>
797 * config.bfd: Mark as obsolete:
802 2005-06-29 Alan Modra <amodra@bigpond.net.au>
804 * elflink.c (_bfd_elf_gc_mark): Mark sections referenced by
805 .eh_frame specially..
806 (bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame.
807 Don't recheck sections we have already marked.
808 (elf_gc_sweep): Keep non-code sections referenced from .eh_frame.
809 * section.c (struct bfd_section): Add gc_mark_from_eh.
810 (STD_SECTION): Adjust.
811 * ecoff.c (bfd_debug_section): Adjust.
812 * bfd-in2.h: Regenerate.
814 2005-06-29 Alan Modra <amodra@bigpond.net.au>
816 * elflink.c (elf_gc_sweep): Do not refcount on sections that have
817 not been processed by check_relocs.
819 2005-06-29 Paul Brook <paul@codesourcery.com>
821 * bfd-in.h (_bfd_elf_provide_symbol): Update prototype.
822 * bfd-in2.h: Regenerate.
823 * elf32-ppc.c (ppc_elf_set_sdata_syms): Make sdata symbols section
825 * elflink.c (bfd_elf_set_symbol): Add section argument.
826 (_bfd_elf_provide_symbol): Ditto.
827 (_bfd_elf_provide_section_bound_symbols): Pass NULL section argument.
829 2005-06-27 Carlos O'Donell <carlos@systemhalted.org>
831 * bfd/elf32-hppa.c (struct elf32_hppa_stub_hash_entry):
833 (struct elf32_hppa_link_hash_entry): Use eh, and hsh_cache.
834 (struct elf32_hppa_dyn_reloc_entry): Use hdh_next.
835 (struct elf32_hppa_link_hash_table): Use etab and bstab.
836 (stub_hash_newfunc): Use hh.
837 (hppa_link_hash_newfunc): Use hsh_cache.
838 (elf32_hppa_link_hash_table_create): Use etab, and bstab.
839 (elf32_hppa_link_hash_table_free): Use bstab.
840 (hppa_stub_name): Use eh.
841 (hppa_get_stub_entry): Use hh, hsh_entry, and hsh_cache.
842 (hppa_add_stub): Use bstab.
843 (hppa_type_of_stub): Use eh.
844 (hppa_build_one_stub): Use hh and bh_root.
845 (elf32_hppa_copy_indirect_symbol): Use hdh_next.
846 (elf32_hppa_check_relocs): Use eh, etab, and hdh_next.
847 (elf32_hppa_gc_sweep_hook): Use hdh_next.
848 (elf32_hppa_adjust_dynamic_symbol): Use hdh_next, and etab.
849 (allocate_plt_static): Use etab.
850 (allocate_dynrelocs): Use etab, and hdh_next.
851 (readonly_dynrelocs): Use hdh_next.
852 (elf32_hppa_size_dynamic_sections): Use etab, and hdh_next.
853 (get_local_syms): Use eh, bstab, and hh.
854 (elf32_hppa_size_stubs): Use eh, bstab, and hh.
855 (elf32_hppa_set_gp): Use etab.
856 (elf32_hppa_build_stubs): Use bstab.
857 (final_link_relocate): Use eh, bh_root.
858 (elf32_hppa_relocate_section): Use elf, etab.
859 (elf32_hppa_finish_dynamic_sections): Use etab.
861 2005-06-27 H.J. Lu <hongjiu.lu@intel.com>
863 * elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): Remove
866 2005-06-21 Carlos O'Donell <carlos@systemhalted.org>
868 * bfd/elf32-hppa.c (hppa_elf_hash_entry): Define.
869 (hppa_stub_hash_entry): Define.
870 (stub_hash_newfunc): Rename variables.
871 (hppa_link_hash_newfunc): Likewise.
872 (elf32_hppa_link_hash_table_free): Likewise.
873 (hppa_stub_name): Likewise.
874 (hppa_get_stub_entry): Likewise.
875 (hppa_add_stub): Likewise.
876 (hppa_type_of_stub): Likewise.
877 (hppa_build_one_stub): Likewise.
878 (hppa_size_one_stub): Likewise.
879 (elf32_hppa_create_dynamic_sections): Likewise.
880 (elf32_hppa_copy_indirect_symbol): Likewise.
881 (elf32_hppa_check_relocs): Likewise.
882 (elf32_hppa_gc_mark_hook): Likewise.
883 (elf32_hppa_gc_sweep_hook): Likewise.
884 (elf32_hppa_grok_psinfo): Likewise.
885 (elf32_hppa_hide_symbol): Likewise.
886 (elf32_hppa_adjust_dynamic_symbol): Likewise.
887 (allocate_dynrelocs): Likewise.
888 (clobber_millicode_symbols): Likewise.
889 (readonly_dynrelocs): Likewise.
890 (elf32_hppa_size_dynamic_sections): Likewise.
891 (get_local_syms): Likewise.
892 (elf32_hppa_size_stubs): Likewise.
893 (hppa_record_segment_addr): Likewise.
894 (final_link_relocate): Likewise.
895 (elf32_hppa_relocate_section): Likewise.
896 (elf32_hppa_finish_dynamic_symbol): Likewise.
898 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
901 * elf-m10300.c (mn10300_elf_check_relocs): Handle indirect
903 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
904 * elf32-avr.c (elf32_avr_check_relocs): Likewise.
905 * elf32-cris.c (cris_elf_check_relocs): Likewise.
906 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
907 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
908 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
909 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
910 * elf32-i370.c (i370_elf_check_relocs): Likewise.
911 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
912 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
913 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
914 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
915 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
916 * elf32-ms1.c (ms1_elf_check_relocs): Likewise.
917 * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
918 * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
919 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
920 * elf32-s390.c (elf_s390_check_relocs): Likewise.
921 * elf32-sh.c (sh_elf_check_relocs): Likewise.
922 * elf32-v850.c (v850_elf_check_relocs): Likewise.
923 * elf32-vax.c (elf_vax_check_relocs): Likewise.
924 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
925 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
926 * elf64-s390.c (elf_s390_check_relocs): Likewise.
927 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
928 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
929 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
931 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
934 * elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect
937 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
940 * elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol.
941 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
943 2005-06-18 H.J. Lu <hongjiu.lu@intel.com>
945 * reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and
946 BFD_RELOC_X86_64_GOTPC32.
947 * bfd-in2.h: Regenerated.
949 2005-06-17 Jakub Jelinek <jakub@redhat.com>
951 * elf.c (bfd_section_from_shdr): Kill bogus warning.
953 * elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for
954 symbol, relocation, group or versym sections.
956 * coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs
958 * peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address
959 doesn't point into the section.
961 2005-06-17 Jan Beulich <jbeulich@novell.com>
963 * bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64
964 and BFD_RELOC_X86_64_GOTPC32.
965 * libbfd.h (bfd_reloc_code_real_names): Likewise.
966 * elf64-x86-64.c (x86_64_elf_howto_table): Add entries for
967 R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
968 (x86_64_reloc_map): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64,
969 and R_X86_64_GOTPC32.
970 (elf64_x86_64_info_to_howto): Adjust bounding relocation type.
971 (elf64_x86_64_check_relocs): Also handle R_X86_64_PC64,
972 R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
973 (elf64_x86_64_relocate_section): Likewise.
974 (elf64_x86_64_gc_sweep_hook): Also handle R_X86_64_PC64.
976 2005-06-15 Mark Kettenis <kettenis@gnu.org>
978 * archive.c: Include "libiberty.h".
980 2005-06-15 Nick Clifton <nickc@redhat.com>
982 * elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries
983 produced by the GreenHills toolchain can be assimilated.
985 2005-06-14 Steve Ellcey <sje@cup.hp.com>
987 * som.c (som_find_inliner_info): New.
989 2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
991 * elflink.c (_bfd_elf_merge_symbol): Fix a typo in comment.
993 2005-06-14 Jakub Jelinek <jakub@redhat.com>
995 * elf.c (bfd_section_from_shdr): Fail if name is NULL.
996 Prevent endless recursion on broken objects.
998 * archive.c (do_slurp_coff_armap): Check for overflows.
1000 2005-06-10 Daniel Jacobowitz <dan@codesourcery.com>
1002 * elfcode.h (elf_write_relocs): Do nothing if there are no
1005 2005-06-10 Alan Modra <amodra@bigpond.net.au>
1007 * dwarf2.c (decode_line_info): Revert last change. Instead set
1008 initial low_pc to -1 to avoid need to test whether loc_pc has
1011 2005-06-09 Christopher Faylor <cgf@timesys.com>
1013 * coffcode.h (sec_to_styp_flags): Set appropriate section flags when
1014 either SEC_ALLOC OR SEC_LOAD.
1016 2005-06-09 Christopher Faylor <cgf@timesys.com>
1018 * coffcode.h (sec_to_styp_flags): Remove read/write flags from noload
1019 section header. Do not add STYP_NOLOAD since it does not appear to be
1022 2005-06-09 H.J. Lu <hongjiu.lu@intel.com>
1025 * dwarf2.c (lookup_address_in_line_info_table): Restore code
1026 handling NULL function info, removed with 2005-04-03 change.
1028 2005-06-08 Mark Mitchell <mark@codesourcery.com>
1030 * opncls.c (bfd_fopen): Mark returned BFD as cacheable if FD == -1.
1032 2005-06-09 Alan Modra <amodra@bigpond.net.au>
1034 * elflink.c (elf_mark_used_section): Delete.
1035 (bfd_elf_gc_sections): Call bfd_generic_gc_sections.
1036 * reloc.c (bfd_mark_used_section): New function.
1037 (bfd_generic_gc_sections): Call bfd_mark_used_section.
1039 2005-06-08 Alan Modra <amodra@bigpond.net.au>
1041 * opncls.c (bfd_fopen): Don't set bfd_error unconditionally.
1042 (bfd_fdopenr): Same.
1044 2005-06-07 Mark Mitchell <mark@codesourcery.com>
1046 * opncls.c (bfd_fdopenr): Add missing break statements.
1048 2005-06-07 Mark Mitchell <mark@codesourcery.com>
1050 * opncls.c (bfd_fopen): New API.
1051 (bfd_openr): Use it.
1052 (bfd_fdopenr): Likewise.
1053 * bfd-in2.h: Regenerated.
1055 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
1056 Michael Snyder <msnyder@redhat.com>
1057 Stan Cox <scox@redhat.com>
1059 * Makefile.am (ALL_MACHINES): Add ms1 support.
1060 (ALL_MACHINES_CFILES): Same.
1061 (BFD32_BACKENDS): Same.
1062 (BFD32_BACKENDS_CFILES): Same.
1064 * Makefile.in: Regenerate.
1066 * archures.c (bfd_architecture): Add ms1 entries.
1067 Externalize bfd_ms1_arch.
1068 (bfd_archures_list): Add bfd_ms1_arch.
1070 * bfd-in2.h: Regenerate.
1072 * cpu-ms1.c: New file.
1074 * elf32-ms1.c: New file.
1076 * targets.c: Define extern of bfd_elf32_ms1_vec.
1077 Add bfd_elf32_ms1_vec to _bfd_target_vector.
1079 * configure.in: Add bfd_elf32_ms1_vec case.
1081 * configure: Regenerate.
1083 * config.bfd: Add ms1-*-elf to table.
1085 2005-06-07 Zack Weinberg <zack@codesourcery.com>
1087 * coff-i386.c: Change md_apply_fix3 to md_apply_fix in comment.
1089 2005-06-07 Alan Modra <amodra@bigpond.net.au>
1091 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Init _bfd_find_line.
1092 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
1094 2005-06-06 H.J. Lu <hongjiu.lu@intel.com>
1097 * bfd.c (bfd_find_line): New.
1099 * dwarf2.c (comp_unit): Add variable_table.
1100 (funcinfo): Add file, line, and sec.
1102 (lookup_symbol_in_function_table): New.
1103 (lookup_symbol_in_variable_table): New.
1104 (scan_unit_for_functions): Renamed to ...
1105 (scan_unit_for_symbols): This. Handle DW_TAG_entry_point and
1107 (comp_unit_find_nearest_line): Updated.
1108 (comp_unit_find_line): New.
1109 (_bfd_dwarf2_find_line): New.
1111 * elf-bfd.h (_bfd_elf_find_line): New.
1112 (_bfd_generic_find_line): New. Defined.
1114 * elf.c (_bfd_elf_find_line): New.
1116 * libbfd-in.h (_bfd_dwarf2_find_line): New.
1117 (_bfd_generic_find_line): New.
1119 * bfd-in2.h: Regenerated.
1120 * libbfd.h: Likewise.
1122 * libbfd.c (_bfd_generic_find_line): New.
1124 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize _bfd_find_line
1125 with _bfd_generic_find_line.
1126 (bfd_target): Add _bfd_find_line.
1128 2005-06-06 H.J. Lu <hongjiu.lu@intel.com>
1130 * dwarf2.c (decode_line_info): Properly set low_pc.
1132 2005-06-06 Alan Modra <amodra@bigpond.net.au>
1134 * elf64-pcc.c (ppc64_elf_gc_mark_hook): For the local sym in .opd
1135 case, include addend when indexing .opd section map.
1136 (ppc64_elf_edit_opd): Add no_opd_opt param. Do nothing besides
1137 clear opd_adjust array if no_opd_opt set. Tidy code.
1138 Ignore zero size .opd. Check bfd_alloc return value.
1139 (ppc_stub_name): Return immediately on bfd_malloc fail.
1140 * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
1142 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
1144 * dwarf2.c (comp_unit): Fix a typo in comment.
1146 2005-06-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1148 * elf32-vax.c (rtype_to_howto): Remove PARAMS.
1149 (reloc_type_lookup): Dito.
1150 (elf_vax_discard_copies): Dito.
1151 (elf_vax_instantiate_got_entries): Dito.
1152 (elf_vax_link_hash_traverse): Dito.
1153 (elf_vax_link_hash_newfunc): Dito.
1154 (elf_vax_link_hash_table_create): Dito.
1155 (elf32_vax_set_private_flags): Dito.
1156 (elf32_vax_merge_private_bfd_data): Dito.
1157 (elf32_vax_print_private_bfd_data): Dito.
1158 (elf_vax_check_relocs): Dito.
1159 (elf_vax_gc_mark_hook): Dito.
1160 (elf_vax_gc_sweep_hook): Dito.
1161 (elf_vax_size_dynamic_sections): Dito.
1162 (elf_vax_discard_copies): Dito.
1163 (elf_vax_instantiate_got_entries): Dito.
1164 (elf_vax_relocate_section): Dito.
1165 (elf_vax_finish_dynamic_symbol): Dito.
1166 (elf_vax_finish_dynamic_sections): Dito.
1167 (elf_vax_hash_table): Break-up of line isn't needed.
1168 (elf_vax_check_relocs): Remove leading whitespace
1169 (elf_vax_relocate_section): Remove redundant whitespace
1170 (elf_vax_link_hash_newfunc): Don't cast NULL.
1171 (elf_vax_link_hash_table_create): Dito.
1172 * cpu-vax.c (bfd_vax_arch) Remove a trailing space.
1174 2005-06-03 Alan Modra <amodra@bigpond.net.au>
1177 * configure.in: Bump version
1178 * configure: Regenerate.
1179 * elflink.c (elf_link_input_bfd): Use einfo linker callback to print
1180 discarded section sym refs and kill linker output.
1181 * simple.c (simple_dummy_einfo): New function.
1182 (bfd_simple_get_relocated_section_contents): Init callbacks.einfo.
1184 * elf32-i386.c (elf_i386_relocate_section): Handle zero symndx
1185 for all reloc types.
1187 2005-06-02 Alan Modra <amodra@bigpond.net.au>
1189 * elf64-ppc.c (add_symbol_adjust): Set sym visibility to most
1190 restrictive of func code and func descr for undefined syms as well
1193 2005-05-31 Jim Blandy <jimb@redhat.com>
1195 * Makefile.am: Regenerate dependencies with 'make dep-am'.
1196 * Makefile.in: Regenerate.
1198 2005-05-31 Richard Henderson <rth@redhat.com>
1200 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_JSRDIRECT): New.
1201 (ALPHA_ELF_LINK_HASH_TLS_IE): Renumber to 0x80.
1202 (ALPHA_ELF_LINK_HASH_LU_PLT): Rename from ALPHA_ELF_LINK_HASH_LU_FUNC.
1203 (elf64_alpha_want_plt): Update to match.
1204 (elf64_alpha_check_relocs): Collect JSRDIRECT in gotent_flags.
1205 (elf64_alpha_relax_with_lituse): Likewise. Handle JSRDIRECT.
1207 2005-05-31 Zack Weinberg <zack@codesourcery.com>
1209 * elf32-arm.c (elf32_arm_reloc_type_lookup)
1210 (elf32_arm_nabi_grok_prstatus, elf32_arm_nabi_grok_psinfo):
1211 Use ISO C90 function declaration style.
1213 2005-05-31 James E Wilson <wilson@specifixinc.com>
1215 * elfcode.h (NAME(bfd_elf,bfd_from_remote_memory)): Check for program
1216 header PF_R flag on PT_LOAD segments.
1218 2005-05-30 Richard Henderson <rth@redhat.com>
1220 * elf64-alpha.c (elf64_alpha_relocate_section): Use dtp_base for
1221 the zero index relocs produced by elf64_alpha_relax_tls_get_addr.
1223 2005-05-29 Richard Henderson <rth@redhat.com>
1225 * configure.in (--enable-secureplt): New.
1226 * elf64-alpha.c (INSN_LDA, INSN_LDAH, INSN_LDQ, INSN_BR): New.
1227 (INSN_SUBQ, INSN_S4SUBQ, INSN_JMP): New.
1228 (INSN_A, INSN_AB, INSN_ABC, INSN_ABO, INSN_AD): New.
1229 (elf64_alpha_use_secureplt): New.
1230 (OLD_PLT_HEADER_SIZE, OLD_PLT_ENTRY_SIZE): New.
1231 (NEW_PLT_HEADER_SIZE, NEW_PLT_ENTRY_SIZE): New.
1232 (PLT_HEADER_SIZE, PLT_ENTRY_SIZE): Conditionalize on secureplt.
1233 (ALPHA_ELF_LINK_HASH_PLT_LOC): Remove.
1234 (struct alpha_elf_link_hash_entry): Add plt_offset.
1235 (PLT_HEADER_WORD1, PLT_HEADER_WORD2, PLT_HEADER_WORD3): Remove.
1236 (PLT_HEADER_WORD4, PLT_ENTRY_WORD1, PLT_ENTRY_WORD2): Remove.
1237 (PLT_ENTRY_WORD3): Remove.
1238 (elf64_alpha_create_dynamic_sections): If secureplt, set SEC_READONLY
1239 on .plt and create .got.plt.
1240 (elf64_alpha_output_extsym): Remove .plt frobbing for symbol values.
1241 (get_got_entry): Initialize plt_offset.
1242 (elf64_alpha_want_plt): New.
1243 (elf64_alpha_check_relocs): Use it.
1244 (elf64_alpha_adjust_dynamic_symbol): Likewise. Don't allocate
1246 (elf64_alpha_calc_got_offsets_for_symbol): Don't report internal
1247 error as user error.
1248 (elf64_alpha_size_plt_section_1): Allocate one plt entry per
1250 (elf64_alpha_size_plt_section): Size .got.plt section.
1251 (elf64_alpha_size_rela_got_1): Don't allocate relocations if
1253 (elf64_alpha_size_dynamic_sections): Call elf64_alpha_size_plt_section.
1254 Add PLTRO DYNAMIC entry.
1255 (elf64_alpha_finish_dynamic_symbol): Generate secureplt format.
1256 (elf64_alpha_finish_dynamic_sections): Likewise.
1258 2005-05-28 David Daney <ddaney@avtrex.com>
1260 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Move
1261 calculation of DT_RELSZ to occur after all dynamic relocations
1264 2005-05-28 Eli Zaretskii <eliz@gnu.org>
1266 * configure.in: Add snprintf and vsnprintf to AC_CHECK_DECLS.
1267 * config.in, configure: Regenerate.
1269 2005-05-26 Mark Kettenis <kettenis@gnu.org>
1270 Maciej W. Rozycki <macro@linux-mips.org>
1272 * elfxx-mips.c (_bfd_mips_elf_section_processing): Warn and
1273 stop processing of options if one of invalid size is
1275 (_bfd_mips_elf_section_from_shdr): Likewise.
1276 (_bfd_mips_elf_fake_sections): Reset the type of empty special
1279 2005-05-26 Richard Henderson <rth@redhat.com>
1281 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Remove
1282 plt_old_section, plt_old_value.
1283 (elf64_alpha_adjust_dynamic_symbol): Don't set it.
1284 (elf64_alpha_size_plt_section_1): Don't use it.
1286 2005-05-26 Jakub Jelinek <jakub@redhat.com>
1288 * elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and
1289 first shdr has sh_size == 0. Fail if e_shnum is large to cause
1290 arithmetic overflow when allocating the i_shdr array.
1291 Sanity check sh_link and sh_info fields. Fix e_shstrndx sanity check.
1293 2005-05-25 Richard Henderson <rth@redhat.com>
1295 * elf64-alpha.c: Update all function definitions to ISO C. Remove
1296 all function prototypes; rearrange functions into def-use order.
1298 2005-05-25 Richard Henderson <rth@redhat.com>
1300 * elf64-alpha.c (elf64_alpha_merge_gots): Fix gotent iteration
1301 in the presence of deleting elements.
1302 (elf64_alpha_size_got_sections): Zero dead got section size.
1304 2005-05-23 Fred Fish <fnf@specifixinc.com>
1306 * dwarf2.c (struct dwarf2_debug): Add inliner_chain member.
1307 (struct funcinfo): Add caller_func, caller_file, caller_line.
1308 tag, and nesting_level members.
1309 (lookup_address_in_function_table): Change first passed parameter
1310 from "struct funcinfo *" to "struct comp_unit *".
1311 (lookup_address_in_function_table): Dereference unit to find function
1313 (lookup_address_in_function_table): Traverse the function list to
1314 create a chain of inlined functions back to the first non inlined
1316 (scan_unit_for_functions): Remember tag and nesting level. Handle
1317 DW_AT_call_file and DW_AT_call_line.
1318 (comp_unit_find_nearest_line): Adjust lookup_address_in_function_table
1319 call to pass unit pointer instead of function table pointer. For
1320 inlined functions, save pointer to the inliner chain.
1321 (_bfd_dwarf2_find_nearest_line): Initialize inliner_chain to NULL.
1322 (_bfd_dwarf2_find_inliner_info): New function that returns information
1323 from the inliner chain after a call to bfd_find_nearest_line.
1325 * bfd.c (bfd_find_inliner_info): Define using BFD_SEND.
1326 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Add entry for
1327 NAME##_find_inliner_info.
1328 (bfd_target): Add _bfd_find_inliner_info.
1329 * bfd-in2.h: Regenerate.
1331 * libbfd-in.h (_bfd_nosymbols_find_inliner_info): Define as
1332 macro that always returns bfd_false.
1333 (_bfd_dwarf2_find_inliner_info): Declare.
1334 * libbfd.h: Regenerate.
1336 * elf32-arm.c (elf32_arm_find_inliner_info): New function
1337 that calls _bfd_dwarf2_find_inliner_info.
1338 (bfd_elf32_find_inliner_info): Define to elf32_arm_find_inliner_info.
1340 * elfxx-mips.c (_bfd_mips_elf_find_inliner_info): New function
1341 that calls _bfd_dwarf2_find_inliner_info.
1342 * elfxx-mips.h (_bfd_mips_elf_find_inliner_info): Declare.
1343 * elfn32-mips.c (bfd_elf32_find_inliner_info): Define to
1344 _bfd_mips_elf_find_inliner_info.
1345 * elf64-mips.c (bfd_elf64_find_inliner_info): Ditto.
1346 * elf32-mips.c (bfd_elf32_find_inliner_info): Ditto.
1348 * elf.c (_bfd_elf_find_inliner_info): New function that calls
1349 _bfd_dwarf2_find_inliner_info.
1350 * elf-bfd.h (_bfd_elf_find_inliner_info): Declare.
1351 * elfxx-target.h (bfd_elfNN_find_inliner_info): Define to
1352 _bfd_elf_find_inliner_info.
1354 * coffgen.c (coff_find_inliner_info): New function that
1355 calls _bfd_dwarf2_find_inliner_info.
1356 * libcoff-in.h (coff_find_inliner_info): Declare.
1357 * libcoff.h: Regenerate.
1358 * coff-rs6000.c (rs6000coff_vec): Add coff_find_inliner_info.
1359 (pmac_xcoff_vec) Ditto.
1360 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
1361 (aix5coff64_vec): Ditto.
1363 * aout-target.h (MY_find_inliner_info): Define as
1364 _bfd_nosymbols_find_inliner_info.
1365 * aout-tic30.c (MY_find_inliner_info): Ditto.
1366 * binary.c (binary_find_inliner_info): Ditto.
1367 * i386msdos.c (msdos_find_inliner_info): Ditto.
1368 * ihex.c (ihex_find_inliner_info): Ditto.
1369 * libaout.h (aout_32_find_inliner_info): Ditto.
1370 * libecoff.h (_bfd_ecoff_find_inliner_info): Ditto.
1371 * mach-o.c (bfd_mach_o_find_inliner_info): Ditto.
1372 * mmo.c (mmo_find_inliner_info): Ditto.
1373 * nlm-target.h (nlm_find_inliner_info): Ditto.
1374 * pef.c (bfd_pef_find_inliner_info): Ditto.
1375 * ppcboot.c (ppcboot_find_inliner_info): Ditto.
1376 * srec.c (srec_find_inliner_info): Ditto.
1377 * tekhex.c (tekhex_find_inliner_info): Ditto.
1378 * versados.c (versados_find_inliner_info): Ditto.
1379 * xsym.c (bfd_sym_find_inliner_info): Ditto.
1381 * ieee.c (ieee_find_inliner_info): New function that always
1383 * oasys.c (oasys_find_inliner_info): Ditto.
1384 * vms.c (vms_find_inliner_info): Ditto.
1386 2005-05-24 Alan Modra <amodra@bigpond.net.au>
1388 * elf32-ppc.c (ppc_elf_check_relocs): For old gcc -fPIC code
1389 force old plt layout.
1391 2005-05-22 Richard Henderson <rth@redhat.com>
1393 * elf64-alpha.c (elf64_alpha_relax_section): Ignore non-allocated
1395 (elf64_alpha_check_relocs): Likewise.
1396 (elf64_alpha_relocate_section): Don't emit dynamic relocations to
1397 non-allocated sections.
1399 2005-05-22 Richard Henderson <rth@redhat.com>
1401 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr to
1402 undefweak to use zero register. Call elf64_alpha_relax_got_load
1403 if not all uses removed.
1404 (elf64_alpha_relax_got_load): Relax undefweak to lda zero.
1405 (elf64_alpha_relax_section): Handle undefweak symbols.
1406 (elf64_alpha_calc_dynrel_sizes): Don't add relocs for undefweak.
1407 (elf64_alpha_size_rela_got_1): Likewise.
1408 (elf64_alpha_relocate_section): Likewise.
1410 2005-05-22 Richard Henderson <rth@redhat.com>
1412 * elf64-alpha.c (elf64_alpha_relax_section): Only operate
1413 on SEC_CODE sections.
1415 2005-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1417 * som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to
1419 (som_write_space_strings): Change type of tmp_space and p to char *.
1420 (som_write_symbol_strings): Likewise. Also change type of comp to
1422 (som_begin_writing): Change type of strings_size to unsigned int.
1423 (som_finish_writing): Likewise.
1424 (som_slurp_reloc_table): Change type of external_relocs to unsigned
1426 * som.h (struct som_section_data_struct): Change type of reloc_stream
1427 field to unsigned char *.
1429 2005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
1431 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
1432 copy relocations for VxWorks.
1434 2005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
1436 * bfd/elf32-ppc.c (struct ppc_elf_link_hash_entry): Add new field
1438 (ppc_elf_copy_indirect_symbol): Copy has_sda_refs.
1439 (ppc_elf_check_relocs): Set has_sda_refs.
1440 (ppc_elf_adjust_dynamic_symbol): Check has_sda_refs before eliminating
1441 copy relocations. Use has_sda_refs to place variables in .sbss.
1442 (ppc_elf_finish_dynamic_symbol): Use has_sda_refs to place variables in
1445 2005-05-20 Bob Wilson <bob.wilson@acm.org>
1447 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
1448 xtensa_default_isa is initialized.
1450 2005-05-20 Alan Modra <amodra@bigpond.net.au>
1452 * elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned
1453 for second and subsequent list entries. Only allocate multiple
1454 glink stubs when shared or pie.
1455 (ppc_elf_finish_dynamic_symbol): Break out early when only one
1456 glink stub is needed.
1458 2005-05-19 Zack Weinberg <zack@codesourcery.com>
1460 * Makefile.am: Have 'all' depend on 'info'.
1461 * Makefile.in: Regenerate.
1463 2005-05-19 Alan Modra <amodra@bigpond.net.au>
1465 * elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and
1466 init_offset. Add init_got_refcount, init_plt_refcount,
1467 init_got_offset and init_plt_offset.
1468 * elf.c (_bfd_elf_link_hash_newfunc): Adjust for above change.
1469 (_bfd_elf_link_hash_hide_symbol): Likewise.
1470 (_bfd_elf_link_hash_table_init): Likewise.
1471 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1472 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
1473 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Likewise.
1474 (bfd_elf_size_dynamic_sections): Likewise.
1475 * elf32-ppc.c (GLINK_PLTRESOLVE): Now 16 insns.
1476 (LWZU_0_X_12, LWZ_0_4_30, LWZ_0_X_12, LWZ_11_X_11, LWZ_11_X_30,
1477 LWZ_12_4_12, LWZ_12_8_30, LWZ_12_X_12, SUB_11_11_30): Delete.
1478 (ADDIS_12_12, BCL_20_31, LWZU_0_12, LWZ_0_12, LWZ_11_11, LWZ_11_30,
1479 LWZ_12_12, MFLR_0, MFLR_12, MTLR_0, SUB_11_11_12): Define.
1480 (struct plt_entry): New.
1481 (ppc_elf_link_hash_table_create): Set new init_plt fields.
1482 (ppc_elf_copy_indirect_symbol): Handle merge of plt plist. Don't
1483 use _bfd_elf_link_hash_copy_indirect.
1484 (update_plt_info, find_plt_ent): New functions.
1485 (ppc_elf_check_relocs): Handle R_PPC_PLTREL24 with non-zero addend
1486 and adjust for use of plt list rather than refcount.
1487 (ppc_elf_gc_sweep_hook): Likewise.
1488 (ppc_elf_tls_optimize): Likewise.
1489 (ppc_elf_adjust_dynamic_symbol): Likewise.
1490 (allocate_dynrelocs): Likewise.
1491 (ppc_elf_relax_section): Likewise.
1492 (ppc_elf_relocate_section): Likewise. Adjust R_PPC_PLTREL24 addends
1493 when performing a relocatable link.
1494 (ppc_elf_finish_dynamic_symbol): Likewise. Write .glink stubs here..
1495 (ppc_elf_finish_dynamic_sections): ..rather than here. Use new
1498 2005-05-19 Alan Modra <amodra@bigpond.net.au>
1500 * elf.c (assign_file_positions_for_segments): Use maximum of
1501 maxpagesize and section alignment when adjusting initial
1502 segment offset and section offsets.
1504 2005-05-18 Zack Weinberg <zack@codesourcery.com>
1506 * elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks
1509 2005-05-18 H.J. Lu <hongjiu.lu@intel.com>
1511 * elf.c (group_signature): Undo the last change. Check if the
1512 symbol table section is correct.
1514 2005-05-17 Zack Weinberg <zack@codesourcery.com>
1516 * elf32-arm.c: Wherever possible, use official reloc names
1518 (elf32_arm_howto_table, elf32_arm_tls_gd32_howto)
1519 (elf32_arm_tls_ldo32_howto, elf32_arm_tls_ldm32_howto)
1520 (elf32_arm_tls_le32_howto, elf32_arm_tls_ie32_howto)
1521 (elf32_arm_vtinherit_howto, elf32_arm_vtentry_howto)
1522 (elf32_arm_pc11_howto, elf32_arm_thm_pc9_howto, elf32_arm_got_prel)
1523 (elf32_arm_r_howto): Replace with elf32_arm_howto_table_1,
1524 elf32_arm_howto_table_2, and elf32_arm_howto_table_3.
1525 Add many new relocations from AAELF.
1526 (elf32_arm_howto_from_type): Update to match.
1527 (elf32_arm_reloc_map): Add entries for R_ARM_THM_JUMP24,
1528 R_ARM_THM_JUMP11, R_ARM_THM_JUMP19, R_ARM_THM_JUMP8,
1529 R_ARM_THM_JUMP6, R_ARM_GNU_VTINHERIT, and R_ARM_GNU_VTENTRY.
1530 (elf32_arm_reloc_type_lookup): Use elf32_arm_howto_from_type.
1531 (elf32_arm_final_link_relocate): Add support for
1532 R_ARM_THM_JUMP24, R_ARM_THM_JUMP19, R_ARM_THM_JUMP6. Remove
1533 case entries redundant with default.
1535 * reloc.c: Reorganize ARM relocations. Add Thumb
1536 assembler-internal relocations BFD_RELOC_ARM_T32_OFFSET_U8,
1537 BFD_RELOC_ARM_T32_OFFSET_IMM, BFD_RELOC_ARM_T32_IMMEDIATE.
1538 Add visible relocations BFD_RELOC_THUMB_PCREL_BRANCH7,
1539 BFD_RELOC_THUMB_BRANCH20, BFD_RELOC_THUMB_BRANCH25.
1540 Delete unused relocations BFD_RELOC_ARM_GOT12, BFD_RELOC_ARM_COPY.
1541 * bfd-in2.h, libbfd.h: Regenerate.
1543 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1545 * elf.c (_bfd_elf_write_object_contents): Check for non-NULL
1547 * format.c (bfd_check_format_matches): Set output_has_begun
1549 * section.c (bfd_set_section_contents): Use bfd_write_p. Remove
1550 special case for both_direction.
1552 2005-05-17 Nick Clifton <nickc@redhat.com>
1554 * elf.c (group_signature): Check for a group section which is
1555 actually a (corrupt) symbol table section in disguise and prevent
1556 an infinite loop from occurring.
1558 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
1560 * elfxx-ia64.c (elfNN_ia64_relax_brl): Undo the change made on
1563 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
1565 * elfxx-ia64.c (elfNN_ia64_relax_br): Keep the original
1566 predicate on slot 0 only if slot 0 isn't br.
1568 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
1571 * elf32-i386.c (elf_i386_size_dynamic_sections): Also remove
1572 empty sdynbss section.
1573 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
1575 2005-05-17 Tavis Ormandy <taviso@gentoo.org>
1577 * elf.c (bfd_section_from_shdr): Add sanity check when parsing
1580 2005-05-17 Alan Modra <amodra@bigpond.net.au>
1582 * elf32-ppc.c (LIS_11. LIS_12): Define.
1583 (LWZU_0_X_12, LWZ_0_X_12, LWZ_12_4_12, LWZ_12_X_12): Define.
1584 (ppc_elf_finish_dynamic_sections): Provide non-pic plt call stub
1585 for --data-plt when building non-pie executables.
1587 2005-05-17 Nick Clifton <nickc@redhat.com>
1589 * elf32-arm.c (elf32_arm_final_link_relocate): Gracefully handle
1590 the situation where a symbols's section is not known but a section
1591 relative R_ARM_RELATIVE reloc has to be generated for the Symbian
1594 * elf32-v850.c (v850_elf_relocate_section): Move code to test for
1595 the presence of a symbol table to just before the symbol table is
1598 2005-05-16 H.J. Lu <hongjiu.lu@intel.com>
1601 * elfxx-ia64.c (elfNN_ia64_relax_br): New.
1602 (elfNN_ia64_relax_section): Use it.
1604 2005-05-14 Mark Kettenis <kettenis@gnu.org>
1606 * elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead
1609 2005-05-14 Alan Modra <amodra@bigpond.net.au>
1611 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set DT_PPC_GOT,
1613 (ppc_elf_finish_dynamic_sections): Likewise.
1615 2005-05-13 Fred Fish <fnf@specifixinc.com>
1617 * libbfd-in.h: Fix a comment typo, 'neaderst' -> 'nearest'
1618 * libbfd.h: Rebuilt.
1620 2005-05-13 Bob Wilson <bob.wilson@acm.org>
1622 * elf32-xtensa.c (xtensa_get_property_section_name): Add missing
1623 periods in linkonce_kind values.
1625 2005-05-12 H.J. Lu <hongjiu.lu@intel.com>
1627 * elf32-i386.c (elf_i386_relocate_section): Allow R_386_GOTOFF
1628 against protected function when building executable.
1630 2005-05-12 Alan Modra <amodra@bigpond.net.au>
1632 * elf32-ppc.c (LWZU_0_X_11): Delete.
1633 (B, LWZ_11_X_11, LWZ_11_X_30, MTCTR_11): Define.
1634 (ppc_elf_select_plt_layout): Set .got flags too. Formatting.
1635 (ppc_elf_size_dynamic_sections): Allocate space for .glink branch
1637 (ppc_elf_finish_dynamic_symbol): Point .plt entries into the branch
1639 (ppc_elf_finish_dynamic_sections): Adjust DT_PPC_GLINK value.
1640 Generate .glink branch table and updated stubs.
1642 2005-05-11 Alan Modra <amodra@bigpond.net.au>
1644 * reloc.c (BFD_RELOC_HI16_PCREL): Define.
1645 (BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL): Define.
1646 * elf32-ppc.c (GLINK_PLTRESOLVE, GLINK_ENTRY_SIZE): Define.
1647 (CROR_151515, CROR_313131): Delete.
1648 (ADDIS_11_11, ADDI_11_11, SUB_11_11_30, ADD_0_11_11, ADD_11_0_11,
1649 LWZ_0_4_30, MTCTR_0, LWZ_12_8_30, BCTR, ADDIS_11_30,
1650 LWZU_0_X_11): Define.
1651 (ppc_elf_howto_raw): Add R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI
1652 and R_PPC_REL16_HA entries.
1653 (ppc_elf_reloc_type_lookup): Convert new bfd reloc types.
1654 (ppc_elf_addr16_ha_reloc): Also handle R_PPC_REL16_HA.
1655 (struct ppc_elf_link_hash_table): Add glink, glink_pltresolve,
1656 new_plt, and old_plt.
1657 (ppc_elf_create_dynamic_sections): Create .glink section.
1658 (ppc_elf_check_relocs): Set new_plt and old_plt.
1659 (ppc_elf_select_plt_layout): New function.
1660 (ppc_elf_tls_setup): Set plt output section elf type and flags.
1661 (allocate_got): Handle differences between old and new got layout.
1662 (allocate_dynrelocs): Likewise for plt.
1663 (ppc_elf_size_dynamic_sections): Likewise. Allocate memory for
1664 .glink. Don't allocate memory for old bss .plt. Emit DT_PPC_GLINK.
1665 (ppc_elf_relax_section): Rename ppc_info to htab. Handle .glink
1666 destination of R_PPC_PLTREL24 relocs.
1667 (ppc_elf_relocate_section): Handle new relocs and changed destination
1669 (ppc_elf_finish_dynamic_symbol): Init new style plt and handle
1670 differences in layout.
1671 (ppc_elf_finish_dynamic_sections): Set DT_PPC_GLINK value. Don't
1672 put a blrl in new got. Write glink contents.
1673 * elf32-ppc.h (ppc_elf_select_plt_layout): Declare.
1674 * libbfd.h: Regenerate.
1675 * bfd-in2.h: Regenerate.
1677 2005-05-11 Andreas Schwab <schwab@suse.de>
1679 * elf32-i386.c (elf_i386_finish_dynamic_sections): Fix signedness
1682 2005-05-10 H.J. Lu <hongjiu.lu@intel.com>
1684 * elf.c (_bfd_elf_make_section_from_shdr): Only check debug
1685 section if SEC_ALLOC isn't set.
1687 2005-05-09 Kelley Cook <kcook@gcc.gnu.org>
1689 * configure.in: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
1690 * acinclude.m4: Don't sinclude accross.m4.
1691 * config.in, configure, Makefile.in, doc/Makefile.in: Regenerate.
1693 2005-05-09 Alan Modra <amodra@bigpond.net.au>
1695 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_dotsym.
1696 (ppc64_elf_add_symbol_hook): Set has_dotsym.
1697 (ppc64_elf_check_directives): Only process syms when has_dotsym.
1698 (func_desc_adjust): Hide fake function descriptors when function
1699 code entry is defined.
1700 (adjust_opd_syms): Adjust for deleted_section becoming union field.
1702 2005-05-09 Alan Modra <amodra@bigpond.net.au>
1704 * elfcode.h (elf_object_p): Add more sanity checks on elf header.
1706 2005-05-08 Dave Korn <dave.korn@artimi.com>
1708 * coff-tic80.c: Undefine _CONST after system headers to prevent
1709 clash with tic80-specific definition in include/coff/tic80.h
1711 2005-05-08 H.J. Lu <hongjiu.lu@intel.com>
1714 * elflink.c (elf_link_output_extsym): Use output_bfd if
1715 h->root.u.def.section is bfd_abs_section_ptr when reporting
1718 2005-05-07 H.J. Lu <hongjiu.lu@intel.com>
1720 * elf-bfd.h (elf_backend_data): Update special_sections to
1721 array of pointer to bfd_elf_special_section.
1722 * elf.c (special_sections): Likewise.
1723 * elf32-arm.c (elf32_arm_symbian_special_sections): Likewise.
1724 * elf32-m32r.c (m32r_elf_special_sections): Likewise.
1725 * elf32-m68hc11.c (elf32_m68hc11_special_sections): Likewise.
1726 * elf32-m68hc12.c (elf32_m68hc12_special_sections): Likewise.
1727 * elf32-mcore.c (mcore_elf_special_sections): Likewise.
1728 * elf32-ppc.c (ppc_elf_special_sections): Likewise.
1729 * elf32-sh64.c (sh64_elf_special_sections): Likewise.
1730 * elf32-v850.c (v850_elf_special_sections): Likewise.
1731 * elf32-xtensa.c (elf_xtensa_special_sections): Likewise.
1732 * elf64-alpha.c (elf64_alpha_special_sections): Likewise.
1733 * elf64-hppa.c (elf64_hppa_special_sections): Likewise.
1734 * elf64-ppc.c (ppc64_elf_special_sections): Likewise.
1735 * elf64-sh64.c (sh64_elf64_special_sections): Likewise.
1736 * elfxx-ia64.c (elfNN_ia64_special_sections): Likewise.
1737 * elfxx-mips.c (_bfd_mips_elf_special_sections): Likewise.
1738 * elfxx-mips.h (_bfd_mips_elf_special_sections): Likewise.
1740 * elf.c (get_special_section): Updated.
1742 2005-05-07 Alan Modra <amodra@bigpond.net.au>
1744 * elf-bfd.h (struct elf_backend_data): Remove got_symbol_offset.
1745 * elfxx-target.h (elf_backend_got_symbol_offset): Delete.
1746 * elflink.c (_bfd_elf_create_got_section): Use zero in place of
1748 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
1749 * elf32-frv.c (_frv_create_got_section): Likewise.
1750 * elf32-i370.c (i370_elf_finish_dynamic_sections): Delete ppc code.
1751 (elf_backend_got_symbol_offset): Don't define.
1752 * elf64-ppc.c (elf_backend_got_symbol_offset): Don't define.
1753 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add got_header_size
1755 (ppc_elf_create_got): Tidy.
1756 (ppc_elf_create_dynamic_sections): Don't set SEC_IN_MEMORY for .plt.
1757 (ppc_elf_check_relocs): Reduce string comparisons by using elf.hgot.
1758 (ppc_elf_gc_sweep_hook): Likewise.
1759 (ppc_elf_relocate_section): Likewise.
1760 (ppc_elf_finish_dynamic_symbol): Likewise.
1761 (allocate_got): New function.
1762 (allocate_dynrelocs): Use allocate_got.
1763 (ppc_elf_size_dynamic_sections): Likewise. Delay tlsld_got allocation
1764 so that local got can refcount it. Set got_header_size.
1765 (ppc_elf_relocate_section): Use value of elf.hgot rather than hard-
1767 (ppc_elf_finish_dynamic_sections): Likewise.
1768 (elf_backend_got_symbol_offset): Don't define.
1769 (elf_backend_got_header_size): Ditto.
1771 2005-05-05 Steve Ellcey <sje@cup.hp.com>
1773 * configure.in (ACX_HEADER_STRING): New.
1774 * configure: Regenerate.
1775 * config.in: Regenerate.
1776 * sysdep.h (STRING_WITH_STRINGS): Use.
1778 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1780 * elf.c (_bfd_elf_close_and_cleanup): Only call
1781 _bfd_dwarf2_cleanup_debug_info on bfd_object.
1783 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1785 * elflink.c (_bfd_elf_provide_section_bound_symbols): Use
1786 "__bss_start" instead of "_edata" as fallback.
1788 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1790 * bfd-in2.h: Regenerated.
1792 2005-05-05 Paul Brook <paul@codesourcery.com>
1794 * config.bfd: Use bfd_elf32_i386_vxworks_vec for i?86-*-vxworks.
1795 * configure.in: Add bfd_elf32_i386_vxworks_vec. i386 targets need
1797 * configure: Regenerate.
1798 * Makefile.am (BFD32_BACKENDS): Add elf-vxworks.lo.
1799 (BFD32_BACKENDS_CFILES): Add elf-vxworks.c.
1800 (elf32-i386.lo): Depend on elf-vxworks.h.
1801 (elf-vxworks.lo): New rule.
1802 * Makefile.in: Regenerate.
1803 * elf-bfd.h (elf_backend_data): Update type of
1804 elf_backend_emit_relocs.
1805 (_bfd_elf_link_output_relocs): Update prototype.
1806 * elflink.c (_bfd_elf_link_output_relocs): Always use
1807 bed->elf_backend_emit_relocs when outputting relocations.
1808 * elfxx-target.h (elf_backend_emit_relocs): Default to
1809 _bfd_elf_link_output_relocs.
1810 * targets.c (bfd_elf32_i386_vxworks_vec): Declare.
1811 (_bfd_target_vector): Add bfd_elf32_i386_vxworks_vec.
1812 * elf32-i386.c: Add elf32-i386-vxworks target BFD.
1813 (elf_i386_plt0_entry): Remove padding.
1814 (elf_i386_pic_plt0_entry): Ditto.
1815 (PLTRESOLVE_RELOCS_SHLIB, PLTRESOLVE_RELOCS): Define.
1816 (PLT_NON_JUMP_SLOT_RELOCS): Define.
1817 (elf_i386_link_hash_table): Add srelplt2, hgot, hplt, is_vxworks and
1818 plt0_pad_byte fields.
1819 (elf_i386_link_hash_table_create): Zero them.
1820 (elf_i386_create_dynamic_sections): Create static relocation section.
1821 (allocate_dynrelocs): Allocate space for static PLT relocations.
1822 (elf_i386_size_dynamic_sections): Save shortcuts to PLT and GOT
1823 symbols. Give PLT symbols function type. Don't strip PLT sections
1824 if we have exported symbols from them.
1825 (elf_i386_finish_dynamic_symbol): Fill in VxWorks PLT static
1826 relocation section. Don't mark _GLOBAL_OFFSET_TABLE_ as absolute on
1828 (elf_i386_finish_dynamic_sections): Allow different pad bytes.
1829 Add relocation for GOT location. Fill in PLT static relocations.
1830 (elf_i386_vxworks_link_hash_table_create): New function.
1831 (elf_i386_vxworks_link_output_symbol_hook): New function.
1832 * elf-vxworks.h: New file.
1834 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1836 * section.c (bfd_make_section_anyway_with_flags): New.
1837 (bfd_make_section_anyway): Call bfd_make_section_anyway_with_flags,
1838 (bfd_make_section_with_flags): New.
1839 (bfd_make_section): Call bfd_make_section_with_flags.
1841 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Call
1842 bfd_make_section_with_flags/bfd_make_section_anyway_with_flags
1843 instead of bfd_make_section/bfd_make_section and don't call
1844 bfd_set_section_flags.
1845 (mn10300_elf_check_relocs): Likewise.
1846 (_bfd_mn10300_elf_create_dynamic_sections): Likewise.
1847 * elf32-arm.c (create_got_section): Likewise.
1848 (bfd_elf32_arm_add_glue_sections_to_bfd): Likewise.
1849 (elf32_arm_check_relocs): Likewise.
1850 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1851 * elf32-frv.c (elf32_frv_add_symbol_hook): Likewise.
1852 (_frv_create_got_section): Likewise.
1853 (elf32_frvfdpic_create_dynamic_sections): Likewise.
1854 * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise.
1855 (elf32_hppa_check_relocs): Likewise.
1856 * elf32-i370.c (i370_elf_create_dynamic_sections): Likewise.
1857 (i370_elf_check_relocs): Likewise.
1858 * elf32-i386.c (create_got_section): Likewise.
1859 (elf_i386_check_relocs): Likewise.
1860 * elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise.
1861 (create_got_section): Likewise.
1862 (m32r_elf_create_dynamic_sections): Likewise.
1863 (m32r_elf_check_relocs): Likewise.
1864 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1865 * elf32-ppc.c (ppc_elf_create_got): Likewise.
1866 (ppc_elf_create_dynamic_sections): Likewise.
1867 (ppc_elf_add_symbol_hook): Likewise.
1868 (ppc_elf_check_relocs): Likewise.
1869 * elf32-s390.c (create_got_section): Likewise.
1870 (elf_s390_check_relocs): Likewise.
1871 * elf32-sh.c (create_got_section): Likewise.
1872 (sh_elf_create_dynamic_sections): Likewise.
1873 (sh_elf_check_relocs): Likewise.
1874 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1875 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1876 * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise.
1877 (add_extra_plt_sections): Likewise.
1878 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1879 (elf64_alpha_create_got_section): Likewise.
1880 (elf64_alpha_create_dynamic_sections): Likewise.
1881 (elf64_alpha_check_relocs): Likewise.
1882 * elf64-hppa.c (get_reloc_section): Likewise.
1883 (get_opd): Likewise.
1884 (get_plt): Likewise.
1885 (get_dlt): Likewise.
1886 (get_stub): Likewise.
1887 (elf64_hppa_create_dynamic_sectionso): Likewise.
1888 * elf64-mmix.c (mmix_elf_check_common_relocs): Likewise.
1889 * elf64-ppc.c (create_linkage_sections): Likewise.
1890 (ppc64_elf_check_relocs): Likewise.
1891 * elf64-s390.c (create_got_section): Likewise.
1892 (elf_s390_check_relocs): Likewise.
1893 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
1894 (sh64_elf64_create_dynamic_sections): Likewise.
1895 * elf64-x86-64.c (create_got_section): Likewise.
1896 (elf64_x86_64_check_relocs): Likewise.
1897 * elflink.c (_bfd_elf_create_got_section): Likewise.
1898 (_bfd_elf_link_create_dynamic_sections): Likewise.
1899 (elf_link_add_object_symbols): Likewise.
1900 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1901 (elfNN_ia64_create_dynamic_sections): Likewise.
1902 (get_fptr): Likewise.
1903 (get_pltoff): Likewise.
1904 (get_reloc_section): Likewise.
1905 (elfNN_ia64_object_p): Likewise.
1906 * elfxx-mips.c (mips_elf_rel_dyn_section): Likewise.
1907 (mips_elf_create_compact_rel_section): Likewise.
1908 (mips_elf_create_got_section): Likewise.
1909 (_bfd_mips_elf_create_dynamic_sections): Likewise.
1910 * elfxx-sparc.c (create_got_section): Likewise.
1911 (_bfd_sparc_elf_check_relocs): Likewise.
1913 * elf.c (_bfd_elf_new_section_hook): Call _bfd_elf_get_sec_type_attr
1914 on linker created sections.
1916 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1919 * elflink.c (_bfd_elf_link_assign_sym_version): Allow version
1920 script on executable.
1922 2005-05-05 John Levon <levon@movementarian.org>
1924 * dwarf2.c (read_abbrevs): If bfd_realloc fails, free currently
1925 allocated memory before returning.
1926 (decode_line_info): Likewise.
1927 (_bfd_dwarf2_cleanup_debug_info): New function: Frees memory
1928 allocated by functions in this file.
1929 * elf-bfd.h (_bfd_dwarf2_cleanup_debug_info): Prototype.
1930 * elf.c (_bfd_elf_close_and_cleanup): Call
1931 _bfd_dwarf2_cleanup_debug_info.
1933 2005-05-05 Hans-Peter Nilsson <hp@axis.com>
1935 * Makefile.am (INCLUDES): Don't -D_GNU_SOURCE here.
1936 * configure.in: Call AC_GNU_SOURCE here, after AC_PROG_CC.
1937 * configure, config.in, Makefile.in: Regenerate.
1938 * sysdep.h (stpcpy): Revert last change.
1940 2005-05-05 Hans-Peter Nilsson <hp@axis.com>
1942 * sysdep.h (stpcpy): Wrap declaration in parentheses.
1944 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1946 * elfxx-ia64.c (ARCH_SIZE): New.
1947 (LOG_SECTION_ALIGN): Likewise.
1948 (elfNN_ia64_create_dynamic_sections): Use LOG_SECTION_ALIGN to
1949 align relocation sections.
1950 (get_fptr): Likewise.
1951 (get_reloc_section): Likewise.
1952 (elfNN_ia64_tprel_base): Likewise.
1953 (elfNN_ia64_check_relocs): Support 32bit relocations.
1954 (allocate_global_fptr_got): Likewise.
1955 (allocate_dynrel_entries): Likewise.
1956 (set_got_entry): Likewise.
1957 (set_pltoff_entry): Likewise.
1958 (elfNN_ia64_relocate_section): Likewise.
1960 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1962 * configure.in: Add AC_CHECK_DECLS(stpcpy).
1963 * configure: Regenerate.
1964 * config.in: Likewise.
1966 * sysdep.h (stpcpy): New.
1968 2005-05-04 Nick Clifton <nickc@redhat.com>
1970 * Update the address and phone number of the FSF organization in
1971 the GPL notices in the following files:
1972 aix386-core.c, aix5ppc-core.c, aout-adobe.c, aout-arm.c,
1973 aout-cris.c, aout-ns32k.c, aout-sparcle.c, aout-target.h,
1974 aout-tic30.c, aout0.c, aout32.c, aout64.c, aoutf1.h, aoutx.h,
1975 archive.c, archive64.c, archures.c, armnetbsd.c, bfd-in.h,
1976 bfd-in2.h, bfd.c, bfdio.c, bfdwin.c, binary.c, bout.c, cache.c,
1977 cf-i386lynx.c, cf-m68klynx.c, cf-sparclynx.c, cisco-core.c,
1978 coff-a29k.c, coff-alpha.c, coff-apollo.c, coff-arm.c, coff-aux.c,
1979 coff-go32.c, coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i860.c,
1980 coff-i960.c, coff-ia64.c, coff-m68k.c, coff-m88k.c, coff-maxq.c,
1981 coff-mcore.c, coff-mips.c, coff-or32.c, coff-pmac.c, coff-ppc.c,
1982 coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c,
1983 coff-svm68k.c, coff-tic30.c, coff-tic4x.c, coff-tic54x.c,
1984 coff-tic80.c, coff-u68k.c, coff-w65.c, coff-we32k.c, coff-z8k.c,
1985 coff64-rs6000.c, coffcode.h, coffgen.c, cofflink.c, coffswap.h,
1986 corefile.c, cpu-a29k.c, cpu-alpha.c, cpu-arc.c, cpu-arm.c,
1987 cpu-avr.c, cpu-cr16c.c, cpu-cris.c, cpu-crx.c, cpu-d10v.c,
1988 cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, cpu-h8300.c,
1989 cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, cpu-i860.c,
1990 cpu-i960.c, cpu-ia64-opc.c, cpu-ia64.c, cpu-ip2k.c, cpu-iq2000.c,
1991 cpu-m10200.c, cpu-m10300.c, cpu-m32r.c, cpu-m68hc11.c,
1992 cpu-m68hc12.c, cpu-m68k.c, cpu-m88k.c, cpu-maxq.c, cpu-mcore.c,
1993 cpu-mips.c, cpu-mmix.c, cpu-msp430.c, cpu-ns32k.c, cpu-openrisc.c,
1994 cpu-or32.c, cpu-pdp11.c, cpu-pj.c, cpu-powerpc.c, cpu-rs6000.c,
1995 cpu-s390.c, cpu-sh.c, cpu-sparc.c, cpu-tic30.c, cpu-tic4x.c,
1996 cpu-tic54x.c, cpu-tic80.c, cpu-v850.c, cpu-vax.c, cpu-w65.c,
1997 cpu-we32k.c, cpu-xstormy16.c, cpu-xtensa.c, cpu-z8k.c, demo64.c,
1998 dwarf1.c, dwarf2.c, ecoff.c, ecofflink.c, ecoffswap.h,
1999 efi-app-ia32.c, efi-app-ia64.c, elf-bfd.h, elf-eh-frame.c,
2000 elf-hppa.h, elf-m10200.c, elf-m10300.c, elf-strtab.c, elf.c,
2001 elf32-am33lin.c, elf32-arc.c, elf32-arm.c, elf32-avr.c,
2002 elf32-cr16c.c, elf32-cris.c, elf32-crx.c, elf32-d10v.c,
2003 elf32-d30v.c, elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-gen.c,
2004 elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, elf32-i370.c,
2005 elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
2006 elf32-iq2000.c, elf32-m32r.c, elf32-m68hc11.c, elf32-m68hc12.c,
2007 elf32-m68hc1x.c, elf32-m68hc1x.h, elf32-m68k.c, elf32-m88k.c,
2008 elf32-mcore.c, elf32-mips.c, elf32-msp430.c, elf32-openrisc.c,
2009 elf32-or32.c, elf32-pj.c, elf32-ppc.c, elf32-ppc.h, elf32-s390.c,
2010 elf32-sh-symbian.c, elf32-sh.c, elf32-sh64-com.c, elf32-sh64.c,
2011 elf32-sh64.h, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
2012 elf32-xstormy16.c, elf32-xtensa.c, elf32.c, elf64-alpha.c,
2013 elf64-gen.c, elf64-hppa.c, elf64-hppa.h, elf64-mips.c,
2014 elf64-mmix.c, elf64-ppc.c, elf64-ppc.h, elf64-s390.c,
2015 elf64-sh64.c, elf64-sparc.c, elf64-x86-64.c, elf64.c, elfcode.h,
2016 elfcore.h, elflink.c, elfn32-mips.c, elfxx-ia64.c, elfxx-mips.c,
2017 elfxx-mips.h, elfxx-sparc.c, elfxx-sparc.h, elfxx-target.h,
2018 epoc-pe-arm.c, epoc-pei-arm.c, format.c, freebsd.h, gen-aout.c,
2019 genlink.h, hash.c, host-aout.c, hp300bsd.c, hp300hpux.c,
2020 hppabsd-core.c, hpux-core.c, i386aout.c, i386bsd.c, i386dynix.c,
2021 i386freebsd.c, i386linux.c, i386lynx.c, i386mach3.c, i386msdos.c,
2022 i386netbsd.c, i386os9k.c, ieee.c, ihex.c, init.c, irix-core.c,
2023 libaout.h, libbfd-in.h, libbfd.c, libbfd.h, libcoff-in.h,
2024 libcoff.h, libecoff.h, libhppa.h, libieee.h, libnlm.h, liboasys.h,
2025 libpei.h, libxcoff.h, linker.c, lynx-core.c, m68k4knetbsd.c,
2026 m68klinux.c, m68klynx.c, m68knetbsd.c, m88kmach3.c, m88kopenbsd.c,
2027 mach-o-target.c, mach-o.c, mach-o.h, merge.c, mipsbsd.c, mmo.c,
2028 netbsd-core.c, netbsd.h, newsos3.c, nlm-target.h, nlm.c,
2029 nlm32-alpha.c, nlm32-i386.c, nlm32-ppc.c, nlm32-sparc.c, nlm32.c,
2030 nlm64.c, nlmcode.h, nlmswap.h, ns32k.h, ns32knetbsd.c, oasys.c,
2031 opncls.c, osf-core.c, pc532-mach.c, pdp11.c, pe-arm.c, pe-i386.c,
2032 pe-mcore.c, pe-mips.c, pe-ppc.c, pe-sh.c, peXXigen.c,
2033 pef-traceback.h, pef.c, pef.h, pei-arm.c, pei-i386.c, pei-mcore.c,
2034 pei-mips.c, pei-ppc.c, pei-sh.c, peicode.h, ppcboot.c,
2035 ptrace-core.c, reloc.c, reloc16.c, riscix.c, rs6000-core.c,
2036 sco5-core.c, section.c, simple.c, som.c, som.h, sparclinux.c,
2037 sparclynx.c, sparcnetbsd.c, srec.c, stab-syms.c, stabs.c, sunos.c,
2038 syms.c, sysdep.h, targets.c, tekhex.c, ticoff.h, trad-core.c,
2039 vax1knetbsd.c, vaxbsd.c, vaxnetbsd.c, versados.c, vms-gsd.c,
2040 vms-hdr.c, vms-misc.c, vms-tir.c, vms.c, vms.h, xcoff-target.h,
2041 xcofflink.c, xsym.c, xsym.h, xtensa-isa.c, xtensa-modules.c,
2044 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
2046 * bfd-in.h (_bfd_elf_provide_section_bound_symbols): New.
2047 * bfd-in2.h: Regenerated.
2049 * elflink.c (bfd_elf_set_symbol): New.
2050 (_bfd_elf_provide_symbol): Call it.
2051 (_bfd_elf_provide_section_bound_symbols): New.
2053 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
2055 * elflink.c (_bfd_elf_merge_symbol): Only skip weak definitions
2056 at the end, if a strong definition has already been seen.
2058 2005-05-04 Alan Modra <amodra@bigpond.net.au>
2060 * section.c (struct bfd_section): Replace link_order_head and
2061 link_order_tail with map_head and map_tail union.
2062 (STD_SECTION): Update.
2063 (_bfd_strip_section_from_output): Delete.
2064 * aoutx.h: Update throughout for above changes.
2065 * coff-ppc.c: Likewise.
2066 * cofflink.c: Likewise.
2067 * ecoff.c: Likewise.
2068 * elf-eh-frame.c: Likewise.
2069 * elf-m10300.c: Likewise.
2071 * elf32-arm.c: Likewise.
2072 * elf32-cris.c: Likewise.
2073 * elf32-hppa.c: Likewise.
2074 * elf32-i386.c: Likewise.
2075 * elf32-m32r.c: Likewise.
2076 * elf32-m68hc1x.c: Likewise.
2077 * elf32-m68k.c: Likewise.
2078 * elf32-ppc.c: Likewise.
2079 * elf32-s390.c: Likewise.
2080 * elf32-sh.c: Likewise.
2081 * elf32-vax.c: Likewise.
2082 * elf32-xtensa.c: Likewise.
2083 * elf64-alpha.c: Likewise.
2084 * elf64-hppa.c: Likewise.
2085 * elf64-ppc.c: Likewise.
2086 * elf64-s390.c: Likewise.
2087 * elf64-sh64.c: Likewise.
2088 * elf64-x86-64.c: Likewise.
2089 * elflink.c: Likewise.
2090 * elfxx-ia64.c: Likewise.
2091 * elfxx-mips.c: Likewise.
2092 * elfxx-sparc.c: Likewise.
2093 * linker.c: Likewise.
2094 * merge.c: Likewise.
2095 * pdp11.c: Likewise.
2096 * xcofflink.c: Likewise.
2097 * elflink.c (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Split
2098 out from bfd_elf_size_dynamic_sections.
2099 * bfd-in.h (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Declare.
2100 * bfd-in2.h: Regenerate.
2102 2005-05-04 Alan Modra <amodra@bigpond.net.au>
2104 * section.c (bfd_section_list_remove): Don't clear s->next.
2105 (bfd_section_list_append): Always init s->prev.
2106 (bfd_section_list_prepend): Define.
2107 (bfd_section_list_insert_after): Minor optimization.
2108 (bfd_section_removed_from_list): Rewrite.
2109 * elf.c (assign_section_numbers): Simplify list traversal now that
2110 bfd_section_list_remove doesn't destroy removed section next ptr.
2111 * sunos.c (sunos_add_dynamic_symbols): Likewise.
2112 * elfxx-ia64.c (elfNN_ia64_object_p): Use bfd_section_list_prepend.
2113 * xcofflink.c (_bfd_xcoff_bfd_final_link): Simplify list traversal.
2114 * bfd-in2.h: Regenerate.
2116 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
2118 * bfd.c (bfd): Remove section_tail and add section_last.
2119 (bfd_preserve): Likewise.
2120 (bfd_preserve_save): Likewise.
2121 (bfd_preserve_restore): Likewise.
2122 * opncls.c (_bfd_new_bfd): Likewise.
2124 * coffcode.h (coff_compute_section_file_positions): Updated.
2125 (coff_compute_section_file_positions): Likewise.
2126 * elf.c (assign_section_numbers): Likewise.
2127 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
2128 * elf64-mmix.c (mmix_elf_final_link): Likewise.
2129 * elfxx-ia64.c (elfNN_ia64_object_p): Likewise.
2130 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
2131 * sunos.c (sunos_add_dynamic_symbols): Likewise.
2132 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
2134 * ecoff.c (bfd_debug_section): Initialize prev.
2136 * section.c (bfd_section): Add prev.
2137 (bfd_section_list_remove): Updated.
2138 (bfd_section_list_append): New.
2139 (bfd_section_list_insert_after): New.
2140 (bfd_section_list_insert_before): New.
2141 (bfd_section_list_insert): Removed.
2142 (bfd_section_removed_from_list): Updated.
2143 (STD_SECTION): Initialize prev.
2144 (bfd_section_init): Updated.
2145 (bfd_section_list_clear): Updated.
2147 * bfd-in2.h: Regenerated.
2149 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
2151 * elf.c (_bfd_elf_new_section_hook): Don't call
2152 _bfd_elf_get_sec_type_attr on sections from input files.
2154 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
2156 * merge.c (sec_merge_init): Call bfd_hash_table_init_n with
2157 hash table size 16699 instead of bfd_hash_table_init.
2159 2005-05-01 Paul Brook <paul@codesourcery.com>
2161 * elflink.c (_bfd_elf_merge_symbol): Skip weak definitions if a strong
2162 definition has already been seen.
2164 2005-05-01 Paul Brook <paul@codesourcery.com>
2166 * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Treat
2167 R_ARM_PLT32 the same as R_ARM_PC24.
2168 (arm_add_to_rel): Ditto.
2170 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
2172 * config.bfd: Add h8300*-*-rtemscoff.
2173 Switch h8300*-*-rtems* to elf.
2175 2005-04-29 Daniel Jacobowitz <dan@codesourcery.com>
2177 * aclocal.m4, Makefile.in: Regnerated.
2179 2005-04-28 Paul Brook <paul@codesourcery.com>
2181 Merge changes only applied to Makefile.in.
2182 * Makefile.am (BFD32_BACKENDS): Add elfxx-sparc.lo
2183 (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c
2184 (elfxx-sparc.lo): New rule.
2185 (elf32-sparc.lo): Add elfxx-sparc.h dependency.
2186 (elf64-sparc.lo): Likewise.
2188 2005-04-28 Julian Brown <julian@codesourcery.com>
2190 * elflink.c (_bfd_elf_provide_symbol): Provide symbol for weak
2193 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
2195 * elf-bfd.h (bfd_elf_sym_name): Also take "asection *".
2197 * elf.c (bfd_elf_sym_name): Updated.
2198 (group_signature): Likewise.
2199 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2200 * elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
2201 (ppc64_elf_edit_toc): Likewise.
2202 (ppc64_elf_relocate_section): Likewise.
2203 * elfcode.h (elf_slurp_symbol_table): Likewise.
2204 * elflink.c (elf_link_input_bfd): Likewise.
2206 * elfxx-ia64.c (elfNN_ia64_relocate_section): Call
2207 bfd_elf_sym_name to get local symbol name when reporting errors.
2209 2005-04-27 Nick Clifton <nickc@redhat.com>
2211 * elflink.c (elf_link_input_bfd): Handle the case where a badly
2212 formatted input file results in a reloc which has no associated
2215 2005-04-26 Jerome Guitton <guitton@gnat.com>
2217 * bfd.m4 (BFD_NEED_DECLARATION): Restore.
2219 2005-04-25 David S. Miller <davem@davemloft.net>
2221 * elfxx-sparc.c (sparc_elf_append_rela_64): Add BFD64 protection.
2222 (sparc_elf_r_info_64, _bfd_sparc_elf_finish_dynamic_symbol,
2223 sparc64_finish_dyn, _bfd_sparc_elf_finish_dynamic_sections):
2226 2005-04-25 H.J. Lu <hongjiu.lu@intel.com>
2229 * elflink.c (elf_link_input_bfd): Make non-debugging reference
2230 to discarded section an error.
2232 2005-04-21 Jerome Guitton <guitton@gnat.com>
2234 * configure.in: Replace BFD_NEED_DECLARATION checks by the
2235 corresponding AC_CHECK_DECLS.
2236 * sysdep.h: Replace NEED_DECLARATION_* checks by the corresponding
2238 * bfd.m4 (BFD_NEED_DECLARATION): Remove, obsolete.
2239 * configure: Regenerate.
2242 2005-04-21 Andreas Schwab <schwab@suse.de>
2244 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove
2245 unsigned from type of dynamic_interpreter.
2246 * elfxx-sparc.c (_bfd_sparc_elf_link_hash_table_create): Remove
2249 * elf.c (assign_section_numbers): Fix comment.
2251 2005-04-21 Jerome Guitton <guitton@gnat.com>
2253 * som.c (som_bfd_print_private_bfd_data): Add explicit cast to long
2254 for struct som_exec_auxhdr fields.
2256 2005-04-21 Nick Clifton <nickc@redhat.com>
2258 * aout-adobe.c: Convert to ISO C and fix formatting.
2259 * aout-arm.c: Convert to ISO C and fix formatting.
2260 * aout-cris.c: Convert to ISO C and fix formatting.
2261 * aout-ns32k.c: Convert to ISO C and fix formatting.
2262 * aout-tic30.c: Convert to ISO C and fix formatting.
2263 * coffcode.h: Convert to ISO C and fix formatting.
2264 * coffswap.h: Convert to ISO C and fix formatting.
2265 * i386aout.c: Convert to ISO C and fix formatting.
2266 * libaout.h: Convert to ISO C and fix formatting.
2267 * libcoff-in.h: Convert to ISO C and fix formatting.
2268 * libcoff.h: Convert to ISO C and fix formatting.
2269 * libecoff.h: Convert to ISO C and fix formatting.
2270 * libnlm.h: Convert to ISO C and fix formatting.
2271 * libpei.h: Convert to ISO C and fix formatting.
2272 * libxcoff.h: Convert to ISO C and fix formatting.
2273 * nlm-target.h: Convert to ISO C and fix formatting.
2274 * nlm.c: Convert to ISO C and fix formatting.
2275 * nlm32-alpha.c: Convert to ISO C and fix formatting.
2276 * nlm32-i386.c: Convert to ISO C and fix formatting.
2277 * nlm32-ppc.c: Convert to ISO C and fix formatting.
2278 * nlm32-sparc.c: Convert to ISO C and fix formatting.
2279 * nlmcode.h: Convert to ISO C and fix formatting.
2280 * nlmswap.h: Convert to ISO C and fix formatting.
2281 * pe-mips.c: Convert to ISO C and fix formatting.
2282 * peXXigen.c: Convert to ISO C and fix formatting.
2283 * peicode.h: Convert to ISO C and fix formatting.
2284 * vms-gsd.c: Convert to ISO C and fix formatting.
2285 * vms-hdr.c: Convert to ISO C and fix formatting.
2286 * vms-misc.c: Convert to ISO C and fix formatting.
2287 * vms-tir.c: Convert to ISO C and fix formatting.
2288 * vms.c: Convert to ISO C and fix formatting.
2289 * vms.h: Convert to ISO C and fix formatting.
2291 * coffgen.c (coff_print_symbol): Restore correct formatting of
2294 2005-04-20 David S. Miller <davem@davemloft.net>
2296 * elfxx-sparc.c (sparc_elf_r_symndx_64): Fix compiler warning.
2297 (_bfd_sparc_elf_link_hash_table_create): Likewise.
2298 (allocate_dynrelocs): Likewise.
2300 2005-04-20 Jerome Guitton <guitton@gnat.com>
2302 * configure.in: Fix the check for basename declaration. Add check
2303 for declarations of ftello, ftello64, fseeko, fseeko64.
2304 * configure: Regenerate.
2306 * sysdep.h: If needed, declare ftello, ftello64, fseeko, fseeko64.
2308 2005-04-19 David S. Miller <davem@davemloft.net>
2310 * elfxx-sparc.c: New file.
2311 * elfxx-sparc.h: New file.
2312 * Makefile.in (BFD32_BACKENDS): Add elfxx-sparc.lo
2313 (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c
2314 (elfxx-sparc.lo): New rule.
2315 (elf32-sparc.lo): Add elfxx-sparc.h dependency.
2316 (elf64-sparc.lo): Likewise.
2317 * configure.in (bfd_elf32_sparc_vec): Add elfxx-sparc.lo
2318 (bfd_elf64_sparc_vec): Likewise.
2319 * configure: Regenerate.
2320 * elf32-sparc.c: Remove common code now in elfxx-sparc.c
2321 * elf64-sparc.c: Likewise, also use elf64_sparc_*() naming
2322 which is more consistent with elf32-sparc.c
2324 2005-04-19 Daniel Jacobowitz <dan@codesourcery.com>
2326 * elfxx-mips.c (struct mips_elf_link_hash_entry): Update comment.
2327 (mips_elf_create_local_got_entry): Check h->root.forced_local.
2329 2005-04-19 Alan Modra <amodra@bigpond.net.au>
2331 * elf32-ppc.c (ppc_elf_check_relocs): Don't bother with
2332 dynamic relocs in non-SEC_ALLOC sections.
2333 (ppc_elf_gc_sweep_hook): Likewise.
2334 (ppc_elf_relax_section): Likewise.
2335 (ppc_elf_relocate_section): Likewise.
2337 2005-04-18 Nick Clifton <nickc@redhat.com>
2339 * aix5ppc-core.c (xcoff64_core_p): Fix compile time warning
2340 assigning a value to return_value.
2342 2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
2345 * elf.c (_bfd_elf_copy_private_section_data): Don't copy linker
2348 2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
2351 * elf.c (setup_group): Properly handle zero group count.
2353 2005-04-17 Mark Kettenis <kettenis@gnu.org>
2355 * som.c (hppa_som_reloc, som_mkobject, som_is_space)
2356 (som_is_subspace, compare_subspaces, som_compute_checksum)
2357 (som_build_and_write_symbol_table, som_slurp_symbol_table): New
2359 (hppa_som_reloc, compare_syms, compare_subspaces)
2360 (som_print_symbol, som_get_section_contents)
2361 (som_set_section_contents): Remove space after 'void *'.
2362 (som_bfd_print_private_bfd_data): Use %lx to print longs.
2363 (som_bfd_merge_private_bfd_data)
2364 (som_bfd_copy_private_header_data, som_bfd_set_private_flags): New
2367 2004-04-15 Julian Brown <julian@codesourcery.com>
2369 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
2370 * bfd-in2.h: Regenerate.
2371 * elf32-arm.c (elf32_arm_link_hash_table): New field, 'use_blx'.
2372 (elf32_arm_link_hash_table_create): Initialise fix_v4bx, use_blx.
2373 (bfd_elf32_arm_set_target_relocs): Handle use_blx.
2374 (elf32_arm_final_link_relocate): Use Thumb BLX for R_ARM_THM_PC22
2375 relocations if requested to.
2376 (allocate_dynrelocs): Don't count size of omitted Thumb stubs based on
2377 use_blx rather than symbian_p.
2378 (elf32_arm_finish_dynamic_symbol): Don't output Thumb PLT stubs if
2379 use_blx is in effect.
2380 (elf32_arm_symbian_link_hash_table_create): Enable use_blx by default
2383 2005-04-15 Nick Clifton <nickc@redhat.com>
2385 * coffgen.c (coff_print_symbol): Use fprintf_vma to print vma
2388 2005-04-15 Alan Modra <amodra@bigpond.net.au>
2391 * elflink.c (elf_smash_syms): Clear undef.next if it's not being
2392 used as a list pointer.
2394 2005-04-14 Alan Modra <amodra@bigpond.net.au>
2396 * Makefile.am (NO_WERROR): Define.
2397 * warning.m4: New file
2398 * acinclude.m4: Include warning.m4.
2399 * configure.in: Invoke AM_BINUTILS_WARNINGS.
2400 * Makefile.in: Regenerate.
2401 * configure: Regenerate.
2403 2005-04-14 Alan Modra <amodra@bigpond.net.au>
2405 * merge.c (sec_merge_emit): Tidy. Check for bfd_zmalloc errors.
2406 Write trailing padding.
2408 * merge.c (merge_strings): Round up section size for alignment.
2410 2005-04-14 David S. Miller <davem@davemloft.net>
2412 Add TLS support for 64-bit Sparc ELF.
2413 * elf64-sparc.c (sparc64_elf_dyn_relocs,
2414 sparc64_elf_link_hash_entry, sparc64_elf_obj_tdata): New structs.
2415 (GOT_UNKNOWN, GOT_NORMAL, GOT_TLD_GD, GOT_TLD_IE,
2416 sparc64_elf_hash_entry, sparc64_elf_tdata,
2417 sparc64_elf_local_got_tls_type): New defines.
2418 (sparc64_elf_mkobject): New function.
2419 (sparc64_elf_link_hash_table): Add members for dynamic linker
2420 sections PLT, RELPLT, DYNBSS, and RELBSS. Add tls_ldm_got
2421 uion to track TLS GOT references. Add sym_sec to cache
2422 mappings from local sym to section.
2423 (link_hash_newfunc): New function.
2424 (sparc64_elf_bfd_link_hash_table_create): Rename to
2425 sparc64_elf_link_hash_table_create for consistency.
2426 Pass link_hash_newfunc to _bfd_elf_link_hash_table_init.
2427 (sparc64_elf_create_dynamic_sections): Initialize new section
2428 members of sparc64_elf_link_hash_table. Only init srelbss
2430 (sparc64_elf_copy_indirect_symbol, sparc64_elf_tls_transition):
2432 (SPARC_NOP): Define.
2433 (sparc64_elf_build_plt, sparc64_elf_plt_entry_offset,
2434 sparc64_elf_plt_ptr_offset): Delete.
2435 (sparc64_plt_entry_build): New function to build PLT entries
2436 gradually instread of all at once at the end of linking.
2437 (sparc64_elf_check_relocs): Delete dynobj, sgot, and srelgot
2438 local vars. Get them from sparc64_elf_hash_table instead.
2439 Check early on if r_symndx is in bounds. Handle TLS transitions.
2440 Account for TLS GOT references and DF_STATIC_TLS, as needed.
2441 For TLS relocs, record the tls_type in either
2442 sparc64_elf_local_got_tls_type or sparc64_elf_hash_entry as
2443 appropriate. For R_SPARC_TLS_{GD,LDM}_CALL, emit a reference
2444 to the __tls_get_addr symbol. For PLT relocs, track references
2445 via h->plt.refcount. When R_SPARC_{PC10,PC22,PC_HH22,PC_HM10,
2446 PC_LM22} and h not-NULL, set h->non_got_ref. For global data
2447 symbol references, count the number of relocations needed for
2448 that symbol. For default switch case, don't error, this lets
2449 the TLS relocs not explicitly handled by this function get
2451 (sparc64_elf_gc_mark_hook, sparc64_gc_sweep_hook): New functions.
2452 (sparc64_elf_adjust_dynamic_symbol): Remove dynobj local var, get
2453 it from sparc64_elf_hash_table. Store the real PLT offset
2454 in h->plt.offset, and build PLT entries one at a time. Also
2455 get .dynbss section pointer from htab.
2456 (allocate_dynrelocs, readonly_dynrelocs,
2457 sparc64_omit_section_dynsym): New functions.
2458 (sparc64_elf_omit_section_dynsym): Use these new functions as
2460 (dtpoff_base, tpoff): New functions.
2461 (sparc64_elf_relocate_section): Kill dynobj, sgot, and splt
2462 locals, get them from sparc64_elf_hash_table. Handle TLS
2463 relocations and refcounting in main relocation loop.
2464 (sparc64_elf_finish_dynamic_symbol): Use
2465 sparc64_elf_link_hash_table. Build PLT entries as we see
2466 them. Handle TLS GOT relocations.
2467 (sparc64_elf_finish_dynamic_sections): Get sgot and dynobj
2468 from sparc64_elf_hash_table. Initialize only PLT header
2469 not all entries since we not build PLT entries one by one.
2470 (elf_backend_copy_indirect_symbol, bfd_elf64_mkobject,
2471 elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook,
2472 elf_backend_can_gc_sections, elf_backend_can_refcount): Define.
2474 2005-04-13 Daniel Jacobowitz <dan@codesourcery.com>
2476 * elflink.c (elf_link_input_bfd): Update check for removed
2479 2005-04-12 Alan Modra <amodra@bigpond.net.au>
2481 * Makefile.am: Run "make dep-am".
2482 * Makefile.in: Regenerate.
2483 * aclocal.m4: Regenerate.
2484 * libcoff.h: Regenerate.
2486 2005-04-11 H.J. Lu <hongjiu.lu@intel.com>
2488 * linker.c (_bfd_generic_link_output_symbols): Also check if
2489 the output section of an input section has been removed from
2492 * section.c (bfd_section_list_remove): Clear the next field
2493 of the removed section.
2494 (bfd_section_removed_from_list): New.
2495 * bfd-in2.h: Regenerated.
2497 2005-04-11 David S. Miller <davem@davemloft.net>
2499 * elf32-sparc.c (elf32_sparc_relocate_section,
2500 R_SPARC_TLS_LDO_{HIX22,LOX10}): When not shared, transition to
2501 R_SPARC_TLS_LE_{HIX22,LOX10}.
2502 (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_HIX22): Only
2503 xor relocation with 0xffffffff if R_SPARC_TLS_LE_HIX22.
2504 (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_LOX10): Only
2505 or 0x1c00 into relocation if R_SPARC_TLS_LE_HIX22.
2507 2005-04-11 H.J. Lu <hongjiu.lu@intel.com>
2509 * coffcode.h (STRING_SIZE_SIZE): Updated to match libcoff-in.h.
2511 2005-04-11 Nick Clifton <nickc@redhat.com>
2513 * aout-target.h: Convert to ISO C.
2514 * aoutf1.h: Convert to ISO C.
2515 * aoutx.h: Convert to ISO C.
2516 * bout.c: Convert to ISO C.
2517 * dwarf1.c: Convert to ISO C.
2518 * ecoffswap.h: Convert to ISO C.
2519 * freebsd.h: Convert to ISO C.
2520 * genlink.h: Convert to ISO C.
2521 * ieee.c: Convert to ISO C.
2522 * ihex.c: Convert to ISO C.
2523 * libcoff-in.h: Convert to ISO C.
2524 * mach-o.c: Convert to ISO C.
2525 * mach-o.h: Convert to ISO C.
2526 * netbsd.h: Convert to ISO C.
2527 * ns32k.h: Convert to ISO C.
2528 * ns32knetbsd.c: Convert to ISO C.
2529 * oasys.c: Convert to ISO C.
2530 * pdp11.c: Convert to ISO C.
2531 * pef-traceback.h: Convert to ISO C.
2532 * pef.c: Convert to ISO C.
2533 * pef.h: Convert to ISO C.
2534 * riscix.c: Convert to ISO C.
2535 * som.c: Convert to ISO C.
2536 * som.h: Convert to ISO C.
2537 * srec.c: Convert to ISO C.
2538 * stabs.c: Convert to ISO C.
2539 * sunos.c: Convert to ISO C.
2540 * tekhex.c: Convert to ISO C.
2541 * versados.c: Convert to ISO C.
2542 * version.h: Convert to ISO C.
2543 * xcoff-target.h: Convert to ISO C.
2544 * xcofflink.c: Convert to ISO C.
2545 * xsym.c: Convert to ISO C.
2546 * xsym.h: Convert to ISO C.
2548 2005-04-08 Paul Brook <paul@codesourcery.com>
2550 * elf32-arm.c (ARM2THUMB_GLUE_SIZE): Rename...
2551 (ARM2THUMB_STATIC_GLUE_SIZE): ... to this.
2552 (ARM2THUMB_PIC_GLUE_SIZE): Define.
2553 (a2t1p_ldr_insn, a2t2p_add_pc_insn, a2t3p_bx_r12_insn): Add.
2554 (elf32_arm_to_thumb_stub): Create PIC stubs.
2555 (record_arm_to_thumb_glue): Use different stub size for relocatable
2558 2005-04-05 Alan Modra <amodra@bigpond.net.au>
2560 * elf64-ppc.c (dec_dynrel_count): New function split out from
2561 ppc64_elf_edit_toc, with additional code from ppc64_elf_edit_opd.
2562 (ppc64_elf_edit_toc, ppc64_elf_edit_opd): Use it.
2563 (ppc64_elf_tls_optimize): Likewise.
2565 2005-04-05 Mark Kettenis <kettenis@gnu.org>
2567 * netbsd-core.c (SPARC_WCOOKIE_OFFSET): Renamed from
2568 CORE_WCOOKIE_OFFSET.
2569 (SPARC64_WCOOKIE_OFFSET): New.
2570 (netbsd_core_file_p): Provide .wcookie section for OpenBSD/sparc64.
2572 2005-04-05 Nick Clifton <nickc@redhat.com>
2574 * po/rw.po: New translation: Kinyarwanda
2575 * configure.in (ALL_LINGUAS): Add rw
2576 * configure: Regenerate.
2578 2005-04-05 Richard Sandiford <rsandifo@redhat.com>
2580 * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME_P): New macro.
2581 (_bfd_mips_elf_section_from_shdr): Use it to check for recognized
2582 SHT_MIPS_OPTIONS names. Allow all sections with unrecognised
2584 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_OPTIONS_SECTION_NAME_P
2585 to check for SHT_MIPS_OPTIONS sections.
2586 (_bfd_mips_elf_set_section_contents): Likewise.
2588 2005-04-04 Eric Christopher <echristo@redhat.com>
2590 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents):
2591 Clean up gp handling code.
2593 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
2595 * elf.c (bfd_elf_set_group_contents): Ignore linker created
2597 (assign_section_numbers): Accept link_info. Check SHT_GROUP
2598 sections for relocatable files only. Remove the linker created
2600 (_bfd_elf_compute_section_file_positions): Pass link_info to
2601 assign_section_numbers.
2603 * elfxx-ia64.c (elfNN_ia64_object_p): New.
2604 (elf_backend_object_p): Defined.
2606 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
2608 * elf-bfd.h (elf_section_data): Use (sec) instead of sec.
2610 2005-04-03 Fred Fish <fnf@specifixinc.com>
2612 * dwarf2.c (struct dwarf2_debug): Add dwarf_ranges_buffer and
2613 dwarf_ranges_size members.
2614 (struct comp_unit): Add base_address member.
2615 (struct funcinfo): Replace low/high members with an arange.
2616 (arange_add): Replace incoming "unit" parameter with "abfd" and
2617 "first_arange" pointers. Reorganize/rewrite function body.
2618 (decode_line_info): Change arange_add call to pass bfd and arange
2620 (lookup_address_in_line_info_table): Use arange list instead of
2621 individual low/high members. Walk function's arange list to find
2622 lowest PC in list, to test for overlapping functions.
2623 (read_debug_ranges): New function, reads the debug_ranges section.
2624 (lookup_address_in_function_table): Use arange list instead of
2625 individual low/high members. Rewrite to find smallest range that
2627 (read_rangelist): Read a given rangelist from debug_ranges.
2628 (scan_unit_for_functions): Use arange list instead of individual
2629 low/high members. Handle a DW_AT_ranges attribute.
2630 (parse_comp_unit): Use arange list instead of individual low/high
2631 members. Save comp unit base address. Handle a DW_AT_ranges
2634 2005-04-01 H.J. Lu <hongjiu.lu@intel.com>
2636 * elf.c (assign_section_numbers): Really use the kept section.
2638 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
2640 * elf-bfd.h (_bfd_elf_check_kept_section): New.
2642 * elf.c (assign_section_numbers): When sh_link points to a
2643 discarded section, call _bfd_elf_check_kept_section to see if
2644 the kept section can be used. Otherwise reject sh_link
2645 pointing to discarded section.
2647 * elflink.c (_bfd_elf_check_kept_section): New.
2648 (elf_link_input_bfd): Use it.
2650 2005-04-01 Alan Modra <amodra@bigpond.net.au>
2652 * elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocs
2653 that we no longer need.
2655 2005-04-01 Alan Modra <amodra@bigpond.net.au>
2657 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors
2659 (ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
2661 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
2663 * elf.c (assign_section_numbers): Fix a typo.
2665 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
2667 * elflink.c (elf_link_input_bfd): Remove the extra `\n' in
2669 (_bfd_elf_section_already_linked): Likewise.
2671 2005-03-31 Jerome Guitton <guitton@gnat.com>
2673 * config.in: Regenerate.
2675 2005-03-31 Jerome Guitton <guitton@gnat.com>
2677 * config.in (HAVE_DECL_BASENAME): New configure macro.
2678 * configure.in: Check for basename.
2679 * configure: Regenerate.
2681 2005-03-30 Julian Brown <julian@codesourcery.com>
2683 * bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename from
2684 bfd_elf32_is_arm_mapping_symbol_name.
2685 * bfd-in2.h: Regenerate.
2686 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from
2687 bfd_elf32_is_arm_mapping_symbol_name.
2688 * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename
2689 bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
2690 (arm_elf_find_function): Likewise.
2691 (elf32_arm_output_symbol_hook): Likewise.
2693 2005-03-30 Julian Brown <julian@codesourcery.com>
2695 * bfd-in.h (bfd_elf32_is_arm_mapping_symbol_name): Add prototype.
2696 * bfd-in2.h: Regenerate.
2697 * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename call to
2698 bfd_elf32_is_arm_mapping_symbol_name.
2699 (elf32_arm_output_symbol_hook): Likewise.
2700 (arm_elf_find_function): Likewise, and include STT_NOTYPE in test for
2702 (is_arm_mapping_symbol_name): Function moved from here...
2703 * cpu-arm.c (bfd_elf32_is_arm_mapping_symbol_name): ...to here, renamed
2706 2005-03-29 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2708 * configure.in: Check for ffs decl and alphabetize.
2709 * config.in: Regenerate.
2710 * configure: Regenerate.
2711 * sysdep.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
2713 2005-03-29 Fred Fish <fnf@specifixinc.com>
2715 * dwarf2.c (struct comp_unit): Fix typo.
2716 (scan_unit_for_functions): Remove unused local variable "name"
2717 and dead code that set it.
2719 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2720 Phil Blundell <philb@gnu.org>
2722 * bfd-in2.h, libbfd.h: Regenerated.
2723 * reloc.c: Add ARM TLS relocations.
2724 * elf32-arm.c (elf32_arm_howto_table): Add dynamic TLS
2726 (elf32_arm_tls_gd32_howto, elf32_arm_tls_ldo32_howto)
2727 (elf32_arm_tls_ldm32_howto, elf32_arm_tls_le32_howto)
2728 (elf32_arm_tls_ie32_howto): New.
2729 (elf32_arm_howto_from_type): Support TLS relocations.
2730 (elf32_arm_reloc_map): Likewise.
2731 (elf32_arm_reloc_type_lookup): Likewise.
2733 (struct elf32_arm_obj_tdata): New.
2734 (elf32_arm_tdata, elf32_arm_local_got_tls_type): Define.
2735 (elf32_arm_mkobject): New function.
2736 (struct elf32_arm_relocs_copied): Add pc_count.
2737 (elf32_arm_hash_entry, GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD)
2738 (GOT_TLS_IE): Define.
2739 (struct elf32_arm_link_hash_table): Add tls_ldm_got.
2740 (elf32_arm_link_hash_newfunc): Initialize tls_type.
2741 (elf32_arm_copy_indirect_symbol): Copy pc_count and tls_type.
2742 (elf32_arm_link_hash_table_create): Initialize tls_ldm_got.
2743 (dtpoff_base, tpoff): New functions.
2744 (elf32_arm_final_link_relocate): Handle TLS relocations.
2745 (IS_ARM_TLS_RELOC): Define.
2746 (elf32_arm_relocate_section): Warn about TLS mismatches.
2747 (elf32_arm_gc_sweep_hook): Handle TLS relocations and pc_count.
2748 (elf32_arm_check_relocs): Detect invalid symbol indexes. Handle
2749 TLS relocations and pc_count.
2750 (elf32_arm_adjust_dynamic_symbol): Check non_got_ref.
2751 (allocate_dynrelocs): Handle TLS. Bind REL32 relocs to local
2753 (elf32_arm_size_dynamic_sections): Handle TLS.
2754 (elf32_arm_finish_dynamic_symbol): Likewise.
2755 (bfd_elf32_mkobject): Define.
2757 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2759 * elf32-arm.c (elf32_arm_check_relocs): Increment count for all
2760 relocation types. Don't count relocations which will use a PLT.
2762 2005-03-29 Joel Brobecker <brobecker@gnat.com>
2764 * elf.c (elfcore_grok_nto_status): Print tid as long.
2765 (elfcore_grok_nto_regs): Likewise.
2767 2005-03-29 Joel Brobecker <brobecker@gnat.com>
2769 * irix-core.c: Remove some unnecessary prototypes.
2771 2005-03-28 Joel Brobecker <brobecker@adacore.com>
2773 * irix-core.c: Convert to ISO C.
2775 2005-03-28 Joel Brobecker <brobecker@adacore.com>
2777 * irix-core.c (do_sections): Replace + by | in expression.
2778 (irix_core_core_file_matches_executable_p): Add ATTRIBUTE_UNUSED
2779 to unused parameters to avoid a compiler warning.
2781 2005-03-28 Mark Kettenis <kettenis@gnu.org>
2783 * netbsd-core.c: Convert to ISO C. Fix formatting.
2785 2005-03-24 Eric Christopher <echristo@redhat.com>
2787 * elfxx-mips.c: Revert previous patch.
2789 2005-03-24 Nick Clifton <nickc@redhat.com>
2791 * targets.c (_bfd_target_vector): Only include the
2792 bfd_elf32_ia64_hpux_big_vec vector when building a 64-bit BFD with
2793 all targets enabled.
2795 2005-03-24 James E Wilson <wilson@specifixinc.com>
2797 * Makefile.am (BFD32_BACKENDS): Delete elf32-ia64.lo.
2798 (BFD64_BACKENDS): Add elf32-ia64.lo.
2799 * Makefile.in: Regenerate.
2801 2005-03-23 Eric Christopher <echristo@redhat.com>
2803 * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): New.
2804 (mips_elf_calculate_relocation): Use. Define DF_TEXTREL
2805 after emitting relocation.
2806 (_bfd_mips_elf_adjust_dynamic_symbol): Ditto.
2807 (_bfd_mips_elf_check_relocs): Remove code to set DF_TEXTREL
2810 2005-03-23 Mike Frysinger <vapier@gentoo.org>
2811 Nick Clifton <nickc@redhat.com>
2813 * config.bfd: Accept any C library to accompany a GNU Linux
2814 implementation, not just the GNU C library.
2815 * configure.in: Likewise.
2816 * configure: Regenerate.
2818 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
2820 * bfd-in.h (_bfd_elf_provide_symbol): New.
2821 * bfd-in2.h: Regenerated.
2823 * elf32-ppc.c (set_linker_sym): Moved to elflink.c.
2824 (ppc_elf_set_sdata_syms): Call _bfd_elf_provide_symbol instead
2827 * elflink.c (_bfd_elf_provide_symbol): New. Moved and renamed
2830 2005-03-22 Hans-Peter Nilsson <hp@axis.com>
2832 * hash.c (strtab_hash_newfunc): Fix typo in allocated size.
2834 2005-03-22 Bob Wilson <bob.wilson@acm.org>
2836 * xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup,
2837 xtensa_sysreg_lookup_name, xtensa_interface_lookup,
2838 xtensa_funcUnit_lookup): Skip bsearch call if count is zero.
2839 (xtensa_opcode_decode): Rearrange code.
2841 2005-03-22 Nick Clifton <nickc@redhat.com>
2843 * binary.c: Convert to ISO C90 formatting.
2844 * coff-arm.c: Convert to ISO C90 formatting.
2845 * coffgen.c: Convert to ISO C90 formatting.
2846 * elf32-gen.c: Convert to ISO C90 formatting.
2847 * elf64-gen.c: Convert to ISO C90 formatting.
2848 * hash.c: Convert to ISO C90 formatting.
2849 * ieee.c: Convert to ISO C90 formatting.
2851 2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
2853 * elf32-arm.c (elf32_arm_final_link_relocate): Don't fail for
2854 unresolved symbols in R_ARM_NONE relocations.
2856 2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
2858 * elf32-arm.c (elf32_arm_final_link_relocate): Add
2859 UNRESOLVED_RELOC_P argument. Set it appropriately.
2860 (elf32_arm_relocate_section): Update call to
2861 elf32_arm_final_link_relocate. Don't clobber RELOCATION; use
2862 unresolved_reloc instead.
2864 2005-03-23 Alan Modra <amodra@bigpond.net.au>
2866 * elflink.c (elf_link_add_object_symbols): Set SEC_EXCLUDE on
2867 .gnu.warning.* sections.
2869 2005-03-22 Alan Modra <amodra@bigpond.net.au>
2871 * elf32-ppc.c (elf_linker_section_pointers_t): Remove
2873 (ppc_elf_create_linker_section): Don't try to reuse existing section.
2874 (elf_create_pointer_linker_section): Delete info parm. Don't make
2875 h dynamic. Don't set written_address_p.
2876 (ppc_elf_check_relocs): Adjust ppc_elf_create_linker_section calls.
2877 (bfd_put_ptr): Delete.
2878 (elf_finish_pointer_linker_section): Remove output_bfd and info parms.
2879 Always write section contents. Assert global sym is def_regular.
2880 Use offset bottom bit as a written flag.
2881 (ppc_elf_relocate_section): Adjust elf_finish_pointer_linker_section
2884 2005-03-22 Alan Modra <amodra@bigpond.net.au>
2886 * elf32-ppc.c (ppc_elf_set_sdata_syms): New function, extracted from..
2887 (ppc_elf_set_sdata_syms): ..here. Expand comment. Set .sbss start
2890 2005-03-21 Nick Clifton <nickc@redhat.com>
2892 * coff-arm.c (coff_link_hash_entry): Only define for non WINCE
2894 (t2a1_bx_pc_insn): Likewise.
2895 (t2a2_noop_insn): Likewise.
2896 (t2a3_b_insn): Likewise.
2897 (t2a1_push_insn): Likewise.
2898 (t2a2_ldr_insn): Likewise.
2899 (t2a3_mov_insn): Likewise.
2900 (t2a4_bx_insn): Likewise.
2901 (t2a5_pop_insn): Likewise.
2902 (t2a6_bx_insn): Likewise.
2903 (coff_arm_relocate_section): Only declare the high_address
2904 variable for non WINCE targets.
2906 2005-03-22 Alan Modra <amodra@bigpond.net.au>
2908 * elf32-ppc.c (ppc_elf_add_symbol_hook): Make htab->sbss
2909 SEC_LINKER_CREATED. Attach to dynobj.
2910 (ppc_elf_size_dynamic_sections): Strip htab->sbss if zero size.
2912 2005-03-21 Alan Modra <amodra@bigpond.net.au>
2914 * elf32-ppc.c (struct elf_linker_section): Remove sym_hash and
2915 sym_offset. Add name, bss_name, sym_name, sym_val.
2916 (struct ppc_elf_link_hash_table): Remove sdata and sdata2 pointers.
2917 Add sdata array of elf_linker_section_t.
2918 (ppc_elf_link_hash_table_create): Set name, sym_name, and bss_name.
2919 (enum elf_linker_section_enum): Delete.
2920 (ppc_elf_create_linker_section): Rewrite. Don't create syms here.
2921 (ppc_elf_check_relocs): Delay ppc_elf_create_linker_section until
2922 the special sections are needed. Adjust htab->sdata refs.
2923 Ensure dynobj is set in sreloc code.
2924 (ppc_elf_size_dynamic_sections): Strip sdata sections.
2925 (ppc_elf_set_sdata_syms): New function.
2926 (elf_finish_pointer_linker_section): Use 0x8000 for sym_offset.
2927 (ppc_elf_relocate_section): Adjust references to htab->sdata. Use
2928 sym_val instead of sym_hash.
2929 * elf32-ppc.h (ppc_elf_set_sdata_syms): Declare.
2931 2005-03-21 Alan Modra <amodra@bigpond.net.au>
2933 * elf32-ppc.c (is_ppc_elf_target): Move to linker part of file.
2934 (ppc_elf_merge_private_bfd_data): Likewise.
2936 2005-03-21 Alan Modra <amodra@bigpond.net.au>
2938 * elf32-ppc.c (struct elf_linker_section): Remove rel_section.
2939 (ppc_elf_create_linker_section): Don't create rel_section.
2940 (elf_create_pointer_linker_section): Don't size relocs.
2941 (elf_finish_pointer_linker_section): Remove relative_reloc parm.
2942 Don't generate relocs.
2943 (ppc_elf_relocate_section): Adjust calls to
2944 elf_finish_pointer_linker_section.
2946 2005-03-21 Alan Modra <amodra@bigpond.net.au>
2948 * elf32-ppc.c (is_ppc_elf_target): New function.
2949 (ppc_elf_merge_private_bfd_data): Use it rather than just testing
2950 for bfd_target_elf_flavour. Do this test before endian check.
2951 (ppc_elf_add_symbol_hook): Use is_pcc_elf_target.
2952 (ppc_elf_size_dynamic_sections): Likewise.
2954 2005-03-20 H.J. Lu <hongjiu.lu@intel.com>
2956 * elf-bfd.h (elf_backend_data): Add int to
2957 elf_backend_section_from_shdr.
2958 (bfd_elf_section_data): Update comment for this_idx.
2959 (_bfd_elf_make_section_from_shdr): Add int.
2960 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
2962 * elf.c (_bfd_elf_make_section_from_shdr): Take section index
2963 and use it to set this_idx in bfd_elf_section_data.
2964 (bfd_section_from_shdr): Pass shindex to
2965 _bfd_elf_make_section_from_shdr.
2966 (_bfd_elf_section_from_bfd_section): Use this_idx in
2967 bfd_elf_section_data to find section index.
2969 * elf32-arm.c (elf32_arm_section_from_shdr): Take section
2970 index and pass it to _bfd_elf_make_section_from_shdr.
2971 * elf32-i370.c(i370_elf_section_from_shdr): Likewise.
2972 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
2973 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
2974 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
2975 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
2976 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
2977 * elf64-x86-64.c (elf64_x86_64_section_from_shdr): Likewise.
2978 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
2979 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
2981 2005-03-19 Danny Smith <dannysmith@users.sourceforge.net>
2982 Ross Ridge <rridge@csclub.uwaterloo.ca>
2984 * peicode.h (pe_ILF_build_a_bfd): Strip only one prefix
2985 character in IMPORT_NAME_UNDECORATE and IMPORT_NAME_NOPREFIX
2988 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
2990 * elflink.c (elf_mark_used_section): Remove check for special
2993 2005-03-18 Andreas Schwab <schwab@suse.de>
2995 * elfxx-ia64.c (elfNN_ia64_install_value): Change type of insn
2996 from bfd_vma to ia64_insn, remove broken cast.
2998 2005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
3000 * elf32-m68k.c (elf_cfv4e_plt0_entry): plt entry for coldfire v4e.
3001 (elf_m68k_adjust_dynamic_symbol,elf_m68k_finish_dynamic_symbol,
3002 elf_m68k_finish_dynamic_sections): Use it.
3004 2005-03-17 Paul Brook <paul@codesourcery.com>
3005 Dan Jacobowitz <dan@codesourcery.com>
3006 Mark Mitchell <mark@codesourcery.com>
3008 * elf32-arm.c (elf32_arm_modify_segment_map): New function.
3009 (elf32_arm_additional_program_headers): Likewise.
3010 (elf_backend_modify_segment_map): Define.
3011 (elf_backend_additional_program_headers): Likewise.
3012 (elf32_arm_symbian_modify_segment_map): Use
3013 elf32_arm_modify_segment_map.
3015 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
3017 * elflink.c (elf_mark_used_section): Check bfd_is_const_section
3018 for special sections.
3020 2005-03-18 Alan Modra <amodra@bigpond.net.au>
3022 * elf-bfd.h (_bfd_elf_link_renumber_dynsyms): Delete.
3023 * elflink.c (_bfd_elf_link_renumber_dynsyms): Make static, add
3024 section_sym_count param, and return number of section symbols.
3025 (bfd_elf_size_dynamic_sections): Clear section symbol area of
3026 .dynsym contents. Don't bother calling swap_symbol_out on the
3027 first all-zero dynsym.
3028 (elf_mark_used_section): Formatting. Avoid twiddling flags in
3029 special sections like bfd_abs_section.
3030 (bfd_elf_gc_sections): Spelling fix.
3032 2005-03-16 Fred Fish <fnf@specifixinc.com>
3035 * dwarf2.c (read_indirect_string): Fix apparent typo, check
3036 dwarf_str_buffer allocation, not dwarf_abbrev_buffer.
3038 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
3040 * elflink.c (elf_mark_used_section): New.
3041 (bfd_elf_gc_sections): Call elf_gc_mark_section for
3042 non-relocatable link if we don't do GC.
3044 2005-03-16 Nick Clifton <nickc@redhat.com>
3045 Ben Elliston <bje@au.ibm.com>
3047 * configure.in (werror): New switch: Add -Werror to the
3048 compiler command line. Enabled by default. Disable via
3050 * configure: Regenerate.
3052 2005-03-16 Nick Clifton <nickc@redhat.com>
3054 * ecoff.c: Convert to ISO C90 formatting.
3056 2005-03-16 Alan Modra <amodra@bigpond.net.au>
3058 * elf32-ppc.c: Divide file into general and linker specific
3059 functions. Sort linker functions into roughly the order in which
3060 they are called by the ELF linker code.
3062 2005-03-16 Alan Modra <amodra@bigpond.net.au>
3064 * elf32-ppc.c (ppc_elf_create_linker_section): Set SEC_LINKER_CREATED
3065 on section. Correct comment, and add FIXME.
3066 (ppc_elf_additional_program_headers): Don't bump header count for
3067 interp. Test SEC_ALLOC, not SEC_LOAD, and don't test size.
3068 (ppc_elf_size_dynamic_sections): Don't strip sdata and sdata2, but
3069 do allocate memory if they need it.
3071 2005-03-15 Mikkel Krautz <krautz@gmail.com>
3073 * config.bfd (x86_64-elf): Add target.
3075 2005-03-15 Alan Modra <amodra@bigpond.net.au>
3077 * po/es.po: Commit new Spanish translation.
3079 2005-03-14 H.J. Lu <hongjiu.lu@intel.com>
3081 * elfxx-ia64.c (elfNN_ia64_relocate_section): Set symbo name
3082 for global symbol when reporting overflow.
3084 2005-03-11 Jakub Jelinek <jakub@redhat.com>
3086 * libbfd-in.h (_bfd_ar_spacepad): New prototype.
3087 * libbfd.h: Rebuilt.
3088 * archive.c (_bfd_ar_spacepad): New function.
3089 (_bfd_construct_extended_name_table, _bfd_write_archive_contents,
3090 bsd_write_armap, _bfd_archive_bsd_update_armap_timestamp,
3091 coff_write_armap): Use it.
3092 (bfd_ar_hdr_from_filesystem): Likewise. Fix HP-UX large
3094 * archive64.c (bfd_elf64_archive_write_armap): Use _bfd_ar_spacepad.
3096 2005-03-10 Mark Kettenis <kettenis@gnu.org>
3098 * archive.c (_bfd_look_for_bfd_in_cache): Move declaration of
3099 has_table to the start of the function.
3101 2005-03-10 Ben Elliston <bje@au.ibm.com>
3103 * archive.c: Include hashtab.h.
3104 (struct ar_cache): Rename `arelt' to `arbfd' and remove `next'.
3105 (_bfd_look_for_bfd_in_cache): Reimplement using htab_find.
3106 (hash_file_ptr): New function.
3107 (eq_file_ptr): Likewise.
3108 (_bfd_add_bfd_to_archive_cache): Reimplement using a hash table.
3109 * libbfd-in.h: Include hashtab.h.
3110 (struct artdata): Change `cache' member type to htab_t.
3111 * libbfd.h: Rebuild.
3113 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
3115 * configure.in: Bump version to 2.16.90.
3116 * configure: Regenerated.
3118 2005-03-07 Jakub Jelinek <jakub@redhat.com>
3120 * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp.
3121 close is a function like macro in system headers.
3123 2005-03-07 Alan Modra <amodra@bigpond.net.au>
3126 * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Reinstate
3127 _GLOBAL_OFFSET_TABLE_ as a normal dynamic symbol.
3129 2005-03-06 Alan Modra <amodra@bigpond.net.au>
3131 * elf.c (elfcore_grok_win32pstatus): Warning fixes.
3133 2005-03-05 Alan Modra <amodra@bigpond.net.au>
3135 * po/bfd.pot: Regenerate.
3137 2005-03-05 Alan Modra <amodra@bigpond.net.au>
3139 * elf64-ppc.c (update_plt_info): Don't mark new ABI call syms
3141 (func_desc_adjust): Force dot-syms local in executables as well
3144 2005-03-04 David Daney <ddaney@avtrex.com>
3146 * elfxx-mips.c (mips_elf_calculate_relocation): Handle special
3147 '__gnu_local_gp' symbol used by gas -mno-shared.
3149 2005-03-03 H.J. Lu <hongjiu.lu@intel.com>
3151 * elf-bfd.h (elf_backend_data): Add "const char *" to
3152 elf_backend_section_from_phdr.
3154 * elf.c (bfd_section_from_phdr): Pass "proc" to the
3155 elf_backend_section_from_phdr hook.
3157 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
3158 Joseph Myers <joseph@codesourcery.com>
3160 * elfxx-mips.c (struct mips_got_entry): Add tls_type.
3161 (struct mips_got_info): Add tls_gotno, tls_assigned_gotno,
3163 (struct mips_elf_got_per_bfd_arg): Add global_count.
3164 (struct mips_elf_count_tls_arg): New.
3165 (struct mips_elf_hash_sort_data): Update comment for min_got_dynindx.
3166 (struct mips_elf_link_hash_entry): Add tls_type and tls_got_offset.
3167 (GOT_NORMAL, GOT_TLS_GD, GOT_TLS_LDM, GOT_TLS_IE)
3168 (GOT_TLS_OFFSET_DONE, GOT_TLS_DONE): Define.
3169 (TLS_RELOC_P): Define.
3170 (TP_OFFSET, DTP_OFFSET): Define.
3171 (dtprel_base, tprel_base): New functions.
3172 (mips_elf_link_hash_newfunc): Initialize tls_type.
3173 (mips_elf_got_entry_hash, mips_elf_got_entry_eq)
3174 (mips_elf_multi_got_entry_hash, mips_elf_multi_got_entry_eq): Handle
3176 (mips_tls_got_relocs, mips_elf_count_local_tls_relocs)
3177 (mips_elf_count_global_tls_entries, mips_elf_count_global_tls_relocs)
3178 (mips_elf_output_dynamic_relocation, mips_elf_initialize_tls_slots)
3179 (mips_tls_got_index): New functions.
3180 (mips_elf_local_got_index): Add new R_SYMNDX, H, and R_TYPE
3181 arguments. Pass them to mips_elf_create_local_got_entry. Use
3183 (mips_elf_global_got_index): Add new R_TYPE and INFO arguments.
3185 (mips_elf_got_page, mips_elf_got16_entry): Update calls to
3186 mips_elf_create_local_got_entry.
3187 (mips_elf_create_local_got_entry): Add new R_SYMNDX, H, and R_TYPE
3188 arguments. Handle TLS entries.
3189 (mips_elf_sort_hash_table_f): Add non-TLS assertions.
3190 (mips_elf_record_local_got_symbol): Add new TLS_FLAG argument. Handle
3192 (mips_elf_record_global_got_symbol): Likewise.
3193 (mips_elf_make_got_per_bfd): Initialize new mips_got_info members.
3195 (mips_elf_merge_gots): Handle TLS entries when merging.
3196 (mips_elf_initialize_tls_index): New function.
3197 (mips_elf_set_global_got_offset): Handle TLS entries.
3198 (mips_elf_adjust_gp): Handle TLS.
3199 (mips_elf_multi_got): Remove redundant call to
3200 mips_elf_resolve_final_got_entries. Initialize global_count.
3201 Correct a comment. Initialize new TLS members of mips_got_info.
3202 Assign TLS GOT indexes for new GOTs.
3203 (mips_elf_create_got_section): Initialize new TLS members of
3205 (mips_elf_calculate_relocation): Handle TLS relocs.
3206 (_bfd_mips_elf_check_relocs): Likewise. Update calls to changed
3208 (_bfd_mips_elf_always_size_sections): Handle TLS.
3209 (_bfd_mips_elf_size_dynamic_sections): Likewise.
3210 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Update calls to
3212 (_bfd_mips_elf_copy_indirect_symbol): Copy tls_type.
3213 (_bfd_mips_elf_hide_symbol): Handle TLS.
3214 * elfn32-mips.c (elf_mips_howto_table_rel, elf_mips_howto_table_rela)
3215 (mips_reloc_map): Add TLS relocs.
3216 * elf32-mips.c (elf_mips_howto_table_rel, mips_reloc_map): Likewise.
3217 * elf64-mips.c (mips_elf64_howto_table_rel)
3218 (mips_elf64_howto_table_rela, mips_reloc_map): Likewise.
3219 * reloc.c: Define new MIPS TLS relocations.
3220 * libbfd.h, bfd-in2.h: Regenerated.
3222 2005-03-02 Jan Beulich <jbeulich@novell.com>
3224 * Makefile.am: Add dependency of cache.o on libiberty.h.
3225 * cache.c: Include libiberty.h.
3226 (bfd_open_file): Use unlink_if_ordinary instead of unlink.
3228 2005-03-01 Zack Weinberg <zack@codesourcery.com>
3230 * elf.c (bfd_section_from_shdr <default case>): Call
3231 elf_backend_section_from_shdr hook unconditionally, and return
3233 (bfd_section_from_phdr): Similarly, for elf_backend_section_from_phdr.
3234 * elfxx-target.h (elf_backend_section_from_shdr)
3235 (elf_backend_section_from_phdr): Default to
3236 _bfd_elf_make_section_from_shdr and _bfd_elf_make_section_from_phdr
3239 2005-03-01 Alan Modra <amodra@bigpond.net.au>
3241 * targets.h: Typo fix.
3242 * bfd-in2.h: Regenerate.
3244 * bout.c (b_out_write_object_contents): Don't use sizeof on host
3245 structs to size on-disk structures.
3246 (b_out_set_section_contents): Size the external struct, not the
3247 internal one for on-disk size.
3248 (b_out_sizeof_headers): Likewise.
3250 2005-03-01 Alan Modra <amodra@bigpond.net.au>
3252 * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym
3253 entry points with the func descriptor as well as undefweak.
3255 2005-02-28 Ross Ridge <rridge@csclub.uwaterloo.ca>
3257 * peicode.h (pe_ILF_build_a_bfd): Do not assume that an @ will be
3258 present when IMPORT_NAME_UNDOECRATE is used.
3260 2005-02-28 H.J. Lu <hongjiu.lu@intel.com>
3263 * elf-bfd.h (_bfd_elf_merge_symbol): Add a pointer to unsigned
3266 * elf32-sh-symbian.c (sh_symbian_relocate_section): Pass NULL
3267 to _bfd_elf_merge_symbol.
3269 * elflink.c (_bfd_elf_merge_symbol): Use the pointer to
3270 unsigned int to return the alignment of the old common symbol
3271 in the dynamic object.
3272 (_bfd_elf_add_default_symbol): Pass NULL to
3273 _bfd_elf_merge_symbol.
3274 (elf_link_add_object_symbols): Pass &old_alignment to
3275 _bfd_elf_merge_symbol. Get the alignment of the new common
3276 symbol in the dynamic object.
3278 2005-02-24 Ben Elliston <bje@au.ibm.com>
3280 * coffcode.h (coff_sym_filepos): Remove GNU960 conditional code.
3281 * format.c (bfd_check_format_matches): Likewise.
3282 * archive.c (BFD_GNU960_ARMAG): Likewise.
3283 (bfd_generic_archive_p): Likewise.
3284 (_bfd_write_archive_contents): Likewise.
3286 2005-02-24 H.J. Lu <hongjiu.lu@intel.com>
3288 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.95.
3289 * configure: Regenerate.
3291 2005-02-24 Julian Brown <julian@sirius.codesourcery.com>
3293 * elflink.c (elf_link_add_object_symbols): Force symbols in discarded
3294 COMDAT group sections to have default visibility.
3296 2005-02-24 Alan Modra <amodra@bigpond.net.au>
3298 * coffcode.h (coff_print_aux): Warning fix.
3299 * elf-m10300.c (mn10300_elf_relax_section): Use section->id
3300 instead of section pointer to identify.
3301 * coff-h8300.c (h8300_reloc16_extra_cases): Likewise. Allocate
3302 the correct size buffer for local sym mangling too.
3303 (h8300_bfd_link_add_symbols): Likewise.
3304 * elf32-sh-symbian.c (sh_symbian_process_embedded_commands): Fix
3306 * elf32-sh64.c (shmedia_prepare_reloc): Use %B and %p in error message
3307 * elf32-xtensa.c (literal_value_hash): Warning fix.
3308 * versados.c (process_otr): Warning fix.
3309 (versados_canonicalize_reloc): Likewise.
3310 * vms-gsd.c (_bfd_vms_slurp_gsd): Warning fix.
3311 * vms.c (fill_section_ptr): Warning fix.
3313 2005-02-23 H.J. Lu <hongjiu.lu@intel.com>
3315 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Defined.
3316 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Likewise.
3318 2005-02-23 Nick Clifton <nickc@redhat.com>
3320 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Initialise
3321 the relvaddr field of the Elf32_crinfo structure.
3323 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Initialise
3324 variables that are passed by reference to
3325 m68hc11_get_relocation_value in case that function does not
3328 * elf32-cr16c.c (cr16c_elf_final_link_relocate): Remove duplicated
3329 return statements and replace with a single return at the end of
3330 the function. This helps pacify the flow analysis code in gcc 4.0.
3332 * elf.c (_bfd_elf_compute_section_file_positions): Initialise
3333 strtab to avoid compile time warning.
3335 2005-02-23 Ben Elliston <bje@au.ibm.com>
3337 * opncls.c (bfd_zalloc): Document this function.
3339 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
3341 * coffcode.h (sec_to_styp_flags): Replaced SEC_CLINK with
3342 SEC_TIC54X_CLINK. Replace SEC_BLOCK with SEC_TIC54X_BLOCK.
3343 Replace SEC_SHARED with SEC_COFF_SHARED.
3344 (styp_to_sec_flags): Likewise.
3346 * elfxx-target.h (TARGET_BIG_SYM): Remove SEC_ARCH_BIT_0.
3347 (TARGET_LITTLE_SYM): Likewise.
3349 * section.c (SEC_ARCH_BIT_0): Removed.
3350 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Defined with
3351 SEC_LINK_DUPLICATES_ONE_ONLY and SEC_LINK_DUPLICATES_SAME_SIZE.
3352 (SEC_SHARED): Renamed to ...
3353 (SEC_COFF_SHARED): This.
3354 (SEC_BLOCK): Renamed to ...
3355 (SEC_TIC54X_BLOCK): This.
3356 (SEC_CLINK): Renamed to ...
3357 (SEC_TIC54X_CLINK): This.
3358 (SEC_XXX): Rearranged. Move SEC_COFF_SHARED_LIBRARY,
3359 SEC_COFF_SHARED, SEC_TIC54X_BLOCK and SEC_TIC54X_CLINK to the
3361 * bfd-in2.h: Regenerated.
3363 2005-02-21 Fred Fish <fnf@specifixinc.com>
3365 * dwarf2.c (find_abstract_instance_name): Call recursively
3366 to handle a DW_AT_specification.
3368 2005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3370 * elfxx-mips.c (ecoff_swap_rpdr_out, mips_elf_output_extsym,
3371 mips_elf_create_dynamic_relocation,
3372 _bfd_mips_elf_size_dynamic_sections, _bfd_mips_elf_final_link):
3373 Remove #if 0'd code.
3375 2005-02-21 Alan Modra <amodra@bigpond.net.au>
3377 * Makefile.am: Run "make dep-am"
3378 * Makefile.in: Regenerate.
3380 2005-02-21 Alan Modra <amodra@bigpond.net.au>
3382 * coffgen.c (bfd_coff_get_comdat_section): Check that
3383 coff_section_data isn't NULL.
3385 2005-02-21 Alan Modra <amodra@bigpond.net.au>
3387 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Warning fix.
3388 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Likewise.
3389 * coff-rs6000.c (xcoff_write_armap_big): Warning fixes. Remove
3390 useless assignments.
3391 (xcoff_write_archive_contents_big): Likewise.
3392 (_bfd_xcoff_put_ldsymbol_name): Likewise.
3393 * coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise.
3394 * coffgen.c (coff_write_symbols): Make "written" a bfd_vma.
3395 * cofflink.c (process_embedded_commands): Warning fixes.
3396 * cpu-arm.c: Delete unnecessary prototypes. Convert to C90.
3398 * dwarf2.c: Warning fixes.
3399 * elf-bfd.h: Likewise.
3400 * elf-eh-frame.c: Likewise.
3401 * elf-strtab.c: Likewise.
3403 * elf32-m68k.c: Likewise.
3404 * elf32-ppc.c: Likewise.
3405 * elf32-sh-symbian.c: Likewise.
3406 * elf32-sh.c: Delete unnecessary prototypes. Warning fixes.
3407 * elf64-sh64.c: Likewise.
3408 * peicode.h: Likewise.
3409 * elf64-mmix.c: Warning fixes.
3410 * elfcode.h: Likewise.
3411 * elfxx-mips.c: Likewise.
3412 * libbfd-in.h: Likewise.
3413 * libbfd.c: Likewise.
3414 * mach-o.c: Likewise.
3415 * merge.c: Likewise.
3417 * opncls.c: Likewise.
3420 * vms-hdr.c: Likewise.
3421 * vms-tir.c: Likewise.
3422 * xtensa-isa.c: Likewise.
3423 * xtensa-modules.c: Likewise.
3425 (pstrcmp): Use correct choice of string lengths. Fix return value.
3426 (bfd_sym_module_name): Correct string length.
3427 * bfd-in2.h: Regenerate.
3428 * libbfd.h: Regenerate.
3430 2005-02-17 Alexandre Oliva <aoliva@redhat.com>
3432 * elf32-frv.c (elf32_frv_relocate_section): Remove warning from
3433 uninitialized check_segment[1] in TLSMOFF case.
3434 Reported by Alan Modra.
3435 (elf32_frv_relocate_section): Improve errors and warnings.
3437 2005-02-17 Alan Modra <amodra@bigpond.net.au>
3439 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning.
3441 2005-02-16 Alan Modra <amodra@bigpond.net.au>
3443 * coff-arm.c (coff_arm_is_local_label_name): Warning fix.
3444 * elf32-frv.c (frvfdpic_relocs_info_hash): Likewise.
3445 * pef.c (bfd_pef_scan): Don't ignore return value of
3446 bfd_pef_scan_start_address.
3447 * mach-o.c (bfd_mach_o_scan): Don't ignore return value of
3448 bfd_mach_o_scan_start_address.
3449 * elfxx-ia64.c (elfNN_ia64_relax_brl): Rewrite for 32-bit bfd_vma.
3450 * elfxx-mips.c: Remove unnecessary prototypes.
3451 (sort_dynamic_relocs_64): Abort if not BFD64.
3453 2005-02-16 Alan Modra <amodra@bigpond.net.au>
3455 * elf64-ppc.c (ppc64_elf_edit_toc): Skip toc if size is zero.
3456 Skip toc reloc adjust if reloc_count is zero.
3458 2005-02-15 Nigel Stephens <nigel@mips.com>
3459 Maciej W. Rozycki <macro@mips.com>
3461 * elf32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
3462 reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
3463 R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
3464 (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
3465 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
3467 (mips16_gprel_reloc): Remove bit shuffling; call
3468 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
3469 and _bfd_mips16_elf_reloc_shuffle() instead.
3470 (mips16_reloc_map): New reloc map for MIPS16 relocs.
3471 (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
3473 (mips_elf32_rtype_to_howto): Fetch MIPS16 howtos from
3474 elf_mips16_howto_table_rel.
3475 * elf64-mips.c (mips16_elf64_howto_table_rel): New array for
3476 MIPS16 REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16
3477 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
3478 (elf_mips16_jump_howto): Move into mips16_elf64_howto_table_rel.
3479 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
3481 (mips16_elf64_howto_table_rela): New array for MIPS16 RELA
3482 reloc howtos. Add R_MIPS16_26, R_MIPS16_GPREL, R_MIPS16_HI16 and
3483 R_MIPS16_LO16 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16
3485 (mips16_gprel_reloc): Remove bit shuffling; call
3486 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
3487 and _bfd_mips16_elf_reloc_shuffle() instead.
3488 (mips16_reloc_map): New reloc map for MIPS16 relocs.
3489 (bfd_elf64_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
3491 (mips_elf64_rtype_to_howto): Fetch MIPS16 howtos from
3492 mips16_elf64_howto_table_rela or mips16_elf64_howto_table_rel.
3493 * elfn32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
3494 REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
3495 R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
3496 (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
3497 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
3499 (mips16_gprel_reloc): Remove bit shuffling; call
3500 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
3501 and _bfd_mips16_elf_reloc_shuffle() instead.
3502 (mips16_reloc_map): New reloc map for MIPS16 relocs.
3503 (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
3505 (mips_elf_n32_rtype_to_howto): Fetch MIPS16 howtos from
3506 elf_mips16_howto_table_rela or elf_mips16_howto_table_rel.
3507 * elfxx-mips.c (_bfd_mips16_elf_reloc_unshuffle): New function to
3508 handle bit shuffling for MIPS16 relocs.
3509 (_bfd_mips16_elf_reloc_shuffle): Likewise.
3510 (_bfd_mips_elf_lo16_reloc): Use _bfd_mips16_elf_reloc_unshuffle()
3511 and _bfd_mips16_elf_reloc_shuffle().
3512 (_bfd_mips_elf_generic_reloc): Likewise.
3513 (mips_elf_calculate_relocation): Likewise. Handle R_MIPS16_HI16
3515 (mips_elf_obtain_contents): Remove bit shuffling.
3516 (mips_elf_perform_relocation): Likewise; call
3517 _bfd_mips16_elf_reloc_unshuffle() and _bfd_mips16_elf_reloc_shuffle()
3519 (_bfd_mips_elf_relocate_section): Likewise. Handle R_MIPS16_HI16
3521 * elfxx-mips.h (_bfd_mips16_elf_reloc_unshuffle): Declare.
3522 (_bfd_mips16_elf_reloc_shuffle): Likewise.
3523 * reloc.c (BFD_RELOC_MIPS16_HI16): New reloc.
3524 (BFD_RELOC_MIPS16_HI16_S): Likewise.
3525 (BFD_RELOC_MIPS16_LO16): Likewise.
3526 * bfd-in2.h: Regenerate.
3527 * libbfd.h: Regenerate.
3529 2005-02-15 Jan Beulich <jbeulich@novell.com>
3531 * elfxx-ia64.c (ia64_howto_table): Correct strings for
3532 R_IA64_DTPMOD64[LM]SB.
3534 2005-02-14 H.J. Lu <hongjiu.lu@intel.com>
3536 * elfxx-ia64.c (elfNN_ia64_relax_section): Allow relax
3537 backward branch in the same section.
3538 (elfNN_ia64_relocate_section): Inform users that the input
3539 section is too big to relax br instruction when overflow
3540 happens to R_IA64_PCREL21B, R_IA64_PCREL21BI, R_IA64_PCREL21M
3541 and R_IA64_PCREL21F.
3543 2005-02-14 Orjan Friberg <orjanf@axis.com>
3545 * elfcore.h (elf_core_file_p): Move the call to
3546 elf_backend_object_p to allow the correct machine to be set before
3547 processing the program headers.
3549 2005-02-14 Nick Clifton <nickc@redhat.com>
3552 * peicode.h (pe_bfd_copy_private_bfd_data): Copy the large address
3553 aware flag from the input bfd to the output bfd.
3555 2005-02-11 Maciej W. Rozycki <macro@mips.com>
3557 * elf32-mips.c (_bfd_mips_elf32_gprel16_reloc): Reject
3558 R_MIPS_LITERAL relocations for external symbols.
3559 * elf64-mips.c (mips_elf64_literal_reloc): Likewise.
3560 * elfn32-mips.c (mips_elf_literal_reloc): Likewise.
3562 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
3564 * bfd-in2.h: Rebuilt.
3566 2005-02-11 Paul Brook <paul@codesourcery.com>
3568 * elf-bfd.h (struct elf_link_hash_table): Add
3569 is_relocatable_executable.
3570 * elf.c (_bfd_elf_link_hash_table_init): Initialize it.
3571 * elflink.c (bfd_elf_link_record_dynamic_symbol): Create local dynamic
3572 symbols in relocatable executables.
3573 (bfd_elf_record_link_assignment): Create dynamic section symbols in
3574 relocatable executables.
3575 (_bfd_elf_link_renumber_dynsyms): Ditto.
3576 (bfd_elf_final_link): Ditto.
3577 * elf32-arm.c (elf32_arm_final_link_relocate): Copy absolute
3578 relocations into relocatable executables.
3579 (elf32_arm_check_relocs): Crate dynamic sections for relocatable
3580 executables. Also copy absolute relocations.
3581 (elf32_arm_adjust_dynamic_symbol): Don't create copy relocations
3582 in relocatable executables.
3583 (allocate_dynrelocs): Copy relocations for relocatable executables.
3584 Output dynamic symbols for symbols defined in linker scripts.
3586 2005-02-11 Nick Clifton <nickc@redhat.com>
3588 * libbfd.c (read_signed_leb128): Use an unsigned type for 'shift'
3589 to avoid a compile time warning.
3591 * coff-alpha.c (alpha_adjust_reloc_in): Remove redundant test from
3594 * coff-tic4x.c (coff_rtype_to_howto): Move definition before
3595 inclusion of coffcode.h so that it is actually picked up.
3597 * coffcode.h (coff_std_swap_table): Add an unused attribute in
3598 case it is not used.
3600 * elf32-ip2k.c (ip2k_call_opcode, IS_CALL_OPCODE): Remove unused
3601 structure and macro.
3603 * elf32-iq2000.c (iq2000_reloc_map): Remove unused structure and
3606 * elf32-m32r.c (m32r_reloc_map_old): Use #ifdef USE_M32R_OLD_RELOC
3607 to protect the declaration of this array.
3609 * xsym.c (bfd_sym_parse_contained_variables_table_entry_v32):
3610 Avoid call to memcpy with a size of 0.
3612 2005-02-12 Alan Modra <amodra@bigpond.net.au>
3614 * elf64-ppc.c (toc_adjusting_stub_needed): Return true for
3615 old-style branches to undefined dot-symbols which will be
3616 satisfied by a plt call.
3618 2005-02-11 Alan Modra <amodra@bigpond.net.au>
3620 * elf64-ppc.c (move_plt_plist): New function, extracted from..
3621 (ppc64_elf_copy_indirect_symbol): ..here.
3622 (func_desc_adjust): Use move_plt_plist.
3624 2005-02-10 Paul Brook <paul@codesourcery.com>
3626 * elf32-arm.c (elf32_arm_final_link_relocate): Handle R_ARM_THM_PC9.
3628 2005-02-10 Paul Brook <paul@codesourcery.com>
3630 * elflink.c (bfd_elf_record_link_assignment): Make hidden and internal
3632 (elf_link_renumber_hash_table_dynsyms): Ignore local symbols.
3633 (elf_link_renumber_local_hash_table_dynsyms): New function.
3634 (_bfd_elf_link_renumber_dynsyms): Number local dynamic symbols.
3636 2005-02-10 Jakub Jelinek <jakub@redhat.com>
3638 * bfd-in.h (BFD_LINKER_CREATED): Define.
3639 * bfd-in2.h: Rebuilt.
3640 * elflink.c (bfd_elf_size_dynamic_sections): Disregard
3641 BFD_LINKER_CREATED bfds when determining input bfds without
3642 .note.GNU-stack section.
3644 2005-02-10 Maciej W. Rozycki <macro@mips.com>
3646 * elf64-mips.c (mips16_gprel_reloc): Update a comment.
3647 * elfn32-mips.c (mips16_gprel_reloc): Keep R_MIPS16_GPREL
3648 relocations against external symbols unchanged.
3650 2005-02-08 Paul Brook <paul@codesourcery.com>
3652 * elflink.c (elf_link_input_bfd): Ignore symbols from null input
3655 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
3657 * elflink.c (elf_link_add_object_symbols): Don't add "warning: "
3660 2005-02-07 Maciej W. Rozycki <macro@mips.com>
3662 * elf64-mips.c: Fix formatting throughout.
3664 2005-02-07 Maciej W. Rozycki <macro@mips.com>
3666 * elfn32-mips.c (elf_mips_howto_table_rela): Fix a comment typo.
3668 2005-02-07 Alexandre Oliva <aoliva@redhat.com>
3670 * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove special handling for
3671 *ABS*/*UND* sections.
3672 (elf32_frv_relocate_section): Move zero-addend-required error...
3673 (_frv_emit_got_relocs_plt_entries): ... here. Report error for
3674 missing needed TLS section.
3676 2005-02-07 Hans-Peter Nilsson <hp@axis.com>
3678 * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO
3679 being the last symbol.
3680 (aout_link_add_symbols): Just return TRUE if a warning
3683 2005-02-07 Maciej W. Rozycki <macro@mips.com>
3685 * elf32-mips.c (mips_elf_gprel32_reloc): Reject
3686 R_MIPS_GPREL32 relocations against external symbols.
3687 * elf64-mips.c (mips_elf64_gprel32_reloc): Replace an incorrect
3690 2005-02-07 Alan Modra <amodra@bigpond.net.au>
3692 * elf-bfd.h (elf_string_from_elf_strtab): Delete macro.
3693 * elf.c (bfd_elf_string_from_elf_section): Expand occurrence of
3694 elf_string_from_elf_strtab.
3695 (_bfd_elf_setup_group_pointers, bfd_section_from_shdr): Likewise.
3696 (bfd_section_from_shdr): For SHT_SYMTAB, load SHT_SYMTAB_SHNDX too
3697 if it exists. Don't do the reverse for SHT_SYMTAB_SHNDX. For
3698 SHT_STRTAB, check whether the strtab is for symtab or dynsymtab by
3699 looking at cached symtab info first, before iterating over headers.
3700 For SHT_REL and SHT_RELA, load dynsymtab if needed.
3701 * elfcode.h (elf_object_p): Don't load section header stringtab
3704 2005-02-06 H.J. Lu <hongjiu.lu@intel.com>
3706 * elf32-i386.c (elf_i386_relocate_section): Disallow R_386_GOTOFF
3707 against protected function when building shared library.
3710 * elf64-x86-64.c (is_32bit_relative_branch): New.
3711 (elf64_x86_64_relocate_section): Alllow R_X86_64_PC32 on a
3712 protected function symbol when building shared library for
3713 32bit relative branch instruction.
3715 2005-02-06 Alan Modra <amodra@bigpond.net.au>
3717 * elf64-ppc.c (add_symbol_adjust): Don't create fake descriptor
3718 syms when doing a relocatable link.
3719 (ppc64_elf_gc_mark_hook): Check that syms are defined before looking
3721 (ppc64_elf_tls_setup): Likewise.
3722 (ppc64_elf_edit_opd): Don't use an undefined func desc sym.
3724 2005-02-04 Alan Modra <amodra@bigpond.net.au>
3726 * elf64-ppc.c (struct ppc_link_hash_entry): Add "fake".
3727 (link_hash_newfunc): Clear all locals using memset.
3728 (make_fdh): Remove flags param. Always create fake func desc
3729 weak. Link the descriptor with the code entry sym.
3730 (ppc64_elf_archive_symbol_lookup): Don't return fake syms.
3731 (add_symbol_adjust): Adjust make_fdh call.
3732 (func_desc_adjust): Likewise. Twiddle any pre-existing fake
3733 descriptor to strong undefined if code entry is strong.
3735 2005-02-04 Alan Modra <amodra@bigpond.net.au>
3737 * elflink.c (bfd_elf_record_link_assignment): Do "provide" symbol
3738 lookup here. Set to new before calling bfd_link_repair_undef_list.
3739 (elf_smash_syms): Check that u.undef.weak isn't the not_needed bfd.
3741 2005-02-03 Alan Modra <amodra@bigpond.net.au>
3743 * linker.c (_bfd_link_hash_newfunc): Set all local fields.
3745 2005-02-03 Alan Modra <amodra@bigpond.net.au>
3747 * linker.c (_bfd_generic_link_add_one_symbol): Set u.undef.weak.
3748 * elflink.c (elf_smash_syms): Restore symbols that were undefweak
3749 before the as-needed lib was loaded. Abort on unexpected refs.
3751 2005-02-02 Alan Modra <amodra@bigpond.net.au>
3753 * elflink.c (elf_smash_syms): Expand comments.
3754 (elf_link_add_object_symbols): Only call elf_smash_syms for
3755 as-needed dynamic objects.
3757 * elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear
3758 everything, just the field specific to ia64.
3759 * elf64-hppa.c (elf64_hppa_new_dyn_hash_entry): Likewise.
3761 2005-02-01 Alan Modra <amodra@bigpond.net.au>
3763 * elf64-ppc.c (func_desc_adjust): Move code creating func desc sym to..
3764 (make_fdh): ..here. New function. Don't set BSF_OBJECT for
3766 (struct add_symbol_adjust_data): New.
3767 (add_symbol_adjust): Make an undefweak func desc for old ABI
3768 objects to link with --as-needed shared libs. Return fail status.
3769 Don't adjust old ABI func entry sym to weak if func desc syms
3771 (ppc64_elf_check_directives): Adjust call to add_symbol_adjust,
3774 2005-02-01 Hans-Peter Nilsson <hp@axis.com>
3776 * cpu-cris.c (get_compatible): Rearrange disabled code and comment
3779 2005-02-01 Alan Modra <amodra@bigpond.net.au>
3781 * elf64-ppc.c (ppc64_elf_check_directives): Move undefs list fixup..
3782 * linker.c (bfd_link_repair_undef_list): ..to new function, but don't
3783 remove anything but new and undefweak.
3784 * elflink.c (_bfd_elf_link_create_dynamic_sections): Override any
3786 (_bfd_elf_create_dynamic_sections): Formatting.
3787 (bfd_elf_record_link_assignment): Call bfd_link_repair_undef_list.
3788 (_bfd_elf_merge_symbol): Don't handle as-needed syms here.
3789 (struct elf_smash_data): New.
3790 (elf_smash_syms): New function.
3791 (elf_link_add_object_symbols): Call elf_smash_syms. Don't add
3792 unneeded dynamic objects to loaded list.
3793 (elf_link_output_extsym): Don't handle as-needed here. Strip
3794 bfd_link_hash_new symbols.
3795 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
3796 delref when dynindx is already -1.
3797 * elf64-alpha.c (elf64_alpha_output_extsym): Strip bfd_link_hash_new
3799 * elfxx-mips.c (mips_elf_output_extsym): Likewise.
3801 2005-02-01 Ben Elliston <bje@au.ibm.com>
3803 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Redefine.
3805 2005-02-01 Ben Elliston <bje@au.ibm.com>
3807 * aout-arm.c, aout-target.h, aoutx.h, archive.c, armnetbsd.c,
3808 bfd-in.h, bfdio.c, coff-alpha.c, coff-arm.c, coff-h8300.c,
3809 coff-i860.c, coff-mcore.c, coff-or32.c, coff-ppc.c, coff-sh.c,
3810 coff-sparc.c, coffcode.h, coffgen.c, cofflink.c, cpu-cris.c,
3811 cpu-h8500.c, cpu-ns32k.c, ecoff.c, ecofflink.c, elf.c,
3812 elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-hppa.c,
3813 elf32-i860.c, elf32-ip2k.c, elf32-m32r.c, elf32-sh.c,
3814 elf32-v850.c, elf64-mips.c, elf64-sparc.c, elflink.c,
3815 i386aout.c, i386msdos.c, i386os9k.c, ieee.c, mach-o.c,
3816 nlm32-sparc.c, oasys.c, opncls.c, pdp11.c, pe-mips.c, peXXigen.c,
3817 pef.c, peicode.h, reloc.c, riscix.c, section.c, simple.c, som.c,
3818 sparclynx.c, targets.c, vms-misc.c, vms-tir.c, xsym.c,
3819 hosts/delta68.h, hosts/vaxbsd.h: Remove #if 0'd code
3820 throughout. Similarly, collapse #if 1'd code.
3822 2005-02-01 Ben Elliston <bje@au.ibm.com>
3824 * elf-bfd.h (bfd_elf_discard_group): Remove.
3825 * elf.c (bfd_elf_discard_group): Likewise.
3826 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Remove macro.
3828 2005-01-31 Richard Sandiford <rsandifo@redhat.com>
3830 * elf-bfd.h (elf_backend_data): Add elf_backend_eh_frame_address_size.
3831 (_bfd_elf_eh_frame_address_size): Declare.
3832 * elfxx-target.h (elf_backend_eh_frame_address_size): Define a default.
3833 (elfNN_bed): Initialize elf_backend_eh_frame_address_size.
3834 * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Declare.
3835 (elf_backend_eh_frame_address_size): Define.
3836 * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): New function.
3837 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Get the address
3838 size from the new backend hook.
3839 (_bfd_elf_write_section_eh_frame): Likewise.
3840 (_bfd_elf_eh_frame_address_size): New function.
3842 2005-01-31 Andrew Cagney <cagney@gnu.org>
3844 * configure: Regenerate to track ../gettext.m4.
3846 2005-01-31 Mark Mitchell <mark@codesourcery.com>
3848 * elf32-arm.c (elf32_arm_symbian_special_sections): Do not set
3849 SHF_WRITE for .init_array, .fini_array, and .preinit_array.
3851 2005-01-31 Nick Clifton <nickc@redhat.com>
3853 * confg.bfd: Make targets scheduled for obsoletion (m68k-lynxos,
3854 sparc-lynxos, vax-vms) be obsolete.
3856 2005-01-28 Daniel Jacobowitz <dan@codesourcery.com>
3858 * elf-bfd.h (struct elf_backend_data): Add minpagesize.
3859 * elf32-arm.c (ELF_MINPAGESIZE): Define.
3860 * elf32-ppc.c (ELF_MINPAGESIZE): Define.
3861 * elfcode.h (elf_object_p): Use minpagesize instead of
3863 * elfxx-target.h (ELF_MINPAGESIZE): Default to ELF_MAXPAGESIZE.
3864 (elfNN_bed): Include ELF_MINPAGESIZE.
3866 2005-01-28 Julian Brown <julian@codesourcery.com>
3868 * bin-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
3869 * bin-in2.h (bfd_elf32_arm_set_target_relocs): Update prototype.
3870 * elf32-arm.c (elf32_arm_link_hash_table): Add fix_v4bx flag.
3871 (bfd_elf32_arm_set_target_relocs): Add formal parameter fix_v4bx for
3872 passing flag value from ld. Set flag value in global hash table entry.
3873 (elf32_arm_final_link_relocate): Add code to implement R_ARM_V4BX
3876 2005-01-27 Andrew Cagney <cagney@gnu.org>
3878 * configure: Regenerate to track ../gettext.m4 change.
3880 2005-01-25 Mark Mitchell <mark@codesourcery.com>
3882 * elf32-arm.c (elf_backend_default_use_rela_p): Define to zero for
3885 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
3887 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
3888 * elf32-frv.c (elf32_frv_relocate_section): Force local binding
3890 * reloc.c: Add R_FRV_TLSMOFF.
3891 * elf32-frv.c (elf32_frv_howto_table): Likewise.
3892 (frv_reloc_map, frv_reloc_type_lookup): Map it.
3893 (elf32_frv_relocate_section): Handle it.
3894 (elf32_frv_check_relocs): Likewise.
3895 * libbfd.h, bfd-in2.h: Rebuilt.
3896 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
3897 * elf32-frv.c (_frvfdpic_emit_got_relocs_plt_entries): Don't crash
3898 when given an undefweak TLS symbol. Fix constant TLS PLT entries
3899 such that they return the constant in gr9.
3900 (_frvfdpic_relax_tls_entries): Don't crash for undefweak TLS
3902 (_frvfdpic_size_got_plt): Set _cooked_size of dynamic sections.
3903 too, such that they shrink on relaxation.
3904 (elf32_frvfdpic_finish_dynamic_sections): Check __ROFIXUP_END__ as
3905 marking the position right past the _GLOBAL_OFFSET_TABLE_ value.
3906 (_frvfdpic_assign_plt_entries): Shrink constant TLS PLT entries
3907 if we can guarantee the use of 16-bit constants.
3908 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
3909 Introduce TLS support for FR-V FDPIC.
3910 * reloc.c: Add TLS relocations.
3911 * elf32-frv.c (elf32_frv_howto_table): Add TLS relocations.
3912 (elf32_frv_rel_tlsdesc_value_howto): New.
3913 (elf32_frv_rel_tlsoff_howto): New.
3914 (frv_reloc_map): Add new mappings.
3915 (struct frvfdpic_elf_link_hash_table): Add pointer to summary
3917 (frvfdpic_dynamic_got_plt_info): New.
3918 (frvfdpic_plt_tls_ret_offset): New.
3919 (ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE): Move earlier.
3920 (struct _frvfdpic_dynamic_got_info): Likewise. Add TLS members.
3921 (struct _frvfdpic_dynamic_got_plt_info): Likewise.
3922 (FRVFDPIC_SYM_LOCAL): Regard symbols defined in the absolute
3924 (struct frvfdpic_relocs_info): Add TLS fields.
3925 (frvfdpic_relocs_info_hash): Warning clean up.
3926 (frvfdpic_relocs_info_find): Initialize tlsplt_entry.
3927 (frvfdpic_pic_merge_early_relocs_info): Merge TLS fields.
3928 (FRVFDPIC_TLS_BIAS): Define.
3929 (tls_biased_base): New.
3930 (_frvfdpic_emit_got_relocs_plt_entries): Deal with TLS
3932 (frv_reloc_type_lookup): Likewise.
3933 (frvfdpic_info_to_howto_rel): Likewise.
3934 (elf32_frv_relocate_section): Likewise.
3935 (_frv_create_got_section): Create the PLT section here.
3936 (elf32_frvfdpic_create_dynamic_sections): Not here.
3937 (_frvfdpic_count_nontls_entries): Move out of...
3938 (_frvfdpic_count_got_plt_entries): ... here.
3939 (_frvfdpic_count_tls_entries): Likewise. Add TLS support.
3940 (_frvfdpic_count_relocs_fixups): Likewise. Add relaxation
3942 (_frvfdpic_relax_tls_entries): New.
3943 (_frvfdpic_compute_got_alloc_data): Add TLS support.
3944 (_frvfdpic_get_tlsdesc_entry): New.
3945 (_frvfdpic_assign_got_entries): Add TLS support.
3946 (_frvfdpic_assign_plt_entries): Likewise.
3947 (_frvfdpic_reset_got_plt_entries): New.
3948 (_frvfdpic_size_got_plt): Move out of...
3949 (elf32_frvfdpic_size_dynamic_sections): ... here.
3950 (_frvfdpic_relax_got_plt_entries): New.
3951 (elf32_frvfdpic_relax_section): New.
3952 (elf32_frvfdpic_finish_dynamic_sections): Add TLS sanity check.
3953 (elf32_frv_check_relocs): Add TLS support.
3954 (bfd_elf32_bfd_relax_section): Define for FDPIC.
3955 * libbfd.h, bfd-in2.h: Rebuilt.
3957 2005-01-25 Alan Modra <amodra@bigpond.net.au>
3959 * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound): Only include
3960 loadable reloc sections.
3961 (_bfd_elf_canonicalize_dynamic_reloc): Likewise.
3962 (_bfd_elf_get_synthetic_symtab): Return 0 if no dynamic syms.
3964 2005-01-25 Alan Modra <amodra@bigpond.net.au>
3966 * elflink.c (elf_link_add_object_symbols): Don't create link dynamic
3967 sections immediately when linking shared libs. Instead, wait until
3968 we know a lib is needed.
3969 (_bfd_elf_link_create_dynstrtab): Extract from..
3970 (_bfd_elf_link_create_dynamic_sections_): ..here.
3971 (elf_add_dt_needed_tag): Call _bfd_elf_link_create_dynstrtab and
3972 _bfd_elf_link_create_dynamic_sections. Add abfd param. Allow
3973 for non-existent .dynamic.
3974 (elf_link_output_extsym): Don't complain about undefined symbols
3975 in as-needed dynamic libs that aren't actually linked.
3977 2005-01-24 Andrew Cagney <cagney@gnu.org>
3979 * configure: Regenerate, ../gettext.m4 was updated.
3981 2005-01-21 Ben Elliston <bje@au.ibm.com>
3983 * aout-encap.c: Remove unused file.
3985 2005-01-19 H.J. Lu <hongjiu.lu@intel.com>
3988 * elflink.c (_bfd_elf_dynamic_symbol_p): Only protected
3989 non-function symbols are local.
3990 (_bfd_elf_symbol_refs_local_p): Likewise.
3992 2005-01-18 Alan Modra <amodra@bigpond.net.au>
3994 * bfd.c (bfd_link_just_syms): Add abfd param.
3995 * bfd-in2.h: Regenerate.
3997 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
3999 * elf-eh-frame.c (skip_cfa_op, skip_non_nops): New functions.
4000 (_bfd_elf_discard_section_eh_frame): Use them to interpret the CFA
4001 instructions. If the amount of padding is known, reduce the size
4002 of the CIE or FDE by that amount.
4004 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
4006 * elf-bfd.h (struct cie): Use bfd_vmas for code_align, ra_column and
4007 augmentation_size. Use bfd_signed_vmas for data_align.
4008 * elf-eh-frame.c (read_uleb128, read_sleb128): Delete in favor of...
4009 (read_byte, skip_leb128, read_uleb128, read_sleb128): ...these new
4010 functions. Don't read past the end of the enclosing CIE or FDE.
4011 (skip_bytes): New utility function.
4012 (_bfd_elf_discard_section_eh_frame): Use new functions, adding more
4014 (_bfd_elf_write_section_eh_frame): Use new functions.
4016 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
4018 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use an
4019 assert-style REQUIRE() macro to handle sanity checks.
4021 2005-01-17 H.J. Lu <hongjiu.lu@intel.com>
4023 * dwarf2.c (dwarf2_debug): Move info_ptr_unit to ...
4025 (read_unsigned_leb128): Removed.
4026 (read_signed_leb128): Removed.
4027 (find_abstract_instance_name): Updated.
4028 (parse_comp_unit): Accept info_ptr_unit.
4029 (_bfd_dwarf2_find_nearest_line): Set info_ptr_unit for each
4030 comp unit and pass it to parse_comp_unit.
4032 * elf-eh-frame.c (read_unsigned_leb128): Moved to ...
4033 (read_signed_leb128): Moved to ...
4036 * libbfd-in.h (read_unsigned_leb128): New prototype.
4037 (read_signed_leb128): Likewise.
4038 * libbfd.h: Regenerated.
4040 2005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
4041 Nick Clifton <nickc@redhat.com>
4043 * cpu-sh.c (bfd_to_arch_table): Change arch_sh1_up to arch_sh_up,
4044 arch__sh4_nofp_up to arch_sh4_nofpu_up and arch_sh4a_nofp_up to
4045 arch_sh4a_nofpu_up in order to match the external names and make the
4046 testsuite's job easier.
4047 * archuires.c: Rename bfd_mach_sh2a_fake? to more meaningful
4049 * bfd-in2.h: Regenerate.
4051 2005-01-15 Andrew Cagney <cagney@gnu.org>
4054 * acinclude.m4: Move BFD_NEED_DECLARATION,
4055 BFD_HAVE_SYS_PROCFS_TYPE and BFD_HAVE_SYS_PROCFS_TYPE_MEMBER to
4056 the new file bfd.m4. Include ../bfd/bfd.m4.
4057 * configure: Re-generate.
4059 2005-01-12 Alan Modra <amodra@bigpond.net.au>
4061 * elf32-ppc.c (ppc_elf_howto_raw): Delete RELAX32* entries.
4062 (ppc_elf_relax_section): Use PLT variants of RELAX32 relocs for
4064 (ppc_elf_relocate_section): Handle R_PPC_RELAX32_PLT and
4065 R_PPC_RELAX32PC_PLT.
4067 2005-01-11 Alan Modra <amodra@bigpond.net.au>
4069 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Follow indirect and warning
4071 * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
4072 * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
4073 * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
4074 * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
4075 * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
4076 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
4077 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Likewise.
4078 * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
4079 * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
4080 * elf32-sparc.c (elf32_sparc_gc_sweep_hook): Likewise.
4081 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
4082 * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
4083 * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
4084 * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
4086 2005-01-11 Alan Modra <amodra@bigpond.net.au>
4088 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Correct
4091 2005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
4093 * archures.c: Define bfd_mach_maxq10 and bfd_mach_maxq20.
4094 * bfd-in2.h: Regenerate.
4095 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Add code
4096 to support these new machine values.
4097 * cpu-maxq.c (bfd_maxq10_arch): New architecture definition for
4099 (bfd_maxq_arch): Update values for the maxq20.
4101 2005-01-10 Eric Botcazou <ebotcazou@libertysurf.fr>
4103 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): When linking a
4104 non-shared object, do not reserve space in .plt and .rela.plt for
4105 regular symbols neither defined nor referenced in shared objects.
4107 2005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
4109 * elf32-sparc.c (elf32_sparc_link_hash_table_create): Use bfd_zmalloc
4110 to zero the structure.
4111 (create_got_section): Use BFD_ASSERT instead of abort.
4112 * elf64-sparc.c (struct sparc64_elf_link_hash_table): New 'sgot' and
4114 (create_got_section): New function.
4115 (sparc64_elf_create_dynamic_sections): Likewise.
4116 (sparc64_elf_check_relocs): Invoke create_got_section instead of
4117 _bfd_elf_create_got_section. Use the sgot and srelgot shortcuts.
4118 (sparc64_elf_size_dynamic_sections): Use the srelgot shortcut.
4119 (sparc64_elf_relocate_section): Use the sgot and srelgot shortcuts.
4120 (sparc64_elf_finish_dynamic_symbol): Likewise.
4121 (sparc64_elf_finish_dynamic_sections): Use the sgot shortcut.
4122 (elf_backend_create_dynamic_sections): Define to
4123 sparc64_elf_create_dynamic_sections.
4125 2005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
4127 * elf32-sparc.c (elf32_sparc_omit_section_dynsym): New function.
4128 (elf_backend_omit_section_dynsym): Define to it.
4129 * elf64-sparc.c (sparc64_elf_omit_section_dynsym): New function.
4130 (elf_backend_omit_section_dynsym): Define to it.
4132 2005-01-07 Jakub Jelinek <jakub@redhat.com>
4134 * bfd/elf.c (INCLUDE_SECTION_IN_SEGMENT): Don't put empty sections into
4135 PT_DYNAMIC segment, unless .dynamic.
4137 2005-01-06 Paul Brook <paul@codesourcery.com>
4139 * config.bfd: Add entry for arm-*-vxworks and arm-*-windiss.
4140 * configure.in: Add bfd_elf32_{big,little}arm_vxworks_vec.
4141 * configure: Regenerate.
4142 * elf32-arm.c: Add VxWorks target bfd.
4144 (elf32_arm_link_hash_table): Add use_rel.
4145 (elf32_arm_link_hash_table_create, elf32_arm_final_link_relocate,
4146 elf32_arm_relocate_section): Replace USE_REL with runtime check.
4147 Correct offset calculation for RELA case.
4148 (elf_backend_may_use_rel_p, elf_backend_may_use_rela_p,
4149 elf_backend_default_use_rela_p, elf_backend_rela_normal): Define.
4150 (elf32_arm_vxworks_link_hash_table_create): New function.
4151 * targets.c (bfd_elf32_bigarm_vxworks_vec): Add declaration.
4152 (bfd_elf32_littlearm_vxworks_vec): Ditto.
4153 (_bfd_target_vector): Add bfd_elf32_{big,little}arm_vxworks_vec.
4155 2005-01-06 Alan Modra <amodra@bigpond.net.au>
4157 * elf64-ppc.c (struct ppc_link_hash_table): Add no_multi_toc and
4159 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Define.
4160 (ppc64_elf_check_relocs): Update references to has_gp_reloc.
4161 (ppc64_elf_setup_section_lists): Add no_multi_toc parm, set htab bit.
4162 (ppc64_elf_next_toc_section): Heed no_multi_toc.
4163 (ppc64_elf_reinit_toc): Set multi_toc_needed.
4164 (toc_adjusting_stub_needed): Rewrite.
4165 (ppc64_elf_next_input_section): Use multi_toc_needed to shortcut
4166 toc tests. Adjust for toc_adjusting_stub_needed changes.
4167 (ppc64_elf_size_stubs): Update references to has_gp_reloc.
4168 * elf64-ppc.h (ppc64_elf_setup_section_lists): Update prototype.
4169 * section.c: Expand comment on backend bits.
4170 * bfd-in2.h: Regenerate.
4171 * libbfd.h: Regenerate.
4173 2005-01-06 Alan Modra <amodra@bigpond.net.au>
4175 * elf64-ppc.c (ppc64_elf_size_stubs): When determining need for
4176 toc adjusting stub, do not test source section flags.
4178 2005-01-05 Eric Botcazou <ebotcazou@libertysurf.fr>
4180 * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
4181 from STABS debugging sections again.
4183 2005-01-05 Fred Fish <fnf@specifixinc.com>
4185 * dwarf2.c (struct dwarf2_debug): Add info_ptr_unit member.
4186 (find_abstract_instance_name): New function.
4187 (scan_unit_for_functions): Handle DW_TAG_inlined_subroutine.
4188 (scan_unit_for_functions): Handle DW_AT_abstract_origin.
4189 (_bfd_dwarf2_find_nearest_line): Initialize info_ptr_unit.
4191 2004-12-31 Paul Brook <paul@copdesourcery.com>
4193 * elf32-arm.c (elf32_arm_symbian_plt_entry): Fix comment typo.
4195 2004-12-31 Alan Modra <amodra@bigpond.net.au>
4197 * reloc.c (BFD_RELOC_AVR_LDI, BFD_RELOC_AVR_6, BFD_RELOC_AVR_6_ADIW):
4198 Commit missing changes from 2004-12-22.
4199 * bfd-in2.h: Regenerate.
4201 2004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
4203 * elf32-crx.c (elf32_crx_relax_section): Support 'bcop' relaxation.
4205 2004-12-21 Kris Warkentin <kewarken@qnx.com>
4207 * elf.c (elfcore_grok_nto_gregs): Change name to elfcore_grok_nto_regs.
4208 Add 'base' argument for constructing register sections. Reformat.
4209 (elfcore_grok_nto_note): Call elfcore_grok_nto_regs for both
4210 gp and fp regs. Reformat.
4212 2004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
4214 * reloc.c: Add new relocs R_AVR_LDI, R_AVR_6, R_AVR_6_ADIW.
4215 * bfd-in2.h: Regenerate.
4216 * elf32-avr.c (elf_avr_nowto_table): Add the new relocs.
4217 (avr_reloc_map): Likewise.
4218 (avr_final_link_relocate): Likewise.
4220 2004-12-22 Alan Modra <amodra@bigpond.net.au>
4222 * elflink.c (_bfd_elf_merge_symbol): Treat old definitions from
4223 as-needed dynamic libs as undefined.
4224 (elf_link_add_object_symbols): Remove DYN_AS_NEEDED from as-needed
4225 libs when finding they are needed.
4227 2004-12-20 Alan Modra <amodra@bigpond.net.au>
4229 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add opd_relocs.
4230 (opd_entry_value): Use opd_relocs if available.
4231 (ppc64_elf_relocate_section): Don't set reloc_done. Instead
4232 copy .opd relocations to opd_relocs.
4233 (ppc64_elf_edit_toc): Set rel_hdr.sh_size after editing relocs.
4235 2004-12-16 Richard Sandiford <rsandifo@redhat.com>
4237 * reloc.c (BFD_RELOC_V850_LO16_SPLIT_OFFSET): New bfd_reloc_code_type.
4238 * elf32-v850.c (v850_elf_howto_table): Add entry for
4239 R_V850_LO16_SPLIT_OFFSET.
4240 (v850_elf_reloc_map): Map it to BFD_RELOC_V850_LO16_SPLIT_OFFSET.
4241 (v850_elf_perform_lo16_relocation): New function, extracted from...
4242 (v850_elf_perform_relocation): ...here. Use it to handle
4243 R_V850_LO16_SPLIT_OFFSET.
4244 (v850_elf_check_relocs, v850_elf_final_link_relocate): Handle
4245 R_V850_LO16_SPLIT_OFFSET.
4246 * libbfd.h, bfd-in2.h: Regenerate.
4248 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
4250 * config.bfd: Add s390x-ibm-tpf support.
4252 2004-12-14 Tomer Levi <Tomer.Levi@nsc.com>
4254 * elf32-crx.c (elf32_crx_relax_delete_bytes): Add 'struct bfd_link_info *'
4255 to prototype, to make hash info available.
4256 Prevent wrapped symbols from being adjusted twice.
4258 2004-12-14 Richard Sandiford <rsandifo@redhat.com>
4260 * elfxx-mips.c (mips_elf_calculate_relocation): Don't report an
4261 overflow for calls to undefined weak symbols.
4263 2004-12-11 Alan Modra <amodra@bigpond.net.au>
4265 * elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
4266 canonical sections syms have a name.
4268 2004-12-11 Alan Modra <amodra@bigpond.net.au>
4270 * elf64-ppc.c (opd_entry_value): Don't use cached relocs if they
4271 have been adjusted for output.
4272 (ppc64_elf_relocate_section): Mark sections with reloc_done.
4274 2004-12-10 Alan Modra <amodra@bigpond.net.au>
4276 * elf.c (bfd_elf_sym_name): Rename from bfd_elf_local_sym_name and
4277 add symtab_hdr param.
4278 (group_signature): Update calls.
4279 * elf-bfd.h (bfd_elf_sym_name): Update.
4280 * elf32-ppc.c (ppc_elf_relocate_section): Update.
4281 * elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Update.
4282 (ppc64_elf_relocate_section): Update.
4283 * elflink.c (elf_link_input_bfd): Update.
4285 2004-12-10 Jakub Jelinek <jakub@redhat.com>
4287 * elf.c (bfd_elf_local_sym_name): Avoid crashes with invalid
4288 st_shndx on STT_SECTION sections.
4290 2004-12-09 Daniel Jacobowitz <dan@codesourcery.com>
4292 * elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalize
4293 ELF section symbols.
4295 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
4297 * elfxx-mips.c (mips_elf_calculate_relocation): For R_MIPS_JALR,
4298 return a real value, unless it is a PLT symbol.
4299 (mips_elf_perform_relocation): On the RM9000, turn a jal into a
4302 * elfn32-mips.c (elf_mips_howto_table_rela): Change dst_mask of
4303 R_MIPS_JALR entry to 0.
4305 * archures.c: Define bfd_mach_mips9000.
4306 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_9000.
4307 (mips_set_isa_flags): Handle bfd_mach_mips9000.
4308 * cpu-mips.c (I_mips9000): Define.
4309 (arch_info_struct): Add case for bfd_mach_mips9000.
4310 * aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mips9000.
4311 * bfd-in2.h: Regenerate.
4313 2004-12-08 Ian Lance Taylor <ian@wasabisystems.com>
4315 * elfxx-mips.c (mips_elf_calculate_relocation): Test for R_MIPS_26
4318 2004-12-07 Ben Elliston <bje@gnu.org>
4320 * netbsd-core.c (netbsd_core_file_p): Make `i' unsigned.
4322 2004-12-06 Daniel Jacobowitz <dan@debian.org>
4324 Suggested by Fergal Daly <fergal@esatclear.ie>:
4325 * simple.c (simple_dummy_multiple_definition): New function.
4326 (bfd_simple_get_relocated_section_contents): Use it.
4328 2004-12-03 Jan Beulich <jbeulich@novell.com>
4330 * elf.c (elf_find_function): Don't use the last file symbol ever,
4331 seen, but the last one seen prior to the symbol being reported.
4332 Don't report a filename at all for global symbols when that might
4335 2004-12-01 Paul Brook <paul@codesourcery.com>
4337 * elf32-arm.c (elf32_arm_copy_private_bfd_data): Set EI_OSABI.
4338 (elf32_arm_post_process_headers): Set EI_OSABI depending on ABI
4341 2004-12-01 Paul Brook <paul@codesourcery.com>
4343 * elflink.c (elf_link_add_object_symbols): Make symbols from discarded
4346 2004-11-30 Paul Brook <paul@codesourcery.com>
4348 * elf32-arm.c (struct elf32_arm_link_hash_table): Remove
4349 no_pipeline_knowledge
4350 (elf32_arm_link_hash_table_create): Ditto.
4351 (bfd_elf32_arm_process_before_allocation): Ditto.
4352 (elf32_arm_final_link_relocate): Ditto. Remove oabi relocation
4354 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
4356 * bfd-in2.h: Regenerate.
4358 2004-11-30 Randolph Chung <tausq@debian.org>
4360 * elf32-hppa.c (elf32_hppa_grok_prstatus): New function.
4361 (elf32_hppa_grok_psinfo): New function.
4362 (elf_backend_grok_prstatus): Define.
4363 (elf_backend_grok_psinfo): Define.
4365 2004-11-24 H.J. Lu <hongjiu.lu@intel.com>
4368 * elfcode.h (elf_slurp_symbol_table): Handle STT_TLS.
4370 2004-11-24 Paul Brook <paul@codesourcery.com>
4372 * elf.c (assign_section_numbers): Number SHT_GROUP sections first.
4374 2004-11-24 Paul Brook <paul@codesourcery.com>
4376 * elf32-arm.c (elf32_arm_swap_symbol_in): New function.
4377 (elf32_arm_swap_symbol_out): New function.
4378 (elf32_arm_size_info): Add.
4379 (elf_backend_size_info): Define.
4381 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4383 * hpux-core.c (hpux_core_core_file_p): Use offsetof macro in calls to
4386 2004-11-19 Alan Modra <amodra@bigpond.net.au>
4388 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Warning fix.
4389 * elf32-iq2000.c (iq2000_reloc_type_lookup): C90 function decl.
4390 * nlmcode.h (nlm_write_object_contents): Warning fix.
4392 2004-11-18 Bob Wilson <bob.wilson@acm.org>
4394 * elf32-xtensa.c (ebb_propose_action): Fix argument order.
4396 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
4398 * elf32-arm.c (PLT_THUMB_STUB_SIZE): Define.
4399 (elf32_arm_plt_thumb_stub): New.
4400 (struct elf32_arm_link_hash_entry): Add plt_thumb_refcount
4402 (elf32_arm_link_hash_traverse): Fix typo.
4403 (elf32_arm_link_hash_table): Add obfd.
4404 (elf32_arm_link_hash_newfunc): Initialize new fields.
4405 (elf32_arm_copy_indirect_symbol): Copy plt_thumb_refcount.
4406 (elf32_arm_link_hash_table_create): Initialize obfd.
4407 (record_arm_to_thumb_glue): Mark the glue as a local ARM function.
4408 (record_thumb_to_arm_glue): Mark the glue as a local Thumb function.
4409 (bfd_elf32_arm_get_bfd_for_interworking): Verify that the
4410 interworking BFD is not dynamic.
4411 (bfd_elf32_arm_process_before_allocation): Handle R_ARM_PLT32. Do
4412 not emit glue for PLT references.
4413 (elf32_arm_final_link_relocate): Handle Thumb functions. Do not
4414 emit glue for PLT references. Support the Thumb PLT prefix.
4415 (elf32_arm_gc_sweep_hook): Handle R_ARM_THM_PC22 and
4417 (elf32_arm_check_relocs): Likewise.
4418 (elf32_arm_adjust_dynamic_symbol): Handle Thumb functions and
4420 (allocate_dynrelocs): Handle Thumb PLT references.
4421 (elf32_arm_finish_dynamic_symbol): Likewise.
4422 (elf32_arm_symbol_processing): New function.
4423 (elf_backend_symbol_processing): Define.
4425 2004-11-16 Richard Sandiford <rsandifo@redhat.com>
4427 * elf-bfd.h (eh_cie_fde): Add new fields: add_augmentation_size and
4428 add_fde_encoding. Remove need_relative.
4429 * elf-eh-frame.c (extra_augmentation_string_bytes)
4430 (extra_augmentation_data_bytes, size_of_output_cie_fde): New functions.
4431 (_bfd_elf_discard_section_eh_frame): Consider changing the FDE encoding
4432 in cases where the CIE has no existing 'R' augmentation. Use
4433 size_of_output_cie_fde when assigning offsets. Use the final offset
4434 as the new section size.
4435 (_bfd_elf_eh_frame_section_offset): Remove need_relative handling.
4436 Account for any extra augmentation bytes in the returned offset.
4437 (_bfd_elf_write_section_eh_frame): Rework so that the entries are
4438 moved before being modified. Pad growing entries with DW_CFA_nops.
4439 Add 'z' and 'R' augmentations as directed by add_augmentation_size
4440 and add_fde_encoding.
4442 2004-11-15 Mark Mitchell <mark@codesourcery.com>
4444 * elf32-arm.c (elf32_arm_relocate_section): Use
4445 arm_real_reloc_type.
4447 2004-11-16 Richard Sandiford <rsandifo@redhat.com>
4449 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Return early
4450 for discard relocations; don't add an R_MIPS_NONE to the main body
4453 2004-11-04 Paul Brook <paul@codesourcery.com>
4455 * elf-bfd.h (_bfd_elf_slurp_version_tables): Update prototype.
4456 * elf.c (_bfd_elf_print_private_bfd_data): Pass extra argument.
4457 (_bfd_elf_slurp_version_tables): Add extra argument. Create extra
4458 default version definition for unversioned symbols.
4459 * elfcode.h (elf_slurp_symbol_table): Pass extra argument.
4460 * elflink.c (elf_link_add_object_symbols): Pass extra argument to
4461 _bfd_elf_slurp_version_tables. Set default version for unversioned
4464 2004-11-15 Paul Brook <paul@codesourcery.com>
4466 * elflink.c (elf_link_add_object_symbols): Don't assume version
4467 indices are consecutive.
4469 2004-11-14 Richard Sandiford <rsandifo@redhat.com>
4471 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal with
4472 composite relocations against the personality data.
4474 2004-11-13 Paul Brook <paul@codesourcery.com>
4476 * bfd/elf32-arm.c (elf32_arm_final_link_relocate): Resolve
4477 R_ARM_PREL31 relocations to PLT entries.
4478 (elf32_arm_relocate_section, elf32_arm_gc_sweep_hook): Ditto.
4479 (elf32_arm_check_relocs): Ditto.
4481 2004-11-12 Bob Wilson <bob.wilson@acm.org>
4483 * xtensa-isa.c (xtensa_interface_class_id): New.
4485 2004-11-11 Bob Wilson <bob.wilson@acm.org>
4487 * elf32-xtensa.c (property_table_compare): Remove assertion about
4488 entries with the same address and non-zero size.
4489 (xtensa_read_table_entries): Report such entries as errors.
4491 2004-11-11 Mark Mitchell <mark@codesourcery.com>
4493 * elf32-arm.c (elf32_arm_final_link_relocate): Correct logic for
4494 R_ARM_RELATIVE on Symbian OS.
4496 2004-11-09 Mark Mitchell <mark@codesourcery.com>
4498 * som.c (som_bfd_print_private_bfd_data): New function.
4499 (som_object_setup): Save the auxiliary header. Don't assume that
4500 zero is an invalid entry point for a shared library.
4501 (som_object_p): Allocate the auxiliary header on the heap.
4503 * elf32-arm.c (elf32_arm_begin_write_processing): Do not use a K&R
4505 (elf32_arm_symbian_modify_segment_map): Likewise.
4507 2004-11-09 Daniel Jacobowitz <dan@debian.org>
4509 From David Poole <daveml@mbuf.com>:
4510 * elf32-arm.c (elf32_arm_readonly_dynrelocs): New function.
4511 (elf32_arm_size_dynamic_sections): Call it.
4513 2004-11-09 Alan Modra <amodra@bigpond.net.au>
4515 * Makefile.am (SOURCE_HFILES): Remove elf32-arm.h.
4516 (ALL_MACHINES_CFILES): Fix typo.
4517 * Makefile.in: Regenerate.
4518 * po/SRC-POTFILES.in: Regenerate.
4520 2004-11-08 Mark Mitchell <mark@codesourcery.com>
4522 * elf32-arm.c (elf32_arm_final_link_relocate): When generating an
4523 R_ARM_RELATIVE relocation for Symbian OS, mention the section
4524 symbol in the relocation.
4526 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
4527 Vineet Sharma <vineets@noida.hcltech.com>
4529 * coff-maxq.c: New File.
4530 * cpu-maxq.c: New File.
4531 * coffcode.h: Likewise.
4532 * config.bfd: Likewise.
4533 * configure.in (maxqcoff_vec): New target vector.
4534 * Makefile.am: Add support for maxq target.
4535 * configure.in: Likewise.
4536 * archures.c:. Likewise.
4537 * targets.c: Likewise.
4538 * bfd_in2.h : Regenerated.
4539 * Makefile.in: Regenerated.
4540 * configure: Regenerated.
4541 * doc/Makefile.in: Regenerated.
4543 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
4545 * coff-i386.c (coff_i386_reloc): Fix weak symbols.
4546 * cofflink.c (_bfd_coff_link_input_bfd): Don't process
4547 C_NT_WEAK aux entries.
4548 (_bfd_coff_generic_relocate_section): Handle undefined
4551 2004-11-07 Andreas Schwab <schwab@suse.de>
4553 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Use
4554 SYMBOL_CALLS_LOCAL and check for undefweak symbols with
4555 non-default visibility.
4557 2004-11-01 Mark Mitchell <mark@codesourcery.com>
4559 * elf32-arm.c (elf32_arm_symbian_begin_write_processing): Clear
4561 (elf32_arm_symbian_modify_segment_map): Don't
4562 reset includes_filehdr and includes_phdrs here.
4564 2004-11-04 Daniel Jacobowitz <dan@debian.org>
4566 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace
4567 elfarm-nabi with elf32-arm. Remove elfarm-oabi.
4568 (elf32-arm.lo): Replace elfarm-nabi.lo rule. Remove elf32-arm.h
4570 * config.bfd: Move arm-*-oabi* and thumb-*-oabi* from obsolete list
4571 to a new removed list. Remove normal configuration stanzas.
4572 * configure.in: (bfd_elf32_bigarm_vec, bfd_elf32_bigarm_symbian_vec)
4573 (bfd_elf32_littlearm_symbian_vec, bfd_elf32_littlearm_vec): Replace
4574 elfarm-nabi.lo with elf32-arm.lo.
4575 (bfd_elf32_bigarm_oabi_vec, bfd_elf32_littlearm_oabi_vec): Remove.
4576 * elf32-arm.c: Renamed from elfarm-nabi.c. Inline elf32-arm.h.
4577 * elf32-arm.h: Remove.
4578 * elfarm-oabi.c: Remove.
4579 * targets.c (_bfd_target_vector): Remove bfd_elf32_bigarm_oabi_vec
4580 and bfd_elf32_littlearm_oabi_vec.
4581 * aclocal.m4, Makefile.in, configure, doc/Makefile.in: Regenerated.
4583 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
4585 * config.bfd: Support crisv32-*-* like cris-*-*.
4586 * archures.c (bfd_mach_cris_v0_v10, bfd_mach_cris_v32)
4587 (bfd_mach_cris_v10_v32): New macros.
4588 * cpu-cris.c: Tweak formatting.
4589 (get_compatible): New function.
4591 (bfd_cris_arch_compat_v10_v32, bfd_cris_arch_v32): New
4592 bfd_arch_info_type:s.
4593 (bfd_cris_arch): Use bfd_mach_cris_v0_v10 for member mach,
4594 get_compatible for member compatible and link bfd_cris_arch_v32 as
4596 * elf32-cris.c (cris_elf_pcrel_reloc)
4597 (cris_elf_set_mach_from_flags): New functions.
4598 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL>
4599 <R_CRIS_32_PCREL>: Use cris_elf_pcrel_reloc.
4600 (cris_elf_grok_prstatus, cris_elf_grok_psinfo): Give correct
4601 numbers for bfd_mach_cris_v32.
4602 (PLT_ENTRY_SIZE_V32): New macro.
4603 (elf_cris_plt0_entry): Drop last comma in initializer.
4604 (elf_cris_plt0_entry_v32, elf_cris_plt_entry_v32)
4605 (elf_cris_pic_plt0_entry_v32, elf_cris_pic_plt_entry_v32): New
4607 (cris_elf_relocate_section): Change all "%B(%A)" messages to
4609 (elf_cris_finish_dynamic_symbol): Do V32-specific PLT entries.
4610 (elf_cris_finish_dynamic_sections): Similar.
4611 (elf_cris_adjust_dynamic_symbol): Similar.
4612 (cris_elf_check_relocs): Change all "%B(%A)" messages to "%B,
4614 <switch with PIC relocs>: Emit error and return FALSE for
4615 bfd_mach_cris_v10_v32.
4616 <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
4617 Emit warning when generating textrel reloc.
4618 (cris_elf_object_p): Call cris_elf_set_mach_from_flags.
4619 (cris_elf_final_write_processing): Set flags according to mach.
4620 (cris_elf_print_private_bfd_data): Display
4621 EF_CRIS_VARIANT_COMMON_V10_V32 and EF_CRIS_VARIANT_V32.
4622 (cris_elf_merge_private_bfd_data): Drop variables old_flags,
4623 new_flags. Don't call cris_elf_final_write_processing. Don't
4624 look at the actual elf header flags at all; use
4625 bfd_get_symbol_leading_char to check ibfd, obfd. Trap difference
4626 in bfd_get_mach for ibfd and obfd and handle merging of compatible
4628 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4629 * reloc.c (BFD_RELOC_CRIS_SIGNED_8, BFD_RELOC_CRIS_UNSIGNED_8)
4630 (BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_UNSIGNED_16)
4631 (BFD_RELOC_CRIS_LAPCQ_OFFSET): New relocs.
4632 * bfd-in2.h, libbfd.h: Regenerate.
4634 2004-11-04 Alan Modra <amodra@bigpond.net.au>
4636 * elf64-ppc.h (ppc64_elf_edit_toc): Declare.
4637 * elf64-ppc.c (struct ppc_link_hash_entry <adjust_done>): Update
4639 (struct adjust_toc_info): New.
4640 (adjust_toc_syms, ppc64_elf_edit_toc): New functions.
4642 2004-11-03 Bob Wilson <bob.wilson@acm.org>
4644 * elf.c (assign_file_positions_for_segments): Set next_file_pos even
4645 if there are no segments.
4647 2004-11-02 Daniel Jacobowitz <dan@debian.org>
4649 * config.bfd: Mark arm-*-oabi and thumb-*-oabi as obsolete.
4651 2004-11-02 Nick Clifton <nickc@redhat.com>
4653 * elf32-iq2000.c: Convert to ISO C90 formatting.
4655 2004-11-02 Hans-Peter Nilsson <hp@axis.com>
4657 * elflink.c (_bfd_elf_create_got_section): Hide _GLOBAL_OFFSET_TABLE_.
4659 2004-10-28 H.J. Lu <hongjiu.lu@intel.com>
4661 * elfxx-ia64.c (elfNN_ia64_relocate_section): Handle weak
4662 undefined symbols for R_IA64_SECREL32MSB, R_IA64_SECREL32LSB,
4663 R_IA64_SECREL64MSB and R_IA64_SECREL64LSB.
4665 2004-10-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4667 * elf32-sh.c (tpoff): Take alignment into account.
4669 2004-10-28 Nick Clifton <nickc@redhat.com>
4671 * elf32-iq2000.c (iq2000_elf_relocate_section): Do nothing when
4672 performing a relocatable link.
4673 (iq2000_elf_object_p): Do not set elf_bad_symtab. This is only
4674 for MIPS ports under Irix.
4676 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
4678 * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Handle
4679 R_ARM_CALL and R_ARM_JUMP24 as aliases of R_ARM_PC24.
4680 (elf32_arm_final_link_relocate): Ditto.
4681 (arm_add_to_rel, elf32_arm_relocate_section): Ditto.
4682 (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto
4683 (elf32_arm_adjust_dynamic_symbol): Ditto.
4684 * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_CALL and
4685 R_ARM_JUMP32. Move R_ARM_R{REL32,ABS32,PC24,BASE}...
4686 (elf32_arm_r_howto): ... To here.
4687 (elf32_arm_howto_from_type): Use elf32_arm_r_howto.
4689 2004-10-26 H.J. Lu <hongjiu.lu@intel.com>
4692 * elfxx-ia64.c (elfNN_ia64_relocate_section): Correct
4693 R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, R_IA64_SECREL64MSB
4694 and R_IA64_SECREL64LSB.
4696 2004-10-26 Paul Brook <paul@codesourcery.com>
4698 * elflink.c (elf_finalize_dynstr): Skip shared aux structure.
4699 (bfd_elf_size_dynamic_sections): Create default version definition.
4700 (elf_link_output_extsym): Adjust for default symbol version.
4702 2004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
4704 * mmo.c: Adjust to ISO C.
4706 * mmo.c (mmo_write_section_description): New function broken out
4707 of mmo_internal_write_section.
4708 (mmo_internal_write_section): For each of .text and .data, call
4709 mmo_write_section_description before outputting contents if it has
4710 nontrivially deducible vma or contents.
4711 (mmo_has_leading_or_trailing_zero_tetra_p): New function.
4712 (mmo_canonicalize_symtab): Adjust absolute symbols to .data
4713 symbols if found within the .data address range.
4715 2004-10-24 Daniel Jacobowitz <dan@debian.org>
4717 * opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY.
4719 2004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
4721 * mmo.c (File Layout): Correct place of misplaced blurb about
4724 2004-10-22 Mark Kettenis <kettenis@gnu.org>
4726 * config.bfd: Add mips64*-*-openbsd.
4728 2004-10-21 Bob Wilson <bob.wilson@acm.org>
4730 * elf32-xtensa.c (ebb_propose_action): Put declarations before
4733 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
4735 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.94.
4736 * configure: Regenerate.
4738 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
4741 * aoutx.h (aout_link_input_section_std): Pass proper hash entry
4742 to linker reloc_overflow callback.
4743 (aout_link_input_section_ext): Likewise.
4744 (aout_link_reloc_link_order): Likewise.
4745 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4746 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
4748 (alpha_relocate_section): Likewise.
4749 * coff-arm.c (coff_arm_relocate_section): Likewise.
4750 * coff-h8300.c (h8300_reloc16_extra_cases): Likewise.
4751 * coff-h8500.c (extra_case): Likewise.
4752 * coff-i960.c (coff_i960_relocate_section): Likewise.
4753 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4754 * coff-mips.c (mips_relocate_section): Likewise.
4755 * coff-or32.c (coff_or32_relocate_section): Likewise.
4756 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4757 * coff-rs6000.c (xcoff_ppc_relocate_section): Likewise.
4758 * coff-sh.c (sh_relocate_section): Likewise.
4759 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4760 * coff-w65.c (w65_reloc16_extra_cases): Likewise.
4761 * coff-z8k.c (extra_case): Likewise.
4762 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
4763 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
4764 (_bfd_coff_generic_relocate_section): Likewise.
4765 * ecoff.c (ecoff_reloc_link_order): Likewise.
4766 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
4767 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4768 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4769 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4770 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
4771 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
4772 * elf32-cris.c (cris_elf_relocate_section): Likewise.
4773 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
4774 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4775 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4776 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
4777 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
4778 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4779 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4780 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4781 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
4782 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
4783 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
4784 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4785 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
4786 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4787 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4788 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
4789 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
4790 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4791 * elf32-s390.c (elf_s390_relocate_section): Likewise.
4792 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4793 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4794 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4795 * elf32-vax.c (elf_vax_relocate_section): Likewise.
4796 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
4797 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4798 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
4799 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
4800 * elf64-s390.c (elf_s390_relocate_section): Likewise.
4801 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
4802 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4803 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
4804 * elflink.c (elf_reloc_link_order): Likewise.
4805 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
4806 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
4807 (_bfd_elf_mips_get_relocated_section_contents): Likewise.
4808 * linker.c (_bfd_generic_reloc_link_order): Likewise.
4809 * pdp11.c (pdp11_aout_link_input_section): Likewise.
4810 (aout_link_reloc_link_order): Likewise.
4811 * reloc.c (bfd_generic_get_relocated_section_contents):
4813 * xcofflink.c (xcoff_reloc_link_order): Likewise.
4814 * simple.c (simple_dummy_reloc_overflow): Updated.
4816 2004-10-20 Andreas Schwab <schwab@suse.de>
4818 * elf32-m68k.c (elf_m68k_plt_sym_val): New function.
4819 (elf_backend_plt_sym_val): Define.
4821 2004-10-19 Danny Smith <dannysmith@users.sourceforege.net>
4823 * config.bfd: Set targ_underscore=yes for PE COFF targets
4825 2004-10-19 Alan Modra <amodra@bigpond.net.au>
4827 * elf64-ppc.c (opd_entry_value): Handle --just-symbols objects.
4828 (ppc64_elf_edit_opd): Likewise.
4830 2004-10-18 Mark Mitchell <mark@codesourcery.com>
4832 * elfarm-nabi.c (ELF_DYNAMIC_SEC_FLAGS): Add comment.
4833 * elflink.c (_bfd_elf_create_dynamic_sections): For a loaded PLT,
4834 set SEC_ALLOC and SEC_LOAD.
4836 2004-10-18 Nick Clifton <nickc@redhat.com>
4838 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Compute
4839 'name' for relocs against both local and global symbols.
4841 2004-10-16 Daniel Jacobowitz <dan@debian.org>
4843 * bfd-in2.h: Regenerate.
4844 * bfd.c (struct bfd): Add no_export.
4845 * elflink.c (elf_link_add_object_symbols): Handle no_export.
4847 2004-10-15 Alan Modra <amodra@bigpond.net.au>
4849 * config.bfd: Whitespace cleanup.
4850 * Makefile.am: Run "make dep-am"
4851 * Makefile.in: Regenerate.
4853 2004-10-15 Jakub Jelinek <jakub@redhat.com>
4855 * elflink.c (struct already_linked_section): Removed.
4856 (try_match_symbols_in_sections, already_linked): Removed.
4857 (_bfd_elf_section_already_linked): Skip ^\.gnu\.linkonce\.[^.]*\.
4858 prefix of section names when finding already_linked_table
4859 chain. Compare section names. Instead of calling already_linked,
4860 do it inline and only for sections in the same already_linked_list.
4862 2004-10-15 Alan Modra <amodra@bigpond.net.au>
4864 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Add "info"
4865 parameter. If called after _bfd_elf_write_section_eh_frame,
4866 don't allow a -2 return unless need_* bit is already set, and
4867 handle offsets adjusted for output_offset.
4868 * elf-bfd.h (_bfd_elf_eh_frame_section_offset): Update prototype.
4869 * elf.c (_bfd_elf_section_offset): Update call.
4871 2004-10-13 H.J. Lu <hongjiu.lu@intel.com>
4874 * coffcode.h (coff_compute_section_file_positions): Cast to
4875 bfd_vma when computing page alignment.
4877 2004-10-13 Mark Mitchell <mark@codesourcery.com>
4879 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
4880 offsets, not VMAs, for DT_VERSYM, DT_VERDEF, DT_VERNEED.
4882 2004-10-12 Mark Mitchell <mark@codesourcery.com>
4884 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.plt
4885 relocations use a virtual address, not a section offset.
4887 2004-10-12 Bob Wilson <bob.wilson@acm.org>
4889 * elf32-xtensa.c (elf_xtensa_get_private_bfd_flags): Delete.
4890 (narrow_instruction, widen_instruction): Remove unnecessary calls to
4891 xtensa_format_encode.
4892 (ebb_propose_action): Inline call to ebb_add_proposed_action.
4893 (ebb_add_proposed_action): Delete.
4895 2004-10-12 Bob Wilson <bob.wilson@acm.org>
4897 * elf32-xtensa.c: Use ISO C90 formatting.
4899 2004-10-12 Paul Brook <paul@codesourcery.com>
4901 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Rephrase error
4904 2004-10-12 Paul Brook <paul@codesourcery.com>
4906 * elf32-arm.h: Support EABI version 4 objects.
4908 2004-10-12 Alan Modra <amodra@bigpond.net.au>
4911 * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Place last in chain.
4912 Don't mark as default.
4913 (bfd_x86_64_arch): Don't mark as default.
4915 2004-10-12 Alan Modra <amodra@bigpond.net.au>
4917 * elflink.c (enum action_discarded): New.
4918 (elf_section_complain_discarded): Delete.
4919 (elf_action_discarded): New function subsuming the above and also
4920 controlling reloc behaviour.
4921 (elf_link_input_bfd): Use it.
4923 2004-10-11 Jakub Jelinek <jakub@redhat.com>
4925 * elf.c (bfd_section_from_shdr): Handle SHT_GNU_LIBLIST.
4926 (special_sections): Add .gnu.liblist and .gnu.conflict.
4927 (assign_section_numbers): Handle SHT_GNU_LIBLIST.
4929 2004-10-11 Alan Modra <amodra@bigpond.net.au>
4932 * elflink.c (elf_link_input_bfd): Try harder to support
4933 relocations against symbols in removed linkonce sections.
4935 2004-10-11 Alan Modra <amodra@bigpond.net.au>
4937 * elflink.c (elf_link_input_bfd): Revert PR 354 change.
4940 * elflink.c (elf_link_input_bfd): Check that relocs in SEC_ALLOC
4941 sections do not reference symbols in non-SEC_ALLOC sections.
4943 2004-10-11 Alan Modra <amodra@bigpond.net.au>
4946 * elflink.c (elf_link_sort_relocs): Don't bomb on unusual sections.
4947 (_bfd_elf_link_omit_section_dynsym): Formatting.
4949 2004-10-10 Alan Modra <amodra@bigpond.net.au>
4951 * libbfd-in.h (BFD_ASSERT, BFD_FAIL): Wrap macro body in do while.
4952 * libbfd.h: Regnerate.
4953 * elf32-cris.c: Add missing semicolon to BFD_ASSERTs.
4954 * elf32-frv.c: Likewise.
4955 * elf32-m32r.c: Likewise.
4956 * elf32-ppc.c: Likewise.
4957 * elf64-hppa.c: Likewise.
4958 * elfxx-ia64.c: Likewise.
4959 * opncls.c: Likewise.
4961 2004-10-10 Alan Modra <amodra@bigpond.net.au>
4963 * elf-bfd.h (struct eh_frame_hdr_info): Add offsets_adjusted.
4964 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Adjust
4965 offsets stored in struct eh_cie_fde entries before doing other
4968 * elf-bfd.h (struct eh_cie_fde): Add cie_inf, remove sec.
4969 (struct eh_frame_hdr_info): Add last_cie_inf, remove last_cie_offset.
4970 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete code
4971 setting offsets for removed CIEs. Don't set "sec", instead set
4972 cie_inf for FDEs. Keep a pointer to last struct eh_cie_fde for a
4973 CIE in hdr_info. Only set make_relative and make_lsda_relative
4974 for CIEs. Use pointers rather than array indices.
4975 (_bfd_elf_eh_frame_section_offset): Test/set make_relative,
4976 make_lsda_relative, need_* on cie_inf for FDEs.
4977 (_bfd_elf_write_section_eh_frame): Adjust offset and new_offset for
4978 section output_offset. Delete cie_offset, instead use cie_inf
4979 pointer to CIE entry. Use need_relative and need_lsda_relative on
4980 CIE entry for FDEs. Use pointers rather than array indices.
4982 2004-10-09 Alan Modra <amodra@bigpond.net.au>
4984 * coff-rs6000.c (rs6000coff_vec): Add initializer for
4985 bfd_is_target_special_symbol.
4986 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
4987 * som.c (som_bfd_is_target_special_symbol): Define.
4989 2004-10-08 Nick Clifton <nickc@redhat.com>
4991 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.93.
4992 * configure: Regenerate.
4993 * bfd-in2.h: Regenerate.
4994 * syms.c (bfd_is_target_special_symbol): New interface function.
4995 Returns true when a symbol should be considered to be special.
4996 * targets.c (bfd_target): Include bfd_is_target_special_symbol in
4997 the symbol jump table.
4998 * elf32-arm.h (elf32_arm_is_target_special_symbol): New function.
4999 Return true iff the symbol is a mapping symbol.
5000 (bfd_elf32_bfd_is_target_special_symbol): Define.
5001 * elfxx-target.h: Provide a default definition for
5002 bfd_is_target_special_symbol.
5003 * aout-target.h: Likewise.
5004 * aout-tic30.c: Likewise.
5005 * binary.c: Likewise.
5006 * coffcode.h: Likewise.
5007 * i386msdos.c: Likewise.
5010 * libaout.h: Likewise.
5011 * libbfd-in.h: Likewise
5012 * libecoff.h: Likewise.
5013 * mach-o.c: Likewise.
5015 * nlm-target.h: Likewise.
5016 * oasys.c: Likewise.
5018 * ppcboot.c: Likewise.
5020 * tekhex.c: Likewise.
5021 * versados.c: Likewise.
5023 * xcoff-target.h: Likewise.
5025 * libbfd.h: Regenerate.
5027 2004-10-08 Daniel Jacobowitz <dan@debian.org>
5029 * config.bfd: Include 64-bit support for i[3-7]86-*-solaris2*.
5030 * elf64-x86-64.c (elf64_x86_64_section_from_shdr): New function.
5031 (elf_backend_section_from_shdr): Define.
5033 2004-10-08 Alan Modra <amodra@bigpond.net.au>
5035 * syms.c (bfd_is_local_label): Return false for file symbols.
5037 2004-10-07 Bob Wilson <bob.wilson@acm.org>
5038 David Heine <dlheine@tensilica.com>
5040 * elf32-xtensa.c (elf32xtensa_size_opt): New global variable.
5041 (xtensa_default_isa): Global variable moved here from xtensa-isa.c.
5042 (elf32xtensa_no_literal_movement): New global variable.
5043 (elf_howto_table): Add entries for new relocations.
5044 (elf_xtensa_reloc_type_lookup): Handle new relocations.
5045 (property_table_compare): When addresses are equal, compare sizes and
5046 various property flags.
5047 (property_table_matches): New.
5048 (xtensa_read_table_entries): Extend to read new property tables. Add
5049 output_addr parameter to indicate that output addresses should be used.
5050 Use bfd_get_section_limit.
5051 (elf_xtensa_find_property_entry): New.
5052 (elf_xtensa_in_literal_pool): Use elf_xtensa_find_property_entry.
5053 (elf_xtensa_check_relocs): Handle new relocations.
5054 (elf_xtensa_do_reloc): Use bfd_get_section_limit. Handle new
5055 relocations. Use new xtensa-isa.h functions.
5056 (build_encoding_error_message): Remove encode_result parameter. Add
5057 new target_address parameter used to detect alignment errors.
5058 (elf_xtensa_relocate_section): Use bfd_get_section_limit. Clean up
5059 error handling. Use new is_operand_relocation function.
5060 (elf_xtensa_combine_prop_entries, elf_xtensa_merge_private_bfd_data):
5061 Use underbar macro for error messages. Formatting.
5062 (get_const16_opcode): New.
5063 (get_l32r_opcode): Add a separate flag for initialization.
5064 (get_relocation_opnd): Operand number is no longer explicit in the
5065 relocation. Change to decode the opcode and analyze its operands.
5066 (get_relocation_slot): New.
5067 (get_relocation_opcode): Add bfd parameter. Use bfd_get_section_limit.
5068 Use new xtensa-isa.h functions to handle multislot instructions.
5069 (is_l32r_relocation): Add bfd parameter. Use is_operand_relocation.
5070 (get_asm_simplify_size, is_alt_relocation, is_operand_relocation,
5071 insn_decode_len, insn_decode_opcode, check_branch_target_aligned,
5072 check_loop_aligned, check_branch_target_aligned_address, narrowable,
5073 widenable, narrow_instruction, widen_instruction, op_single_fmt_table,
5074 get_single_format, init_op_single_format_table): New.
5075 (elf_xtensa_do_asm_simplify): Add error_message parameter and use it
5076 instead of calling _bfd_error_handler. Use new xtensa-isa.h functions.
5077 (contract_asm_expansion): Add error_message parameter and pass it to
5078 elf_xtensa_do_asm_simplify. Replace use of R_XTENSA_OP0 relocation
5079 with R_XTENSA_SLOT0_OP.
5080 (get_expanded_call_opcode): Extend to handle either L32R or CONST16
5081 instructions. Use new xtensa-isa.h functions.
5082 (r_reloc struct): Add new virtual_offset field.
5083 (r_reloc_init): Add contents and content_length parameters. Set
5084 virtual_offset field to zero. Add contents to target_offset field for
5085 partial_inplace relocations.
5086 (r_reloc_is_defined): Check for null.
5087 (print_r_reloc): New debug function.
5088 (source_reloc struct): Replace xtensa_operand field with pair of the
5089 opcode and the operand position. Add is_abs_literal field.
5090 (init_source_reloc): Specify operand by opcode/position pair. Set
5091 is_abs_literal field.
5092 (source_reloc_compare): When target_offsets are equal, compare other
5093 fields to make sorting predictable.
5094 (literal_value struct): Add is_abs_literal field.
5095 (value_map_hash_table struct): Add has_last_loc and last_loc fields.
5096 (init_literal_value): New.
5097 (is_same_value): Replace with ...
5098 (literal_value_equal): ... this function. Add comparisons of
5099 virtual_offset and is_abs_literal fields.
5100 (value_map_hash_table_init): Use bfd_zmalloc. Check for allocation
5101 failure. Initialize has_last_loc field.
5102 (value_map_hash_table_delete): New.
5103 (hash_literal_value): Rename to ...
5104 (literal_value_hash): ... this. Include is_abs_literal flag and
5105 virtual_offset field in the hash value.
5106 (get_cached_value): Rename to ...
5107 (value_map_get_cached_value): ... this. Update calls to
5108 literal_value_hash and literal_value_equal.
5109 (add_value_map): Check for allocation failure. Update calls to
5110 value_map_get_cached_value and literal_value_hash.
5111 (text_action, text_action_list, text_action_t): New types.
5112 (find_fill_action, compute_removed_action_diff, adjust_fill_action,
5113 text_action_add, text_action_add_literal, offset_with_removed_text,
5114 offset_with_removed_text_before_fill, find_insn_action,
5115 print_action_list, print_removed_literals): New.
5116 (offset_with_removed_literals): Delete.
5117 (xtensa_relax_info struct): Add is_relaxable_asm_section, action_list,
5118 fix_array, fix_array_count, allocated_relocs, relocs_count, and
5119 allocated_relocs_count fields.
5120 (init_xtensa_relax_info): Initialize new fields.
5121 (reloc_bfd_fix struct): Add new translated field.
5122 (reloc_bfd_fix_init): Add translated parameter and use it to set the
5124 (fix_compare, cache_fix_array): New.
5125 (get_bfd_fix): Remove fix_list parameter and get all relax_info for the
5126 section via get_xtensa_relax_info. Use cache_fix_array to set up
5127 sorted fix_array and use bsearch instead of linear search.
5128 (section_cache_t): New struct.
5129 (init_section_cache, section_cache_section, clear_section_cache): New.
5130 (ebb_t, ebb_target_enum, proposed_action, ebb_constraint): New types.
5131 (init_ebb_constraint, free_ebb_constraint, init_ebb, extend_ebb_bounds,
5132 extend_ebb_bounds_forward, extend_ebb_bounds_backward,
5133 insn_block_decodable_len, ebb_propose_action, ebb_add_proposed_action):
5135 (retrieve_contents): Use bfd_get_section_limit.
5136 (elf_xtensa_relax_section): Add relocations_analyzed flag. Update call
5137 to compute_removed_literals. Free value_map_hash_table when no longer
5139 (analyze_relocations): Check is_relaxable_asm_section flag. Call
5140 compute_text_actions for all sections.
5141 (find_relaxable_sections): Mark sections as relaxable if they contain
5142 ASM_EXPAND relocations that can be optimized. Adjust r_reloc_init
5143 call. Increment relax_info src_count field only for appropriate
5144 relocation types. Remove is_literal_section check.
5145 (collect_source_relocs): Use bfd_get_section_limit. Adjust calls to
5146 r_reloc_init and find_associated_l32r_irel. Check
5147 is_relaxable_asm_section flag. Handle L32R instructions with absolute
5148 literals. Pass is_abs_literal flag to init_source_reloc.
5149 (is_resolvable_asm_expansion): Use bfd_get_section_limit. Check for
5150 CONST16 instructions. Adjust calls to r_reloc_init and
5151 pcrel_reloc_fits. Handle weak symbols conservatively.
5152 (find_associated_l32r_irel): Add bfd parameter and pass it to
5154 (compute_text_actions, compute_ebb_proposed_actions,
5155 compute_ebb_actions, check_section_ebb_pcrels_fit,
5156 check_section_ebb_reduces, text_action_add_proposed,
5157 compute_fill_extra_space): New.
5158 (remove_literals): Replace with ...
5159 (compute_removed_literals): ... this function. Call
5160 init_section_cache. Use bfd_get_section_limit. Sort internal_relocs.
5161 Call xtensa_read_table_entries to get the property table. Skip
5162 relocations other than R_XTENSA_32 and R_XTENSA_PLT. Use new
5163 is_removable_literal, remove_dead_literal, and
5164 identify_literal_placement functions.
5165 (get_irel_at_offset): Rewrite to use bsearch on sorted relocations
5166 instead of linear search.
5167 (is_removable_literal, remove_dead_literal,
5168 identify_literal_placement): New.
5169 (relocations_reach): Update check for literal not referenced by any
5170 PC-relative relocations. Adjust call to pcrel_reloc_fits.
5171 (coalesce_shared_literal, move_shared_literal): New.
5172 (relax_section): Use bfd_get_section_limit. Call
5173 translate_section_fixes. Update calls to r_reloc_init and
5174 offset_with_removed_text. Check new is_relaxable_asm_section flag.
5175 Add call to pin_internal_relocs. Add special handling for
5176 R_XTENSA_ASM_SIMPLIFY and R_XTENSA_DIFF* relocs. Use virtual_offset
5177 info to calculate new addend_displacement variable. Replace code for
5178 deleting literals with more general code to perform the actions
5179 determined by the action_list for the section.
5180 (translate_section_fixes, translate_reloc_bfd_fix): New.
5181 (translate_reloc): Check new is_relaxable_asm_section flag. Call
5182 find_removed_literal only if is_operand_relocation. Update call to
5183 offset_with_removed_text. Use new target_offset and removed_bytes
5185 (move_literal): New.
5186 (relax_property_section): Use bfd_get_section_limit. Set new
5187 is_full_prop_section flag and handle new property tables. Update calls
5188 to r_reloc_init and offset_with_removed_text. Check
5189 is_relaxable_asm_section flag. Handle expansion of zero-sized
5190 unreachable entries, with use of offset_with_removed_text_before_fill.
5191 For relocatable links, combine entries only for literal tables.
5192 (relax_section_symbols): Check is_relaxable_asm_section flag. Update
5193 calls to offset_with_removed_text. Translate st_size field for
5195 (do_fix_for_relocatable_link): Change to return bfd_boolean to indicate
5196 failure. Add contents parameter. Update call to get_bfd_fix. Update
5197 call to r_reloc_init. Call _bfd_error_handler and return FALSE for
5198 R_XTENSA_ASM_EXPAND relocs.
5199 (do_fix_for_final_link): Add input_bfd and contents parameters. Update
5200 call to get_bfd_fix. Include offset from contents for partial_inplace
5202 (is_reloc_sym_weak): New.
5203 (pcrel_reloc_fits): Use new xtensa-isa.h functions.
5204 (prop_sec_len): New.
5205 (xtensa_is_property_section): Handle new property sections.
5206 (is_literal_section): Delete.
5207 (internal_reloc_compare): When r_offset matches, compare r_info and
5208 r_addend to make sorting predictable.
5209 (internal_reloc_matches): New.
5210 (xtensa_get_property_section_name): Handle new property sections.
5211 (xtensa_get_property_predef_flags): New.
5212 (xtensa_callback_required_dependence): Use bfd_get_section_limit.
5213 Update calls to xtensa_isa_init, is_l32r_relocation, and r_reloc_init.
5214 * xtensa-isa.c (xtensa_default_isa): Moved to elf32-xtensa.c.
5215 (xtisa_errno, xtisa_error_msg): New variables.
5216 (xtensa_isa_errno, xtensa_isa_error_msg): New.
5217 (xtensa_insnbuf_alloc): Add error handling.
5218 (xtensa_insnbuf_to_chars): Add num_chars parameter. Update to
5219 use xtensa_format_decode. Add error handling.
5220 (xtensa_insnbuf_from_chars): Add num_chars parameter. Decode the
5221 instruction length to find the number of bytes to copy.
5222 (xtensa_isa_init): Add error handling. Replace calls to
5223 xtensa_load_isa and xtensa_extend_isa with code to initialize lookup
5224 tables in the xtensa_modules structure.
5225 (xtensa_check_isa_config, xtensa_add_isa, xtensa_load_isa,
5226 xtensa_extend_isa): Delete.
5227 (xtensa_isa_free): Change to only free lookup tables.
5228 (opname_lookup_compare): Replace with ...
5229 (xtensa_isa_name_compare): ... this function. Use strcasecmp.
5230 (xtensa_insn_maxlength): Rename to ...
5231 (xtensa_isa_maxlength): ... this.
5232 (xtensa_insn_length): Delete.
5233 (xtensa_insn_length_from_first_byte): Replace with ...
5234 (xtensa_isa_length_from_chars): ... this function.
5235 (xtensa_num_opcodes): Rename to ...
5236 (xtensa_isa_num_opcodes): ... this.
5237 (xtensa_isa_num_pipe_stages, xtensa_isa_num_formats,
5238 xtensa_isa_num_regfiles, xtensa_isa_num_stages,
5239 xtensa_isa_num_sysregs, xtensa_isa_num_interfaces,
5240 xtensa_isa_num_funcUnits, xtensa_format_name, xtensa_format_lookup,
5241 xtensa_format_decode, xtensa_format_encode, xtensa_format_length,
5242 xtensa_format_num_slots, xtensa_format_slot_nop_opcode,
5243 xtensa_format_get_slot, xtensa_format_set_slot): New functions.
5244 (xtensa_opcode_lookup): Add error handling.
5245 (xtensa_decode_insn): Replace with ...
5246 (xtensa_opcode_decode): ... this function, with new format and
5247 slot parameters. Add error handling.
5248 (xtensa_encode_insn): Replace with ...
5249 (xtensa_opcode_encode): ... this function, which does the encoding via
5250 one of the entries in the "encode_fns" array. Add error handling.
5251 (xtensa_opcode_name): Add error handling.
5252 (xtensa_opcode_is_branch, xtensa_opcode_is_jump, xtensa_opcode_is_loop,
5253 xtensa_opcode_is_call): New.
5254 (xtensa_num_operands): Replace with ...
5255 (xtensa_opcode_num_operands): ... this function. Add error handling.
5256 (xtensa_opcode_num_stateOperands,
5257 xtensa_opcode_num_interfaceOperands, xtensa_opcode_num_funcUnit_uses,
5258 xtensa_opcode_funcUnit_use, xtensa_operand_name,
5259 xtensa_operand_is_visible): New.
5260 (xtensa_get_operand, xtensa_operand_kind): Delete.
5261 (xtensa_operand_inout): Add error handling and special-case for
5263 (xtensa_operand_get_field, xtensa_operand_set_field): Rewritten to
5264 operate on one slot of an instruction. Added error handling.
5265 (xtensa_operand_encode): Handle default operands with no encoding
5266 functions. Check for success by comparing against decoded value.
5268 (xtensa_operand_decode): Handle default operands. Return decoded value
5269 through argument pointer. Add error handling.
5270 (xtensa_operand_is_register, xtensa_operand_regfile,
5271 xtensa_operand_num_regs, xtensa_operand_is_known_reg): New.
5272 (xtensa_operand_isPCRelative): Rename to ...
5273 (xtensa_operand_is_PCrelative): ... this. Add error handling.
5274 (xtensa_operand_do_reloc, xtensa_operand_undo_reloc): Return value
5275 through argument pointer. Add error handling.
5276 (xtensa_stateOperand_state, xtensa_stateOperand_inout,
5277 xtensa_interfaceOperand_interface, xtensa_regfile_lookup,
5278 xtensa_regfile_lookup_shortname, xtensa_regfile_name,
5279 xtensa_regfile_shortname, xtensa_regfile_view_parent,
5280 xtensa_regfile_num_bits, xtensa_regfile_num_entries,
5281 xtensa_state_lookup, xtensa_state_name, xtensa_state_num_bits,
5282 xtensa_state_is_exported, xtensa_sysreg_lookup,
5283 xtensa_sysreg_lookup_name, xtensa_sysreg_name, xtensa_sysreg_number,
5284 xtensa_sysreg_is_user, xtensa_interface_lookup, xtensa_interface_name,
5285 xtensa_interface_num_bits, xtensa_interface_inout,
5286 xtensa_interface_has_side_effect, xtensa_funcUnit_lookup,
5287 xtensa_funcUnit_name, xtensa_funcUnit_num_copies): New.
5288 * xtensa-modules.c: Rewrite to use new data structures.
5289 * reloc.c (BFD_RELOC_XTENSA_DIFF8, BFD_RELOC_XTENSA_DIFF16,
5290 BFD_RELOC_XTENSA_DIFF32, BFD_RELOC_XTENSA_SLOT0_OP,
5291 BFD_RELOC_XTENSA_SLOT1_OP, BFD_RELOC_XTENSA_SLOT2_OP,
5292 BFD_RELOC_XTENSA_SLOT3_OP, BFD_RELOC_XTENSA_SLOT4_OP,
5293 BFD_RELOC_XTENSA_SLOT5_OP, BFD_RELOC_XTENSA_SLOT6_OP,
5294 BFD_RELOC_XTENSA_SLOT7_OP, BFD_RELOC_XTENSA_SLOT8_OP,
5295 BFD_RELOC_XTENSA_SLOT9_OP, BFD_RELOC_XTENSA_SLOT10_OP,
5296 BFD_RELOC_XTENSA_SLOT11_OP, BFD_RELOC_XTENSA_SLOT12_OP,
5297 BFD_RELOC_XTENSA_SLOT13_OP, BFD_RELOC_XTENSA_SLOT14_OP,
5298 BFD_RELOC_XTENSA_SLOT0_ALT, BFD_RELOC_XTENSA_SLOT1_ALT,
5299 BFD_RELOC_XTENSA_SLOT2_ALT, BFD_RELOC_XTENSA_SLOT3_ALT,
5300 BFD_RELOC_XTENSA_SLOT4_ALT, BFD_RELOC_XTENSA_SLOT5_ALT,
5301 BFD_RELOC_XTENSA_SLOT6_ALT, BFD_RELOC_XTENSA_SLOT7_ALT,
5302 BFD_RELOC_XTENSA_SLOT8_ALT, BFD_RELOC_XTENSA_SLOT9_ALT,
5303 BFD_RELOC_XTENSA_SLOT10_ALT, BFD_RELOC_XTENSA_SLOT11_ALT,
5304 BFD_RELOC_XTENSA_SLOT12_ALT, BFD_RELOC_XTENSA_SLOT13_ALT,
5305 BFD_RELOC_XTENSA_SLOT14_ALT): Add new relocations.
5306 * Makefile.am (xtensa-isa.lo, xtensa-modules.lo): Update dependencies.
5307 * Makefile.in: Regenerate.
5308 * bfd-in2.h: Likewise.
5309 * libbfd.h: Likewise.
5311 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
5313 * elf64-mips.c (mips_elf64_write_rel): Use STN_UNDEF for relocs
5314 against the absolute section.
5315 (mips_elf64_write_rela): Likewise.
5317 2004-10-07 Jan Beulich <jbeulich@novell.com>
5319 * elf.c (elf_find_function): Don't generally check for matching
5320 section, just for non-file symbols. Remove redunant comparison
5322 * elf32-arm.h (arm_elf_find_function): Likewise.
5324 2004-10-07 Jeff Baker <jbaker@qnx.com>
5326 * elflink.c (_bfd_elf_add_dynamic_entry): Add code to warn if
5327 adding a DT_TEXTREL to a shared object and --warn-shared-textrel
5330 2004-10-04 Roland McGrath <roland@redhat.com>
5332 * hash.c (bfd_hash_set_default_size): Use const for table.
5333 Use size_t instead of int for variable compared to sizeof results.
5335 2004-10-05 Alan Modra <amodra@bigpond.net.au>
5338 * syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs.
5340 2004-10-01 Paul Brook <paul@codesourcery.com>
5342 * elf32-arm.h (elf32_arm_fake_sections,
5343 is_arm_elf_unwind_section_name, elf32_arm_section_from_shdr): New
5345 (elf_backend_fake_sections, elf_backend_section_from_shdr): Define.
5347 2004-10-01 Alan Modra <amodra@bigpond.net.au>
5349 * elf-bfd.h (struct eh_cie_fde): Add need_relative and
5351 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Set
5352 need_relative or need_lsda_relative if we are processing an
5353 offset for a reloc on a FDE initial loc or LSDA field
5355 (_bfd_elf_write_section_eh_frame): Test need_relative and
5356 need_lsda_relative in place of corresponding make_* field
5357 when deciding to use pc-relative encodings.
5359 2004-09-30 Paul Brook <paul@codesourcery.com>
5361 * elf32-arm.h (bfd_elf32_arm_set_target_relocs): Handle "abs"
5362 target2 relocation type.
5364 2004-09-30 H.J. Lu <hongjiu.lu@intel.com>
5367 * elflink.c (_bfd_elf_merge_symbol): Check TLS symbol.
5369 2004-09-30 Paul Brook <paul@codesourcery.com>
5371 * reloc.c: Add BFD_RELOC_ARM_SMI.
5372 * bfd-in2.h: Regenerate.
5375 2004-09-24 Alan Modra <amodra@bigpond.net.au>
5377 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add output section
5378 vma and output offset to address.
5379 * simple.c (simple_save_output_info): Only set output section
5380 and offset for debug sections, or those not already set up by
5382 (bfd_simple_get_relocated_section_contents): Update comment.
5384 2004-09-24 Alan Modra <amodra@bigpond.net.au>
5386 * elf.c (IS_LOADED): Delete.
5387 (assign_file_positions_for_segments): Just test SEC_LOAD instead.
5388 Restore SEC_HAS_CONTENTS test to the one place it was used prior
5391 2004-09-23 Alan Modra <amodra@bigpond.net.au>
5394 * elf32-sparc.c (elf32_sparc_final_write_processing): Handle
5395 bfd_mach_sparc_sparclet and bfd_mach_sparc_sparclite. Remove
5396 redundant assignment of EM_SPARC.
5398 2004-09-22 Brian Ford <ford@vss.fsi.com>
5400 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
5401 alignment for .rdata sections so sse[2] code works with gcc >= 3.3.3
5403 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
5405 2004-09-22 Alan Modra <amodra@bigpond.net.au>
5407 * elf32-ppc.c (ppc_elf_modify_segment_map): Delete.
5408 (elf_backend_modify_segment_map): Don't define.
5410 2004-09-22 Alan Modra <amodra@bigpond.net.au>
5412 * elf.c (IS_LOADED): Define.
5413 (assign_file_positions_for_segments): Don't round up file offset of
5414 PT_LOAD segments containing no SEC_LOAD sections, instead round down.
5415 Delete code handling link script adjustment of lma. Do the adjust
5416 in later code handling similar ajustments. Remove dead code error
5417 check. Warn if section lma would require a negative offset
5418 adjustment. Tweak lma adjustment to use p_filesz rather than p_memsz.
5419 Use p_vaddr + p_memsz inside section loop in place of voff. Don't
5420 update voff in section loop. Change voff in segment loop to be an
5421 adjustment on top of "off". Set sec->filepos and update "off" later.
5422 Test for loadable sections consistently using IS_LOADED. Similarly,
5423 test for alloc-only sections other than .tbss consistently.
5424 Don't bother checking SEC_ALLOC in PT_LOAD segments. Remove FIXME.
5425 Tidy PT_NOTE handling. Use %B and %A in error messages.
5426 (assign_file_positions_except_relocs): Use %B in error message.
5428 2004-09-17 H.J. Lu <hongjiu.lu@intel.com>
5430 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.9.
5431 (CONFIG_STATUS_DEPENDENCIES): New.
5432 (Makefile): Removed.
5433 (config.status): Likewise.
5434 * Makefile.in: Regenerated.
5436 2004-09-17 Paul Brook <paul@codesourcery.com>
5438 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add prototype.
5439 (bfd_elf32_arm_process_before_allocation): Update prototype.
5440 * bfd-in2.h: Regenerate.
5441 * bfd/elf32-arm.h (elf32_arm_link_hash_table): Add target2_reloc.
5442 (elf32_arm_link_hash_table_create): Set it.
5443 (bfd_elf32_arm_process_before_allocation): Remove target1_is_rel.
5444 (bfd_elf32_arm_set_target_relocs): New function.
5445 (arm_real_reloc_type): New function.
5446 (elf32_arm_final_link_relocate): Use it. Handle R_ARM_PREL31 and
5447 R_ARM_GOT_PREL. Remove R_ARM_TARGET1.
5448 (elf32_arm_gc_sweep_hook): Ditto.
5449 (elf32_arm_check_relocs): Ditto.
5450 (elf32_arm_relocate_section): Handle R_ARM_GOT_PREL.
5451 * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_PREL31 and
5453 (elf32_arm_got_prel): New variable.
5454 (elf32_arm_howto_from_type): New function.
5455 (elf32_arm_info_to_howto): Use it.
5456 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PREL31 and
5457 BFD_RELOC_ARM_TARGET2.
5458 * libbfd.h: Regenerate.
5459 * reloc.c: Add BFD_RELOC_ARM_TARGET2 and BFD_RELOC_ARM_PREL31.
5461 2004-09-17 Alan Modra <amodra@bigpond.net.au>
5463 * ecoff.c: Update u.undef.next refs.
5464 * elf64-ppc.c: Likewise.
5465 * elflink.c: Likewise.
5466 * linker.c: Likewise.
5467 * xcofflink.c: Likewise.
5469 * elf-bfd.h (struct elf_link_hash_entry): Rearrange. Add FIXME to
5470 dynamic_def. Combine weakdef and elf_hash_value. Move vtable
5471 fields to indirect struct.
5472 * elf-m10300.c: Update u.weakdef refs.
5473 * elf32-arm.h: Likewise.
5474 * elf32-cris.c: Likewise.
5475 * elf32-frv.c: Likewise.
5476 * elf32-hppa.c: Likewise.
5477 * elf32-i370.c: Likewise.
5478 * elf32-i386.c: Likewise.
5479 * elf32-m32r.c: Likewise.
5480 * elf32-m68k.c: Likewise.
5481 * elf32-ppc.c: Likewise.
5482 * elf32-s390.c: Likewise.
5483 * elf32-sh.c: Likewise.
5484 * elf32-sparc.c: Likewise.
5485 * elf32-vax.c: Likewise.
5486 * elf32-xtensa.c: Likewise.
5487 * elf64-alpha.c: Likewise.
5488 * elf64-hppa.c: Likewise.
5489 * elf64-ppc.c: Likewise.
5490 * elf64-s390.c: Likewise.
5491 * elf64-sh64.c: Likewise.
5492 * elf64-sparc.c: Likewise.
5493 * elf64-x86-64.c: Likewise.
5494 * elfxx-ia64.c: Likewise.
5495 * elfxx-mips.c: Likewise.
5496 * elflink.c: Likewise. Also u.elf_hash_value.
5497 (elf_gc_propagate_vtable_entries_used): Update for h->vtable
5499 (elf_gc_smash_unused_vtentry_relocs): Likewise.
5500 (bfd_elf_gc_record_vtinherit): Alloc vtable.
5501 (bfd_elf_gc_record_vtentry): Likewise.
5502 * elf.c (_bfd_elf_link_hash_newfunc): Use memset.
5504 2004-09-17 Alan Modra <amodra@bigpond.net.au>
5506 * Makefile.am: Run "make dep-am".
5507 * Makefile.in: Regenerate.
5508 * bfd-in2.h: Regenerate.
5509 * po/SRC-POTFILES.in: Regenerate.
5510 * po/bfd.pot: Regenerate.
5512 2004-09-16 Alan Modra <amodra@bigpond.net.au>
5514 * elf-bfd.h (struct elf_link_hash_entry): Replace elf_link_hash_flags
5515 with bitfields. Make "type" and "other" bitfields too.
5516 (ELF_LINK_HASH_REF_REGULAR, ELF_LINK_HASH_DEF_REGULAR,
5517 ELF_LINK_HASH_REF_DYNAMIC, ELF_LINK_HASH_DEF_DYNAMIC,
5518 ELF_LINK_HASH_REF_REGULAR_NONWEAK, ELF_LINK_HASH_DYNAMIC_ADJUSTED,
5519 ELF_LINK_HASH_NEEDS_COPY, ELF_LINK_HASH_NEEDS_PLT, ELF_LINK_NON_ELF,
5520 ELF_LINK_HIDDEN, ELF_LINK_FORCED_LOCAL, ELF_LINK_HASH_MARK,
5521 ELF_LINK_NON_GOT_REF, ELF_LINK_DYNAMIC_DEF, ELF_LINK_DYNAMIC_WEAK,
5522 ELF_LINK_POINTER_EQUALITY_NEEDED): Delete.
5523 (ELF_COMMON_DEF_P, WILL_CALL_FINISH_DYNAMIC_SYMBOL): Update.
5524 * elf-hppa.h: Update all uses of elf_link_hash_flags.
5525 * elf-m10300.c: Likewise.
5527 * elf32-arm.h: Likewise.
5528 * elf32-cris.c: Likewise.
5529 * elf32-frv.c: Likewise.
5530 * elf32-hppa.c: Likewise.
5531 * elf32-i370.c: Likewise.
5532 * elf32-i386.c: Likewise.
5533 * elf32-m32r.c: Likewise.
5534 * elf32-m68k.c: Likewise.
5535 * elf32-ppc.c: Likewise.
5536 * elf32-s390.c: Likewise.
5537 * elf32-sh-symbian.c: Likewise.
5538 * elf32-sh.c: Likewise.
5539 * elf32-sh64.c: Likewise.
5540 * elf32-sparc.c: Likewise.
5541 * elf32-vax.c: Likewise.
5542 * elf32-xtensa.c: Likewise.
5543 * elf64-alpha.c: Likewise.
5544 * elf64-hppa.c: Likewise.
5545 * elf64-ppc.c: Likewise.
5546 * elf64-s390.c: Likewise.
5547 * elf64-sh64.c: Likewise.
5548 * elf64-sparc.c: Likewise.
5549 * elf64-x86-64.c: Likewise.
5550 * elflink.c: Likewise.
5551 * elfxx-ia64.c: Likewise.
5552 * elfxx-mips.c: Likewise.
5553 * configure.in (AM_INIT_AUTOMAKE): Set version to 2.15.92.
5554 * configure: Regenerate.
5555 * aclocal.m4: Regenerate.
5557 2004-09-16 Alan Modra <amodra@bigpond.net.au>
5559 * elf32-arm.h (elf32_arm_gc_sweep_hook): Add #ifndef OLD_ARM_ABI
5560 around uses of R_ARM_TARGET1.
5561 (elf32_arm_check_relocs): Likewise.
5563 2004-09-13 Paul Brook <paul@codesourcery.com>
5565 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
5567 * bfd-in2.h: Regenerate.
5568 * libbfd.h: Regenerate.
5569 * elf32-arm.h (elf32_arm_link_hash_table): Add target1_is_rel.
5570 (elf32_arm_link_hash_table_create): Set target1_is_rel.
5571 (bfd_elf32_arm_process_before_allocation): Ditto.
5572 (elf32_arm_final_link_relocate): Handle R_ARM_TARGET1.
5573 (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
5574 * elfarm-nabi.c (elf32_arm_howto_table): Rename RELABS to TARGET1.
5577 2004-09-10 Joel Brobecker <brobecker@gnat.com>
5579 * hpux-core.c (thread_section_p): New function.
5580 (hpux_core_core_file_p): Fix computation of offset in call
5581 to bfd_seek. Create a ".reg" section from an arbitrary
5582 ".reg/<id>" section if none was created after having read
5585 2004-09-11 Andreas Schwab <schwab@suse.de>
5587 * acinclude.m4: Fix spelling of ACX_NONCANONICAL_*.
5588 * aclocal.m4: Rebuild.
5589 * configure: Rebuild.
5591 2004-09-10 Joel Brobecker <brobecker@gnat.com>
5593 * section.c (bfd_sections_find_if): Fix parameter name in
5594 comment to match code.
5596 2004-09-10 Alan Modra <amodra@bigpond.net.au>
5598 * elf.c (assign_file_positions_except_relocs): Assign relocs
5599 stored in a bfd section.
5601 2004-09-08 Hans-Peter Nilsson <hp@axis.com>
5603 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset
5604 h->gotplt_refcount to 0, not -1.
5606 2004-09-07 Hans-Peter Nilsson <hp@axis.com>
5608 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
5609 case R_CRIS_32_GOTPLT>: For internal error message, handle NULL
5611 (cris_elf_check_relocs) <case R_CRIS_32_PLT_PCREL>: Don't try to
5612 handle symbol visibility here.
5614 2004-09-07 Alan Modra <amodra@bigpond.net.au>
5616 * elf64-ppc.c (struct ppc_link_hash_table): Add stub_globals.
5617 (is_ppc64_elf_target): Rename from is_ppc64_target. Update all
5619 (ppc_stub_name): Remove trailing "+0" on stub name.
5620 (create_linkage_sections): Create relocations for
5621 branch lookup table when --emit-relocs as well as when --shared.
5622 (ppc_build_one_stub): Emit relocs for long branch stubs. Adjust
5623 relbrlt test. For --emit-stub-syms, always output a sym even when
5624 one already exists on a plt call stub. Put stub type in the stub
5626 (ppc_size_one_stub): Size long branch stub relocs. Adjust relbrlt
5628 (ppc64_elf_size_stubs): Count global sym stubs added. Zero
5629 reloc_count in stub sections. Adjust relbrlt test.
5630 (ppc64_elf_build_stubs): Adjust relbrlt test. Tweak stats output.
5631 * elflink.c (bfd_elf_size_dynamic_sections): Fix comment typo.
5632 (elf_link_input_bfd): Ignore symbol index zero relocs when checking
5633 for relocs against discarded symbols. Fix comments.
5635 2004-09-06 Mark Mitchell <mark@codesourcery.com>
5637 * elf-bfd.h (_bfd_elf_make_dynamic_segment): Declare it.
5638 * elf.c (_bfd_elf_make_dynamic_segment): New function, split out
5640 (map_sections_to_segments): ... here. Use it. Assign a file
5641 position to the .dynamic section if it is not loadable, but part
5642 of the PT_DYNAMIC segment.
5643 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
5644 offsets, not VMAs, for the BPABI. Do not fill in the header in
5645 the .got.plt section for the BPABI.
5646 * elfarm-nabi.c (elf32_arm_symbian_modify_segment_map): Add a
5648 (elf_backend_want_got_plt): Define to zero for Symbian OS.
5650 2004-09-06 Nick Clifton <nickc@redhat.com>
5652 * elflink.c (elf_link_add_object_symbols): Set the error code to
5653 bfd_error_wrong_format when the input format does not match the
5656 2004-09-06 Alan Modra <amodra@bigpond.net.au>
5658 * elf64-ppc.c (is_ppc64_target): New function, extracted from..
5659 (ppc64_elf_check_directives): ..here.
5660 (ppc64_elf_size_dynamic_sections): Use it here to check bfd type
5661 before accessing ppc64_elf_tdata.
5662 (ppc64_elf_finish_dynamic_sections): And here too.
5664 2004-09-04 Alan Modra <amodra@bigpond.net.au>
5666 * bfd.c (_bfd_default_error_handler): Correct loop exit.
5668 2004-09-03 Mark Mitchell <mark@codesourcery.com>
5670 * config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors.
5671 * configure.in (bfd_elf32_bigarm_symbian_vec): Add it.
5672 (bfd_elf32_littlearm_symbian_vec): Likewise.
5673 * configure: Regenerated.
5674 * elf-bfd.h (elf_backend_data): Add dynamic_sec_flags.
5675 * elf32-arm.h (PLT_HEADER_SIZE): Do not define.
5676 (PLT_ENTRY_SIZE): Likewise.
5677 (bfd_vma_elf32_arm_symbian_plt_entry): New
5679 (elf32_arm_link_hash_table): Add plt_header_size, plt_entry_size,
5681 (create_got_section): Don't create sections when generating BPABI
5683 (elf32_arm_create_dynamic_sections): Tidy.
5684 (elf32_arm_link_hash_table_create): Set plt_header_size,
5685 plt_entry_size, and symbian_p.
5686 (elf32_arm_check_relocs): Do not mark .rel.dyn as loadable when
5687 generating BPABI objects.
5688 (allocate_dynrelocs): Use htab->plt_header_size, not
5689 PLT_HEADER_SIZE. Do not add to .got.plt when
5690 generating BPABI objects.
5691 (elf32_arm_finish_dynamic_symbol): Generate Symbian OS PLTs.
5692 * elfarm-nabi.c: Add SymbianOS target vectors.
5693 * elflink.c (_bfd_elf_create_got_section): Use dynamic_sec_flags.
5694 (_bfd_elf_link_create_dynamic_sections): Likewise.
5695 * elfxx-target.h (ELF_DYNAMIC_SEC_FLAGS): New macro.
5696 (elfNN_bed): Use it.
5697 * targets.c (bfd_elf32_bigarm_symbian_vec): New variable.
5698 (bfd_elf32_littlearm_symbian_vec): Likewise.
5699 (_bfd_target_vector): Add them.
5701 2004-09-03 Nick Clifton <nickc@redhat.com>
5704 * coffcode.h (handle_COMDAT): Replace abort with an warning
5705 message and allow the scan to continue.
5707 2004-09-02 Alan Modra <amodra@bigpond.net.au>
5709 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Use static_syms passed
5710 in when reading relocs, not our sorted syms. Remove unnecessary
5713 2004-08-31 Eric Botcazou <ebotcazou@libertysurf.fr>
5715 * elf.c (special_sections): Add .gnu.linkonce.b modelled on .bss.
5717 2004-08-30 Nathanael Nerode <neroden@gcc.gnu.org>
5719 * acinclude.m4: Require AC_CANONICAL_TARGET, not AC_CANONICAL_SYSTEM.
5720 Include ../config/acx.m4 and use ACX_NONCANONICAL_* where appropriate;
5721 replace uses of *_alias with *_noncanonical.
5722 * aclocal.m4: Rebuild with aclocal 1.4p6.
5723 * Makefile.in: Rebuild with automake 1.4p6.
5724 * doc/Makefile.in: Rebuild with automake 1.4p6.
5725 * configure.in: Autoupdate with autoupdate 2.59.
5726 * config.in: Regenerate with autoheader 2.59.
5727 * configure: Regnerate with autoconf 2.59.
5729 2004-08-28 Alan Modra <amodra@bigpond.net.au>
5731 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Copy input
5732 symbol pointer arrays before modifying.
5734 2004-08-28 Alan Modra <amodra@bigpond.net.au>
5736 * bfd.c (bfd_get_synthetic_symtab): Pass counts and both symbol tables.
5737 * elf-bfd.h (_bfd_elf_get_synthetic_symtab): Adjust.
5738 * elf.c (_bfd_elf_get_synthetic_symtab): Adjust.
5739 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Adjust.
5740 * targets.c (struct bfd_target <_bfd_get_synthetic_symtab>): Adjust.
5741 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't read symbols.
5742 Use both symbol tables on non-relocatable objects. Use a common
5743 error exit. Fix "mid" warning.
5744 * libbfd.h: Regenerate.
5745 * bfd-in2.h: Regenerate.
5747 2004-08-28 Alan Modra <amodra@bigpond.net.au>
5749 * elf64-ppc.c (ppc64_elf_branch_reloc): Check .opd is in a regular
5751 (struct sfpr_def_parms): Save some space.
5752 (sfpr_define): Here too.
5754 * elf64-ppc.c (compare_symbols): Put section syms first.
5755 (sym_exists_at): New function.
5756 (ppc64_elf_get_synthetic_symtab): Use relocs to find code entry
5757 points only for relocatable files. Use .opd section contents
5758 otherwise. Generally clean up the code.
5760 2004-08-27 Alan Modra <amodra@bigpond.net.au>
5762 * elf64-ppc.c (STD_R0_0R1, STD_R0_0R12, LD_R0_0R1, LD_R0_0R12,
5763 LI_R12_0, STVX_VR0_R12_R0, LVX_VR0_R12_R0, MTLR_R0, SFPR_MAX): Define.
5764 (struct sfpr_def_parms): New.
5765 (sfpr_define): New function.
5766 (savegpr0, savegpr0_tail, restgpr0, restgpr0_tail): New functions.
5767 (savegpr1, savegpr1_tail, restgpr1, restgpr1_tail): New functions.
5768 (savefpr, savefpr0_tail, restfpr, restfpr0_tail): New functions.
5769 (savefpr1_tail, restfpr1_tail): New functions.
5770 (savevr, savevr_tail, restvr, restvr_tail): New functions.
5771 (MIN_SAVE_FPR, MAX_SAVE_FPR): Don't define.
5772 (ppc64_elf_func_desc_adjust): Use sfpr_define in place of existing
5773 code. Define all ABI mandated _save and _rest functions.
5775 2004-08-26 Paul Brook <paul@codesourcery.com>
5777 * elf32-arm.h (INTERWORK_FLAG): Return true for EABIv3 objects.
5779 2004-08-26 Alan Modra <amodra@bigpond.net.au>
5781 * elf32-m32r.c (m32r_elf_relocate_section): Don't compare with
5784 2004-08-26 Alan Modra <amodra@bigpond.net.au>
5786 * elf32-i386.c (elf_i386_relocate_section): Tweak last change so
5787 that pcrel correction is applied for R_386_PC32.
5789 2004-08-25 Alan Modra <amodra@bigpond.net.au>
5791 * elf32-i386.c (elf_i386_relocate_section): Zero section contents
5792 for R_386_32 and R_386_PC32 relocs against symbols defined in
5795 2004-08-25 Dmitry Diky <diwil@spec.ru>
5797 * reloc.c (BFD_RELOC_MSP430_2X_PCREL,BFD_RELOC_MSP430_RL_PCREL):
5798 Add new relocations.
5799 * bfd-in2.h: Regenerate.
5800 * libbfd.h: Regenerate.
5801 * elf32-msp430.c: Clean-up code.
5802 (elf_msp430_howto_table): Add new relocation entries.
5803 (bfd_elf32_bfd_reloc_type_lookup): New relocation handlers.
5804 (msp430_elf_relax_section): New function.
5805 (msp430_elf_relax_delete_bytes): New function.
5806 (msp430_elf_symbol_address_p): New function.
5808 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5810 * elf32-m32r.c (m32r_elf_relocate_section): Handle
5811 R_M32R_SDA16_RELA in the same way as R_M32R_SDA16.
5813 2004-08-20 Daniel Jacobowitz <dan@debian.org>
5815 * elflink.c (_bfd_elf_section_already_linked): Handle
5816 SEC_LINK_DUPLICATES_SAME_CONTENTS.
5818 2004-08-19 Mark Mitchell <mark@codesourcery.com>
5820 * config.bfd (arm*-*-symbianelf*): New target.
5821 (arm*-*-eabi*): Likewise.
5823 2004-08-19 Alan Modra <amodra@bigpond.net.au>
5825 * elf64-ppc.c (ppc_get_stub_entry): Change third param to a
5826 "struct ppc_link_hash_entry *".
5827 (ppc64_elf_relocate_section): Ditto for type of h. Introduce h_elf
5828 to satisfy RELOC_FOR_GLOBAL_SYMBOL.
5830 2004-08-19 Jakub Jelinek <jakub@redhat.com>
5832 * elf64-ppc.c (ppc64_elf_edit_opd): Support 16 byte long .opd
5833 entries (where fd_aux overlaps next entry's fd_func).
5834 Add non_overlapping argument, use it.
5835 (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, adjust_opd_syms,
5836 ppc64_elf_size_stubs, ppc64_elf_relocate_section,
5837 ppc64_elf_output_symbol_hook): Use address / 8 instead of address / 24
5838 as indexes into opd_sym_map/opd_adjust array.
5839 * elf64-ppc.h (ppc64_elf_edit_opd): Adjust prototype.
5841 2004-08-18 Alan Modra <amodra@bigpond.net.au>
5843 * elf64-ppc.c (func_desc_adjust): Give undefined dot-symbols a value
5844 if we can look up their function descriptor in a regular file.
5846 2004-08-18 Nick Clifton <nickc@redhat.com>
5849 * cofflink.c (coff_link_add_symbols): Check that the comdat
5850 pointer in the coff_section_data structure has been initialised
5853 2004-08-18 Alan Modra <amodra@bigpond.net.au>
5856 * elflink.c (bfd_elf_record_link_assignment): Add comment about
5857 changing bfd_link_hash_undefined to bfd_link_hash_new.
5859 2004-08-17 Jakub Jelinek <jakub@redhat.com>
5861 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Only define
5863 * elf64-ppc.c (bfd_elf64_get_synthetic_symtab): Define.
5864 (synthetic_opd, synthetic_relocatable): New variables.
5865 (compare_symbols, compare_relocs): New helper routines.
5866 (ppc64_elf_get_synthetic_symtab): New function.
5867 * bfd.c (bfd_get_synthetic_symtab): Rename dynsyms argument
5869 * bfd-in2.h: Regenerated.
5870 * elf.c (_bfd_elf_get_synthetic_symtab): Rename dynsyms argument
5871 to relsyms. Return 0 if abfd is relocatable.
5873 2004-08-17 Alan Modra <amodra@bigpond.net.au>
5875 * elflink.h (elf_gc_sweep): Keep non-alloc, non-load sections.
5877 2004-08-17 Nick Clifton <nickc@redhat.com>
5879 * (is_arm_mapping_symbol_name): New function - return true
5880 when a symbol name matches the requirements for an ARM mapping
5882 (arm_elf_find_function): New function based on
5883 elf_find_function in elf.c but skipping ARM mapping symbols
5884 and including thumb function symbols.
5885 (elf32_arm_find_nearest_line): Use arm_elf_find_function.
5886 (elf32_arm_output_symbol_hook): Use is_arm_mapping_symbol_name.
5888 2004-08-17 Alan Modra <amodra@bigpond.net.au>
5890 * elf64-ppc.c (ppc64_elf_branch_reloc): New function.
5891 (ppc64_elf_howto_raw): Use ppc64_elf_branch_reloc.
5892 (ppc64_elf_brtaken_reloc): Here too.
5894 2004-08-17 Alan Modra <amodra@bigpond.net.au>
5896 * elf64-ppc.c (add_symbol_adjust): Correct mismatched function
5898 (ppc64_elf_check_directives): Check that we have the right hash
5899 table before proceeding.
5901 2004-08-17 Alan Modra <amodra@bigpond.net.au>
5903 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add "deleted_section".
5904 (adjust_opd_syms): Attach opd syms for deleted entries to one of
5905 the sections that will be discarded.
5907 2004-08-16 Alan Modra <amodra@bigpond.net.au>
5909 * elflink.c (elf_section_complain_discarded): Ignore .fixup.
5911 2004-08-16 Alan Modra <amodra@bigpond.net.au>
5913 * bfd.c (_bfd_default_error_handler): Account for doubled '%' in
5914 free space available.
5916 2004-08-16 Alan Modra <amodra@bigpond.net.au>
5918 * pdp11.c (struct pdp11_aout_reloc_external): Delete. Replace
5919 occurrences with bfd_byte * thoughout file.
5921 * coff-rs6000.c (do_shared_object_padding): Warning fix.
5922 (xcoff_write_armap_big): Likewise.
5923 (xcoff_write_archive_contents_old): Likewise.
5924 (xcoff_write_archive_contents_big): Likewise.
5926 * elf64-mmix.c (mmix_elf_get_section_contents): Delete declaration.
5928 2004-08-13 Nick Clifton <nickc@redhat.com>
5930 * elf32-arm.h: Convert to ISO C90.
5932 2004-08-13 Alan Modra <amodra@bigpond.net.au>
5935 * elf32-hppa.c (elf32_hppa_hide_symbol): Use init_refcount to
5938 2004-08-13 Alan Modra <amodra@bigpond.net.au>
5940 * bfd.c (_bfd_default_error_handler): Handle %A and %B.
5941 (bfd_archive_filename, bfd_get_section_ident): Delete.
5942 * ecofflink.c (bfd_ecoff_debug_accumulate_other): Don't call
5943 bfd_archive_filename.
5944 * elflink.c (elf_link_input_bfd): Don't use callbacks->error_handler
5945 to warn about symbols in discarded sections. Use _bfd_error_handler.
5946 * aout-adobe.c (aout_adobe_callback): See below.
5947 * aout-cris.c (swap_ext_reloc_in): ..
5948 * coff-arm.c (find_thumb_glue, find_arm_glue,
5949 coff_arm_relocate_section, bfd_arm_process_before_allocation,
5950 coff_arm_merge_private_bfd_data, _bfd_coff_arm_set_private_flags,
5951 coff_arm_copy_private_bfd_data): ..
5952 * coff-i860.c (i860_reloc_processing): ..
5953 * coff-mcore.c (mcore_coff_unsupported_reloc,
5954 coff_mcore_relocate_section): ..
5955 * coff-ppc.c (coff_ppc_relocate_section): ..
5956 * coff-rs6000.c (xcoff_create_csect_from_smclas
5957 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
5958 sh_swap_insns, sh_relocate_section): ..
5959 * coff-tic54x.c (tic54x_reloc_processing): ..
5960 * coff-tic80.c (coff_tic80_relocate_section): ..
5961 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): ..
5962 * coffcode.h (styp_to_sec_flags, coff_slurp_line_table,
5963 coff_slurp_symbol_table, coff_classify_symbol,
5964 coff_slurp_reloc_table): ..
5965 * coffgen.c (_bfd_coff_read_string_table): ..
5966 * cofflink.c (coff_link_add_symbols, _bfd_coff_link_input_bfd,
5967 _bfd_coff_generic_relocate_section): ..
5968 * cpu-arm.c (bfd_arm_merge_machines): ..
5969 * cpu-sh.c (sh_merge_bfd_arch): ..
5970 * elf-hppa.h (elf_hppa_relocate_section): ..
5971 * elf.c (bfd_elf_string_from_elf_section, setup_group,
5972 _bfd_elf_setup_group_pointers, bfd_section_from_shdr,
5973 assign_section_numbers, _bfd_elf_symbol_from_bfd_symbol,
5974 copy_private_bfd_data, _bfd_elf_validate_reloc): ..
5975 * elf32-arm.h (find_thumb_glue, find_arm_glue,
5976 bfd_elf32_arm_process_before_allocation, elf32_thumb_to_arm_stub,
5977 elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate,
5978 elf32_arm_relocate_section, elf32_arm_set_private_flags,
5979 elf32_arm_copy_private_bfd_data, elf32_arm_merge_private_bfd_data): ..
5980 * elf32-cris.c (cris_elf_relocate_section, cris_elf_check_relocs,
5981 cris_elf_merge_private_bfd_data
5982 * elf32-frv.c (elf32_frv_relocate_section, elf32_frv_check_relocs): ..
5983 * elf32-gen.c (elf32_generic_link_add_symbols): ..
5984 * elf32-hppa.c (hppa_add_stub, hppa_build_one_stub,
5985 elf32_hppa_check_relocs, get_local_syms, final_link_relocate,
5986 elf32_hppa_relocate_section): ..
5987 * elf32-i370.c (i370_elf_merge_private_bfd_data,
5988 i370_elf_check_relocs, i370_elf_relocate_section): ..
5989 * elf32-i386.c (elf_i386_info_to_howto_rel, elf_i386_check_relocs,
5990 elf_i386_relocate_section): ..
5991 * elf32-m32r.c (m32r_elf_relocate_section,
5992 m32r_elf_merge_private_bfd_data): ..
5993 * elf32-m68hc1x.c (m68hc12_add_stub,
5994 _bfd_m68hc11_elf_merge_private_bfd_data): ..
5995 * elf32-m68k.c (elf_m68k_relocate_section): ..
5996 * elf32-mcore.c (mcore_elf_unsupported_reloc,
5997 mcore_elf_relocate_section): ..
5998 * elf32-ppc.c (ppc_elf_merge_private_bfd_data, bad_shared_reloc,
5999 ppc_elf_check_relocs, ppc_elf_relocate_section,
6000 ppc_elf_begin_write_processing): ..
6001 * elf32-s390.c (elf_s390_check_relocs, invalid_tls_insn,
6002 elf_s390_relocate_section): ..
6003 * elf32-sh-symbian.c (sh_symbian_import_as,
6004 sh_symbian_process_embedded_commands,
6005 sh_symbian_relocate_section): ..
6006 * elf32-sh.c (sh_elf_relax_section, sh_elf_relax_delete_bytes,
6007 sh_elf_swap_insns, sh_elf_relocate_section, sh_elf_check_relocs,
6008 sh_elf_merge_private_data): ..
6009 * elf32-sparc.c (elf32_sparc_check_relocs,
6010 elf32_sparc_relocate_section,
6011 elf32_sparc_merge_private_bfd_data): ..
6012 * elf32-v850.c (v850_elf_check_relocs,
6013 v850_elf_merge_private_bfd_data): ..
6014 * elf32-xtensa.c (elf_xtensa_check_relocs,
6015 elf_xtensa_relocate_section, elf_xtensa_merge_private_bfd_data): ..
6016 * elf64-alpha.c (elf64_alpha_relax_with_lituse,
6017 elf64_alpha_relax_got_load, elf64_alpha_size_got_sections,
6018 elf64_alpha_relocate_section_r, elf64_alpha_relocate_section): ..
6019 * elf64-gen.c (elf64_generic_link_add_symbols): ..
6020 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data, ppc_add_stub,
6021 ppc64_elf_check_relocs, ppc64_elf_edit_opd,
6022 ppc64_elf_relocate_section): ..
6023 * elf64-s390.c (elf_s390_check_relocs, invalid_tls_insn,
6024 elf_s390_relocate_section): ..
6025 * elf64-sh64.c (sh_elf64_relocate_section): ..
6026 * elf64-sparc.c (sparc64_elf_check_relocs,
6027 sparc64_elf_add_symbol_hook, sparc64_elf_relocate_section,
6028 sparc64_elf_merge_private_bfd_data): ..
6029 * elf64-x86-64.c (elf64_x86_64_check_relocs,
6030 elf64_x86_64_relocate_section): ..
6031 * elflink.c (_bfd_elf_add_default_symbol,
6032 _bfd_elf_link_assign_sym_version, elf_link_read_relocs_from_section,
6033 _bfd_elf_link_output_relocs, elf_link_add_object_symbols,
6034 bfd_elf_size_dynamic_sections, elf_link_output_extsym,
6035 elf_get_linked_section_vma, elf_fixup_link_order,
6036 bfd_elf_final_link, bfd_elf_gc_record_vtinherit,
6037 bfd_elf_gc_record_vtinherit, _bfd_elf_section_already_linked): ..
6038 * elfxx-ia64.c (elfNN_ia64_relax_section,
6039 elfNN_ia64_relocate_section, elfNN_ia64_merge_private_bfd_data): ..
6040 * elfxx-mips.c (mips_elf_perform_relocation,
6041 _bfd_mips_elf_check_relocs,
6042 _bfd_mips_elf_merge_private_bfd_data): ..
6043 * ieee.c (ieee_slurp_external_symbols): ..
6044 * ihex.c (ihex_bad_byte, ihex_scan, ihex_read_section): ..
6045 * libbfd.c (_bfd_generic_verify_endian_match): ..
6046 * linker.c (_bfd_generic_link_add_one_symbol,
6047 _bfd_generic_section_already_linked): ..
6048 * pdp11.c (translate_to_native_sym_flags): ..
6049 * pe-mips.c (coff_pe_mips_relocate_section): ..
6050 * peicode.h (pe_ILF_build_a_bfd): ..
6051 * srec.c (srec_bad_byte): ..
6052 * stabs.c (_bfd_link_section_stabs): ..
6053 * xcofflink.c (xcoff_link_add_symbols, xcoff_link_input_bfd): ..
6054 Replace all uses of bfd_archive_filename and bfd_get_section_ident
6055 with corresponding %B and %A in _bfd_error_handler format string.
6056 Replace occurrences of "fprintf (stderr," with _bfd_error_handler
6057 calls to use %A and %B. Fix "against symbol .. from section" and
6058 similar error messages. Combine multiple _bfd_error_handler calls
6059 where they were separated due to bfd_archive_filename deficiencies.
6060 * bfd-in2.h: Regenerate.
6062 2004-08-12 H.J. Lu <hongjiu.lu@intel.com>
6064 * elf32-i386.c (elf_i386_relocate_section): Report unrecognized
6067 2004-08-10 Alan Modra <amodra@bigpond.net.au>
6069 * elf64-ppc.c (struct ppc_link_hash_entry): Add was_undefined.
6070 (struct ppc_link_hash_table): Remove no_multi_toc, multi_toc_needed.
6071 Make emit_stub_syms, stub_error and has_14bit_branch bit-fields.
6073 (link_hash_newfunc): Init was_undefined.
6074 (add_symbol_adjust): Don't set undefined dot symbols to defweak;
6075 Use undefweak instead.
6076 (ppc64_elf_check_directives): Fix undefs chain.
6077 (ppc64_elf_next_toc_section): Remove no_multi_toc and multi_toc_needed
6079 (ppc64_elf_size_stubs): Adjust for add_symbol_adjust change.
6080 (undo_symbol_twiddle, ppc64_elf_restore_symbols): New functions.
6081 * elf64-ppc.h (ppc64_elf_restore_symbols): Declare.
6083 2004-08-09 Jakub Jelinek <jakub@redhat.com>
6085 * elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic
6086 error, test input_section flags rather than sec.
6088 2004-08-09 Alan Modra <amodra@bigpond.net.au>
6090 * elf-bfd.h (struct elf_backend_data): Add
6091 elf_backend_archive_symbol_lookup.
6092 (_bfd_elf_archive_symbol_lookup): Declare.
6093 * elflink.c (_bfd_elf_archive_symbol_lookup): New function..
6094 (elf_link_add_archive_symbols): ..extracted from here. Call the
6096 * elfxx-target.h (elf_backend_archive_symbol_lookup): Provide default.
6097 (elfNN_bed): Init new field.
6098 * elf64-ppc.c (elf_backend_check_directives): Define.
6099 (elf_backend_archive_symbol_lookup): Define.
6100 (struct ppc_link_hash_table): Add tls_get_add_fd. Make tls_get_add
6101 a ppc_link_hash_entry pointer.
6103 (ppc64_elf_archive_symbol_lookup, opd_entry_value): New functions.
6104 (add_symbol_adjust, ppc64_elf_check_directives): New functions.
6105 (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, func_desc_adjust,
6106 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup,
6107 ppc64_elf_tls_optimize, allocate_dynrelocs, ppc_type_of_stub,
6108 ppc_build_one_stub, ppc64_elf_size_stubs, ppc64_elf_relocate_section,
6109 ppc64_elf_finish_dynamic_symbol): Handle branch relocs to function
6112 2004-08-09 Alan Modra <amodra@bigpond.net.au>
6114 * elf64-ppc.c (struct ppc_link_hash_entry): Expand adjust_done comment.
6115 (ppc64_elf_add_symbol_hook): Test for NULL section.
6116 (get_sym_h): Formatting.
6117 (ppc64_elf_size_stubs): Include reloc addend in value stored as
6120 * elf64-ppc.c (ppc64_elf_relocate_section): Combine handling of
6121 long branch stubs with code handling plt and r2off branch stubs.
6123 2004-08-09 Alan Modra <amodra@bigpond.net.au>
6125 * elf-bfd.h (_bfd_elf_gc_mark): Declare.
6126 * elflink.c (elf_link_input_bfd): Formatting.
6127 (_bfd_elf_gc_mark): Rename from elf_gc_mark and make global. Adjust
6129 * elf64-ppc.c (struct ppc_link_hash_entry): Remove is_entry.
6130 (link_hash_newfunc): Don't set it.
6131 (ppc64_elf_copy_indirect_symbol): Nor copy it.
6132 (ppc64_elf_mark_entry_syms): Delete.
6133 (ppc64_elf_gc_mark_hook): Mark entry syms here. Also mark opd
6134 sections. Use get_opd_info.
6135 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Delete.
6137 2004-08-09 Alan Modra <amodra@bigpond.net.au>
6139 * elf64-ppc.c (adjust_opd_syms): Fix merge error.
6141 * elf64-ppc.c (struct ppc_link_hash_table): Remove have_undefweak.
6142 (func_desc_adjust): Don't set have_undefweak.
6143 (ppc64_elf_func_desc_adjust): Don't add an extr nop to sfpr.
6144 (ppc64_elf_relocate_section): NOP out calls to undefweak functions.
6146 * elf64-ppc.c (struct ppc_link_hash_entry): Make "oh" a
6147 "struct ppc_link_hash_entry *". Adjust all references.
6148 (ppc64_elf_hide_symbol): Correct a comment.
6150 * elf64-ppc.c (get_opd_info): New function.
6151 (adjust_opd_syms): Use get_opd_info. Define removed symbols as zero.
6152 (ppc64_elf_edit_opd): Use get_opd_info. Check that sym has a dot
6153 before calling get_fdh. Test fdh rather than h before dereferencing
6154 fdh. Mark removed symbols in opd_adjust.
6155 (ppc64_elf_tls_optimize): Don't bother with opd adjustment here.
6156 (ppc64_elf_relocate_section): Use get_opd_info, and handle removed
6158 (ppc64_elf_output_symbol_hook): Likewise.
6160 2004-08-06 Paul Brook <paul@codesourcery.com>
6162 * elfarm-nabi.c (elf32_arm_howto_table): Add new EABI relocations.
6163 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_RELABS32,
6164 BFD_RELOC_ARM_ROSEGREL32 and BFD_RELOC_ARM_SBREL32.
6165 * reloc.c: Add BFD_RELOC_ARM_RELABS32, BFD_RELOC_ARM_ROSEGREL32
6166 and BFD_RELOC_ARM_SBREL32.
6167 * bfd-in2.h, bbfd.h: Regenerate.
6169 2004-08-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6171 * elfxx-mips.c (mips_elf_calculate_relocation): Test only for
6172 the dynamic link symbol actually in use.
6174 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
6176 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Handle bfd_link_hash_new
6178 2004-07-31 Joel Brobecker <brobecker@gnat.com>
6179 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6181 * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle
6182 SHN_MIPS_TEXT and SHN_MIPS_DATA.
6184 2004-07-30 H.J. Lu <hongjiu.lu@intel.com>
6185 Nick Clifton <nickc@redhat.com>
6188 * bfd.c (_bfd_default_error_handler): Make it global.
6190 * elf-bfd.h (elf_backend_data): Add link_order_error_handler.
6192 * elf.c (assign_section_numbers): Cope gracefully with sections
6193 which have SHF_LINK_ORDER set but no sh_link set up.
6194 * elflink.c (elf_get_linked_section_vma): Likewise.
6196 * elfxx-ia64.c (elf_backend_link_order_error_handler): New. Set
6199 * elfxx-target.h (elf_backend_link_order_error_handler): New.
6200 Set it to _bfd_default_error_handler.
6201 (elfNN_bed): Add elf_backend_link_order_error_handler.
6203 * libbfd-in.h (_bfd_default_error_handler): New.
6205 * libbfd.h: Regenerated.
6207 2004-07-30 Jakub Jelinek <jakub@redhat.com>
6209 * archures.c (bfd_mach_sparc_64bit_p): Define.
6210 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Use it.
6211 * bfd-in2.h: Rebuilt.
6213 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
6215 Introduce SH2a support.
6216 2004-02-18 Corinna Vinschen <vinschen@redhat.com>
6217 * archures.c (bfd_mach_sh2a_nofpu): New.
6218 * bfd-in2.h: Rebuilt.
6219 * cpu-sh.c (SH2A_NOFPU_NEXT): New.
6220 (arch_info_struct): Add sh2a_nofpu.
6221 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a_nofpu.
6222 2003-12-29 DJ Delorie <dj@redhat.com>
6223 * reloc.c: Add relocs for sh2a.
6224 * bfd-in2.h: Regenerate.
6225 * libbfd.hh: Regenerate.
6226 2003-12-01 Michael Snyder <msnyder@redhat.com>
6227 * archures.c (bfd_mach_sh2a): New.
6228 * bfd-in2.h: Rebuilt.
6229 * cpu-sh.c (SH_NEXT, SH2_NEXT, etc.): Change defines to enums.
6231 (arch_info_struct): Add sh2a.
6232 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a.
6234 2004-07-28 Nick Clifton <nickc@redhat.com>
6235 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6238 * som.c (setup_sections): Improve estimation of space sizes in
6239 relocatable objects.
6241 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
6242 * config.bfd (hppa*-*-netbsd*): Set targ_defvec to
6243 bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec
6245 * configure.in (bfd_elf32_hppa_nbsd_vec): Add case.
6246 * configure: Regenerate.
6247 * elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd"
6248 case that accepts OSABI=NetBSD and OSABI=SysV.
6249 (elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to
6250 the base of .got or .data (if .got does not exist).
6251 (elf32_hppa_post_process_headers): For elf32-hppa-netbsd,
6253 (TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case.
6254 (TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case.
6255 * targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration.
6256 (_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec.
6258 2004-07-27 H.J. Lu <hongjiu.lu@intel.com>
6261 * elf-bfd.h (bfd_elf_section_data): Add sec_group.
6262 (elf_sec_group): Defined.
6263 (bfd_elf_match_symbols_in_sections): New prototype.
6264 (_bfd_elf_setup_group_pointers): Likewise.
6266 * elf.c (bfd_elf_discard_group): Abort.
6267 (bfd_elf_set_group_contents): Also include relocation sections.
6268 Remove zero-fill for ld -r.
6269 (_bfd_elf_setup_group_pointers): New function.
6270 (elf_sort_elf_symbol): Likewise.
6271 (elf_sym_name_compare): Likewise.
6272 (bfd_elf_match_symbols_in_sections): Likewise.
6274 * elfcode.h (elf_object_p): Call _bfd_elf_setup_group_pointers.
6276 * elflink.c (match_group_member): New.
6277 (elf_link_input_bfd): Check group member for discarded section.
6278 (try_match_symbols_in_sections): New function.
6279 (already_linked): Likewise.
6280 (_bfd_elf_section_already_linked): Support mixing comdat group
6281 and linkonce section.
6283 * libbfd-in.h (bfd_section_already_linked_table_traverse): New.
6284 * linker.c (bfd_section_already_linked_table_traverse): New.
6286 * libbfd.h: Regenerated.
6288 2004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
6290 * reloc.c: Add BFD_RELOC_CRX_SWITCH8, BFD_RELOC_CRX_SWITCH16,
6291 BFD_RELOC_CRX_SWITCH32.
6292 * bfd-in2.h: Regenerate.
6293 * libbfd.h: Regenerate.
6294 * elf32-crx.c: Support relocation/relaxation of
6295 BFD_RELOC_CRX_SWITCH* types.
6297 2004-07-27 Alan Modra <amodra@bigpond.net.au>
6299 * elf64-ppc.c: Correct "Linker stubs" comment.
6301 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
6303 * elf-bfd.h (bfd_elf_section_data): Add a pointer for the
6305 (elf_linked_to_section): New.
6307 * elf.c (assign_section_numbers): Set up sh_link for
6310 * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info
6311 to sh_link for SHT_IA_64_UNWIND sections.
6313 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
6315 * elflink.c (elf_fixup_link_order): Add _() to error message.
6317 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
6319 * elflink.c (elf_fixup_link_order): Issue a warning and flag
6322 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
6324 * aout-adobe.c (aout_32_section_already_linked): Defined.
6325 * aout-target.h (MY_section_already_linked): Likewise.
6326 * aout-tic30.c (MY_section_already_linked): Likewise.
6327 * binary.c (binary_section_already_linked): Likewise.
6328 * bout.c (b_out_section_already_linked): Likewise.
6329 * coff-alpha.c (_bfd_ecoff_section_already_linked): Likewise.
6330 * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
6331 * coffcode.h (coff_section_already_linked): Likewise.
6332 * i386msdos.c (msdos_section_already_linked): Likewise.
6333 * i386os9k.c (os9k_section_already_linked): Likewise.
6334 * ieee.c (ieee_section_already_linked): Likewise.
6335 * ihex.c (ihex_section_already_linked): Likewise.
6336 * mach-o.c (bfd_mach_o_section_already_linked): Likewise.
6337 * mmo.c (mmo_section_already_linked): Likewise.
6338 * nlm-target.h (nlm_section_already_linked): Likewise.
6339 * oasys.c (oasys_section_already_linked): Likewise.
6340 * pef.c (bfd_pef_section_already_linked): Likewise.
6341 * ppcboot.c (ppcboot_section_already_linked): Likewise.
6342 * som.c (som_bfd_discard_group): Likewise.
6343 * srec.c (srec_section_already_linked): Likewise.
6344 * tekhex.c (tekhex_section_already_linked): Likewise.
6345 * versados.c (versados_section_already_linked): Likewise.
6346 * vms.c (vms_section_already_linked): Likewise.
6347 * coff-target.h (_bfd_xcoff_section_already_linked): Likewise.
6348 * xsym.c (bfd_sym_section_already_linked): Likewise.
6350 * bfd-in.h (bfd_section_already_linked_table_init): New.
6351 (bfd_section_already_linked_table_free): Likewise.
6353 * coff-rs6000.c (rs6000coff_vec): Add
6354 _bfd_generic_section_already_linked.
6355 (pmac_xcoff_vec): Likewise.
6356 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
6357 (aix5coff64_vec): Likewise.
6359 * elf-bfd.h (_bfd_elf_section_already_linked): New prototype.
6360 * elflink.c (_bfd_elf_section_already_linked): New function.
6362 * elfxx-target.h (bfd_elfNN_section_already_linked): Defined.
6364 * libbfd-in.h (_bfd_nolink_section_already_linked): Defined.
6365 (_bfd_generic_section_already_linked): New.
6366 (bfd_section_already_linked_hash_entry): Likewise.
6367 (bfd_section_already_linked): Likewise.
6368 (bfd_section_already_linked_table_lookup): Likewise.
6369 (bfd_section_already_linked_table_insert): Likewise.
6371 * linker.c (bfd_section_already_linked): New.
6372 (_bfd_section_already_linked_table): Likewise.
6373 (bfd_section_already_linked_table_lookup): Likewise.
6374 (bfd_section_already_linked_table_insert): Likewise.
6375 (already_linked_newfunc): Likewise.
6376 (bfd_section_already_linked_table_init): Likewise.
6377 (bfd_section_already_linked_table_free): Likewise.
6378 (_bfd_generic_section_already_linked): Likewise.
6380 * section.c (bfd_section): Remove comdat.
6381 (bfd_comdat_info): Moved to ...
6382 * bfd-in.h (coff_comdat_info): Here.
6383 (bfd_coff_get_comdat_section): New.
6384 * coffgen.c (bfd_coff_get_comdat_section): Likewise.
6385 * libcoff-in.h (coff_section_tdata): Add comdat.
6386 * coffcode.h (handle_COMDAT): Updated.
6387 * cofflink.c (coff_link_add_symbols): Likewise.
6388 * ecoff.c (bfd_debug_section): Likewise.
6390 * targets.c (bfd_target): Add _section_already_linked.
6391 (BFD_JUMP_TABLE_LINK): Updated.
6393 * bfd-in2.h: Regenerated.
6394 * libbfd.h: Likewise.
6395 * libcoff.h: Likewise.
6397 2003-07-21 Paul Brook <paul@codesourcery.com>
6399 * elflink.c (elf_get_linked_section_vma, compare_link_order,
6400 elf_fixup_link_order): New functions.
6401 (bfd_elf_final_link): Call elf_fixup_link_order.
6403 2004-07-21 Alexandre Oliva <aoliva@redhat.com>
6405 * elf-bfd.h (ELF_COMMON_DEF_P): New.
6406 * elflink.c (_bfd_elf_symbol_refs_local_p): Use it to handle
6408 * elf-m10300.c: Use SYMBOL_REFERENCES_LOCAL instead of
6409 _bfd_elf_symbol_refs_local_p.
6410 * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove hack for common
6413 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
6415 * bfd-in.h (dynamic_lib_link_class): Add DYN_NO_ADD_NEEDED and
6417 (bfd_elf_get_dyn_lib_class): New prototype.
6418 * elf.c (bfd_elf_get_dyn_lib_class): New function.
6420 * elflink.c (elf_link_add_object_symbols): Check DYN_AS_NEEDED,
6421 DYN_DT_NEEDED and DYN_NO_NEEDED bits to see if a DT_NEEDED
6422 entry is needed. Issue an error if a DT_NEEDED entry is needed
6423 for a file marked DYN_NO_NEEDED.
6424 (elf_link_check_versioned_symbol): Check the DYN_DT_NEEDED bit
6427 * bfd-in2.h: Regenerated.
6429 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6431 * elflink.c (elf_section_complain_discarded): Don't complain in
6434 2004-07-10 James E Wilson <wilson@specifixinc.com>
6436 * elfxx-ia64.c (elfNN_ia64_relax_ldxmov): Remove abfd parameter.
6437 (elfNN_ia64_install_value, elfNN_ia64_relax_brl): Likewise.
6438 (elfNN_ia64_relax_section, elfNN_ia64_relocate_section,
6439 elfNN_ia64_finish_dynamic_symbol, elfNN_ia64_finish_dynamic_sections):
6441 (elfNN_ia64_relax_brl): Change bfd_get_64 to bfd_getl64. Change
6442 bfd_put_64 to bfd_putl64.
6443 (elfNN_ia64_relax_ldxmov, elfNN_ia64_install_value): Likewise.
6445 2004-07-09 H.J. Lu <hongjiu.lu@intel.com>
6448 * elfxx-ia64.c (elfNN_ia64_relax_section): Only warn br in
6449 .init/.fini sections when trying to relax it.
6451 2004-07-09 Jie Zhang <zhangjie@magima.com.cn>
6453 * elf.c (assign_file_positions_for_segments): Make sure the
6454 .dynamic section is the first section in the PT_DYNAMIC segment.
6456 2004-07-09 Nick Clifton <nickc@redhat.com>
6458 * config.bfd: Change sh-sybmian-elf to sh-*-symbianelf.
6459 * elf32-sh-symbian.c: Rename the sh_find_elf_flags and
6460 sh_elf_get_flags_from_mach functions so that they do not conflict
6461 when this target is built with other sh-elf targets.
6462 * elf32-sh.c (sh_elf_get_flags_from_mach): Remove bogus
6463 suppression of this function.
6464 (sh_elf_find_flags): Likewise.
6466 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
6468 * Makefile.am (ALL_MACHINES): Add cpu-crx.lo.
6469 (ALL_MACHINES_CFILES): Add cpu-crx.c.
6470 (BFD32_BACKENDS): Add elf32-crx.lo.
6471 (BFD32_BACKENDS_CFILES): Add elf32-crx.c.
6472 (cpu-crx.lo): New target.
6473 (elf32-crx.lo): New target.
6474 * Makefile.in: Regenerate.
6475 * archures.c (bfd_architecture): Add bfd_{arch,mach}_crx.
6476 (bfd_archures_list): Add bfd_crx_arch.
6477 * bfd-in2.h: Regenerate.
6478 * config.bfd: Handle crx-*-elf*, crx*.
6479 * configure.in: Handle bfd_elf32_crx_vec.
6480 * configure: Regenerate.
6481 * cpu-crx.c: New file.
6482 * elf32-crx.c: Likewise.
6483 * libbfd.h: Regenerate.
6484 * reloc.c: Add BFD_RELOC_CRX_REL4, BFD_RELOC_CRX_REL8,
6485 BFD_RELOC_CRX_REL8_CMP, BFD_RELOC_CRX_REL16, BFD_RELOC_CRX_REL24,
6486 BFD_RELOC_CRX_REL32, BFD_RELOC_CRX_REGREL12, BFD_RELOC_CRX_REGREL22,
6487 BFD_RELOC_CRX_REGREL28, BFD_RELOC_CRX_REGREL32, BFD_RELOC_CRX_ABS16,
6488 BFD_RELOC_CRX_ABS32, BFD_RELOC_CRX_NUM8, BFD_RELOC_CRX_NUM16,
6489 BFD_RELOC_CRX_NUM32, BFD_RELOC_CRX_IMM16 and BFD_RELOC_CRX_IMM32
6490 * targets.c (bfd_elf32_crx_vec): Declare.
6491 (bfd_target_vector): Add bfd_elf32_crx_vec.
6493 2004-07-06 Nick Clifton <nickc@redhat.com>
6495 * config.bfd: Add sh-symbian-elf target.
6496 * configure.in: Add bfd_elf32_shl_symbian_vec.
6497 * configure: Regenerate.
6498 * elf-bfd.h (struct elf_backend_data): Add new field
6500 * elflink.c (elf_link_add_object_symbols): Invoke the
6501 check_directives function, if defined.
6502 * elfxx-target.h: Provide a default, NULL definition for
6504 * targets.c: Add bfd_elf32_shl_symbian_vec.
6505 * elf32-sh.c (sh_elf_swap_insns): Protect against unnecessary
6507 (elf32_shlin_grok_prstatus, elf32_shlib_grok_psinfo,
6508 * sh_elf_get_flags_from_mach, sh_elf_find_flags): Likewise.
6509 (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Only define if they have
6510 not already been defined.
6511 * elf32-sh64.c: Use SH_TARGET_ALREADY_DEFINED.
6512 * sh-symbian.c: New file. Provide functions to support the
6513 * sh-symbian-elf target.
6514 * Makefile.am: Add elf32-sh-symbian.c
6515 * Makefile.in: Regenerate.
6517 2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
6519 * elf32-sh.c: Include ../opcodes/sh-opc.h.
6520 * Makefile.am: Ran make dep-am.
6521 * Makefile.in: Ran make dep-in.
6523 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
6525 * cofflink.c (_bfd_coff_generic_relocate_section): Resolve PE weak
6528 2004-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
6530 * config.bfd: Add want64 to configuration target s390-*-linux*.
6532 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
6534 * bfd.c (bfd_get_section_ident): New.
6536 * elflink.c (elf_link_read_relocs_from_section): Call
6537 bfd_get_section_ident to identify the section when reporting
6539 (_bfd_elf_link_output_relocs): Likewise.
6540 (elf_link_output_extsym): Likewise.
6541 (elf_link_input_bfd): Likewise.
6542 (bfd_elf_gc_record_vtinherit): Likewise.
6544 * bfd-in2.h: Regenerated.
6546 2004-07-01 Jie Zhang <zhangjie@magima.com.cn>
6547 Nick Clifton <nickc@redhat.com>
6550 * elfxx-mips.c (_bfd_mips_elf_final_link): Pass the correct number
6551 of section symbols to mips_elf_sort_hash_table ().
6553 2004-07-01 Alan Modra <amodra@bigpond.net.au>
6555 * elflink.c (elf_section_ignore_discarded_relocs): Revert last
6557 (elf_section_complain_discarded): New function. Handle
6558 .gcc_except_table too.
6559 (elf_link_input_bfd): Rewrite handling of relocs against symbols
6560 in discarded sections.
6561 * elf-bfd.h (elf_discarded_section): Protect macro arg.
6563 2004-06-30 James E Wilson <wilson@specifixinc.com>
6565 * elfxx-ia64.c (elfNN_ia64_check_relocs): New local pltoff. Initialize
6566 to NULL. Call get_pltoff if NULL and NEED_PLTOFF is true.
6568 2004-06-30 H.J. Lu <hongjiu.lu@intel.com>
6571 * elflink.c (elf_link_input_bfd): Issue an error for non-debug
6572 local references to discarded sections and report their
6575 2004-06-30 Alan Modra <amodra@bigpond.net.au>
6577 * elflink.c (elf_section_ignore_discarded_relocs): Don't test
6578 sec_info_type, test section name instead.
6580 2004-06-29 H.J. Lu <hongjiu.lu@intel.com>
6583 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't relax branch
6584 in .init/.fini sections.
6586 2004-06-29 Bob Wilson <bob.wilson@acm.org>
6588 * elf32-xtensa.c (elf_xtensa_relocate_section): Use
6589 bfd_get_section_limit.
6591 2004-06-29 Bob Wilson <bob.wilson@acm.org>
6593 * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Don't change the
6594 output section size.
6596 2004-06-29 Alan Modra <amodra@bigpond.net.au>
6598 * elf64-mmix.c (mmix_set_relaxable_size): Save original size in
6600 (mmix_elf_perform_relocation): Adjust for above change.
6601 (mmix_elf_relocate_section): Likewise.
6602 (mmix_elf_relax_section): Likewise. Use output_section->rawsize.
6603 (mmix_elf_get_section_contents): Delete.
6604 (bfd_elf64_get_section_contents): Delete.
6605 (mmix_elf_relocate_section): Zero stub area.
6606 * linker.c (default_indirect_link_order): Alloc max of section size
6608 * simple.c (bfd_simple_get_relocated_section_contents): Likewise.
6609 * section.c (bfd_malloc_and_get_section): Likewise.
6610 (struct bfd_section): Update rawsize comment.
6611 * bfd-in2.h: Regenerate.
6613 * reloc16.c (bfd_coff_reloc16_relax_section): Set rawsize.
6615 2004-06-29 Alan Modra <amodra@bigpond.net.au>
6617 * bfd-in.h (bfd_get_section_limit): Define.
6618 * reloc.c (bfd_perform_relocation, bfd_install_relocation)
6619 (_bfd_final_link_relocate): Use bfd_get_section_limit.
6620 * aout-tic30.c (tic30_aout_final_link_relocate): Likewise.
6621 * coff-arm.c (coff_arm_relocate_section): Likewise.
6622 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): Likewise.
6623 * cpu-ns32k.c (do_ns32k_reloc): Likewise.
6624 (bfd_ns32k_final_link_relocate): Likewise.
6625 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): Likwise.
6626 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): Likewise.
6627 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc)
6628 (i860_howto_highadj_reloc, i860_howto_splitn_reloc): Likewise.
6629 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc)
6630 (m32r_elf_generic_reloc, m32r_elf_relocate_section): Likewise.
6631 * elf32-m68hc1x.c (m68hc11_elf_special_reloc): Likewise.
6632 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
6633 * elf32-or32.c (or32_elf_consth_reloc): Likewise.
6634 * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Likewise.
6635 * elf32-s390.c (s390_elf_ldisp_reloc): Likewise.
6636 * elf32-sh.c (sh_elf_reloc_loop): Likewise.
6637 * elf32-sparc.c (sparc_elf_wdisp16_reloc): Likewise.
6638 (sparc_elf_hix22_reloc, sparc_elf_lox10_reloc): Likwise.
6639 * elf32-v850.c (v850_elf_reloc): Likewise.
6640 * elf32-xstormy16.c (xstormy16_elf_24_reloc): Likewise.
6641 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Likewise.
6642 * elf64-alpha.c (elf64_alpha_reloc_gpdisp): Likewise.
6643 * elf64-mips.c (mips_elf64_gprel32_reloc)
6644 (mips16_gprel_reloc): Likewise.
6645 * elf64-mmix.c (mmix_elf_reloc): Likewise.
6646 * elf64-s390.c (s390_elf_ldisp_reloc): Likewise.
6647 * elf64-sparc.c (init_insn_reloc): Likewise.
6648 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
6649 * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp)
6650 (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc)
6651 (_bfd_mips_elf_generic_reloc): Likewise.
6652 * bfd-in2.h: Regenerate.
6654 2004-06-28 Alan Modra <amodra@bigpond.net.au>
6656 * bfd-in.h (struct stab_info): Move from stabs.c.
6657 * stabs.c (struct stab_link_includes_table): Delete.
6658 (stab_link_includes_lookup): Delete.
6659 (_bfd_write_section_stabs, _bfd_write_stab_strings): Remove one
6660 level of indirection from sinfo parm.
6661 (_bfd_link_section_stabs): Likewise. Set SEC_LINKER_CREATED on
6662 stabstr section. Adjust hash table accesses.
6663 * coff-ppc.c (ppc_bfd_coff_final_link): Do include rawsize in contents
6664 alloc. Adjust stab_info test.
6665 * cofflink.c (_bfd_coff_link_hash_table_init): Clear stab_info.
6666 (_bfd_coff_final_link): Adjust stab_info test.
6667 (_bfd_coff_link_input_bfd): Ignore SEC_LINKER_CREATED sections.
6668 * elf-bfd.h (struct elf_link_hash_table): Include struct stab_info
6670 * libcoff-in.h (struct coff_link_hash_table): Likewise.
6671 * elf.c (_bfd_elf_link_hash_table_init): Clear stab_info.
6672 * elflink.c (bfd_elf_final_link): Don't attempt to link linker created
6673 stabstr section. Adjust stab_info test.
6674 * libbfd-in.h (_bfd_link_section_stabs, _bfd_write_section_stabs)
6675 (_bfd_write_stab_strings): Adjust prototypes.
6676 * libbfd.h: Regenerate.
6677 * libcoff.h: Regenerate.
6678 * bfd-in2.h: Regenerate.
6680 2004-06-27 Mark Kettenis <kettenis@gnu.org>
6682 From Miod Vallat <miod@online.fr>:
6683 * aoutx.h (NAME(aout,machine_type)): Handle bfd_arch_m88k.
6685 2004-06-26 Alexandre Oliva <aoliva@redhat.com>
6687 * elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): Delete.
6688 (struct elf32_mn10300_link_hash_entry): Remove
6689 pcrel_relocs_copied.
6690 (mn10300_elf_check_relocs): Only reserve dynamic relocations for
6691 R_MN10300_32. Don't adjust pcrel_relocs_copied.
6692 (mn10300_elf_final_link_relocate): Fail for direct, pc-relative
6693 and gotoff relocations if the symbol doesn't bind locally. Use
6694 _bfd_elf_symbol_refs_local_p to test. Don't create dynamic
6695 relocation for PCREL32.
6696 (mn10300_elf_relocate_section): Use _bfd_elf_symbol_refs_local_p
6697 to test whether a symbol binds locally.
6698 (elf32_mn10300_link_hash_newfunc): Don't initialize
6699 pcrel_relocs_copied.
6700 (_bfd_mn10300_elf_discard_copies): Delete.
6701 (_bfd_mn10300_elf_size_dynamic_sections): Don't call it.
6703 2004-06-26 Mark Kettenis <kettenis@gnu.org>
6705 * config.bfd: Replace m88k-*-openbsd* with m88*-*-openbsd*.
6707 2004-06-25 Joel Brobecker <brobecker@gnat.com>
6709 * som.c (som_set_reloc_info): Correct small typo.
6711 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6713 * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_GOTOFF.
6714 (m32r_elf_relocate_section): Changed for R_M32R_GOTOFF.
6715 (m32r_elf_gcsweep_hook): Likewise.
6716 (m32r_elf_check_relocs): Likewise.
6717 (m32r_elf_howto_table): Added R_M32R_GOTOFF_HI_ULO,
6718 R_M32R_GOTOFF_HI_SLO and R_M32R_GOTOFF_LO.
6719 * reloc.c: Added BFD_RELOC_M32R_GOTOFF_HI_ULO,
6720 BFD_RELOC_M32R_GOTOFF_HI_SLO and BFD_RELOC_M32R_GOTOFF_LO.
6721 * bfd-in2.h: Regenerated.
6722 * libbfd.h: Regenerated.
6724 2004-06-24 H.J. Lu <hongjiu.lu@intel.com>
6726 * elf64-x86-64.c (elf64_x86_64_check_relocs): Warn overflow
6728 (elf64_x86_64_relocate_section): Issue an error for
6729 R_X86_64_PC8, R_X86_64_PC16 and R_X86_64_PC32 relocations
6730 against global symbols when building shared library.
6732 2004-06-24 Alan Modra <amodra@bigpond.net.au>
6734 * section.c (struct sec): Rename "_cooked_size" to "size".
6735 Rename "_raw_size" to "rawsize".
6736 (STD_SECTION): Adjust comments.
6737 (bfd_set_section_size, bfd_get_section_contents): Use size.
6738 (bfd_malloc_and_get_section): New function.
6739 * bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
6740 * coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
6741 Correctly free reloc and contents memory.
6742 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
6743 and fake CIE now that we can shink section size to zero.
6744 (_bfd_elf_write_section_eh_frame): Likewise..
6745 * elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
6746 * elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
6747 _bfd_stab_section_offset. Use _bfd_elf_section_offset.
6748 * stabs.c (_bfd_stab_section_offset_): Remove unused args and
6749 unneeded indirection.
6750 * elf.c (_bfd_elf_section_offset): .. and update call.
6751 * libbfd-in.h (_bfd_stab_section_offset): Update prototype.
6752 * libbfd.h: Regenerate.
6753 * bfd-in2.h: Regenerate.
6755 Replace occurrences of "_raw_size" and "_cooked_size" in most places
6756 with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
6757 sections. Use "rawsize", if non-zero, for bfd_get_section_contents
6758 calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
6759 Similarly use "rawsize", if non-zero, in reloc functions to validate
6760 reloc addresses. Use new bfd_malloc_and_get_section in most places
6761 where bfd_get_section_contents was called. Expand all occurrences of
6762 bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
6763 grok_prstatus and similar functions to "size".
6764 * aix386-core.c (aix386_core_file_p): ..
6765 * aix5ppc-core.c (xcoff64_core_p): ..
6766 * aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
6767 aout_adobe_set_section_contents): ..
6768 * aout-target.h (callback): ..
6769 * aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
6770 MY_bfd_final_link): ..
6771 * aoutf1.h (sunos4_core_file_p): ..
6772 * aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
6773 adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
6774 final_link, aout_link_input_section): ..
6775 * binary.c (binary_object_p, binary_canonicalize_symtab,
6776 binary_set_section_contents): ..
6777 * bout.c (b_out_callback, b_out_write_object_contents,
6778 b_out_set_section_contents, b_out_bfd_relax_section,
6779 b_out_bfd_get_relocated_section_contents): ..
6780 * cisco-core.c (cisco_core_file_validate): ..
6781 * coff-alpha.c (alpha_ecoff_object_p,
6782 alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
6783 * coff-arm.c (coff_arm_relocate_section,
6784 bfd_arm_allocate_interworking_sections): ..
6785 * coff-h8300.c (h8300_reloc16_extra_cases,
6786 h8300_bfd_link_add_symbols): ..
6787 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
6788 * coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
6789 ppc_bfd_coff_final_link): ..
6790 * coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
6791 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
6792 sh_align_loads, sh_coff_get_relocated_section_contents): ..
6793 * coff64-rs6000.c (xcoff64_write_object_contents,
6794 xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
6795 * coffcode.h (coff_compute_section_file_positions,
6796 coff_write_object_contents): ..
6797 * coffgen.c (make_a_section_from_file, coff_write_symbols,
6798 coff_section_symbol, build_debug_section): ..
6799 * cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
6800 process_embedded_commands, _bfd_coff_link_input_bfd,
6801 _bfd_coff_write_global_sym): ..
6802 * cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
6803 * cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
6804 * dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
6805 * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
6806 _bfd_dwarf2_find_nearest_line): ..
6807 * ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
6808 ecoff_compute_section_file_positions,
6809 _bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
6810 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
6811 _bfd_elf_discard_section_eh_frame_hdr,
6812 _bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
6813 _bfd_elf_write_section_eh_frame,
6814 _bfd_elf_write_section_eh_frame_hdr): ..
6815 * elf-hppa.h (elf_hppa_sort_unwind): ..
6816 * elf-m10200.c (mn10200_elf_relax_section,
6817 mn10200_elf_relax_delete_bytes,
6818 mn10200_elf_get_relocated_section_contents): ..
6819 * elf-m10300.c (_bfd_mn10300_elf_create_got_section,
6820 mn10300_elf_check_relocs, mn10300_elf_relax_section,
6821 mn10300_elf_relax_delete_bytes,
6822 mn10300_elf_get_relocated_section_contents,
6823 _bfd_mn10300_elf_adjust_dynamic_symbol,
6824 _bfd_mn10300_elf_discard_copies,
6825 _bfd_mn10300_elf_size_dynamic_sections,
6826 _bfd_mn10300_elf_finish_dynamic_sections): ..
6827 * elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
6828 _bfd_elf_make_section_from_phdr, elf_fake_sections,
6829 bfd_elf_set_group_contents, map_sections_to_segments,
6830 elf_sort_sections, assign_file_positions_for_segments,
6831 SECTION_SIZE, copy_private_bfd_data,
6832 _bfd_elf_get_dynamic_reloc_upper_bound,
6833 _bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
6834 _bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
6835 elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
6836 elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
6837 _bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
6838 * elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
6839 bfd_elf32_arm_process_before_allocation,
6840 elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
6841 elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
6842 elf32_arm_write_section): ..
6843 * elf32-cris.c (cris_elf_grok_prstatus,
6844 elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
6845 elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
6846 cris_elf_check_relocs, elf_cris_size_dynamic_sections,
6847 elf_cris_discard_excess_dso_dynamics,
6848 elf_cris_discard_excess_program_dynamics): ..
6849 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
6850 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
6851 * elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
6852 _frv_create_got_section, _frvfdpic_assign_plt_entries,
6853 elf32_frvfdpic_size_dynamic_sections,
6854 elf32_frvfdpic_modify_segment_map,
6855 elf32_frvfdpic_finish_dynamic_sections): ..
6856 * elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
6857 elf32_h8_get_relocated_section_contents): ..
6858 * elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
6859 elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
6860 allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
6861 elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
6862 elf32_hppa_finish_dynamic_sections): ..
6863 * elf32-i370.c (i370_elf_adjust_dynamic_symbol,
6864 i370_elf_size_dynamic_sections, i370_elf_check_relocs,
6865 i370_elf_finish_dynamic_sections): ..
6866 * elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
6867 allocate_dynrelocs, elf_i386_size_dynamic_sections,
6868 elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
6869 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
6870 i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
6871 * elf32-ip2k.c (ip2k_is_switch_table_128,
6872 ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
6873 ip2k_relax_switch_table_256, ip2k_elf_relax_section,
6874 adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
6875 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
6876 m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
6877 allocate_dynrelocs, m32r_elf_size_dynamic_sections,
6878 m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
6879 m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
6880 m32r_elf_get_relocated_section_contents): ..
6881 * elf32-m68hc11.c (m68hc11_elf_build_one_stub,
6882 m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
6883 m68hc11_elf_relax_delete_bytes): ..
6884 * elf32-m68hc12.c (m68hc12_elf_build_one_stub,
6885 m68hc12_elf_size_one_stub): ..
6886 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
6887 elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
6888 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
6889 elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
6890 elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
6891 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
6892 elf32_mips_grok_prstatus): ..
6893 * elf32-or32.c (or32_elf_consth_reloc): ..
6894 * elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
6895 elf_create_pointer_linker_section, ppc_elf_create_linker_section,
6896 ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
6897 allocate_dynrelocs, ppc_elf_size_dynamic_sections,
6898 ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
6899 ppc_elf_final_write_processing): ..
6900 * elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
6901 allocate_dynrelocs, elf_s390_size_dynamic_sections,
6902 elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
6903 * elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
6904 sh_elf_relax_delete_bytes, sh_elf_align_loads,
6905 sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
6906 sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
6907 sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
6908 * elf32-sh64-com.c (sh64_address_in_cranges,
6909 sh64_get_contents_type): ..
6910 * elf32-sh64.c (sh64_find_section_for_address,
6911 sh64_elf_final_write_processing): ..
6912 * elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
6913 sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
6914 allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
6915 elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
6916 * elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
6917 * elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
6918 elf_vax_size_dynamic_sections, elf_vax_discard_copies,
6919 elf_vax_instantiate_got_entries, elf_vax_relocate_section,
6920 elf_vax_finish_dynamic_sections): ..
6921 * elf32-xstormy16.c (xstormy16_elf_24_reloc,
6922 xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
6923 xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
6924 xstormy16_elf_finish_dynamic_sections): ..
6925 * elf32-xtensa.c (xtensa_read_table_entries,
6926 elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
6927 elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
6928 bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
6929 elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
6930 elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
6931 get_relocation_opcode, retrieve_contents, find_relaxable_sections,
6932 collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
6933 relax_section, shrink_dynamic_reloc_sections, relax_property_section,
6934 xtensa_callback_required_dependence): ..
6935 * elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
6936 elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
6937 elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
6938 elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
6939 elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
6940 elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
6941 elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
6942 elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
6943 * elf64-hppa.c (allocate_dynrel_entries,
6944 elf64_hppa_size_dynamic_sections,
6945 elf64_hppa_finish_dynamic_sections): ..
6946 * elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
6947 mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
6948 elf64_mips_grok_prstatus): ..
6949 * elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
6950 mmix_elf_relocate_section, mmix_elf_final_link,
6951 mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
6952 mmix_elf_relax_section, mmix_elf_get_section_contents): ..
6953 * elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
6954 ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
6955 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
6956 allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
6957 ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
6958 toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
6959 ppc64_elf_build_stubs, ppc64_elf_relocate_section,
6960 ppc64_elf_finish_dynamic_sections): ..
6961 * elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
6962 allocate_dynrelocs, elf_s390_size_dynamic_sections,
6963 elf_s390_finish_dynamic_sections): ..
6964 * elf64-sh64.c (sh_elf64_get_relocated_section_contents,
6965 sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
6966 sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
6967 sh64_elf64_finish_dynamic_sections): ..
6968 * elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
6969 sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
6970 sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
6971 sparc64_elf_finish_dynamic_symbol,
6972 sparc64_elf_finish_dynamic_sections): ..
6973 * elf64-x86-64.c (elf64_x86_64_grok_prstatus,
6974 elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
6975 elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
6976 elf64_x86_64_finish_dynamic_sections): ..
6977 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
6978 * elfcode.h (elf_slurp_reloc_table): ..
6979 * elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
6980 elf_finalize_dynstr, elf_link_add_object_symbols,
6981 bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
6982 elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
6983 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
6984 elf32_mips_grok_prstatus): ..
6985 * elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
6986 elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
6987 elfNN_ia64_choose_gp, elfNN_ia64_final_link,
6988 elfNN_ia64_finish_dynamic_sections): ..
6989 * elfxx-mips.c (mips_elf_create_procedure_table,
6990 mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
6991 _bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
6992 mips_elf_global_got_index, mips_elf_multi_got,
6993 mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
6994 mips_elf_allocate_dynamic_relocations,
6995 mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
6996 _bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
6997 _bfd_mips_elf_always_size_sections,
6998 _bfd_mips_elf_size_dynamic_sections,
6999 _bfd_mips_elf_finish_dynamic_symbol,
7000 _bfd_mips_elf_finish_dynamic_sections,
7001 _bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
7002 _bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
7003 _bfd_elf_mips_get_relocated_section_contents,
7004 _bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
7005 * hp300hpux.c (callback): ..
7006 * hppabsd-core.c (make_bfd_asection): ..
7007 * hpux-core.c (make_bfd_asection): ..
7008 * i386linux.c (linux_link_create_dynamic_sections,
7009 bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
7010 * i386msdos.c (msdos_write_object_contents): ..
7011 * i386os9k.c (os9k_callback, os9k_write_object_contents,
7012 os9k_set_section_contents): ..
7013 * ieee.c (parse_expression, ieee_slurp_external_symbols,
7014 ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
7015 ieee_write_section_part, do_with_relocs, do_as_repeat,
7016 do_without_relocs, ieee_write_debug_part, init_for_output,
7017 ieee_set_section_contents): ..
7018 * ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
7019 * irix-core.c (do_sections, make_bfd_asection): ..
7020 * libaout.h (aout_section_merge_with_text_p): ..
7021 * libbfd.c (_bfd_generic_get_section_contents,
7022 _bfd_generic_get_section_contents_in_window): ..
7023 * linker.c (default_indirect_link_order): ..
7024 * lynx-core.c (make_bfd_asection): ..
7025 * m68klinux.c (linux_link_create_dynamic_sections,
7026 bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
7027 * mach-o.c (bfd_mach_o_make_bfd_section,
7028 bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
7029 bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
7030 bfd_mach_o_scan_read_segment): ..
7031 * merge.c (_bfd_add_merge_section, record_section, merge_strings,
7032 _bfd_merge_sections): ..
7033 * mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
7034 mmo_map_set_sizes, mmo_canonicalize_symtab,
7035 mmo_internal_write_section, mmo_write_object_contents): ..
7036 * netbsd-core.c (netbsd_core_file_p): ..
7037 * nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
7038 nlm_alpha_set_public_section): ..
7039 * nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
7040 * nlm32-sparc.c (nlm_sparc_write_import): ..
7041 * nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
7042 nlm_compute_section_file_positions): ..
7043 * oasys.c (oasys_object_p, oasys_slurp_section_data,
7044 oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
7045 * opncls.c (get_debug_link_info): ..
7046 * osf-core.c (make_bfd_asection): ..
7047 * pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
7048 adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
7049 final_link, aout_link_input_section): ..
7050 * peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
7051 pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
7052 * pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
7053 bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
7054 * ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
7055 * ptrace-core.c (ptrace_unix_core_file_p): ..
7056 * reloc.c (bfd_perform_relocation, bfd_install_relocation,
7057 _bfd_final_link_relocate, bfd_generic_relax_section,
7058 bfd_generic_get_relocated_section_contents): ..
7059 * reloc16.c (bfd_coff_reloc16_relax_section,
7060 bfd_coff_reloc16_get_relocated_section_c): ..
7061 * riscix.c (riscix_some_aout_object_p): ..
7062 * rs6000-core.c (read_hdr, make_bfd_asection): ..
7063 * sco5-core.c (make_bfd_asection): ..
7064 * simple.c (bfd_simple_get_relocated_section_contents): ..
7065 * som.c (som_object_setup, setup_sections, som_prep_headers,
7066 som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
7067 som_set_reloc_info, som_get_section_contents,
7068 som_bfd_link_split_section): ..
7069 * sparclinux.c (linux_link_create_dynamic_sections,
7070 bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
7071 * srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
7072 * stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
7073 _bfd_write_stab_strings, _bfd_stab_section_offset): ..
7074 * sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
7075 bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
7076 sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
7077 sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
7078 sunos_finish_dynamic_link): ..
7079 * syms.c (_bfd_stab_section_find_nearest_line): ..
7080 * tekhex.c (first_phase, tekhex_set_section_contents,
7081 tekhex_write_object_contents): ..
7082 * trad-core.c (trad_unix_core_file_p): ..
7083 * versados.c (process_esd, process_otr, process_otr): ..
7084 * vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
7085 * vms-misc.c (add_new_contents): ..
7086 * vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
7087 * vms.c (vms_set_section_contents): ..
7088 * xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
7089 xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
7090 _bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
7091 * xsym.c (bfd_sym_scan): .. See above.
7093 2004-06-21 H.J. Lu <hongjiu.lu@intel.com>
7095 * elfxx-ia64.c (elfNN_ia64_relax_section): Add addend when
7096 calling _bfd_merged_section_offset only for section symbols.
7098 2004-06-22 Alan Modra <amodra@bigpond.net.au>
7100 * elf32-ppc.c (ppc_elf_relax_section): Implement reference code
7101 for handling SEC_MERGE symbols in relax_section.
7103 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
7105 2003-05-15 Richard Sandiford <rsandifo@redhat.com>
7106 * cpu-h8300.c (compatible): Allow h8300s and h8300sx code to be
7107 linked together. Mark the result as h8300sx code.
7109 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
7111 * elf-bfd.h (struct elf_backend_data): Added
7112 elf_backend_omit_section_dynsym.
7113 (_bfd_elf_link_omit_section_dynsym): Declare.
7114 * elf32-frv.c (_frvfdpic_link_omit_section_dynsym): New.
7115 (elf_backend_omit_section_dynsym): Use it for frvfdpic.
7116 * elflink.c (_bfd_elf_link_omit_section_dynsym): Split out of...
7117 (_bfd_elf_link_renumber_dynsyms): ... this function.
7118 * elfxx-target.h (elf_backend_omit_section_dynsym): Default to
7119 _bfd_elf_link_omit_section_dynsym).
7120 (elfNN_bed): Added elf_backend_omit_section_dynsym.
7122 2004-06-21 Nick Clifton <nickc@redhat.com>
7124 * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED
7127 2004-06-17 Jerome Guitton <guitton@gnat.com>
7129 * bfd-in.h (bfd_cache_close_all): New function declaration.
7130 * bfd-in2.h: Regenerate.
7131 * cache.c (bfd_cache_close_all): New function definition.
7133 2004-06-16 Mark Kettenis <kettenis@gnu.org>
7135 * configure.in: Don't set COREFILE to trad-core.lo for FreeBSD
7137 * configure: Regenerate.
7139 2004-06-16 Daniel Jacobowitz <dan@debian.org>
7141 * elf32-ppc.c (ppc_elf_create_linker_section): Create symbols in
7142 the pre-existing section.
7144 2004-06-15 Alan Modra <amodra@bigpond.net.au>
7146 * section.c (struct sec): Remove usused flags. Reorganize a little.
7147 (bfd_get_section_size_before_reloc): Delete.
7148 (bfd_get_section_size_after_reloc): Delete.
7149 (STD_SECTION): Update.
7150 (bfd_get_section_size_now): Delete.
7151 (bfd_set_section_contents): Don't referece reloc_done.
7152 (bfd_get_section_contents): Remove reloc_done comment.
7153 * bout.c (b_out_bfd_get_relocated_section_contents): Don't set
7155 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise.
7156 * ecoff.c (bfd_debug_section): Update initializer.
7157 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Ditto.
7158 * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
7159 * bfd-in.h (bfd_section_size): Expand.
7160 (bfd_get_section_size): New macro.
7161 * bfd-in2.h: Regenerate.
7162 * coff64-rs6000.c (xcoff64_write_object_contents): Replace
7163 bfd_get_section_size_before_reloc with bfd_get_section_size.
7164 * coffcode.h (coff_write_object_contents): Likewise.
7165 * coffgen.c (build_debug_section): Likewise.
7166 * dwarf1.c (parse_line_table): Likewise.
7167 (_bfd_dwarf1_find_nearest_line): Likewise.
7168 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
7169 * i386msdos.c (msdos_write_object_contents): Likewise.
7170 * pdp11.c (squirt_out_relocs): Likewise.
7171 * elf32-sh64.c (sh64_find_section_for_address): Remove comment.
7172 * elf64-mmix.c (mmix_elf_final_link): Update comment.
7174 2004-06-14 Chris Demetriou <cgd@broadcom.com>
7176 * elf32-mips.c (elf_mips_gnu_pcrel32): Add (undoing 2004-04-24
7177 removal) with updated comment.
7178 (bfd_elf32_bfd_reloc_type_lookup): Add back case for
7180 (mips_elf32_rtype_to_howto): Add back case for R_MIPS_PC32.
7181 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
7183 2004-06-12 Alan Modra <amodra@bigpond.net.au>
7185 * elf64-x86-64.c (elf64_x86_64_relocate_section): Ignore reloc
7186 overflow on branches to undefweaks.
7188 2004-06-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
7190 * coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly
7191 as ecoff_section_data() does not return a valid lvalue.
7193 2004-06-09 Alexandre Oliva <aoliva@redhat.com>
7195 * elflink.c (elf_sort_symbol): Compare section id, not pointers.
7196 (elf_link_add_object_symbols): Likewise.
7198 * elf-m10300.c (_bfd_mn10300_elf_reloc_type_class): New.
7199 (elf_backend_reloc_type_class): New.
7201 2004-06-08 Mark Kettenis <kettenis@gnu.org>
7203 * configure.in (hppa*-*-netbsd*, hppa*-*-openbsd): Set COREFILE to
7205 * configure: Regenerate.
7207 2004-06-07 Daniel Jacobowitz <dan@debian.org>
7209 From: Albert Chin-A-Young <china@thewrittenword.com>
7210 * bfd/elf-bfd.h (struct eh_cie_fde): Convert unsigned char bitfields
7213 2004-05-29 H.J. Lu <hongjiu.lu@intel.com>
7215 * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last
7218 2004-05-28 DJ Delorie <dj@redhat.com>
7220 * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend
7221 for linking, but otherwise adjust reloc for merged sections.
7223 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
7225 * elfxx-ia64.c (elfNN_ia64_relax_section): Properly call
7226 _bfd_merged_section_offset for local symbols.
7228 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
7230 * Makefile.am: Regenerate dependencies.
7231 * Makefile.in: Regenerate.
7232 * archures.c: Add bfd_mach_sh3_nommu .
7233 * bfd-in2.h: Regenerate.
7234 * cpu-sh.c: Add sh3-nommu architecture.
7235 (bfd_to_arch_table): Create new table.
7236 (sh_get_arch_from_bfd_mach): Create new function.
7237 (sh_get_arch_up_from_bfd_mach): Create new function.
7238 (sh_merge_bfd_arch): Create new function.
7239 * elf32-sh.c (sh_ef_bfd_table): Add table.
7240 (sh_elf_check_relocs): Replace switch statement with
7241 use of sh_ef_bfd_table .
7242 (sh_elf_get_flags_from_mach): Add new function.
7243 (sh_find_elf_flags): Likewise.
7244 (sh_elf_copy_private_data): Replace most of non-elf contents
7245 with a call to sh_merge_bfd_arch() .
7247 2004-05-27 Michael Chastain <mec.gnu@mindspring.com>
7249 * Makefile.am (bfdver.h): Use explicit filename, not $< .
7250 * Makefile.in: Regenerate.
7252 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
7254 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Avoid
7255 custom calling conventions for dynamic symbols.
7256 (mn10300_elf_relax_section): Avoid relaxing a function as a local
7257 symbol if it's an alias to a global one.
7259 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
7261 * elf.c (_bfd_elf_make_section_from_shdr): Undo the last
7264 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
7266 * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
7269 2004-05-26 Alan Modra <amodra@bigpond.net.au>
7271 * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
7272 for SHT_GROUP sections.
7274 2004-05-25 Alan Modra <amodra@bigpond.net.au>
7276 * elflink.c (elf_link_add_object_symbols): Don't set up merge
7278 * elf.c (_bfd_elf_merge_sections): .. Do it here instead.
7279 * merge.c: Formatting. Remove unnecessary casts. Expand
7280 bfd_get_section_alignment macro.
7281 (struct sec_merge_sec_info): Rename "first" to "first_str". Update
7282 use throughout file.
7283 (_bfd_add_merge_section): Rename from _bfd_merge_section. Update
7284 comment. Abort on dynamic or non-SEC_MERGE input. Don't test
7285 section name to determine sinfo group, instead test output section
7287 (_bfd_merge_sections): Add struct bfd_link_info param. Call
7288 _bfd_strip_section_from_output rather than just twiddling flags.
7289 * libbfd-in.h (_bfd_add_merge_section): Rename, update comment.
7290 (_bfd_merge_sections): Update prototype.
7291 * libbfd.h: Regenerate.
7293 2004-05-24 Mark Kettenis <kettenis@gnu.org>
7295 * netbsd-core.c: Correctly indent section that sets architecture
7298 From Miod Vallat <miod@online.fr>:
7299 * m88kopenbsd.c: New file.
7300 * targets.c (m88k_openbsd_vec): New.
7301 * config.bfd: Add m88k-*-openbsd*.
7302 * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo.
7303 (m88kopenbsd_vec): New.
7304 * configure: Regenerate.
7305 * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo.
7306 (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c.
7308 * Makefile.in: Regenerate.
7309 * po/SRC-POTFILES.in: Regenerate.
7311 2004-05-24 Nick Clifton <nickc@redhat.com>
7313 * hash.c: Remove bogus node "Changing the default Hash Table Size"
7314 introduced by hash table size patch.
7316 2004-05-22 Ben Elliston <bje@au.ibm.com>
7318 * configure.in (is_release): Remove.
7319 (bfd_version_date, bfd_version, bfd_version_string): Likewise.
7320 (AC_OUTPUT): Don't output bfdver.h from version.h.
7321 * configure: Regenerate.
7322 * Makefile.am (RELEASE): New variable.
7323 (bfdver.h): New target.
7324 * Makefile.in: Regenerate.
7325 * doc/Makefile.in: Likewise.
7327 2004-05-22 Ben Elliston <bje@au.ibm.com>
7329 * Makefile.am (config.status): Don't depend on version.h.
7330 * Makefile.in: Regenerate.
7332 2004-05-22 Alan Modra <amodra@bigpond.net.au>
7334 * merge.c (_bfd_merged_section_offset): Remove "addend" param.
7335 * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype.
7336 * libbfd.h: Regenerate.
7337 * elf.c (_bfd_elf_rela_local_sym): Adjust call.
7338 (_bfd_elf_rel_local_sym): Likewise.
7339 * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise.
7340 (elf_link_input_bfd): Likewise.
7341 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
7342 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7343 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
7344 (elfNN_ia64_relocate_section): Likewise.
7346 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
7348 * hash.c (bfd_default_hash_table_size): New variable.
7349 (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE.
7350 (bfd_hash_set_default_size): New function. Set the default size
7351 to a selected prime number close to the argument. Document new
7353 * bfd-in.h: Add prototype for bfd_hash_set_default_size.
7354 * bfd-in2.h: Regenerate.
7355 * Makefile.am (hash.lo): Add dependency upon libiberty.h.
7356 * Makefile.in: Regenerate.
7358 2004-05-21 Mark Kettenis <kettenis@gnu.org>
7360 * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
7361 * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
7362 arm, m68k, m88k and hppa core files.
7364 2004-05-21 Nick Clifton <nickc@redhat.com>
7366 * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
7367 (bfd_bwrite): Likewise.
7368 (bfd_tell): Likewise.
7369 (bfd_flush): Likewise.
7370 (bfd_stat): Likewise.
7371 (bfd_seek): Likewise.
7372 (bfd_get_mtime): Likewise.
7373 (bfd_get_size): Likewise.
7375 2004-05-19 Ben Elliston <bje@au.ibm.com>
7377 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
7379 2004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
7381 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
7382 (bfd_generic_openr_next_archived_file): Likewise.
7384 2004-05-17 Bob Wilson <bob.wilson@acm.org>
7386 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
7387 section names by inserting a new substring after .gnu.linkonce, except
7388 for .gnu.linkonce.t.* where the "t." is replaced.
7390 2004-05-17 Adam Nemet <anemet@lnxw.com>
7392 * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
7393 (m68-*-lynxos* case): Likewise.
7394 (powerpc-*-lyxnos* case): New case.
7395 (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
7397 2004-05-17 David Heine <dlheine@tensilica.com>
7399 * aout-target.h (MY_bfd_copy_private_header_data): Define.
7400 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
7401 * bfd.c (bfd_copy_private_header_data): Define.
7402 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
7404 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
7405 * coffcode.h (coff_bfd_copy_private_header_data): Define.
7406 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
7407 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
7408 segments by calling copy_private_bfd_data.
7409 (_bfd_elf_copy_private_header_data): Define.
7410 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
7411 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
7412 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
7413 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
7414 * mmo.c (mmo_bfd_copy_private_header_data): Define.
7415 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
7416 * som.c (som_bfd_copy_private_header_data): Define.
7417 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
7418 * vms.c (vms_bfd_copy_private_header_data): Define.
7419 * bfd-in2.h: Regenerate.
7420 * libbfd.h: Regenerate.
7422 2004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7424 * elfxx-mips.c (MINUS_TWO): Define.
7425 (mips_elf_higher, mips_elf_highest,
7426 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
7427 some bfd_vma values.
7428 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
7430 2004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7432 * som.c (log2): Rename to exact_log2. Adjust all callers.
7434 2004-05-13 Paul Brook <paul@codesourcery.com>
7436 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
7437 dwarf3 format CIE entries. Remove comment about the size of the
7438 ra_column field. It is now correctly deduced.
7440 2004-05-13 Joel Sherrill <joel@oarcorp.com>
7442 * config.bfd (or32-*-rtems*): Switch to elf.
7444 2004-05-13 Nick Clifton <nickc@redhat.com>
7446 * po/fr.po: Updated French translation.
7448 2004-05-11 Jakub Jelinek <jakub@redhat.com>
7450 * elflink.c (bfd_elf_final_link): Don't output STT_SECTION symbol
7451 into .dynsym if elf_section_data (sec)->dynindx <= 0.
7452 Adjust counting of last_local.
7453 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
7454 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
7455 created by the linker nor !SHF_ALLOC.
7457 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
7458 DT_PLTGOT to the start of the .got.plt section instead of the
7459 .got output section. Set sh_entsize for .got section in addition
7461 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
7462 is at sgot->output_section->vma.
7463 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
7464 DT_PLTGOT to the start of the .got.plt section instead of the
7465 .got output section.
7466 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
7467 is at sgot->output_section->vma. Set sh_entsize for .got section
7468 in addition to .got.plt.
7469 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
7470 (bfd_section_from_phdr): Likewise.
7471 (map_sections_to_segments): Likewise.
7472 (assign_file_positions_for_segments): Likewise.
7473 (get_program_header_size): Likewise.
7474 * elflink.c (bfd_elf_size_dynamic_sections): Set
7475 elf_tdata (output_bfd)->relro from info->relro.
7476 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
7478 2004-05-08 Alexandre Oliva <aoliva@redhat.com>
7480 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
7481 a zero symndx for which we hadn't accounted a dynamic relocation.
7482 (_frvfdpic_add_rofixup): Likewise.
7484 2004-05-07 Brian Ford <ford@vss.fsi.com>
7485 DJ Delorie <dj@redhat.com>
7487 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
7488 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
7489 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
7490 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
7492 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
7494 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
7495 immediately if there's no link info.
7496 (elf32_frvfdpic_copy_private_bfd_data): New.
7497 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
7499 2004-05-06 Zack Weinberg <zack@codesourcery.com>
7501 * dwarf2.c (add_line_info): Also set info->filename to NULL if
7502 filename argument is null; do not call strlen on a null pointer.
7504 2004-05-06 Daniel Jacobowitz <drow@mvista.com>
7506 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
7509 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
7511 * configure.in (bfd_elf32_frvfdpic_vec): New.
7512 * configure: Rebuilt.
7513 * targets.c (bfd_elf32_frvfdpic_vec): New.
7514 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
7516 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
7517 frvfdpic instead of frv. Rearrange elf-target macros such that
7518 the FDPIC-specific ones are only defined for this new target
7520 (bfd_elf32_frvfdpic_vec): Declare.
7522 (elf32_frv_relocate_section): Use it to enable segment checking
7523 and to control rofixup emission. Add output section vma to
7524 applied relocation in non-LOAD non-ALLOC sections. Use
7525 _bfd_error_handler for errors.
7526 (_frv_create_got_section): Create .rel.got and .rofixup only in
7527 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
7529 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
7530 (elf32_frvfdpic_modify_segment_map): Likewise.
7531 (elf32_frv_finish_dynamic_sections): New, do-nothing.
7532 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
7533 error message if we miscompute the rofixup size.
7534 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
7535 (frvfdpic_elf_encode_eh_address): Likewise.
7536 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
7537 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
7538 relocs. Reject unknown relocation types.
7539 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
7540 (frv_elf_merge_private_bfd_data): Likewise.
7541 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
7542 0x4000 for newly-added elf32-frvfdpic.
7544 2004-05-05 Nick Clifton <nickc@redhat.com>
7547 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
7548 returning NULL as most users of this function do not check its
7550 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
7551 of bfd_cache_lookup().
7552 * sco5-core.c (sco5_core_file_p): Likewise.
7553 * trad-core.c (trad_unix_core_file_p): Likewise.
7555 2004-05-05 Nick Clifton <nickc@redhat.com>
7557 * cache.c (bfd_cache_lookup): Improve formatting.
7558 * archive.c: Fix formatting.
7560 2004-05-05 Peter Barada <peter@the-baradas.com>
7562 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
7563 * cpu-m68k.c(bfd_m68k_arch): Likewise.
7564 * bfd-in2.h(bfd_architecture): Regenerate.
7566 2004-05-03 Alan Modra <amodra@bigpond.net.au>
7568 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
7570 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
7571 those against discarded link-once and SEC_MERGE section symbols.
7573 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
7575 * section.c (bfd_get_section_by_name_if): New.
7576 * bfd-in2.h: Regenerated.
7578 2004-05-02 Alan Modra <amodra@bigpond.net.au>
7580 * som.c (som_bfd_is_group_section): Define.
7582 2004-05-01 Alan Modra <amodra@bigpond.net.au>
7584 * section.c (bfd_make_section_anyway): Copy the whole
7585 bfd_hash_entry, not just "next" from existing entry.
7587 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
7589 * elf.c (bfd_section_from_shdr): Maintain the section order in
7591 (special_sections): Add ".note.GNU-stack".
7592 (elf_fake_sections): Handle section group for relocatable
7595 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
7597 * section.c (bfd_sections_find_if): New.
7598 * bfd-in2.h: Regenerated.
7600 2004-04-30 Alan Modra <amodra@bigpond.net.au>
7602 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
7604 * elf-bfd.h (bfd_elf_is_group_section): Declare.
7605 * elf.c (bfd_elf_is_group_section): New function.
7606 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
7607 * section.c (bfd_generic_is_group_section): New function.
7608 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
7609 (BFD_JUMP_TABLE_LINK): Adjust.
7610 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
7611 * aout-target.h (MY_bfd_is_group_section): Define.
7612 * aout-tic30.c (MY_bfd_is_group_section): Define.
7613 * bfd.c (bfd_is_group_section): Define.
7614 * binary.c (binary_bfd_is_group_section): Define.
7615 * bout.c (b_out_bfd_is_group_section): Define.
7616 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
7617 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
7618 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
7619 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
7620 * coffcode.h (coff_bfd_is_group_section): Define.
7621 * i386msdos.c (msdos_bfd_is_group_section): Define.
7622 * i386os9k.c (os9k_bfd_is_group_section): Define.
7623 * ieee.c (ieee_bfd_is_group_section): Define.
7624 * ihex.c (ihex_bfd_is_group_section): Define.
7625 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
7626 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
7627 * mmo.c (mmo_bfd_is_group_section): Define.
7628 * nlm-target.h (nlm_bfd_is_group_section): Define.
7629 * oasys.c (oasys_bfd_is_group_section): Define.
7630 * pef.c (bfd_pef_bfd_is_group_section): Define.
7631 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
7632 * srec.c (srec_bfd_is_group_section): Define.
7633 * tekhex.c (tekhex_bfd_is_group_section): Define.
7634 * versados.c (versados_bfd_is_group_section): Define.
7635 * vms.c (vms_bfd_is_group_section): Define.
7636 * xsym.c (bfd_sym_bfd_is_group_section): Define.
7637 * bfd-in2.h: Regenerate.
7638 * libbfd.h: Regenerate.
7640 2004-04-30 Alan Modra <amodra@bigpond.net.au>
7642 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
7644 2004-04-30 Hans-Peter Nilsson <hp@axis.com>
7646 * configure.in: Update version to 2.15.91.
7647 * configure: Regenerate.
7649 2004-04-29 Brian Ford <ford@vss.fsi.com>
7651 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
7652 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
7653 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
7654 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
7655 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
7656 .gnu.linkonce.wi. sections.
7657 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
7658 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
7660 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
7661 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
7663 2004-04-28 Chris Demetriou <cgd@broadcom.com>
7665 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
7666 * bfd-in2.h: Regenerate.
7667 * libbfd.h: Likewise.
7669 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7671 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
7673 (setup_sections): Use som_subspace_dictionary_record struct instead
7674 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
7675 is_comdat, is_common or dup_common.
7676 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
7677 is_comdat, is_common and dup_common in section subspace_dict from
7679 (som_begin_writing): Use som_subspace_dictionary_record struct.
7680 (som_finish_writing): Likewise.
7681 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
7682 is_common and dup_common flags in info for symbol. Add comment
7683 regarding linker support for these fields. Slightly reorganize
7685 (som_build_and_write_symbol_table): Set is_comdat, is_common and
7686 dup_common fields in symbol table from symbol info.
7687 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
7688 arguments. Set corresponding fields in copy_data. Change all callers.
7689 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
7691 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
7692 * som.h (som_subspace_dictionary_record): Define.
7693 (som_copyable_section_data_struct): Add is_comdat, is_common and
7695 (som_section_data_struct): Use som_subspace_dictionary_record struct
7696 instead of subspace_dictionary_record.
7697 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
7699 2004-04-27 Bob Wilson <bob.wilson@acm.org>
7701 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
7702 if set. Check reloc_done flag before applying relocations. Use
7703 output addresses, both when applying relocations and when comparing
7704 against the specified section.
7705 (elf_xtensa_relocate_section): Use output address to check if dynamic
7706 reloc is in a literal pool. Set section's reloc_done flag.
7708 2004-04-27 H.J. Lu <hongjiu.lu@intel.com>
7710 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
7711 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
7713 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
7716 2004-04-27 Alan Modra <amodra@bigpond.net.au>
7718 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
7719 structure field removed in 2004-04-24 patch.
7720 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
7722 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
7724 * elf32-arm.h (elf32_arm_section_flags): Likewise.
7725 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
7726 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
7727 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
7728 field before calling elf_backend_section_flags.
7730 2004-04-24 Chris Demetriou <cgd@broadcom.com>
7732 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
7733 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
7734 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
7735 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
7736 and BFD_RELOC_32_PCREL.
7737 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
7738 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
7739 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
7740 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
7741 (mips_elf_next_relocation): Move comment about matching HI/LO
7743 (_bfd_mips_elf_relocate_section): Here. Remove handling for
7744 R_MIPS_GNU_REL_HI16.
7746 2004-04-23 Chris Demetriou <cgd@broadcom.com>
7748 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
7749 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
7750 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
7751 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
7752 and update comments to reflect current usage.
7753 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
7754 and MIPS_R_SWITCH, as well as several empty entries. Update comment
7756 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
7757 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
7758 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
7759 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
7760 type number to be MIPS_R_PCREL16.
7761 (mips_relocate_section): Remove support for link-time relaxation
7762 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
7763 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
7764 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
7765 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
7766 relaxation of branches used by embedded-PIC.
7767 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
7768 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
7769 related members, update comment.
7770 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
7771 code related to embedded-PIC.
7772 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
7773 initialization of now-removed 'adjust' member of
7774 'struct ecoff_debug_info'.
7776 2004-04-23 Chris Demetriou <cgd@broadcom.com>
7778 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
7780 2004-04-21 Philip Blundell <pb@nexus.co.uk>
7782 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
7783 relocs for locally defined symbols during -shared final link.
7784 (elf32_arm_final_link_relocate): Likewise.
7786 2004-04-22 Jakub Jelinek <jakub@redhat.com>
7788 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
7789 ELF_LINK_POINTER_EQUALITY_NEEDED.
7790 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
7791 if r_type is not R_X86_64_PC32.
7792 (elf64_x86_64_finish_dynamic_symbol): If
7793 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
7796 2004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7798 * elf32-sh.c (sh_elf_plt_sym_val): New function.
7799 (elf_backend_plt_sym_val): Define.
7801 2004-04-22 Andrew Cagney <cagney@redhat.com>
7803 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
7805 2004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7807 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
7809 * som.c (som_set_section_contents): Constantify second argument.
7810 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
7811 (som_object_setup): Rework to avoid warning.
7812 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
7815 2004-04-22 Andrew Cagney <cagney@redhat.com>
7817 * cache.c (bfd_cache_close): Check for a previously closed file.
7819 2004-04-22 Jakub Jelinek <jakub@redhat.com>
7821 * bfd.c (bfd_get_synthetic_symtab): Define.
7822 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
7823 NAME##_get_synthetic_symtab.
7824 (struct bfd_target): Add _bfd_get_synthetic_symtab.
7825 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
7826 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
7828 (_bfd_elf_get_synthetic_symtab): New prototype.
7829 * elfcode.h (elf_get_synthetic_symtab): Define.
7830 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
7831 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
7832 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
7833 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
7834 * bfd-in2.h: Rebuilt.
7835 * libbfd.h: Rebuilt.
7836 * elf32-i386.c (elf_i386_plt_sym_val): New function.
7837 (elf_backend_plt_sym_val): Define.
7838 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
7839 (elf_backend_plt_sym_val): Define.
7840 * elf32-s390.c (elf_s390_plt_sym_val): New function.
7841 (elf_backend_plt_sym_val): Define.
7842 * elf64-s390.c (elf_s390_plt_sym_val): New function.
7843 (elf_backend_plt_sym_val): Define.
7844 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
7845 (elf_backend_plt_sym_val): Define.
7846 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
7847 (elf_backend_plt_sym_val): Define.
7848 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
7849 (elf_backend_plt_sym_val): Define.
7850 * aout-target.h (MY_get_synthetic_symtab): Define.
7851 * aout-tic30.c (MY_get_synthetic_symtab): Define.
7852 * coff-rs6000.c (rs6000coff_vec): Add
7853 _bfd_nodynamic_get_synthetic_symtab.
7854 (pmac_xcoff_vec): Likewise.
7855 * coff64-rs6000.c (rs6000coff64_vec): Add
7856 _bfd_nodynamic_get_synthetic_symtab.
7857 (aix5coff64_vec): Likewise.
7858 * sunos.c (MY_get_synthetic_symtab): Define.
7859 * vms.c (vms_get_synthetic_symtab): Define.
7861 2004-04-22 Nick Clifton <nickc@redhat.com>
7863 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
7865 2004-04-22 Peter Barada <peter@the-baradas.com>
7867 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
7868 * bfd2-in.h: Regenerate.
7869 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
7871 2004-04-21 Chris Demetriou <cgd@broadcom.com>
7873 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
7874 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
7875 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
7876 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
7877 * bfd-in2.h: Regenerate.
7879 2004-04-21 Bob Wilson <bob.wilson@acm.org>
7881 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
7882 require relocations against a weak symbol to reference the same
7883 symbol hash entry if not a final, static link.
7884 (get_cached_value, add_value_map): Add final_static_link argument.
7885 (remove_literals): Pass final_static_link argument as needed.
7887 2004-04-21 Andrew Cagney <cagney@redhat.com>
7889 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
7890 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
7891 (opncls_bwrite, opncls_bclose, opncls_bflush)
7892 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
7893 bfd iovec that uses function callbacks.
7894 (bfd_close): Use the iovec's bclose.
7895 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
7896 (cache_bclose, cache_bflush, cache_bstat)
7897 (cache_iovec): New functions and global variable, implement a
7898 cache "iovec", where applicable set bfd_error.
7899 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
7900 * bfdio.c (struct bfd_iovec): Define.
7901 (real_read): Delete function.
7902 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
7903 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
7904 assume that bread and bwrite set bfd_error.
7905 * bfd.c (struct bfd): Add "iovec", update comments.
7906 * bfd-in2.h, libbfd.h: Re-generate.
7908 2004-04-21 Andrew Cagney <cagney@redhat.com>
7910 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
7912 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
7914 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
7915 (bfd_elf_gc_sections): Fail if a shared object is being created.
7916 Do not fail if dynamic sections have been created. Instead call
7917 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
7918 dynamically referenced symbols. Do not mark the whole graph
7919 rooted at .eh_frame, only the section proper.
7921 2004-04-20 DJ Delorie <dj@redhat.com>
7923 * reloc.c: Add BFD_RELOC_32_SECREL.
7924 * bfd-in2.h: Regenerate.
7925 * libbfd.h: Likewise.
7926 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
7927 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
7928 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
7930 2004-04-19 Jakub Jelinek <jakub@redhat.com>
7932 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
7933 relocs against hidden/protected undefweak symbols properly.
7934 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7936 2004-04-18 Mark Kettenis <kettenis@gnu.org>
7938 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
7939 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
7942 2004-04-17 Brian Ford <ford@vss.fsi.com>
7944 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
7945 filepos for the SizeOfHeaders field.
7946 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
7948 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
7950 2004-04-16 Alan Modra <amodra@bigpond.net.au>
7952 * simple.c (bfd_simple_get_relocated_section_contents): Don't
7953 change reloc_done. Set and restore _cooked_size.
7956 2004-04-15 Mark Kettenis <kettenis@gnu.org>
7958 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
7961 2004-04-15 Nick Clifton <nickc@redhat.com>
7963 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
7965 2004-04-15 Alan Modra <amodra@bigpond.net.au>
7967 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
7969 2004-04-15 H.J. Lu <hongjiu.lu@intel.com>
7971 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
7972 when it is a definition.
7974 2004-04-14 Alan Modra <amodra@bigpond.net.au>
7976 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
7977 when statically linking PIC code.
7978 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7980 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7982 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
7983 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
7984 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
7985 * configure: Regenerate.
7987 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
7989 * elflink.c: Include libiberty.h.
7990 * Makefile.am (elflink.lo): Depend on libiberty.h.
7991 * Makefile.in: Regenerate.
7993 2004-04-06 Daniel Jacobowitz <drow@mvista.com>
7995 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
7998 2004-04-05 H.J. Lu <hongjiu.lu@intel.com>
8000 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
8001 reserve the memory for dynamic linker
8003 2004-04-05 Mark Kettenis <kettenis@gnu.org>
8005 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
8006 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
8008 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
8010 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
8011 RELOC_FOR_GLOBAL_SYMBOL.
8012 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
8014 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
8016 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
8017 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
8019 2004-04-01 Paul Brook <paul@codesourcery.com>
8021 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
8022 * elf32-arm.h (struct elf32_elf_section_map): New.
8023 (struct _arm_elf_section_data): New.
8024 (elf32_arm_section_data): Define.
8025 (struct elf32_arm_link_hash_table): Add byteswap_code.
8026 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
8027 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
8028 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
8029 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
8030 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
8031 (bfd_elf32_new_section_hook, elf_backend_write_section,
8032 elf_backend_link_output_symbol_hook): Define.
8034 2004-04-01 Andy Chittenden <achittenden@bluearc.com>
8036 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
8037 that keeps the characters in a B_INCL..B_EINCL range.
8038 (_bfd_link_section_stabs): When computing the sum of the
8039 characters in a B_INCL..B_EINCL range also keep a copy of those
8040 characters. Use this information to distinguish between
8041 include sections that have the same sum and the same length
8042 but which are nevertheless unique.
8044 2004-03-31 Paul Brook <paul@codesourcery.com>
8046 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
8047 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
8049 2004-03-31 Andy Chittenden <achittenden@bluearc.com>
8051 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
8052 to 'sum_chars' and add field 'num_chars'.
8053 (_bfd_link_section_stabs): When computing the sum of the
8054 characters in a B_INCL..B_EINCL range also keep a count of the
8055 number of characters. Use this information to help distinguish
8056 between include sections when have the same sum but which
8057 nevertheless are still unique.
8059 2004-03-31 Mattias Engdegård <mattias@virtutech.se>
8061 * stabs.c (_bfd_link_section_stabs): Do not skip N_EXCL stabs.
8063 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
8064 Tomer Levi <Tomer.Levi@nsc.com>
8066 * Makefile.am (ALL_MACHINES): Add cpu-cr16c.lo.
8067 (ALL_MACHINES_CFILES): Add cpu-cr16c.c.
8068 (BFD32_BACKENDS): Add elf32-cr16c.lo.
8069 (BFD32_BACKENDS_CFILES): Add elf32-cr16c.c.
8070 (cpu-cr16c.lo): New target.
8071 (elf32-cr16c.lo): Likewise.
8072 * Makefile.in: Regenerate.
8073 * archures.c (bfd_architecture): Add bfd_{arch,mach}_cr16c.
8074 (bfd_archures_list): Add bfd_cr16c_arch.
8075 * config.bfd: Handle cr16c-*-elf*.
8076 * configure.in: Handle bfd_elf32_cr16c_vec.
8077 * configure: Regenerate.
8078 * reloc.c: Add BFD_RELOC_16C_NUM08, BFD_RELOC_16C_NUM08_C,
8079 BFD_RELOC_16C_NUM16, BFD_RELOC_16C_NUM16_C,
8080 BFD_RELOC_16C_NUM32, BFD_RELOC_16C_NUM32_C,
8081 BFD_RELOC_16C_DISP04, BFD_RELOC_16C_DISP04_C,
8082 BFD_RELOC_16C_DISP08, BFD_RELOC_16C_DISP08_C,
8083 BFD_RELOC_16C_DISP16, BFD_RELOC_16C_DISP16_C,
8084 BFD_RELOC_16C_DISP24, BFD_RELOC_16C_DISP24_C,
8085 BFD_RELOC_16C_DISP24a, BFD_RELOC_16C_DISP24a_C,
8086 BFD_RELOC_16C_REG04, BFD_RELOC_16C_REG04_C,
8087 BFD_RELOC_16C_REG04a, BFD_RELOC_16C_REG04a_C,
8088 BFD_RELOC_16C_REG14, BFD_RELOC_16C_REG14_C,
8089 BFD_RELOC_16C_REG16, BFD_RELOC_16C_REG16_C,
8090 BFD_RELOC_16C_REG20, BFD_RELOC_16C_REG20_C,
8091 BFD_RELOC_16C_ABS20, BFD_RELOC_16C_ABS20_C,
8092 BFD_RELOC_16C_ABS24, BFD_RELOC_16C_ABS24_C,
8093 BFD_RELOC_16C_IMM04, BFD_RELOC_16C_IMM04_C,
8094 BFD_RELOC_16C_IMM16, BFD_RELOC_16C_IMM16_C,
8095 BFD_RELOC_16C_IMM20, BFD_RELOC_16C_IMM20_C,
8096 BFD_RELOC_16C_IMM24, BFD_RELOC_16C_IMM24_C,
8097 BFD_RELOC_16C_IMM32, BFD_RELOC_16C_IMM32_C.
8098 * targets.c (bfd_elf32_cr16c_vec): Declare.
8099 (bfd_target_vector): Add bfd_elf32_cr16c_vec.
8100 * cpu-cr16c.c: New file.
8101 * elf32-cr16c.c: Likewise.
8102 * libbfd.h: Regenerate.
8103 * bfd-in2.h: Likewise.
8105 2004-03-30 Jakub Jelinek <jakub@redhat.com>
8107 * elf.c (map_sections_to_segments): Fix handling of .tbss.
8109 2004-03-27 Alan Modra <amodra@bigpond.net.au>
8111 * Makefile.am: Remove all mention of elflink.h.
8112 * Makefile.in: Regenerate.
8113 * bfd-in.h (bfd_elf_discard_info): Declare.
8114 (bfd_elf32_discard_info, bfd_elf64_discard_info): Delete.
8115 * bfd-in2.h: Regenerate.
8116 * elf-bfd.h (bfd_elf32_print_symbol, bfd_elf64_print_symbol,
8117 bfd_elf32_link_record_dynamic_symbol,
8118 bfd_elf64_link_record_dynamic_symbol,
8119 _bfd_elf_link_record_dynamic_symbol, bfd_elf32_bfd_final_link,
8120 bfd_elf64_bfd_final_link, elf_link_record_local_dynamic_symbol,
8121 _bfd_elf32_link_record_local_dynamic_symbol,
8122 _bfd_elf64_link_record_local_dynamic_symbol,
8123 _bfd_elf32_gc_sections, _bfd_elf32_gc_common_finalize_got_offsets,
8124 _bfd_elf32_gc_common_final_link, _bfd_elf64_gc_common_final_link,
8125 _bfd_elf32_gc_record_vtinherit, _bfd_elf32_gc_record_vtentry,
8126 _bfd_elf64_gc_sections, _bfd_elf64_gc_common_finalize_got_offsets,
8127 _bfd_elf64_gc_record_vtinherit, _bfd_elf64_gc_record_vtentry,
8128 _bfd_elf32_reloc_symbol_deleted_p,
8129 _bfd_elf64_reloc_symbol_deleted_p): Delete.
8130 (bfd_elf_link_record_dynamic_symbol,
8131 bfd_elf_link_record_local_dynamic_symbol,
8132 bfd_elf_final_link, bfd_elf_gc_sections,
8133 bfd_elf_gc_record_vtinherit, bfd_elf_gc_record_vtentry,
8134 bfd_elf_gc_common_finalize_got_offsets, bfd_elf_gc_common_final_link,
8135 bfd_elf_reloc_symbol_deleted_p): Declare.
8136 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
8137 * elf32-arm.h: Update for changed function names. Remove local
8138 WILL_CALL_FINISH_DYNAMIC_SECTION define.
8139 * elf-hppa.h, elf-m10300.c, elf32-cris.c, elf32-d10v.c, elf32-dlx.c,
8140 * elf32-fr30.c, elf32-frv.c, elf32-h8300.c, elf32-hppa.c, elf32-i386.c,
8141 * elf32-iq2000.c, elf32-m32r.c, elf32-m68hc1x.c, elf32-m68k.c,
8142 * elf32-mcore.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
8143 * elf32-sh.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
8144 * elf32-xstormy16.c, elf32-xtensa.c, elf64-alpha.c, elf64-hppa.c,
8145 * elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
8146 * elf64-x86-64.c, elfxx-ia64.c, elfxx-mips.c, elfxx-target.h: Likewise.
8147 * elfxx-target.h (bfd_elfNN_bfd_final_link): Define.
8148 (bfd_elfNN_print_symbol): Define.
8149 * elfcode.h: Don't include elflink.h.
8150 (elf_bfd_discard_info, elf_reloc_symbol_deleted_p,
8151 elf_link_record_dynamic_symbol, elf_bfd_final_link, elf_gc_sections,
8152 elf_gc_common_finalize_got_offsets, elf_gc_common_final_link,
8153 elf_gc_record_vtinherit, elf_gc_record_vtentry,
8154 elf_link_record_local_dynamic_symbol): Don't define.
8155 * elflink.c: Update for changed function names. Move elflink.h
8157 * elflink.h: Delete file.
8158 * po/SRC-POTFILES.in: Regenerate.
8159 * po/bfd.pot: Regenerate.
8161 2004-03-27 Alan Modra <amodra@bigpond.net.au>
8163 * elf64-mmix.c (mmix_elf_relocate_section): Restore code setting
8164 "name" for global syms accidentally removed in 2004-03-20 change.
8166 2004-03-27 Alan Modra <amodra@bigpond.net.au>
8168 * elf-bfd.h (struct elf_reloc_cookie): Add r_sym_shift field.
8169 * elflink.h: Replace all occurrences of sizeof (Elf_External_*)
8170 where Elf_External_* is different for 64 and 32 bit, with
8171 corresponding elf_size_info field.
8172 (struct elf_final_link_info): Use "bfd_byte *" instead
8173 of "Elf_External_Sym *" for external_syms and symbuf.
8174 (elf_link_adjust_relocs): Set up r_type_mask and r_sym_shift local
8175 vars and use instead of ELF_R_INFO and ELF_R_TYPE macros.
8176 (struct elf_link_sort_rela): Add "sym_mask" alias for "offset".
8177 (elf_link_sort_cmp1): Use sym_mask field instead of ELF_R_SYM.
8178 (elf_link_sort_cmp2): Adjust.
8179 (elf_link_sort_relocs): Set up r_sym_mask local var instead of
8180 using ELF_R_SYM macro. Set u.sym_mask.
8181 (elf_bfd_final_link): Call _bfd_elf_stringtab_init instead of macro
8182 version, elf_stringtab_init. Ditto for bfd_section_from_elf_index
8183 vs. section_from_elf_index. Adjust Elf_External_Sym pointer
8184 arithmetic. Pass bed to elf_link_flush_output_syms. Adjust
8185 Elf_External_Dyn pointer arithmentic. Use bed swap_dyn_in and
8186 swap_syn_out functions. Rearrange dyn swap in/out switch.
8187 (elf_link_output_sym): Adjust Elf_External_Sym pointer arithmentic.
8188 Pass bed to elf_link_flush_output_syms. Use bed swap_symbol_out.
8189 (elf_link_flush_output_syms): Add elf_backend_data arg.
8190 (elf_link_check_versioned_symbol): Likewise.
8191 (elf_link_output_extsym): Pass bed to elf_link_check_versioned_symbol.
8192 Adjust Elf_External_Sym pointer arithmetic. Use bed swap_symbol_out.
8193 (elf_link_input_bfd): Use bfd_section_from_elf_index. Set up
8194 r_type_mask and r_sym_shift local vars and use instead of ELF_R_SYM,
8195 ELF_R_TYPE and ELF_R_INFO macros.
8196 (elf_reloc_link_order): Select ELF32_R_INFO or ELF64_R_INFO invocation
8197 based on size rather than using ELF_R_INFO.
8198 (elf_gc_mark): Set up r_sym_shift local var and use instead of
8200 (struct alloc_got_off_arg): New.
8201 (elf_gc_common_finalize_got_offsets): Use elf_size_info instead of
8202 ARCH_SIZE. Pass get entry size down to elf_gc_allocate_got_offsets.
8203 (elf_gc_allocate_got_offsets): Adjust.
8204 (elf_reloc_symbol_deleted_p): Usee cookie.r_sym_shift instead of
8205 ELF_R_SYM. Use bfd_section_from_elf_index.
8206 (elf_bfd_discard_info): Set cookie.r_sym_shift.
8207 * elfcode.h (elf_stringtab_init, section_from_elf_index): Delete.
8208 (elf_slurp_symbol_table): Use bfd_section_from_elf_index.
8210 2004-03-26 Stan Shebs <shebs@apple.com>
8212 Remove MPW support, no longer used.
8213 * config.bfd (powerpc-*-mpw*): Remove configuration.
8214 * mpw-config.in, mpw-make.sed: Remove files.
8215 * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
8217 2004-03-26 Alan Modra <amodra@bigpond.net.au>
8219 * elf64-ppc.c (elf_backend_add_symbol_hook): Define.
8220 (ppc64_elf_add_symbol_hook): New function.
8221 * elf-bfd.h (struct elf_backend_data <elf_add_symbol_hook>): Remove
8222 const from Elf_Internal_Sym param.
8223 * elflink.c (elf_link_add_object_symbols): Adjust.
8224 * elf-hppa.h (elf_hppa_add_symbol_hook): Adjust.
8225 * elf32-frv.c (elf32_frv_add_symbol_hook): Adjust.
8226 * elf32-i370.c (elf_backend_add_symbol_hook): Adjust.
8227 * elf32-m32r.c (m32r_elf_add_symbol_hook): Adjust.
8228 * elf32-m68hc1x.c (elf32_m68hc11_add_symbol_hook): Adjust.
8229 * elf32-m68hc1x.h (elf32_m68hc11_add_symbol_hook): Adjust.
8230 * elf32-ppc.c (ppc_elf_add_symbol_hook): Adjust.
8231 * elf32-sh64.c (sh64_elf_add_symbol_hook): Adjust.
8232 * elf32-v850.c (v850_elf_add_symbol_hook): Adjust.
8233 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Adjust.
8234 * elf64-mmix.c (mmix_elf_add_symbol_hook): Adjust.
8235 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Adjust.
8236 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Adjust.
8237 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Adjust.
8238 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Adjust.
8239 * elfxx-mips.h (_bfd_mips_elf_add_symbol_hook): Adjust.
8241 2004-03-26 Alan Modra <amodra@bigpond.net.au>
8243 * elfxx-target.h (bfd_elfNN_bfd_link_add_symbols): Define.
8244 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): Delete.
8245 (_bfd_elf_sort_symbol, _bfd_elf_add_dt_needed_tag): Delete.
8246 (_bfd_elf_finalize_dynstr, bfd_elf32_bfd_link_add_symbols): Delete.
8247 (bfd_elf64_bfd_link_add_symbols): Delete.
8248 (bfd_elf_link_add_symbols): Declare.
8249 * elfcode.h (elf_bfd_link_add_symbols): Delete.
8250 * elflink.c: Include safe-ctype.h.
8251 (elf_add_dt_needed_tag): Rename from _bfd_elf_add_dt_needed_tag,
8253 (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static.
8254 (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make
8256 (elf_link_add_archive_symbols): Rename from
8257 _bfd_elf_link_add_archive_symbols, make static.
8258 (elf_link_add_object_symbols): New function. Corresponding
8259 elflink.h function converted to use elf_size_info.
8260 (bfd_elf_link_add_symbols): Likewise.
8261 (bfd_elf_size_dynamic_sections): Adjust.
8262 * elflink.h (elf_bfd_link_add_symbols): Delete.
8263 (elf_link_add_object_symbols): Delete.
8264 * elf32-gen.c (elf32_generic_link_add_symbols): Call
8265 bfd_elf_link_add_symbols.
8266 * elf64-gen.c (elf64_generic_link_add_symbols): Likewise.
8268 2004-03-25 Alan Modra <amodra@bigpond.net.au>
8270 * elflink.h (elf_link_add_object_symbols): Add DT_NEEDED for as-needed
8271 and chained shared libs only if dynsym. Clear dynsym on forced-local.
8273 * elf-bfd.h (_bfd_elf_add_dynamic_entry): Declare.
8274 (bfd_elf32_add_dynamic_entry, bfd_elf64_add_dynamic_entry): Delete.
8275 (_bfd_elf_add_dt_needed_tag): Declare.
8276 (_bfd_elf_sort_symbol): Declare.
8277 (_bfd_elf_finalize_dynstr): Declare.
8278 (RELOC_FOR_GLOBAL_SYM): Formatting.
8279 * elfcode.h (elf_add_dynamic_entry): Delete.
8280 * elflink.c (_bfd_elf_add_dynamic_entry): New function. Corresponding
8281 elflink.h function converted to use elf_size_info.
8282 (_bfd_elf_add_dt_needed_tag): Likewise.
8283 (_bfd_elf_sort_symbol): Likewise.
8284 (_bfd_elf_finalize_dynstr): Likewise.
8285 (compute_bucket_count): Likewise.
8286 (bfd_elf_size_dynamic_sections): Likewise. Check result of
8287 _bfd_elf_strtab_add before calling _bfd_elf_strtab_addref.
8288 (elf_adjust_dynstr_offsets, elf_collect_hash_codes): Moved from..
8289 * elflink.h: ..here.
8290 (sort_symbol, add_dt_needed_tag): Delete.
8291 (elf_add_dynamic_entry, elf_finalize_dynstr): Delete.
8292 (compute_bucket_count, NAME(bfd_elf,size_dynamic_sections)): Delete.
8294 * elf32-arm.h (add_dynamic_entry): Update. Remove casts.
8295 * elf32-cris.c (add_dynamic_entry): Likewise.
8296 * elf32-hppa.c (add_dynamic_entry): Likewise.
8297 * elf32-i370.c (add_dynamic_entry): Likewise.
8298 * elf32-i386.c (add_dynamic_entry): Likewise.
8299 * elf32-m32r.c (add_dynamic_entry): Likewise.
8300 * elf32-m68k.c (add_dynamic_entry): Likewise.
8301 * elf32-ppc.c (add_dynamic_entry): Likewise.
8302 * elf32-s390.c (add_dynamic_entry): Likewise.
8303 * elf32-sh.c (add_dynamic_entry): Likewise.
8304 * elf32-sparc.c (add_dynamic_entry): Likewise.
8305 * elf32-vax.c (add_dynamic_entry): Likewise.
8306 * elf32-xtensa.c (add_dynamic_entry): Likewise.
8307 * elf64-alpha.c (add_dynamic_entry): Likewise.
8308 * elf64-hppa.c (add_dynamic_entry): Likewise.
8309 * elf64-ppc.c (add_dynamic_entry): Likewise.
8310 * elf64-s390.c (add_dynamic_entry): Likewise.
8311 * elf64-sparc.c (add_dynamic_entry): Likewise.
8312 * elf64-x86-64.c (add_dynamic_entry): Likewise.
8313 * elfxx-ia64.c (add_dynamic_entry): Likewise.
8314 * elfxx-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
8315 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
8316 * elf32-frv.c (elf32_frv_size_dynamic_sections): Likewise.
8317 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
8319 2004-03-23 Paul Brook <paul@codesourcery.com>
8321 * elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
8323 2004-03-22 Bob Wilson <bob.wilson@acm.org>
8325 * elf32-xtensa.c (elf_xtensa_check_relocs): Remove code to read
8326 literal tables and check for relocs outside of literal pools.
8327 (elf_xtensa_make_sym_local): Don't clear ELF_LINK_NON_GOT_REF flag.
8328 (elf_xtensa_fix_refcounts): Don't check ELF_LINK_NON_GOT_REF or
8330 (elf_xtensa_size_dynamic_sections): Don't add DT_TEXTREL entry.
8331 (elf_xtensa_relocate_section): Read literal tables and check for
8332 dynamic relocations in read-only sections and not in literal pools.
8334 2004-03-23 Alan Modra <amodra@bigpond.net.au>
8337 * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char.
8339 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
8341 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
8342 R_CRIS_16_GOTPLT>: Also error if there's no PLT for a symbol
8343 not defined by the executable, or defined in a DSO.
8344 <eliding run-time relocation of .got>: Initialize GOT entry for a
8345 function symbol or ELF_LINK_HASH_NEEDS_PLT statically in an
8347 (cris_elf_gc_sweep_hook): Improve fallthrough marking.
8348 (elf_cris_try_fold_plt_to_got): Improve head comment. Do not fold
8349 a PLT reloc to GOT for an executable.
8350 (elf_cris_adjust_dynamic_symbol): Only fold a .got.plt entry with
8351 .got for a DSO and explain why.
8352 (elf_cris_discard_excess_program_dynamics): Also lose GOT-relocs
8353 and unreferenced symbols for which a PLT is defined. Adjust
8354 dynamic-symbol pruning correspondingly, to make sure we don't lose
8355 a dynamic symbol also defined by a DSO.
8357 2004-03-22 Alan Modra <amodra@bigpond.net.au>
8359 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Add input_bfd, input_section
8360 and rel args. Group input and output args. Wrap to 80 columns.
8361 * elf-m10200.c, elf-m10300.c, elf32-arm.h, elf32-avr.c,
8362 elf32-cris.c, elf32-d10v.c, elf32-fr30.c, elf32-h8300.c,
8363 elf32-hppa.c, elf32-i386.c, elf32-i860.c, elf32-ip2k.c,
8364 elf32-iq2000.c, elf32-m68hc1x.c, elf32-m68k.c, elf32-mcore.c,
8365 elf32-msp430.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
8366 elf32-sparc.c, elf32-v850.c, elf32-vax.c, elf32-xstormy16.c,
8367 elf32-xtensa.c, elf64-alpha.c, elf64-mmix.c, elf64-ppc.c,
8368 elf64-s390.c, elf64-sparc.c, elf64-x86-64.c, elfxx-ia64.c: Update
8369 RELOC_FOR_GLOBAL_SYMBOL invocation.
8371 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
8373 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if
8374 unresolved symbols in objects aren't allowed.
8376 * elf-hppa.h (elf_hppa_relocate_section): Properly handle
8378 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
8379 (elf_hppa_unmark_useless_dynamic_symbols):
8380 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
8381 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
8382 (elf32_hppa_relocate_section): Likewise.
8383 * elf32-i370.c (i370_elf_relocate_section): Likewise.
8384 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
8385 * elf32-sh.c (sh_elf_relocate_section): Likewise.
8386 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
8387 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
8389 * elf-m10200.c (mn10200_elf_relocate_section): Use
8390 RELOC_FOR_GLOBAL_SYMBOL.
8391 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
8392 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
8393 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
8394 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
8395 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
8396 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Likewise.
8397 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
8398 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
8399 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
8400 * elf32-v850.c (v850_elf_relocate_section): Likewise.
8401 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
8402 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
8404 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8406 * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
8407 (final_link_relocate): Likewise.
8408 * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
8409 R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
8411 2004-03-19 Alan Modra <amodra@bigpond.net.au>
8413 * Makefile.am: Run "make dep-am".
8414 * Makefile.in: Regenerate.
8415 * aclocal.m4: Regenerate.
8416 * config.in: Regenerate.
8417 * po/bfd.pot: Regenerate.
8419 2004-03-19 Alan Modra <amodra@bigpond.net.au>
8420 H.J. Lu <hongjiu.lu@intel.com>
8422 * elflink.c (_bfd_elf_merge_symbol): Revert last change. Move
8423 type and size change code to where it was previously. Remove
8424 dt_needed param. Treat old weak syms as strong if new sym is
8425 from a shared lib, even when old sym is from another shared
8426 lib. Remove unnecessary tests of oldweak and newweak. Correct
8428 (_bfd_elf_add_default_symbol): Remove dt_needed param. Update
8429 _bfd_elf_merge_symbol calls.
8430 * elflink.h (elf_link_add_object_symbols): Update calls. Remove
8431 dt_needed local var. Update comments.
8432 * elf-bfd.h (_bfd_elf_merge_symbol): Update prototype.
8433 (_bfd_elf_add_default_symbol): Likewise.
8435 * elflink.c (_bfd_elf_merge_symbol): Reinstate code to handle
8436 strong syms in one shared object overriding weak syms in another.
8438 2004-03-18 Alan Modra <amodra@bigpond.net.au>
8440 * elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field. Add
8441 dyn_lib_class field. Rearrange for better packing.
8442 (elf_dt_soname): Delete.
8443 (elf_dyn_lib_class): Define.
8444 * elf.c (bfd_elf_set_dt_needed_name): Update comment.
8445 (bfd_elf_set_dt_needed_soname): Delete.
8446 (bfd_elf_set_dyn_lib_class): New function.
8447 * elflink.h (add_dt_needed_tag): New function. Split out from..
8448 (elf_link_add_object_symbols): ..here. Rename "name" to "soname".
8449 Use elf_dyn_lib_class to set dt_needed and add_needed. Move fallback
8450 initialization of soname.
8451 (elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of
8453 * bfd-in.h (enum dynamic_lib_link_class): New.
8454 (bfd_elf_set_dt_needed_soname): Delete.
8455 (bfd_elf_set_dyn_lib_class): Declare.
8456 * bfd-in2.h: Regenerate.
8458 * elflink.c (_bfd_elf_merge_symbol): Rewrite weak symbol handling.
8459 (_bfd_elf_add_default_symbol): Remove indirect BFD_ASSERTs.
8460 * elflink.h (elf_link_add_object_symbols): Don't clear dt_needed in
8461 symbol loop. Instead use add_needed to flag tag as written.
8463 2004-03-17 Nathan Sidwell <nathan@codesourcery.com>
8465 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
8466 logic for null_input_bfd detection.
8468 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8470 * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
8472 2004-03-16 Mark Kettenis <kettenis@gnu.org>
8474 * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
8477 2004-03-16 Alan Modra <amodra@bigpond.net.au>
8479 * elflink.c (elf_link_read_relocs_from_section): Don't use
8480 NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check..
8481 (_bfd_elf_link_read_relocs): ..to here.
8482 * elf32-ppc.c (ppc_elf_relax_section): Formatting.
8484 2004-03-16 Alan Modra <amodra@bigpond.net.au>
8486 * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override
8487 values selected in configure.host. Require both to be defined
8488 before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to
8489 corresponding BFD_HOST vars with quotes.
8490 <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc;
8491 Always require BFD_HOST_64_BIT_DEFINED.
8492 <file_ptr type>: Find off_t size before emitting message. Combine
8493 off_t and ftello64 conditional.
8494 * configure: Regenerate.
8496 2004-03-16 Alan Modra <amodra@bigpond.net.au>
8498 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
8499 aliasing warning. Remove trailing whitespace throughout file.
8501 2004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8503 * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of
8504 input_section in calls to get_dyn_name.
8505 * 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
8507 (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
8509 2004-03-15 Alan Modra <amodra@bigpond.net.au>
8511 * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types.
8512 (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here.
8513 (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t.
8514 (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t.
8515 (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t.
8516 * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8.
8517 (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set
8519 * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t.
8520 (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT.
8521 (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
8522 (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT.
8523 (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise.
8524 * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t.
8525 (read_8_bytes, read_indirect_string, read_address): Likewise.
8526 (read_abbrevs, parse_comp_unit): Likewise.
8527 * targets.c (struct bfd_target): Likewise.
8528 * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use.
8529 * hppabsd-core.c: Likewise. Formatting.
8530 * hpux-core.c: Likewise.
8531 * irix-core.c: Likewise.
8532 * netbsd-core.c: Likewise.
8533 * osf-core.c: Likewise.
8534 * ptrace-core.c: Likewise.
8535 * sco5-core.c: Likewise.
8536 * trad-core.c: Likewise.
8537 * configure: Regenerate.
8538 * bfd-in2.h: Regenerate.
8540 2004-03-15 Alan Modra <amodra@bigpond.net.au>
8542 * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
8543 (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
8544 (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
8545 (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
8546 (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
8547 (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
8548 (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
8549 * libbfd.c: Likewise in function definitions.
8550 (bfd_put_8): Mask with 0xff rather than casting to char.
8551 (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
8552 (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
8553 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
8554 (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
8555 (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
8556 (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
8557 * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
8558 (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
8559 (H_GET_64, H_GET_32, H_GET_16): Likewise.
8560 (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
8561 * archive.c (do_slurp_coff_armap): Update swap prototype.
8562 * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
8563 (tic54x_getl_signed_32): Likewise.
8564 (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
8565 * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
8566 * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
8567 (bfd_getp_signed_32, bfd_putp32): Likewise.
8568 * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
8569 bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
8570 bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
8571 bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
8572 bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
8573 bfd_h_getx_signed_16, bfd_h_putx16.
8574 * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
8575 * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
8576 * hpux-core.c: Likewise.
8577 * irix-core.c: Likewise.
8578 * netbsd-core.c: Likewise.
8579 * osf-core.c: Likewise.
8580 * ptrace-core.c: Likewise.
8581 * sco5-core.c: Likewise.
8582 * trad-core.c: Likewise.
8583 * bfd-in2.h: Regenerate.
8585 2004-03-15 Matt Thomas <matt@3am-software.com>
8587 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
8590 2004-03-13 Mark Kettenis <kettenis@gnu.org>
8592 * config.bfd: Add x86_64-*-openbsd*.
8593 * configure.in (x86_64-*-openbsd*): Set COREFILE to
8595 * configure: Regenerate.
8597 2004-03-12 Nick Clifton <nickc@redhat.com>
8598 Dave Murphy <wintermute2k4@ntlworld.com>
8600 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
8601 if the input bfd does not contain any code.
8603 2004-03-09 Steve Ellcey <sje@cup.hp.com>
8605 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
8607 2004-03-05 Fred Fish <fnf@redhat.com>
8609 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
8610 mips16 symbols to be even rather than testing first for even/odd.
8611 (_bfd_mips_elf_link_output_symbol_hook): Ditto.
8613 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
8615 * elf.c (map_sections_to_segments): Ignore .tbss sections for
8618 2004-03-03 Alexandre Oliva <aoliva@redhat.com>
8620 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
8621 undefined symbols as hash_new.
8623 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
8625 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
8627 * elf32-sh.c: Ditto.
8628 * bfd-in2.h: Regenerate.
8630 2004-03-02 Alexandre Oliva <aoliva@redhat.com>
8632 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
8634 (_frv_count_got_plt_entries): Initialize them.
8635 (frv_pic_relocs_info_find): Add insert argument. Adjust all
8637 (frv_pic_relocs_info_for_global): Likewise.
8638 (frv_pic_relocs_info_for_local): Likewise.
8639 (frv_pic_merge_early_relocs_info): New.
8640 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
8642 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
8643 Check that we don't exceed the allocated count for entry.
8644 (_frv_add_rofixup): Likewise.
8645 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
8646 (elf32_frv_finish_dynamic_sections): Improve error message in case
8647 we emit too few rofixup entries.
8649 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
8651 * archures.c (bfd_mach_fr450): New.
8652 * bfd-in2.h: Regenerate.
8653 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
8654 (arch_info_500): Link to it.
8655 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
8656 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
8657 (frv_elf_arch_extension_p): New function.
8658 (frv_elf_merge_private_bfd_data): Use it.
8660 2004-02-28 H.J. Lu <hongjiu.lu@intel.com>
8662 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
8664 * elflink.h (is_global_data_symbol_definition): Moved to
8666 (elf_link_is_defined_archive_symbol): Likewise.
8667 (elf_link_add_archive_symbols): Likewise. Renamed to
8668 _bfd_elf_link_add_archive_symbols.
8670 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
8671 of ELF symbol table entry from backend.
8672 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
8673 instead of elf_link_add_object_symbols.
8675 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
8677 * elf-bfd.h (struct elf_backend_data): Added
8678 elf_backend_can_make_relative_eh_frame,
8679 elf_backend_can_make_lsda_relative_eh_frame and
8680 elf_backend_encode_eh_address.
8681 (_bfd_elf_encode_eh_address): Declare.
8682 (_bfd_elf_can_make_relative): Declare.
8683 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
8684 hooks to decide whether to attempt to make_relative and
8686 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
8687 (_bfd_elf_can_make_relative): New.
8688 (_bfd_elf_encode_eh_address): New.
8689 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
8690 (frv_elf_encode_eh_address): New.
8691 (elf_backend_can_make_relative_eh_frame): Define.
8692 (elf_backend_can_make_lsda_relative_eh_frame): Define.
8693 (elf_backend_encode_eh_address): Define.
8695 (elf_backend_can_make_relative_eh_frame): Define.
8696 (elf_backend_can_make_lsda_relative_eh_frame): Define.
8697 (elf_backend_encode_eh_address): Define.
8698 (elfNN_bed): Add them.
8700 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
8702 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
8703 complain_on_overflow to signed.
8705 2004-02-27 H.J. Lu <hongjiu.lu@intel.com>
8707 * elflink.h (sort_symbol): New.
8708 (elf_link_add_object_symbols): Use a sorted symbol array for
8711 2004-02-27 Jakub Jelinek <jakub@redhat.com>
8713 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
8714 for pc relative relocs.
8715 (elf_s390_relocate_section): Likewise.
8716 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
8717 for pc relative relocs.
8718 (elf_s390_relocate_section): Likewise.
8720 2004-02-26 H.J. Lu <hongjiu.lu@intel.com>
8722 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
8725 2004-02-25 H.J. Lu <hongjiu.lu@intel.com>
8727 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
8728 field to track if a relocation is against readonly section.
8729 (count_dyn_reloc): Take a new argument for rent->reltext.
8730 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
8731 (get_reloc_section): Don't set ia64_info->reltext here.
8732 (allocate_dynrel_entries): Set ia64_info->reltext here.
8734 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
8736 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
8737 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
8738 function's descriptor to symbol+offset, and map local undefweak
8739 symbol to NULL function descriptor.
8740 (elf32_frv_relocate_section): Likewise.
8742 2004-02-23 Mark Kettenis <kettenis@gnu.org>
8744 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
8746 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
8747 (netbsd_core_file_p): Set architecture from machine ID for
8750 2004-02-23 Jakub Jelinek <jakub@redhat.com>
8752 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
8753 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
8755 2004-02-21 H.J. Lu <hongjiu.lu@intel.com>
8757 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
8758 symbols with non-default visibility.
8760 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
8762 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
8763 IMAGE_SCN_MEM_WRITE on known sections only.
8765 2004-02-20 Jakub Jelinek <jakub@redhat.com>
8767 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
8768 symbols used in PIE relocs.
8770 2004-02-19 Jakub Jelinek <jakub@redhat.com>
8772 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
8775 2004-02-18 Daniel Jacobowitz <drow@mvista.com>
8777 * configure.in: Update version to 2.15.90.
8778 * configure: Regenerate.
8780 2004-02-17 Daniel Jacobowitz <drow@mvista.com>
8781 Richard Sandiford <rsandifo@redhat.com>
8783 * elfxx-mips.c (mips_elf_calculate_relocation): Use
8784 _bfd_elf_symbol_refs_local_p to decide whether to decay
8785 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
8786 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
8787 relocs if the symbol wasn't defined by a regular object file.
8788 Don't check the symbol's dynindx.
8790 2004-02-16 Andrew Cagney <cagney@redhat.com>
8792 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
8794 * bfd-in2.h: Re-generate.
8796 2004-02-14 Andrew Cagney <cagney@redhat.com>
8798 * configure.host (HDEFINES): When hppa*-*-hpux*, define
8799 _LARGEFILE64_SOURCE.
8801 2004-02-13 Andrew Cagney <cagney@redhat.com>
8803 * elf.c (vma_page_aligned_bias): New function.
8804 (assign_file_positions_except_relocs)
8805 (assign_file_positions_for_segments): Replace broken modulo
8806 arithmetic with call to vma_page_aligned_bias.
8808 2004-02-11 Andrew Cagney <cagney@redhat.com>
8810 * bfd-in.h: Update copyright.
8811 (bfd_tell): Change return type to file_ptr.
8812 * bfd-in2.h: Re-generate.
8813 * cache.c: Update copyright.
8814 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
8816 (close_one): Use real_ftell.
8817 * bfdio.c: Update copyright.
8818 (real_ftell, real_fseek): New functions.
8819 (bfd_tell): Use real_fseek and real_ftell, change return type to
8821 (bfd_seek): Use real_ftell and real_fseek, change type of
8822 file_position to a file_ptr.
8823 * libbfd-in.h: Update copyright.
8824 (real_ftell, real_fseek): Declare.
8825 * libbfd.h: Re-generate.
8827 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
8828 fseeko and fseeko64. Determine bfd_file_ptr.
8829 * configure: Re-generate.
8830 * config.in: Re-generate.
8832 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
8834 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
8835 * elf32-h8300.c: Likewise.
8837 2004-02-09 Christian Vogel <vogelchr@vogel.cx>
8838 Nick Clifton <nickc@redhat.com>
8840 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
8841 GOT entries with no associated GOT subsection.
8843 2004-02-09 Richard Sandiford <rsandifo@redhat.com>
8845 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
8846 * elf.c (swap_out_syms): Use it to decide whether local section
8847 symbols should be named.
8848 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
8849 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
8850 (elf_backend_name_local_section_symbols): Define.
8851 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
8853 2004-01-30 H.J. Lu <hongjiu.lu@intel.com>
8855 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
8856 (elfNN_ia64_relax_section): Optimize brl to br during the relax
8859 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
8861 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
8862 to bfd_link_hash_entry passed by reference to
8863 _bfd_generic_link_add_one_symbol.
8865 2004-01-25 H.J. Lu <hongjiu.lu@intel.com>
8867 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
8868 relocations against dynamic symbols.
8870 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
8872 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
8875 2004-01-21 Tom Rix <tcrix@worldnet.att.net>
8877 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
8878 * bfd-in2.h, libbfd.h: Rebuilt.
8880 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
8882 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
8883 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
8884 flag has been cleared.
8886 2004-01-19 Kazu Hirata <kazu@cs.umass.edu>
8888 * coff-h8300.c: Add and adjust comments about relaxation.
8889 * elf32-h8300.c: Likewise.
8891 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
8893 * coff-h8300.c: Fix comment typos.
8894 * elf32-h8300.c: Likewise.
8896 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
8898 * coff-h8300.c: Add comments about relaxation.
8899 * elf32-h8300.c: Likewise.
8901 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8903 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
8905 * aclocal.m4: Regenerate.
8906 * configure: Regenerate.
8908 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
8910 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
8911 mips_elf64_rtype_to_howto instead of using howto_table.
8913 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
8915 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
8917 (elf32_arm_check_relocs): Don't increment the PLT refcount for
8918 relocs which would not use the PLT.
8920 2004-01-13 Alan Modra <amodra@bigpond.net.au>
8922 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
8923 (ppc64_elf_gc_sweep_hook): Likewise.
8924 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
8926 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
8928 Adds linker relaxation support for bit manipulation insns like
8929 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
8931 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
8932 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
8933 * coff-h8300.c: Opcode for bit manipulation insn is checked in
8934 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
8936 2004-01-12 Alan Modra <amodra@bigpond.net.au>
8938 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
8940 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
8942 * elf32-h8300.c: Fix formatting.
8944 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
8946 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
8947 dynamic object is present. Declare r_symndx and h in an inner
8949 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
8951 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
8953 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
8954 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
8955 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
8956 identically. Do not emit PC24 relocations for shared libraries.
8957 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
8958 identically. Don't adjust pc_count.
8959 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
8960 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
8961 adjust count for branch relocations.
8962 (allocate_dynrelocs): Correct typo in call to
8963 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
8964 PC24 or PLT32 relocs when linking.
8966 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
8968 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
8969 relocation howto with ARM_26 one for consistency.
8970 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
8971 that will be converted to ARM_26D ones, since we always want 'done'
8972 relocations to be reflected in section's data.
8973 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
8975 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
8978 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
8980 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
8981 are not partial_inplace during a relocatable link.
8983 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
8985 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
8986 if no dynamic object is present. Declare r_symndx and h in an
8989 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
8991 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
8992 trampoline if it is known out of range.
8994 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
8996 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
8997 * elf32-frv.c (_frv_osec_readonly_p): New.
8998 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
9000 (_frv_count_got_plt_entries): Adjust expected count accordingly.
9001 (elf32_frv_relocate_section): Likewise. Error out if attempting
9002 to emit rofixups or dynamic relocs in read-only segments. Use
9003 _bfd_elf_section_offset to adjust r_offsets in rofixups and
9004 dynamic relocations.
9005 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
9006 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
9007 relocations or fixups involving merged sections correctly. Avoid
9008 crash when undefined symbol is referenced by R_FRV_32 or
9009 R_FRV_FUNCDESC_VALUE.
9010 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
9011 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
9012 input section holding local symbol to addend of R_FRV_32 or
9013 R_FRV_FUNCDESC_VALUE dynamic relocation.
9014 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
9015 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
9016 (elf32_frv_always_size_sections): Don't store pointer to
9017 __stacksize symbol in sec_info.
9018 (elf32_frv_modify_segment_map): Look it up here.
9019 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
9020 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
9021 of the lazy PLT entry, not only its offset, as the low word of a
9022 function descriptor.
9023 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
9024 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
9025 if a hash table entry already exists but is not a definition.
9026 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
9027 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
9028 (_frv_add_rofixup): Don't inline.
9029 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
9030 for undefweak symbols.
9031 (elf32_frv_relocate_section): Avoid crash while computing
9032 relocation when linking with shared library. Only emit rofixups
9033 and dynamic relocations for alloc&load sections. Mark binaries
9034 with inter-segment relocations for relocation as a unit.
9035 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
9036 (DEFAULT_STACK_SIZE): New.
9037 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
9038 emit rofixups or dynamic relocs when linking dynamic non-PIE
9040 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
9041 shared libs too. Reserve the last entry for the GOT pointer.
9042 (elf32_frv_finish_dynamic_sections): Emit it.
9043 (elf32_frv_always_size_sections): New.
9044 (elf32_frv_modify_segment_map): New.
9045 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
9047 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
9048 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
9049 (elf_backend_always_size_sections): New.
9050 (elf_backend_modify_segment_map): New.
9051 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
9052 * config.bfd: Added frv-*-*linux*.
9053 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
9054 ABS section, instead of crashing.
9055 (elf32_frv_relocate_section): Don't crash before warning about
9056 different segments in non-PIC relocation.
9057 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
9058 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
9059 relocs to undefweak symbols.
9060 (elf32_frv_relocate_section): Ditto for undefined symbols.
9061 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
9062 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
9063 gotfixup section was created.
9064 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
9065 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
9066 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
9067 complain_overflow_signed.
9068 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
9069 have not been allocated.
9070 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
9071 privfd only if dynamic sections were created.
9072 (elf32_frv_relocate_section): Compute gprel_segment, and use it
9073 for GPREL relocs. When linking relocatable FDPIC executables,
9074 emit warnings for relocations that would be illegal on PIE or
9075 shared libraries. Emit rofixup for R_FRV_32 only if input object
9077 (_frv_create_got_section): Define _gp symbol in the rofixup
9079 (elf32_frv_finish_dynamic_sections): If rofixups needed but
9080 dynamic sections missing, error out requesting -melf32frvfd.
9081 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
9082 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
9083 computation of addends from section and global or local symbol
9084 value. Change return type to bfd_boolean, and return a failure if
9085 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
9086 nonzero addend is required.
9087 (elf32_frv_relocate_section): Likewise. Print error for
9088 unsupported nonzero addends.
9089 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
9090 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
9091 force everything local.
9092 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
9093 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
9094 (frv_gotfixup_section): New.
9095 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
9096 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
9098 (_frv_add_rofixup): New.
9099 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
9100 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
9101 improve some ugly conditions.
9102 (elf32_frv_relocate_section): Likewise. Reject inter-segment
9103 relocations in fdpic.
9104 (_frv_create_got_section): Create .rofixup.got section.
9105 (struct _frv_dynamic_got_info): Added fixups.
9106 (_frv_count_got_plt_entries): Account in-GOT relocations into
9107 relocs32, relocsfd and relocsfdv. Account them into relocs or
9108 fixups, as appropriate.
9109 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
9111 (elf32_frv_finish_dynamic_sections): Verify that the right number
9112 of relocations and fixups was generated.
9113 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
9115 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
9116 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
9117 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
9118 descriptor of a (formerly-)global symbol is local.
9119 (struct frv_pic_relocs_info): Adjust comments.
9120 (_frv_emit_got_relocs_plt_entries): Adjust.
9121 (elf32_frv_relocate_section): Likewise.
9122 (_frv_count_got_plt_entries): Likewise.
9123 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
9124 symbol's value to addend in the common preamble. Decay dynamic
9125 symbols to section+offset if they bind or call locally, for GOT
9126 and FUNCDESC_VALUE, respectively.
9127 (elf32_frv_relocate_section): Likewise.
9128 (elf32_frv_check_relocs): Don't register as dynamic symbols of
9129 internal or hidden visibility.
9130 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
9131 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
9132 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
9133 (elf32_frv_relocate_section): Pass relocation addend in. Use
9134 original relocation addend to look up the got relocs/plt entries
9135 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
9136 processing relocations that reference .scommon symbols.
9137 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
9138 Introduce support for dynamic linking.
9139 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
9140 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
9141 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
9142 (frv_reloc_type_lookup): Return REL howtos for executables and
9144 (frv_info_to_howto_rel): New.
9145 (struct frv_elf_link_hash_table): New.
9146 (frv_hash_table, frv_got_section, frv_gotrel_section,
9147 frv_plt_section, frv_pltrel_section, frv_relocs_info,
9148 frv_got_initial_offset, frv_plt_initial_offset): New macros.
9149 (frv_elf_link_hash_table_create): New.
9150 (struct frv_pic_relocs_info): New.
9151 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
9152 (frv_pic_relocs_info_find): New.
9153 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
9155 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
9156 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
9157 (_frv_emit_got_relocs_plt_entries): New.
9158 (elf32_frv_relocate_section): Add support for dynamic linking.
9159 Handle new relocations.
9160 (_frv_create_got_section): New.
9161 (elf32_frv_create_dynamic_sections): New.
9162 (ELF_DYNAMIC_INTERPRETER): New.
9163 (struct _frv_dynamic_got_info): New.
9164 (_frv_count_got_plt_entries): New.
9165 (struct _frv_dynamic_got_plt_info): New.
9166 (_frv_compute_got_alloc_data): New.
9167 (_frv_get_got_entry, _frv_get_fd_entry): New.
9168 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
9169 (_frv_resolve_final_relocs_info): New.
9170 (elf32_frv_size_dynamic_sections): New.
9171 (elf32_frv_finish_dynamic_sections): New.
9172 (elf32_frv_adjust_dynamic_symbol): New.
9173 (elf32_frv_finish_dynamic_symbol): New.
9174 (elf32_frv_check_relocs): Handle new relocs. Explain how the
9176 (elf_info_to_howto_rel): Define.
9177 (bfd_elf32_bfd_link_hash_table_create): Define.
9178 (elf_backend_create_dynamic_sections): Define.
9179 (elf_backend_adjust_dynamic_symbol): Define.
9180 (elf_backend_size_dynamic_sections): Define.
9181 (elf_backend_finish_dynamic_symbol): Define.
9182 (elf_backend_finish_dynamic_sections): Define.
9183 (elf_backend_want_got_sym): Define.
9184 (elf_backend_got_header_size): Define.
9185 (elf_backend_want_got_plt): Define.
9186 (elf_backend_plt_readonly): Define.
9187 (elf_backend_want_plt_sym): Define.
9188 (elf_backend_plt_header_size): Define.
9189 (elf_backend_may_use_rel_p): Define.
9190 (elf_backend_may_use_rela_p): Define.
9191 (elf_backend_default_use_rela_p): Define.
9192 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
9193 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
9194 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
9195 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
9196 (frv_reloc_map): Map the corresponding BFD relocs to them.
9197 (frv_reloc_type_lookup): ... and back to BFD relocs.
9198 * reloc.c: New relocs.
9199 * bfd-in2.h, libbfd.h: Rebuilt.
9200 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
9201 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
9202 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
9203 R_FRV_FUNCDESC_GOTLO): New.
9204 (frv_reloc_map): Map the corresponding BFD relocs to them.
9205 (frv_reloc_type_lookup): ... and back to BFD relocs.
9206 * reloc.c: New relocs.
9207 * bfd-in2.h, libbfd.h: Rebuilt.
9209 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9211 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
9212 targets to support pages of up to 64kB.
9213 (elf32_bed): Redefine to get a separate backend data structure for
9214 traditional targets.
9215 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
9216 targets to support pages of up to 64kB.
9217 (elf64_bed): Redefine to get a separate backend data structure for
9218 traditional targets.
9219 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
9220 targets to support pages of up to 64kB.
9221 (elf32_bed): Redefine to get a separate backend data structure for
9222 traditional targets.
9224 2004-01-04 Mark Kettenis <kettenis@gnu.org>
9226 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
9228 2004-01-02 Mark Kettenis <kettenis@gnu.org>
9230 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
9231 (elf_i386_grok_psinfo): Likewise.
9233 2004-01-02 Bernardo Innocenti <bernie@develer.com>
9235 * config.bfd: Add m68k-uClinux target.
9237 2004-01-01 Grant Edwards <grante@visi.com>
9239 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
9240 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
9241 (elf32_h8_gc_sweep_hook): New function.
9242 (elf_backend_gc_mark_hook): Define.
9243 (elf_backend_gc_sweep_hook): Define.
9244 (elf_backend_can_gc_sections): Define.
9246 For older changes see ChangeLog-0203
9252 version-control: never