1 2005-12-31 Alan Modra <amodra@bigpond.net.au>
3 * elf64-ppc.c (ppc64_elf_relocate_section): Adjust relocs against
4 opd section sym when opd has been edited. Use correct addend
5 when determining branch 'y' bit and branch overflow. Adjust and
6 save opd relocs for ld -r too.
8 2005-12-30 Eric Christopher <echristo@apple.com>
10 * elfxx-mips.c (mips_elf_record_global_got_symbol): Add assert
11 to verify we have a got.
12 (_bfd_mips_elf_check_relocs): Add R_MIPS_TLS_GOTTPREL to relocs
15 2005-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17 * configure.host (hppa*64*-*-hpux*): Set host64 to true.
19 2005-12-29 Nick Clifton <nickc@redhat.com>
21 * hash.c (bfd_hash_set_default_size): Add more entries to the
22 hash_size_primes table.
24 * stabs.c (_bfd_link_section_stabs): Use bfd_hash_table_init
25 rather than bfd_hash_table_init_n(...,251) so that the size of the
26 hash table can be controlled by the user.
28 2005-12-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Use info->executable
31 instead of !info->shared.
33 2005-12-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35 * vaxlinux.h: New file. (TRAD_CORE_EXTRA_SIZE_ALLOWED): Define.
36 (HOST_MACHINE_ARCH): Define. This allows cross-building vax-linux
39 2005-12-27 Nathan Sidwell <nathan@codesourcery.com>
41 * elf32-mt.c (mt_elf_merge_private_bfd_data): Do not allow mixing
42 object files from different mt variants.
44 2005-12-27 Leif Ekblad <leif@rdos.net>
46 * config.bfd: Add support for RDOS targets.
48 2005-12-27 Marty Leisner <leisner@rochester.rr.com>
50 * dwarf2.c (lookup_symbol_in_function_table): Check for a function
51 name before passing it to strcmp.
53 2005-12-27 Alan Modra <amodra@bigpond.net.au>
55 * elf.c (elf_find_function): Don't ignore section syms.
56 Simplify filename logic.
58 2005-12-27 Alan Modra <amodra@bigpond.net.au>
60 * elf32-ppc.c (add_stub_sym): Pass info rather than htab.
61 Use different names for pic vs non-pic, '.' instead of '_'.
62 (allocate_dynrelocs): Adjust add_stub_sym call.
64 2005-12-27 Alan Modra <amodra@bigpond.net.au>
66 * elf.c (bfd_section_from_shdr): Treat invalid reloc sections as
67 normal sections rather than returning false.
69 2005-12-27 Alan Modra <amodra@bigpond.net.au>
71 * coff-h8300.c (h8300_reloc16_extra_cases): Use input section
72 "output_offset" instead of link order "offset".
73 * coff-h8500.c (extra_case): Likewise.
74 * coff-w65.c (w65_reloc16_extra_cases): Likewise.
75 * coff-z80.c (extra_case): Likewise.
76 * coff-z8k.c (extra_case): Likewise.
77 * linker.c (default_indirect_link_order): Likewise, "size" too.
78 * ecoff.c (ecoff_indirect_link_order): Likewise.
80 2005-12-27 Alan Modra <amodra@bigpond.net.au>
82 * Makefile.am: Run "make dep-am".
83 * Makefile.in: Regenerate.
84 * po/SRC-POTFILES.in: Regenerate.
86 2005-12-24 Alan Modra <amodra@bigpond.net.au>
88 * aix5ppc-core.c: Remove duplicate prototypes.
89 (xcoff64_core_file_matches_executable_p): Provide implementation
91 * corefile.c (generic_core_file_matches_executable_p): Correct
92 syntax error in prototype.
93 * libbfd-in.h (generic_core_file_matches_executable_p): Delete.
94 * libbfd.h: Regenerate.
95 * bfd-in2.h: Regenerate.
97 2005-12-23 Michael Weiser <michael@weiser.dinsnail.net>
100 * elf-bfd.h (struct elf_backend_data): New field
101 'elf_backend_ignore_undef_symbol'.
102 * elfxx-target.h (elf_backend_ignore_undef_symbol): Define to NULL
103 if not already defined.
104 (elfNN_bed): Initialise the elf_backend_ignore_undef_symbol field.
105 * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): New function.
106 * elfxx-mips.h (elf_backend_ignore_undef_symbol): Define and
108 * elflink.c (elf_link_output_extsym): Check
109 elf_backend_ignore_undef_symbol before reporting an undefined
110 symbol in a shared library.
112 2005-12-23 Joel Brobecker <brobecker@adacore.com>
114 * corefile.c (generic_core_file_matches_executable_p): New function.
115 * libbfd-in.h (generic_core_file_matches_executable_p): Add
117 * libbfd.h: Regenerate.
118 * hpux-core.c: ANSIfy function declarations and prototypes.
119 (thread_section_p): Manually expand bfd_section_name macro
120 to make it clear that parameter ABFD is not used.
121 (hpux_core_core_file_matches_executable_p): Delete, replaced
122 by macro pointing to generic_core_file_matches_executable_p.
124 * aix386-core.c: Replace core_file_matches_executable_p null
125 implementation by generic_core_file_matches_executable_p by
127 * aix5ppc-core.c: Likewise.
128 * cisco-core.c: Likewise.
129 * hppabsd-core.c: Likewise.
130 * irix-core.c: Likewise.
131 * lynx-core.c: Likewise.
132 * mach-o.c: Likewise.
133 * netbsd-core.c: Likewise.
134 * osf-core.c: Likewise.
135 * ptrace-core.c: Likewise.
136 * sco5-core.c: Likewise.
137 * trad-core.c: Likewise.
139 2005-12-19 David Heine <dlheine@tensilica.com>
141 * elf32-xtensa.c (action_list_count, xlate_map_entry, xlate_map,
142 xlate_offset_with_removed_text, build_xlate_map, free_xlate_map): New.
143 (check_section_ebb_pcrels_fit): Build new xlate_map, use it and free it
146 2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
148 Second part of ms1 to mt renaming.
149 * archures.c (bfd_arch_mt): Renamed.
150 (bfd_mt_arch): Renamed.
151 (bfd_archures_list): Adjusted.
152 * bfd-in2.h: Rebuilt.
153 * config.bfd (mt): Remove special case targ_archs.
154 (mt-*-elf): Rename bfd_elf32_mt_vec.
155 * configure: Rebuilt.
156 * configure.in (bfd_elf32_mt_vec): Renamed.
157 (selarchs) Remove mt special case.
158 * cpu-mt.c (arch_info_struct): Adjust.
159 (bfd_mt_arch): Renamed, adjust.
160 * elf32-mt.c (mt_reloc_type_lookup, mt_info_to_howto_rela,
161 mt_elf_relocate_hi16, mt_final_link_relocate, mt_relocate_section,
162 mt_elf_howto_table): Renamed, adjusted.
163 (mt_elf_gc_mark_hook, mt_elf_gc_sweep_hook, mt_elf_check_relocs,
164 elf32_mt_machine, mt_elf_object_p, mt_elf_set_private_flags,
165 mt_elf_copy_private_bfd_data, mt_elf_merge_private_bfd_data,
166 mt_elf_print_private_bfd_data): Renamed, adjusted.
167 (TARGET_BIG_SYM, TARGET_BIG_NAME, ELF_ARCH, ELF_MACHINE_CODE,
168 ELF_MAXPAGESIZE, elf_info_to_howto, elf_backend_relocate_section,
169 bfd_elf32_bfd_reloc_type_lookup, elf_backend_gc_mark_hook,
170 elf_backend_gc_sweep_hook, elf_backend_check_relocs,
171 eld_backend_object_p, bfd_elf32_bfd_set_private_flags,
172 bfd_elf32_bfd_copy_private_bfd_data,
173 bfd_elf32_bfd_merge_private_bfd_data,
174 bfd_elf32_bfd_print_private_bfd_data): Adjusted.
175 * libbfd.h: Regenerated.
176 * reloc.c (BFD_RELOC_MT_PC16, BFD_RELOC_MT_HI16,
177 BFD_RELOC_MT_LO16, BFD_RELOC_MT_GNU_VTINHERIT,
178 BFD_RELOC_MT_GNU_VTENTRY, BFD_RELOC_MT_PCINSN8): Renamed.
179 * targets.c (bfd_elf32_mt_vec): Renamed.
180 (_bfd_target_vector): Adjusted.
182 2005-12-13 H.J. Lu <hongjiu.lu@intel.com>
185 * elf.c (_bfd_elf_setup_sections): Return FALSE if
186 elf_linked_to_section will be set to NULL.
188 * format.c (bfd_check_format_matches): Don't check the default
191 2005-12-13 Alan Modra <amodra@bigpond.net.au>
193 * elf64-ppc.c (ppc64_elf_relocate_section): Force tail calls in
194 shared libs to resolve locally.
196 2005-12-12 Paul Brook <paul@codesourcery.com>
198 * bfd-in2.h: Regenerate.
199 * elf32-arm.c (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PCREL_CALL and
200 BFD_RELOC_ARM_PCREL_JUMP.
201 (check_use_blx): New function.
202 (bfd_elf32_arm_process_before_allocation): Don't allocate glue if
204 (elf32_arm_final_link_relocate): Perform bl<->blx conversion for
205 R_ARM_CALL and R_ARM_THM.
206 (elf32_arm_get_eabi_attr_int): New function.
207 (elf32_arm_size_dynamic_sections): Call check_use_blx.
208 * libbfd.h: Regenerate.
209 * reloc.c: Add BFD_RELOC_ARM_PCREL_CALL and BFD_RELOC_ARM_PCREL_JUMP.
211 2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
213 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES,
214 BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace ms1 with mt.
215 (cpu_mt.lo, elf32-mt.lo): Update target and dependency names.
216 * Makefile.in: Rebuilt.
217 * config.bfd: Replace ms1 arch with mt.
218 * configure.in: Replace ms1 files with mt files.
219 * configure: Rebuilt.
220 * elf32-mt.c: Renamed from elf32-ms1.c. Update include files.
221 * cpu-mt.c: Renamed from cpu-ms1.c.
223 2005-12-12 Alan Modra <amodra@bigpond.net.au>
225 * elf64-ppc.c (ppc64_elf_size_stubs): Don't consider non-ppc64 input.
227 2005-12-10 Alan Modra <amodra@bigpond.net.au>
229 * elflink.c (elf_gc_mark_dynamic_ref_symbol): Use !info-executable
230 to test for linking shared libs, not info->shared.
232 2005-12-08 Alan Modra <amodra@bigpond.net.au>
234 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add emit_stub_syms.
235 (ppc_elf_select_plt_layout): Add emit_stub_syms param, save to htab.
236 (add_stub_sym): New function.
237 (allocate_dynrelocs): Call add_stub_sym.
238 (ppc_elf_size_dynamic_sections): Emit __glink and __glink_PLTresolve
240 * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
242 2005-12-08 Alan Modra <amodra@bigpond.net.au>
244 * reloc.c (enum complain_overflow): Correct comments.
245 (bfd_check_overflow): Combine complain_overflow_bitfield and
246 complain_overflow_signed code.
247 (_bfd_relocate_contents): Likewise.
248 (bfd_howto_32): Use complain_overflow_dont.
249 * elf32-d10v.c (elf_d10v_howto_table): Revert 2002-06-17 change.
250 * bfd-in2.h: Regenerate.
252 2005-12-07 H.J. Lu <hongjiu.lu@intel.com>
254 * elf.c (assign_section_numbers): Remove extra code in the last
257 2005-12-07 H.J. Lu <hongjiu.lu@intel.com>
258 Andreas Schwab <schwab@suse.de>
261 * elf.c (assign_section_numbers): Always use the output section
262 when setting up sh_link for SHF_LINK_ORDER.
264 2005-12-07 Thiemo Seufer <ths@networkno.de>
265 H.J. Lu <hongjiu.lu@intel.com>
268 * bfd-in.h (bfd_elf_record_link_assignment): Add output_bfd
269 and hidden arguments.
271 * bfd.c (bfd_hide_symbol): Removed.
273 * bfd-in2.h: Regenerated.
275 * elflink.c (bfd_elf_record_link_assignment): Handle hidden
276 symbols which were provided by a linker script.
278 2005-12-06 Paul Gilliam <pgilliam@us.ibm.com>
280 * cpu-powerpc.c (bfd_powerpc_archs): Add ppc 750.
282 2005-11-18 Mark Kettenis <kettenis@gnu.org>
284 * elf64-hppa.c (elf64_hppa_section_from_phdr): Create .kernel
285 pseudo-section. Make sure .reg section comes after the proc
286 section it's generated from.
288 2005-12-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
290 * elf32-m32r.c (m32r_elf_sweep_hook): Fix an illegal duplicate check.
291 (m32r_elf_relocate_section): Fix R_M32R_10_PCREL_RELA linkage bug.
292 (m32r_elf_gc_sweep_hook): Likewise.
293 (m32r_elf_check_relocs): Likewise.
295 2005-11-24 Alan Modra <amodra@bigpond.net.au>
297 * elf-bfd.h (_bfd_generic_match_sections_by_type): Don't define.
298 * libbfd-in.h (_bfd_generic_match_sections_by_type): Delete.
299 * libbfd.c (_bfd_generic_match_sections_by_type): Delete.
300 * targets.c (bfd_match_sections_by_type): Don't define.
301 (BFD_JUMP_TABLE_LINK): Remove _bfd_generic_match_sections_by_type.
302 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
303 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
304 * bfd-in2.h: Regenerate.
305 * libbfd.h: Regenerate.
307 2005-11-23 Daniel Jacobowitz <dan@codesourcery.com>
308 Thiemo Seufer <ths@networkno.de>
310 * elf32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for
312 (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
313 (bfd_elf32_bfd_reloc_type_lookup): Don't handle
314 BFD_RELOC_16_PCREL_S2.
315 * elf64-mips.c (mips_elf64_howto_table_rel): Use rightshift 2 for
317 (mips_elf64_howto_table_rela): Likewise.
318 (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
319 (bfd_elf64_bfd_reloc_type_lookup): Don't handle
320 BFD_RELOC_16_PCREL_S2.
321 * elfn32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for
323 (elf_mips_howto_table_rela): Likewise.
324 (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
325 (bfd_elf32_bfd_reloc_type_lookup): Don't handle
326 BFD_RELOC_16_PCREL_S2.
327 * elfxx-mips.c: Formatting fixes.
328 (mips_elf_calculate_relocation): Handle R_MIPS_GNU_REL16_S2
329 and R_MIPS_PC16 identically.
331 2005-11-23 Frederic Riss <frederic.riss@st.com>
333 * elfcode.h (elf_object_p): Delay the setting of start_address
334 until we're sure the backend matches the binary.
336 2005-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
338 * som.c (som_decode_symclass): Decode BSF_WEAK symbols in the same
339 manner as bfd_decode_symclass.
341 2005-11-18 Alan Modra <amodra@bigpond.net.au>
343 * elf64-ppc.c (ppc64_elf_check_relocs): Don't set has_14bit_branch
344 on branches to same section.
346 2005-11-17 Randolph Chung <tausq@debian.org>
348 * elf64-hppa.c (elf64_hppa_object_p): Recognize corefiles under
350 (elf64_hppa_section_from_phdr): New function.
351 (elf_backend_section_from_phdr): Define.
353 2005-11-11 Nick Clifton <nickc@redhat.com>
356 * elfxx-mips.c (mips_elf_calculate_relocation): Ignore an
357 undefined symbol if it is optional.
358 (_bfd_mips_elf_merge_symbol_attribute): Make sure that the
359 optional flag is merged as well as the visibility.
360 * elfxx-mips.h (_bfd_mips_elf_merge_symbol_attribute): Prototype.
361 (elf_backend_merge_symbol_attribute): Define.
363 2005-11-08 Nathan Sidwell <nathan@codesourcery.com>
366 * archures.c (bfd_mach_ms2): Define.
367 * cpu-ms1.c (arch_info_struct): Add ms2 stanza.
368 * elf32-ms1.c (elf32_ms1_machine): Add ms2 case.
369 (ms1_elf_merge_private_bfd_data): Remove unused variables. Add
370 correct merging logic, with workaround.
371 (ms1_elf_print_private_bfd_data): Add ms2 case.
372 * reloc.c (BFD_RELOC_MS1_PCINSN8): Add ms2 specific reloc.
373 * libbfd.h: Regenerated.
374 * bfd-in2.h: Regenerated.
376 2005-11-07 Steve Ellcey <sje@cup.hp.com>
378 * warning.m4 (AM_BINUTILS_WARNINGS): Default to empty string
379 if compiler is not GCC.
380 * configure: Regenerate
382 2005-11-07 Steve Ellcey <sje@cup.hp.com>
384 * configure: Regenerate after modifying bfd/warning.m4.
386 2005-11-07 Steve Ellcey <sje@cup.hp.com>
388 * configure.host (ia64-*-hpux*): Set _LARGEFILE64_SOURCE.
390 2005-11-03 Daniel Jacobowitz <dan@codesourcery.com>
392 * configure.in: Check for fopen64.
393 * libbfd-in.h (real_fopen): New prototype.
394 * configure, config.in, libbfd.h: Regenerated.
395 * bfdio.c (real_fopen): New function.
396 * opncls.c (bfd_fopen, bfd_fill_in_gnu_debuglink_section): Use it.
397 * cache.c (bfd_open_file): Likewise.
399 2005-11-03 Thiemo Seufer <ths@networkno.de>
401 * elfxx-mips.c (mips_elf_calculate_relocation): Handle only
402 forced local symbols here.
403 (mips_elf_create_dynamic_relocation): Likewise.
404 (_bfd_mips_elf_finish_dynamic_symbol): Fix typo in comment.
406 2005-11-03 Alan Modra <amodra@bigpond.net.au>
408 * elf.c (elf_fake_sections): When calculating tbss size, just use
410 (assign_file_positions_for_segments): Likewise.
411 * elflink.c (bfd_elf_final_link): Likewise.
412 (elf_reloc_link_order): Correct comment.
414 2005-11-02 Alan Modra <amodra@bigpond.net.au>
417 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Add required
420 2005-10-29 H.J. Lu <hongjiu.lu@intel.com>
422 * Makefile.am: Run "make dep-am".
423 * Makefile.in: Regenerated.
425 * dep-in.sed: Replace " ./" with " ".
427 2005-10-29 H.J. Lu <hongjiu.lu@intel.com>
429 * hpux-core.c: Include <machine/reg.h> only if HPUX_CORE is
431 * osf-core.c: Include <sys/core.h> only if OSF_CORE is defined.
432 * sco5-core.c: Include <sys/paccess.h> and <sys/region.h> only
433 if SCO5_CORE is defined.
435 2005-10-29 Mark Kettenis <kettenis@gnu.org>
437 * Makefile.am: Run "make dep-am".
438 * Makefile.in: Regenerate.
440 2005-10-28 Joel Brobecker <brobecker@adacore.com>
442 From Eric Botcazou <botcazou@adacore.com>
443 * coffcode.h (coff_compute_section_file_positions): Fix small
444 error in preprocessor directives.
446 2005-10-28 Joel Brobecker <brobecker@adacore.com>
448 Mostly from Eric Botcazou <botcazou@adacore.com>
449 * rs6000-core.c: ANSIfy all function definitions.
450 Add missing function prototypes.
451 (ptr_to_uint): New type.
452 (rs6000coff_core_p): Use it as intermediate step in casts.
453 (rs6000coff_core_file_matches_executable_p): Likewise.
454 * xcoff-target.h (rs6000coff_core_p): Fix prototype.
455 (rs6000coff_core_file_matches_executable_p): Likewise.
457 2005-10-28 H.J. Lu <hongjiu.lu@intel.com>
460 * aoutx.h (NAME (aout, machine_type)): Handle
461 bfd_mach_sparc_v8plus, bfd_mach_sparc_v8plusa,
462 bfd_mach_sparc_v8plusb, bfd_mach_sparc_v9, bfd_mach_sparc_v9a
463 and bfd_mach_sparc_v9b.
465 2005-10-28 Hans-Peter Nilsson <hp@axis.com>
468 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_32>: Set
469 complain_on_overflow field to complain_overflow_dont.
471 2005-10-27 Alan Modra <amodra@bigpond.net.au>
474 * cache.c (enum cache_flag): New.
475 (close_one): Save file mtime.
476 (bfd_cache_lookup): Add flag arg, adjust all users.
477 (bfd_cache_lookup_worker): Likewise.
478 (cache_btell): Use CACHE_NO_OPEN and return abfd->where if file
480 (cache_bflush): Similarly, and return success of file not open.
481 (cache_bseek): Use CACHE_NO_SEEK if SEEK_SET or SEEK_END.
482 (cache_bstat): Use CACHE_NO_SEEK_ERROR.
484 * bfdwin.c (bfd_get_file_window): Seek into file in place of
485 using bfd_cache_lookup.
487 * cache.c (BFD_CACHE_MAX_OPEN): Make private to this file.
488 (bfd_last_cache, bfd_cache_lookup, bfd_cache_lookup_worker): Likewise.
489 * libbfd-in.h (bfd_cache_lookup_worker, bfd_last_cache): Delete.
490 * libbfd.h: Regenerate.
492 * hppabsd-core.c (hppabsd_core_core_file_p): Use bfd_stat, not fstat.
493 * sco5-core.c (sco5_core_file_p): Likewise.
494 * trad-core.c (trad_unix_core_file_p): Likewise.
496 * cache.c: Reorganize file to avoid forward reference.
498 2005-10-26 Alan Modra <amodra@bigpond.net.au>
500 * cache.c (bfd_cache_lookup_worker): Don't abort on failing to
502 (cache_btell, cache_bseek, cache_bflush, cache_bstat): Return -1 on
503 bfd_cache_lookup failure.
504 (cache_bread, cache_bwrite): Return 0 on the same.
505 * bfdwin.c (bfd_get_file_window): Likewise.
506 * hppabsd-core.c (hppabsd_core_core_file_p): Likewise.
507 * sco5-core.c (sco5_core_file_p): Likewise.
508 * trad-core.c (trad_unix_core_file_p): Likewise.
510 2005-10-26 Alan Modra <amodra@bigpond.net.au>
512 * cache.c (bfd_cache_lookup_worker): Use bfd_error_handler
513 rather than bfd_perror. Print file name. Internationalise.
515 2005-10-26 Alan Modra <amodra@bigpond.net.au>
517 * cache.c (bfd_open_file): Set bfd_error_system_call on failure
519 (bfd_cache_lookup_worker): Remove check that file pos is in
520 unsigned long range. Print system error before aborting.
522 2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
524 * Makefile.am: Add rules for coff-z80 and cpu-z80.
525 * Makefile.in: Regenerated.
526 * archures.c: Add bfd_arch_z80 and support for it.
527 * coffcode.h(coff_set_arch_mach_hook): Add case Z80MAGIC.
528 (coff_set_flags): Add case bfd_arch_z80.
529 * config.bfd: Add z80coff_vec.
530 * configure.in: Add z80coff_vec.
531 * reloc.c: Add BFD_RELOC_Z80_DISP8
532 * targets.c: Add z80coff_vec.
533 * coff-z80.c: New file
534 * cpu-z80.c: New file
535 * configure: Regenerated.
536 * libbfd.h: Regenerated.
537 * bfd-in2.h: Regenerated.
539 2005-10-26 Alan Modra <amodra@bigpond.net.au>
542 * elf-bfd.h (elf_backend_copy_indirect_symbol): Replace pointer to
543 elf_backend_data with pointer to bfd_link_info.
544 (_bfd_elf_link_hash_copy_indirect): Likewise.
545 * elf.c (_bfd_elf_link_hash_copy_indirect): Likewise. Handle
546 direct and indirect symbols both having dynamic link info.
547 * elf32-arm.c (elf32_arm_copy_indirect_symbol): Likewise.
548 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
549 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
550 * elf32-m32r.c (m32r_elf_copy_indirect_symbol): Likewise.
551 * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Likewise.
552 * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise.
553 * elf32-sh.c (sh_elf_copy_indirect_symbol): Likewise.
554 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
555 * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise.
556 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise.
557 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
558 * elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
559 * elfxx-sparc.c (_bfd_sparc_elf_copy_indirect_symbol): Likewise.
560 * elflink.c: Adjust all calls to bed->elf_backend_copy_indirect_symbol.
561 * elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Update prototype.
562 * elfxx-sparc.h (_bfd_sparc_elf_copy_indirect_symbol): Likewise.
564 2005-10-25 Alan Modra <amodra@bigpond.net.au>
566 * po/SRC-POTFILES.in: Regenerate.
567 * po/bfd.pot: Regenerate.
569 2005-10-24 Jie Zhang <jie.zhang@analog.com>
571 * elf32-bfin.c (bfd_bfin_elf32_create_embedded_relocs): Fix signedness
574 2005-10-24 Bernd Schmidt <bernd.schmidt@analog.com>
576 * elf32-bfin.c (bfin_howto_table): Set src_mask to 0 for all relocs.
577 (bfin_imm16_reloc): Always add in the addend. Don't fetch existing
578 contents from section.
579 (bfin_relocate_section): Rework so as to not call special_functions.
580 Handle the relocation stack here. Treat pcrel24 relocs specially.
582 2005-10-24 Alan Modra <amodra@bigpond.net.au>
584 * elflink.c (elf_link_input_bfd): Don't use linker_mark and
585 SEC_EXCLUDE to test for sections dropped from output. Instead,
586 use bfd_section_removed_from_list on normal sections. Don't
587 attempt to handle symbols with unknown reserved section indices.
588 * linker.c (_bfd_generic_link_output_symbols): Don't use
589 linker_mark to test for symbols belonging to dropped sections.
590 Do allow absolute symbols.
592 2005-10-24 Alan Modra <amodra@bigpond.net.au>
594 * elf32-i370.c (i370_elf_fake_sections): Don't set SHF_EXCLUDE on
597 2005-10-24 Jan Beulich <jbeulich@novell.com>
599 * cpu-ia64-opc.c (elf64_ia64_operands): Move memory operand out of
600 set of indirect operands.
602 2005-10-24 Alan Modra <amodra@bigpond.net.au>
604 * elf32-ppc.c (ppc_elf_fake_sections): Don't set SHF_EXCLUDE on
607 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
609 * coff-rs6000.c (rs6000coff_vec): Initialize
610 _bfd_init_private_section_data with
611 _bfd_generic_init_private_section_data.
612 (pmac_xcoff_vec): Likewise.
613 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
614 (aix5coff64_vec): Likewise.
616 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
619 * elf-bfd.h (_bfd_generic_init_private_section_data): New.
620 (_bfd_elf_init_private_section_data): New.
622 * elf.c (elf_fake_sections): Don't set SHF_GROUP for
624 (bfd_elf_set_group_contents): Don't handle relocatable link
626 (assign_section_numbers): If it isn't called by assembler,
627 use the output section of elf_linked_to_section for
629 (_bfd_elf_init_private_section_data): New.
630 (_bfd_elf_copy_private_section_data): Call it.
632 * libbfd-in.h (_bfd_generic_init_private_section_data): New.
634 * libbfd.c (_bfd_generic_init_private_section_data): New.
636 * targets.c (BFD_JUMP_TABLE_COPY): Add
637 _bfd_generic_init_private_section_data.
638 (bfd_init_private_section_data): Likewise.
640 * bfd-in2.h: Regenerated.
641 * libbfd.h: Likewise.
643 2005-10-23 Alan Modra <amodra@bigpond.net.au>
645 * elf64-ppc.c (dec_dynrel_count): Don't report errors for local
646 syms in gc'd sections.
647 (ppc64_elf_edit_opd): Don't adjust reloc counts when NO_OPD_RELOCS.
648 (elf_backend_action_discarded): Define.
649 (ppc64_elf_action_discarded): New function.
651 2005-10-19 Paul Brook <paul@codesourcery.com>
653 * elf32-arm.c (find_arm_elf_section_entry): New function.
654 (get_arm_elf_section_data): Use it.
655 (unrecord_section_with_arm_elf_section_data): Use it.
657 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
659 * coff-rs6000.c (rs6000coff_vec): Initialize
660 _bfd_match_sections_by_type with
661 _bfd_generic_match_sections_by_type.
662 (pmac_xcoff_vec): Likewise.
663 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
664 (aix5coff64_vec): Likewise.
666 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
669 * elf-bfd.h (_bfd_elf_match_sections_by_type): New.
670 (_bfd_generic_match_sections_by_type): New. Defined.
672 * elf.c (_bfd_elf_match_sections_by_type): New.
674 * libbfd-in.h (_bfd_generic_match_sections_by_type): New.
676 * bfd-in2.h: Regenerated.
677 * libbfd.h: Likewise.
679 * libbfd.c (_bfd_generic_match_sections_by_type): New.
681 * targets.c (BFD_JUMP_TABLE_LINK): Initialize
682 _bfd_match_sections_by_type with
683 _bfd_generic_match_sections_by_type.
684 (bfd_target): Add _bfd_match_sections_by_type.
686 2005-10-08 Paul Brook <paul@codesourcery.com>
688 * elf32-arm.c: Move #include "elf/arm.h" after libbfd.h.
689 (NUM_KNOWN_ATTRIBUTES): Define.
690 (aeabi_attribute, aeabi_attribute_list): Define.
691 (elf32_arm_obj_tdata): Add known_eabi_attributes and
692 other_eabi_attributes.
693 (uleb128_size, is_default_attr, eabi_attr_size,
694 elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
695 elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
696 elf32_arm_new_eabi_attr, attr_strdup, elf32_arm_add_eabi_attr_int,
697 elf32_arm_add_eabi_attr_compat, copy_eabi_attributes,
698 elf32_arm_merge_eabi_attributes): New functions.
699 (elf32_arm_copy_private_bfd_data): Copy EABI object attributes.
700 (elf32_arm_fake_sections): Handle .ARM.attributes.
701 (elf32_arm_parse_attributes): New function.
702 (elf32_arm_section_from_shdr): Use it.
703 (bfd_elf32_bfd_final_link): Define.
705 2005-10-06 Daniel Jacobowitz <dan@codesourcery.com>
707 * elf32-arm.c (elf32_arm_check_relocs): Avoid aliasing warnings from
709 (elf32_arm_size_dynamic_sections): Likewise.
710 * ecofflink.c (bfd_ecoff_debug_one_external): Likewise.
711 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
712 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
713 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
714 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
715 * elf32-s390.c (elf_s390_check_relocs): Likewise.
716 (elf_s390_size_dynamic_sections): Likewise.
717 * elf32-sh.c (sh_elf_check_relocs): Likewise.
718 * elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count)
719 (ppc64_elf_size_dynamic_sections): Likewise.
720 * elf64-s390.c (elf_s390_check_relocs): Likewise.
721 (elf_s390_size_dynamic_sections): Likewise.
722 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Likewise.
723 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
724 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
725 * ieee.c (ieee_slurp_section_data): Likewise.
726 * oasys.c (oasys_slurp_section_data): Likewise.
728 2005-10-04 Bob Wilson <bob.wilson@acm.org>
730 * archive.c: Add missing SUBSECTION for documentation.
733 * corefile.c: Likewise.
734 * format.c: Likewise.
736 * libbfd.c: Likewise.
737 * opncls.c: Likewise.
738 * elf.c: Remove blank line after SECTION heading.
739 * reloc.c: Change "howto manager" SECTION to a SUBSECTION.
741 2005-10-04 Nick Clifton <nickc@redhat.com>
743 * elf32-arm.c (get_arm_elf_section_data): Cache the last pointer
744 matched so that the typical case of scanning for the previous
745 section to last one can be handled quickly.
747 2005-10-03 David Heine <dlheine@tensilica.com>
749 * elf32-xtensa.c (relocations_reach): Skip range check for
752 2005-10-03 Alan Modra <amodra@bigpond.net.au>
754 * elf.c (_bfd_elf_get_synthetic_symtab): Set BSF_GLOBAL on
757 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
759 * Makefile.am: Run "make dep-am".
760 * Makefile.in: Regenerated.
761 * aclocal.m4: Likewise.
763 2005-09-30 Catherine Moore <clm@cm00re.com>
765 * Makefile.am: Bfin support.
766 * Makefile.in: Regenerated.
767 * aclocal.m4: Regenerated.
768 * archures.c (bfd_mach_bfin): New.
769 (bfd_arch_bfin): New.
770 bfd-in.h (bfd_bfin_elf32_create_embedded_relocs): New.
771 * bfd-in2.h: Regenerated.
772 * config.bfd: Bfin support.
773 * configure: Regenerated.
774 * configure.in: Bfin support.
775 * libbfd.h: Regenerated.
776 * reloc.c: Add BFD relocations for Bfin.
777 * targets.c (bfd_elf32_bfin_vec): New.
778 * cpu-bfin.c: New file.
779 * elf32-bfin.c: New file.
781 2005-09-30 Alan Modra <amodra@bigpond.net.au>
783 * elf64-ppc.c (ppc_type_of_stub): Check both func desc and func
784 entry sym before deciding no stub is needed.
785 (ppc64_elf_size_stubs): When calculating branch destination,
786 don't use func desc sym for old ABI objects unless func entry
789 2005-09-28 H.J. Lu <hongjiu.lu@intel.com>
792 * elf-bfd.h (_bfd_elf_setup_group_pointers): Renamed to ...
793 (_bfd_elf_setup_sections): This.
795 * elfcode.h (elf_object_p): Likewise.
797 * elf.c (_bfd_elf_setup_sections): Process SHF_LINK_ORDER.
798 (_bfd_elf_copy_private_section_data): Likewise.
800 2005-09-28 H.J. Lu <hongjiu.lu@intel.com>
802 * elflink.c (elf_fixup_link_order): Report locations for mixed
803 ordered and unordered input sections.
805 2005-09-22 James E. Wilson <wilson@specifix.com>
807 * dwarf2.c (struct funcinfo): Delete nesting_level field.
808 (lookup_address_in_function_table): Delete code to set funcinfo
809 caller_func field. Delete local curr_func.
810 (scan_unit_for_symbols): New locals nested_funcs, nested_funcs_size.
811 Delete code setting funcinfo nesting_level field. Add code to set
812 funcinfo caller_func field.
814 2005-09-20 James E. Wilson <wilson@specifix.com>
816 * dwarf2.c (find_abstract_instance_name): Don't early exit when name
817 set. For DW_AT_name case, only set name if not already set. Handle
818 DW_AT_MIPS_linkage_name.
820 2005-09-20 Alan Modra <amodra@bigpond.net.au>
822 * elflink.c (_bfd_elf_merge_symbol): Simplify.
824 2005-09-19 Alan Modra <amodra@bigpond.net.au>
826 * elf64-ppc.c (ppc_build_one_stub): Replace assertion that long
827 branch offset is in range with an error. Print full stub name on
829 (ppc_size_one_stub): Print full stub name on errors.
830 (group_sections): Warn if section size exceeds group size.
831 (ppc64_elf_size_stubs): Continue relaxing when stub types change.
833 2005-09-09 Kevin Buettner <kevinb@redhat.com>
835 * elf32-am33lin.c (bfd.h, sysdep.h, elf-bfd.h, elf/mn10300.h):
837 (elf32_am33lin_grok_prstatus, elf32_am33lin_grok_psinfo): New
839 (elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
841 2005-09-09 Richard Earnshaw <richard.earnshaw@arm.com>
843 * elf32-arm.c (elf32_arm_section_from_shdr): Accept SHT_ARM_PREEMPTMAP
844 and SHT_ARM_ATTRIBUTES.
846 2005-09-08 H.J. Lu <hongjiu.lu@intel.com>
848 * elflink.c (elf_get_linked_section_vma): Fix a typo in comment.
849 * elfxx-ia64.c (elf_backend_link_order_error_handler): Likewise.
851 2005-09-08 H.J. Lu <hongjiu.lu@intel.com>
854 * elflink.c (elf_link_add_object_symbols): Abort for
855 --just-symbols on DSO.
857 2005-09-08 Paul Brook <paul@codesourcery.com>
859 * reloc.c: Rename BFD_RELOC_ARM_SMI to BFD_RELOC_ARM_SMC.
860 * bfd-in2.h: Regenerate.
861 * libbfd.h: Regenerate.
863 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
866 * elflink.c (_bfd_elf_merge_symbol): Don't check undefined
867 symbol introduced by "ld -u" for TLS.
869 2005-09-02 Paul Brook <paul@codesourcery.com>
871 * libbdf.h: Regenerate.
872 * bfd-in2.h: Regenerate.
873 * reloc.c: Add BFD_RELOC_ARM_T32_CP_OFF_IMM and
874 BFD_RELOC_ARM_T32_CP_OFF_IMM_S2.
876 2005-09-01 Dmitry Diky <diwil@spec.ru>
878 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Do not adjust
879 local symbols and move it to
880 (msp430_elf_relax_adjust_locals): New function - walk over the
881 sections in the bfd and adjust relocations as necessary.
883 2005-08-31 DJ Delorie <dj@redhat.com>
885 * elf32-i386.c (elf_i386_check_relocs): Don't cast a unary &
886 address operator, as that breaks GCC's strict aliasing rules.
887 (elf_i386_size_dynamic_sections): Avoid the need for type
889 * elf64-x86-64.c (elf_x86_64_check_relocs): Don't cast a unary
890 & address operator, as that breaks GCC's strict aliasing
892 (elf_x86_64_size_dynamic_sections): Avoid the need for type
895 2005-08-30 Phil Edwards <phil@codesourcery.com>
897 * config.bfd (i[3-7]86-*-vxworks): Match vxworks* instead.
899 2005-08-29 H.J. Lu <hongjiu.lu@intel.com>
902 * elfxx-ia64.c (allocate_fptr): Check undefined symbol.
904 2005-08-29 Steven J. Hill <sjhill@realitydiluted.com>
906 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Initialise
907 'value' to avoid compile time warning message.
909 2005-08-26 Christian Groessler <chris@groessler.org>
911 * coff-z8k.c: (r_jr, r_disp7, r_callr): Fix src_mask and dst_mask
913 (coff_z8k_select_reloc): Remove.
914 (SELECT_RELOC): Remove.
915 (coff_z8k_reloc_type_lookup): New function.
916 (coff_bfd_reloc_type_lookup): Define.
917 * configure.in: Add cofflink.lo to z8kcoff_vec.
918 * configure: Regenerate.
919 * reloc.c: (bfd_reloc_code_type): Add z8k relocations.
920 (bfd_install_relocation): Don't clear reloc_entry->addend for
922 * bfd-in2.h: Regenerate.
923 * libbfd.h: Regenerate.
925 2005-08-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
927 * elf32-sh.c (sh_elf_get_flags_from_mach): Fix off-by-one error.
929 2005-08-24 H.J. Lu <hongjiu.lu@intel.com>
932 * elf-hppa.h (elf_hppa_relocate_section): Print out the name
933 of unresolvable relocation.
934 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
935 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
936 * elf32-i386.c (elf_i386_relocate_section): Likewise.
937 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
938 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
939 * elf32-s390.c (elf_s390_relocate_section): Likewise.
940 * elf32-sh.c (sh_elf_relocate_section): Likewise.
941 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
942 * elf64-s390.c (elf_s390_relocate_section): Likewise.
943 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
944 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
945 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
947 2005-08-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
949 * config.bfd: Add bfd_elf32_shnbsd_vec and bfd_elf32_shlnbsd_vec
950 to targ_selvecs for sh5*-*-netbsd* and sh64*-*-netbsd*.
952 2005-08-18 Alan Modra <amodra@bigpond.net.au>
954 * coff-a29k.c: Delete.
955 * cpu-a29k.c: Delete.
956 * Makefile.am: Remove mention of a29k files.
957 * aoutf1.h: Remove a29k support.
959 * archures.c: Likewise.
960 * coffcode.h: Likewise.
961 * config.bfd: Likewise.
962 * configure.in: Likewise.
964 * mipsbsd.c: Likewise.
966 * sparclynx.c: Likewise.
967 * targets.c: Likewise.
968 * Makefile.in: Regenerate.
969 * configure: Regenerate.
970 * bfd-in2.h: Regenerate.
971 * po/SRC-POTFILES.in: Regenerate.
973 2005-08-18 Alan Modra <amodra@bigpond.net.au>
975 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Warn on
976 zero size dynamic variables.
977 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
978 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
979 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
980 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
981 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
982 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
983 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
984 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
985 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
986 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
987 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
988 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
989 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
990 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
991 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
992 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
994 2005-08-17 H.J. Lu <hongjiu.lu@intel.com>
997 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Use section lma
999 (_bfd_dwarf2_find_line): Likewise.
1001 2005-08-17 Alan Modra <amodra@bigpond.net.au>
1003 * elf64-mmix.c (mmix_elf_add_symbol_hook): Mark reg section
1005 (mmix_elf_final_link): Check that section hasn't already been
1006 removed before removing.
1007 * mmo.c (mmo_scan): Mark reg contents section SEC_LINKER_CREATED.
1008 (mmo_canonicalize_symtab): Likewise for reg section.
1010 2005-08-17 Alan Modra <amodra@bigpond.net.au>
1012 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Move assert later.
1013 * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Cope with being called
1014 without any got section.
1016 2005-08-17 Danny Smith <dannysmith@users.sourceforge.net>
1018 * cofflink.c (_bfd_coff_generic_relocate_section): Correct
1021 2005-08-17 Alan Modra <amodra@bigpond.net.au>
1023 * elflink.c (_bfd_elf_define_linkage_sym): Don't call
1024 bfd_elf_link_record_dynamic_symbol. Call elf_backend_hide_symbol.
1025 (_bfd_elf_link_renumber_dynsyms): Formatting.
1026 (struct elf_gc_sweep_symbol_info): New.
1027 (elf_gc_sweep_symbol): Rewrite.
1028 (elf_gc_sweep): Adjust params and elf_gc_sweep_symbol call.
1029 Call _bfd_elf_link_renumber_dynsyms.
1030 (bfd_elf_gc_sections): Adjust elf_gc_sweep call.
1032 2005-08-16 Alan Modra <amodra@bigpond.net.au>
1034 * elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count
1037 2005-08-15 Bob Wilson <bob.wilson@acm.org>
1039 * elf32-xtensa.c (ELF_MACHINE_CODE, ELF_MACHINE_ALT1): Swap values
1040 of EM_XTENSA and EM_XTENSA_OLD.
1042 2005-08-16 Alan Modra <amodra@bigpond.net.au>
1044 * elf-bfd.h (_bfd_elf_define_linkage_sym): Declare.
1045 * elflink.c (_bfd_elf_define_linkage_sym): New function, extracted
1047 (_bfd_elf_create_got_section): ..here.
1048 (_bfd_elf_link_create_dynamic_sections): Call it for _DYNAMIC.
1049 (_bfd_elf_create_dynamic_sections): ..and _PROCEDURE_LINKAGE_TABLE_.
1050 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Use
1051 _bfd_elf_define_linkage_sym.
1052 * elf32-frv.c (_frv_create_got_section): Likewise.
1053 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
1055 2005-08-15 Paul Brook <paul@codesourcery.com>
1057 * elf32-arm.c (elf32_arm_howto_table_1): Make R_ARM_PLT32 the same as
1060 2005-08-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1063 * elf64-hppa.c (elf64_hppa_special_sections): Add flag definitions for
1064 .plt, .dlt, .sdata, .sbss and .tbss.
1066 2005-08-12 Dmitry Diky <diwil@spec.ru>
1068 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust relocations
1069 referenced by .section + DISPLACEMENT.
1071 2005-08-10 James E. Wilson <wilson@specifix.com>
1073 * dwarf2.c (scan_unit_for_symbols, case DT_AT_location): Verify that
1074 DW_OP_addr is only opcode in location before using it.
1076 2005-08-09 H.J. Lu <hongjiu.lu@intel.com>
1078 * elfxx-ia64.c (elfNN_ia64_final_link): Reset gp.
1080 2005-08-09 Rodney Brown <rbrown@bravurasolutions.com.au>
1081 Nick Clifton <nickc@redhat.com>
1083 * aix5ppc-core.c (xcoff64_core_p): Constify return_value
1084 variable. Also, do not use core_hdr macro as it evaluates to a
1085 cast of an lvalue which is no longer supported by GCC 4.0.
1087 2005-08-08 Eric Dönges <Eric.Doenges@betty-tv.com>
1089 * archures.c (bfd_mach_msp21): New MSP430 machine number.
1090 * bfd-in2.h: Regenerate.
1091 * cpu-msp430.c (arch_info_struct): Add support for msp430x21xx
1094 2005-08-07 Nick Clifton <nickc@redhat.com>
1095 Paul Brook <paul@codesourcery.com>
1098 * elf32-arm.c (bfd_elf32_close_and_cleanup): Define.
1099 (elf32_arm_close_and_cleanup): New function - walk over the
1100 sections in the bfd that is being closed removing them from the
1101 list of recorded sections.
1102 (unrecord_section_via_map_over_sections): New helper function.
1103 (record_section_with_arm_elf_section_data): Call bfd_malloc
1104 instead of bfd_alloc. Remove unneeded abfd parameter.
1105 (elf32_arm_new_section_hook): Do not pass bfd to
1106 record_section_with_arm_elf_section_data.
1108 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Only define if not
1109 already defined by the target.
1111 2005-08-05 Fred Fish <fnf@specifix.com>
1113 * dwarf2.c (read_rangelist): Use addr_size instead of offset_size
1114 to determine how many bytes to read from each rangelist entry.
1116 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
1118 * bfd.c (bfd_hide_symbol): New.
1119 * bfd-in2.h: Regenerated.
1121 2005-08-04 H.J. Lu <hongjiu.lu@intel.com>
1123 * elf64-x86-64.c (elf64_x86_64_merge_symbol): When mixing a
1124 large common symbol and a normal common symbol, always turn
1125 the large common symbol into a normal one.
1127 2005-08-04 Alan Modra <amodra@bigpond.net.au>
1129 * elf32-ppc.c (struct elf_linker_section): Replace sym_val field
1131 (ppc_elf_relocate_section): Adjust for above.
1132 (create_sdata_sym): New function.
1133 (ppc_elf_create_linker_section): Call it.
1134 (ppc_elf_check_relocs): Correct has_sda_refs and non_got_refs.
1135 Create sdata syms for all SDA relocs.
1136 (ppc_elf_adjust_dynamic_symbol): Don't special case _SDA_BASE_
1138 (ppc_elf_set_sdata_syms): Delete.
1139 * elflink.c (bfd_elf_size_dynamic_sections): Don't create DT_INIT
1140 and DT_FINI tags unless associated section has input.
1141 (bfd_elf_set_symbol, _bfd_elf_provide_symbol): Delete.
1142 (_bfd_elf_provide_section_bound_symbols): Delete.
1143 * bfd-in.h (_bfd_elf_provide_symbol): Delete.
1144 (_bfd_elf_provide_section_bound_symbols): Delete.
1145 * bfd-in2.h: Regenerate.
1147 2005-08-04 Alan Modra <amodra@bigpond.net.au>
1149 * elflink.c (fix_syms, _bfd_elf_fix_excluded_sec_syms): Move to..
1150 * linker.c (fix_syms, _bfd_fix_excluded_sec_syms): ..here.
1151 * bfd-in.h (_bfd_fix_excluded_sec_syms): Rename.
1152 * bfd-in2.h: Regenerate.
1154 2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
1156 * elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got
1157 only if it isn't NULL.
1159 2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
1161 * elf32-i386.c (elf_howto_table): Undo the overflow change for
1162 R_386_PC16 made on 2005-07-18.
1164 * elf64-x86-64.c (x86_64_elf_howto_table): Undo the overflow
1165 change for R_X86_64_PC16 made on 2005-07-18.
1167 2005-08-03 Alan Modra <amodra@bigpond.net.au>
1169 * elf32-ppc.c (struct ppc_elf_link_hash_table): Remove hgot. Use
1170 elf.hgot throughout file.
1172 2005-08-03 Alan Modra <amodra@bigpond.net.au>
1174 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Correct value of
1175 _GLOBAL_OFFSET_TABLE_ for > 32k GOT.
1177 2005-08-02 Andreas Schwab <schwab@suse.de>
1179 * elfxx-ia64.c (struct elfNN_ia64_allocate_data): Add only_got.
1180 (elfNN_ia64_relax_section): Reallocate .rela.got when .got has
1182 (allocate_dynrel_entries): Look only at GOT relocations when
1184 (elfNN_ia64_size_dynamic_sections): Set only_got to false before
1185 calling allocate_dynrel_entries.
1187 2005-08-02 Nick Clifton <nickc@redhat.com>
1190 * elf32-arm.c (struct _arm_elf_section_data): Turn into a typedef
1191 and make the mapcount field unsigned.
1192 (struct section_list): New: Used to keep track of which sections
1193 have an _arm_elf_section_data structure.
1194 (record_section_with_arm_elf_section_data): New function.
1195 (get_arm_elf_section_data): New function.
1196 (unrecord_section_with_arm_elf_section_data): New function.
1197 (elf32_arm_output_symbol_hook): Use get_arm_elf_section_data.
1198 (elf32_arm_new_section_hook): Call
1199 record_section_with_arm_elf_section_data.
1200 (elf32_arm_write_section): Use get_arm_elf_section_data and
1201 unrecord_section_with_arm_elf_section_data.
1203 2005-08-01 Richard Sandiford <richard@codesourcery.com>
1205 * elfxx-mips.c (mips_mach_extends_p): Treat MIPS64 as an extension
1206 of MIPS32 and MIPS64r2 as an extension of MIPS32r2.
1208 2005-07-30 David Daney <ddaney@avtrex.com>
1210 * elflink.c (elf_gc_sweep): Set dynsymcount to correct value.
1212 2005-07-29 David Daney <ddaney@avtrex.com>
1214 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Ignore _gp_disp
1215 if it is in the *ABS* section.
1217 2005-07-29 Paul Brook <paul@codesourcery.com>
1219 * reloc.c: Add BFD_RELOC_ARM_T32_ADD_PC12.
1220 * bfd-in2.h: Regenerate.
1221 * libbfd.h: Regenerate.
1223 2005-07-29 Paul Brook <paul@codesourcery.com>
1225 * reloc.c (BFD_RELOC_ARM_T32_IMM12): Add.
1226 * bfd-in2.h: Regeenrate.
1227 * libbfd.h: Regenerate.
1229 2005-07-29 Pavel Kankovsky <peak@argo.troja.mff.cuni.cz>
1231 * peXXigen.c (pe_print_edata): Compute the size of the export
1232 table from the size field in the DataDictionary and not the size
1233 of the section. Some linkers embed the export table inside a
1236 2005-07-29 Alan Modra <amodra@bigpond.net.au>
1238 * elf-bfd.h (struct elf_backend_data): Add action_discarded.
1239 (enum action_discarded): Move from..
1240 * elflink.c (enum action_discarded): ..here.
1241 (_bfd_elf_default_action_discarded): Rename from elf_action_discarded.
1242 Remove target specific section checks.
1243 (elf_link_input_bfd): Adjust.
1244 * elfxx-target.h (elf_backend_action_discarded): Define.
1245 (elfNN_bed): Init new field.
1246 * bfd-in.h (_bfd_elf_default_action_discarded): Declare.
1247 * bfd-in2.h: Regenerate.
1248 * elf-hppa.h (elf_hppa_action_discarded): New function.
1249 * elf32-hppa.c (elf_backend_action_discarded): Define.
1250 * elf64-hppa.c (elf_backend_action_discarded): Define.
1251 * elf32-ppc.c (ppc_elf_action_discarded): New function.
1252 (elf_backend_action_discarded): Define.
1254 2005-07-27 Alan Modra <amodra@bigpond.net.au>
1256 * elflink.c (fix_syms): Handle symbols defined in input sections.
1258 2005-07-27 Jan Beulich <jbeulich@novell.com>
1260 * elf64-x86-64.c (R_X86_64_standard, R_X86_64_vt_offset): New.
1261 (elf64_x86_64_info_to_howto): Use them.
1263 2005-07-27 Alan Modra <amodra@bigpond.net.au>
1265 * elflink.c (_bfd_elf_merge_symbol): Skip weak redefinition
1266 regardless of strength of previous definition.
1268 2005-07-26 Alan Modra <amodra@bigpond.net.au>
1270 * elflink.c (elf_gc_mark_dynamic_ref_symbol): Handle -shared.
1271 (bfd_elf_gc_sections): Allow -gc-sections when -shared.
1272 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Correct for -shared.
1274 2005-07-26 Alan Modra <amodra@bigpond.net.au>
1276 * elflink.c (elf_gc_sweep): Move gcc_except_table code..
1277 (bfd_elf_gc_sections): ..to here.
1279 2005-07-25 DJ Delorie <dj@redhat.com>
1281 * reloc.c: Remove unused M32C relocs, add BFD_RELOC_M32C_HI8.
1282 * libbfd.h: Regenerate.
1283 * bfd-in2.h: Regenerate.
1285 * elf32-m32c.c (m32c_elf_howto_table): Add R_M32C_8, R_M32C_LO16,
1286 R_M32C_HI8, R_M32C_HI16.
1287 (m32c_reloc_map): Likewise.
1288 (m32c_elf_relocate_section): Add R_M32C_HI8 and R_M32C_HI16.
1290 2005-07-25 Jan Hubicka <jh@suse.cz>
1291 H.J. Lu <hongjiu.lu@intel.com>
1293 * elf-bfd.h (_bfd_elf_large_com_section): New.
1294 * elf.c (_bfd_elf_large_com_section): New. Defined.
1296 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): New.
1297 (elf64_x86_64_elf_section_from_bfd_section): New.
1298 (elf64_x86_64_symbol_processing): New.
1299 (elf64_x86_64_common_definition): New.
1300 (elf64_x86_64_common_section_index): New.
1301 (elf64_x86_64_common_section): New.
1302 (elf64_x86_64_merge_symbol): New.
1303 (elf64_x86_64_additional_program_headers): New.
1304 (elf64_x86_64_special_sections): New.
1305 (elf_backend_section_from_bfd_section): New. Defined.
1306 (elf_backend_add_symbol_hook): Likewise.
1307 (elf_backend_common_section_index): Likewise.
1308 (elf_backend_common_section): Likewise.
1309 (elf_backend_common_definition): Likewise.
1310 (elf_backend_merge_symbol): Likewise.
1311 (elf_backend_special_sections): Likewise.
1312 (elf_backend_additional_program_headers): Likewise.
1314 2005-07-25 H.J. Lu <hongjiu.lu@intel.com>
1316 * elf-bfd.h (elf_backend_data): Add common_definition,
1317 common_section_index, common_section, and merge_symbol.
1318 (_bfd_elf_common_definition): New.
1319 (_bfd_elf_common_section_index): New.
1320 (_bfd_elf_common_section): New.
1322 * elf.c (elf_fake_sections): Don't clear sh_flags.
1324 * elflink.c (_bfd_elf_merge_symbol): Call backend merge_symbol
1326 (is_global_data_symbol_definition): Call backend
1327 common_definition instead of checking SHN_COMMON.
1328 (elf_link_add_object_symbols): Likewise.
1329 (elf_link_output_extsym): Call backend common_section_index
1330 for common section index.
1331 (_bfd_elf_common_definition): New.
1332 (_bfd_elf_common_section_index): New.
1333 (_bfd_elf_common_section): New.
1335 * elfxx-target.h (elf_backend_common_definition): New.
1336 (elf_backend_common_section_index): New.
1337 (elf_backend_common_section): New.
1338 (elf_backend_merge_symbol): New.
1339 (elfNN_bed): Initialize common_definition, common_section_index,
1340 common_section, and merge_symbol.
1342 * section.c (BFD_FAKE_SECTION): New.
1343 (STD_SECTION): Use it.
1344 * bfd-in2.h: Regenerated.
1346 2005-07-23 Olaf Hering <olh@suse.de>
1348 * elflink.c (elf_link_input_bfd): Add '\n' for linker einfo
1351 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
1353 * config.bfd: Remove i[3-7]86-*-rtemself*.
1354 Remove sparc-*-rtemself*.
1356 2005-07-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1358 * elf32-m32r.c (m32r_elf_check_relocs): Fix pc count for
1361 2005-07-21 Ben Elliston <bje@gnu.org>
1363 * Makefile.am (BFD32_BACKENDS): Remove cf-m68klynx.lo.
1364 (BFD32_BACKENDS): Likewise, remove m68klynx.lo.
1365 (BFD32_BACKENDS_CFILES): Remove cf-m68klynx.c, m68klynx.c.
1366 (cf-m68klynx.lo, m68klynx.lo): Remove targets.
1367 * Makefile.in: Regenerate.
1368 * cf-m68klynx.c: Remove.
1369 * m68klynx.c: Likewise.
1370 * configure.in (m68klynx_aout_vec): Remove vector.
1371 (m68klynx_coff_vec): Likewise.
1372 * configure: Regenerate.
1373 * targets.c (m68klynx_aout_vec): Remove extern.
1374 (m68klynx_coff_vec): Likewise.
1375 (_bfd_target_vector): Remove m68klynx_{aout,coff}_vec.
1376 * po/SRC-POTFILES.in: Remove cf-m68klynx.c, m68klynx.c.
1378 2005-07-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1380 * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_REL32.
1381 (m32r_reloc_map): Likewise.
1382 (m32r_elf_relocate_section): Likewise.
1383 (m32r_elf_gc_sweep_hook): Likewise.
1384 (m32r_elf_check_relocs): Likewise.
1386 2005-07-18 Nick Clifton <nickc@redhat.com>
1388 * reloc.c: Add M32C and MS1 relocs.
1389 * bfd-in2.h: Regenerate.
1390 * libbfd.h: Regenerate.
1392 2005-07-18 Nick Clifton <nickc@redhat.com>
1394 * config.bfd: Move m32c entry to correct location.
1395 * archures.c: Likewise.
1396 * configure.in: Likewise.
1397 * configure: Regenerate.
1398 * targets.c: Move ms1 vector to correct location.
1400 2005-07-18 Jan Beulich <jbeulich@novell.com>
1402 * elf32-i386.c (elf_howto_table): Adjust overflow complaint handler
1404 * elf64-x86-64.c (x86_64_elf_howto_table): Adjust overflow complaint
1405 handler for R_X86_64_PC16, R_X86_64_8, and R_X86_64_DTPOFF.
1407 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
1411 * elflink.c (elf_link_add_object_symbols): Also append the version
1412 name to non-hidden absolute symbols that are functions.
1414 2005-07-16 Alan Modra <amodra@bigpond.net.au>
1416 * elf32-ppc.c (ppc_elf_set_sdata_syms): Return void. Remove hack
1417 for zero size sections. Don't set .sbss syms here.
1418 * elf32-ppc.h (ppc_elf_set_sdata_syms): Adjust prototype.
1420 2005-07-16 Alan Modra <amodra@bigpond.net.au>
1422 * Makefile.am: Run "make dep-am".
1423 * Makefile.in: Regenerate.
1425 2005-07-15 Bob Wilson <bob.wilson@acm.org>
1427 * elf32-xtensa.c (vsprint_msg): Add prototype.
1428 (build_encoding_error_message): Delete. Code moved into....
1429 (elf_xtensa_do_reloc): ....here, and changed to give better
1430 error messages for out of range literals.
1432 2005-07-15 Alan Modra <amodra@bigpond.net.au>
1434 * elflink.c (bfd_elf_record_link_assignment): Remove output_bfd param.
1435 (_bfd_elf_provide_symbol): Allow redefinition of weak syms and those
1436 defined in output sections. Call bfd_elf_record_link_assignment.
1437 * bfd-in.h (bfd_elf_record_link_assignment): Update prototype.
1438 * bfd-in2.h: Regenerate.
1440 2005-07-14 Jim Blandy <jimb@redhat.com>
1442 Add support for m32c-*-elf (Renesas m32c and m16c).
1443 * Makefile.am (ALL_MACHINES): Add cpu-m32c.lo.
1444 (ALL_MACHINES_CFILES): Add cpu-m32c.c.
1445 (BFD32_BACKENDS): Add elf32-m32c.lo.
1446 (BFD32_BACKENDS_CFILES): Add elf32-m32c.c.
1447 (cpu-m32c.lo, elf32-m32c.lo): New rules, generated by 'make dep-am'.
1448 * Makefile.in: Regenerated.
1449 * archures.c (bfd_arch_m32c, bfd_mach_m16c, bfd_mach_m32c): New
1450 arch and mach codes.
1451 (bfd_m32c_arch): New arch info object.
1452 (bfd_archures_list): List bfd_m32c_arch.
1453 * bfd-in2.h: Regenerated.
1454 * config.bfd: Add case for the m32c.
1455 * configure.in: Add case for the m32c.
1456 * configure: Regenerated.
1457 * cpu-m32c.c, elf32-m32c.c: New files.
1458 * libbfd.h: Regenerated.
1459 * targets.c (bfd_elf32_m32c_vec): Declare.
1460 (_bfd_target_vector): List bfd_elf32_m32c_vec.
1462 2005-07-14 Alan Modra <amodra@bigpond.net.au>
1464 * bfd-in.h (_bfd_elf_fix_excluded_sec_syms): Declare.
1465 (_bfd_elf_provide_section_bound_symbols): Remove param name.
1467 * bfd-in2.h: Regenerate.
1468 * elflink.c (bfd_elf_gc_sections): Don't call generic function.
1469 (_bfd_elf_provide_symbol): Formatting.
1470 (_bfd_elf_provide_section_bound_symbols): Remove all hacks, just
1471 create section relative syms.
1472 (fix_syms, _bfd_elf_fix_excluded_sec_syms): New functions.
1473 * elf32-ppc.c (ppc_elf_set_sdata_syms): Use
1474 _bfd_elf_provide_section_bound_symbols.
1475 * reloc.c (bfd_mark_used_section): Delete.
1476 (bfd_generic_gc_sections): Don't call the above.
1478 2005-07-14 Paul Woegerer <paul.woegerer@nsc.com>
1481 * cache.c (bfd_last_cache): Initialise to NULL.
1483 2005-07-14 Daniel Marques <marques@cs.cornell.edu>
1484 Nick Clifton <nickc@redhat.com>
1486 * coff-alpha.c (alpha_ecoff_bad_format_hook): Detect compressed
1487 Alpha binaries and issue a helpful error message.
1488 (alpha_ecoff_swap_reloc_out): Increase maximum allowed internal
1489 symbol index to 15 to allow for binaries produced by DEC
1492 2005-07-13 Steve Ellcey <sje@cup.hp.com>
1494 * bfd.m4 (BFD_NEED_DECLARATION): Remove.
1496 2005-07-12 Alan Modra <amodra@bigpond.net.au>
1498 * elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub
1501 2005-07-12 Alan Modra <amodra@bigpond.net.au>
1503 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Warning fix.
1505 2005-07-12 Alan Modra <amodra@bigpond.net.au>
1507 * elf32-ppc.c (ppc_elf_set_sdata_syms): Correct __sbss_start value.
1509 2005-07-11 H.J. Lu <hongjiu.lu@intel.com>
1511 * elflink.c (_bfd_elf_symbol_refs_local_p): Revert the last
1514 2005-07-08 Paul Koning <pkoning@equallogic.com>
1516 * dwarf2.c (read_address): Check sign_extend_vma to handle targets
1517 where addresses are sign extended.
1519 2005-07-08 Ralf Corsepius <ralf.corsepius@rtems.org>
1521 * config.bfd: Mark i960-*-rtems*, or32-*-rtems* as obsolete.
1522 Mark a29k-*rtems*, hppa*-*-rtems*, *-go32-rtems*,
1523 i[3-7]86*-*-rtemscoff*, mips*el-*-rtems*, powerpcle-*-rtems*,
1524 sparc*-*-rtemsaout* as removed
1526 2005-07-08 Alan Modra <amodra@bigpond.net.au>
1528 * elf-hppa.h (elf_hppa_final_link): Use gp val of zero when none
1529 of the usual sections are found.
1530 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Tidy.
1531 Strip .dynbss if it is zero size.
1532 * elf32-arm.c (elf32_arm_size_dynamic_sections): Likewise.
1533 * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
1534 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
1535 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise, and
1537 (i370_elf_finish_dynamic_sections): Don't attempt to write .got
1538 when it is zero size.
1539 * elf32-i386.c (elf_i386_size_dynamic_sections): Correct handling
1540 of .dynbss and zero size sections.
1541 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Strip .dynbss if
1543 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Tidy. Strip
1544 .dynbss if zero size.
1545 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise, .dynsbss
1547 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1548 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1549 * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
1550 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Tidy. Strip
1551 .plt.* and .got.plt.* if zero size.
1552 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Tidy. Strip
1553 .got* and .dynbss if zero size.
1554 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Tidy. Strip
1555 * elf64-ppc.c (create_linkage_sections): Create branch lookup table
1556 in .data.rel.ro.brlt or .rodata.brlt, and similarly for associated
1558 (create_got_section): Always create new .got and .rela.got sections.
1559 (ppc64_elf_size_dynamic_sections): Tidy. Strip .dynbss if zero size.
1560 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1561 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
1562 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Handle
1563 dynamic bss sections correctly.
1564 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Tidy.
1565 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Tidy. Strip
1566 .dynbss if zero size.
1568 2005-07-08 Ben Elliston <bje@au.ibm.com>
1570 * elf32-xtensa.c: Include <stdarg.h> unconditionally, not only
1571 when ANSI_PROTOTYPES is defined. Remove #ifdef logic.
1573 2005-07-07 H.J. Lu <hongjiu.lu@intel.com>
1575 * elf-bfd.h (elf_backend_data): Add special_sections.
1577 * elf.c (_bfd_elf_get_sec_type_attr): Check special_sections
1580 * elf32-arm.c (elf_backend_get_sec_type_attr): Removed.
1581 (elf_backend_special_sections): New. Defined.
1582 * elf32-m32r.c: Likewise.
1583 * elf32-m68hc11.c: Likewise.
1584 * elf32-m68hc12.c: Likewise.
1585 * elf32-mcore.c: Likewise.
1586 * elf32-sh64.c: Likewise.
1587 * elf32-v850.c: Likewise.
1588 * elf32-xtensa.c: Likewise.
1589 * elf64-alpha.c: Likewise.
1590 * elf64-hppa.c: Likewise.
1591 * elf64-ppc.c: Likewise.
1592 * elf64-sh64.c: Likewise.
1593 * elfxx-ia64.c: Likewise.
1594 * elfxx-mips.c: Likewise.
1595 * elfxx-mips.h: Likewise.
1597 * elfxx-target.h (elf_backend_special_sections): New.
1598 (elfNN_bed): Initialize special_sections.
1600 2005-07-07 Bob Wilson <bob.wilson@acm.org>
1602 * xtensa-modules.c: Update tables with Xtensa MMU features.
1604 2005-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1606 * elf32-xtensa.c (vsprint_msg): Add format attribute. Fix
1608 * vms.h (_bfd_vms_debug): Add format attribute.
1609 (_bfd_vms_debug, _bfd_hexdump): Fix typos.
1611 2005-07-07 H.J. Lu <hongjiu.lu@intel.com>
1614 * elflink.c (_bfd_elf_symbol_refs_local_p): Only undefined
1615 symbol with default visibility is local.
1617 2005-07-07 Ben Elliston <bje@gnu.org>
1619 * config.bfd: Mark m68*-*-rtemscoff as obsolete.
1621 2005-07-06 H.J. Lu <hongjiu.lu@intel.com>
1623 * dwarf2.c (varinfo): Add addr.
1624 (lookup_symbol_in_variable_table): Also check addr.
1625 (scan_unit_for_symbols): Set addr for variable.
1626 (comp_unit_find_line): Updated.
1628 2005-07-06 Nick Clifton <nickc@redhat.com>
1630 * coff-alpha.c (alpha_adjust_reloc_in): Issue an informative error
1631 message if an unknown reloc is encountered.
1632 (alpha_relocate_section): Likewise.
1634 * ecoff.c (_bfd_ecoff_write_object_contents): Cope with a reloc
1635 with a missing howto field.
1637 2005-07-06 Alan Modra <amodra@bigpond.net.au>
1639 * po/SRC-POTFILES.in: Add cpu-ms1.c, elf32-ms1.c, elf-vxworks.c,
1642 2005-07-05 Paul Brook <paul@codesourcery.com>
1644 * elf32-ppc.c (ppc_elf_vxworks_special_sections): Remove.
1645 (ppc_elf_vxworks_get_sec_type_attr): New function.
1646 (elf_backend_special_sections): Remove vxwords definition.
1647 (elf_backend_get_sec_type_attr): Define for vxworks.
1649 2005-07-05 Nick Clifton <nickc@redhat.com>
1651 * elf64-ppc.c (ppc64_elf_info_to_howto): Fix typo.
1653 2005-07-05 Paul Brook <paul@codesourcery.com>
1655 * config.bfd: Add separate case for ppc-vxworks.
1656 * configure: Regenerate.
1657 * configure.in: Include elf-vxworks.lo on ppc targets.
1658 * elf-vxworks.c (elf_vxworks_final_write_processing): Handle
1660 * elf32-ppc.c: Add VxWorks target vec. Include elf-vxworks.h.
1661 (PLT_ENTRY_SIZE, PLT_INITIAL_ENTRY_SIZE, PLT_SLOT_SIZE): Remove.
1662 (VXWORKS_PLT_ENTRY_SIZE, ppc_elf_vxworks_plt_entry,
1663 ppc_elf_vxworks_pic_plt_entry, VXWORKS_PLT_INITIAL_ENTRY_SIZE,
1664 ppc_elf_vxworks_plt0_entry, ppc_elf_vxworks_pic_plt0_entry,
1665 VXWORKS_PLT_NON_JMP_SLOT_RELOCS, VXWORKS_PLTRESOLVE_RELOCS,
1666 VXWORKS_PLTRESOLVE_RELOCS_SHLIB): New.
1667 (ppc_elf_link_hash_table): Add srelplt2, sgotplt, hgot, hplt,
1668 is_vxworks, plt_entry_size, plt_slot_size, plt_initial_entry_size.
1669 (ppc_elf_link_hash_table_create): Initialize hadtab plt fields.
1670 (ppc_elf_create_got): Create .got.plt for VxWorks.
1671 (ppc_elf_create_dynamic_sections): Create unloaded plt relocation
1672 section for VxWorks.
1673 (ppc_elf_select_plt_layout): Handle VxWorks plt format.
1674 (allocate_got): VxWorks does not need a got header.
1675 (allocate_dynrelocs): Handle VxWorks plt format.
1676 (ppc_elf_size_dynamic_sections): Save _G_O_T_ and _P_L_T_ symbols for
1677 VxWorks. Handle VxWorks plt/got.
1678 (ppc_elf_finish_dynamic_sections): Fill in VxWorks plt.
1679 (ppc_elf_vxworks_special_sections): New.
1680 (ppc_elf_vxworks_link_hash_table_create,
1681 ppc_elf_vxworks_add_symbol_hook,
1682 elf_i386_vxworks_link_output_symbol_hook,
1683 ppc_elf_vxworks_final_write_processing): New functions.
1684 * targets.c (bfd_elf32_powerpc_vxworks_vec): Declare.
1685 (_bfd_target_vector): Use it.
1687 2005-07-05 Jakub Jelinek <jakub@redhat.com>
1689 * libbfd-in.h (struct artdata): Add extended_names_size field.
1690 * libbfd.h: Rebuilt.
1691 * coff-rs600.c (_bfd_xcoff_archive_p): Don't clear fields in freshly
1692 allocated object by bfd_zalloc.
1693 * coff64-rs6000.c (xcoff64_archive_p): Likewise.
1694 * ecoff.c (_bfd_ecoff_archive_p): Likewise.
1695 * archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p): Likewise.
1696 (get_extended_arelt_filename): Fail if index is bigger or equal to
1697 extended_names_size.
1698 (_bfd_generic_read_ar_hdr_mag): Don't set bfd_error_malformed_archive,
1699 get_extended_arelt_filename already did that.
1700 (_bfd_slurp_extended_name_table): Initialize extended_names_size field.
1701 Allocate one extra byte and clear it, in case extended names table
1704 * libbfd-in.h (bfd_malloc2, bfd_realloc2, bfd_zmalloc2, bfd_alloc2,
1705 bfd_zalloc2): New prototypes.
1706 * bfd-in.h (HALF_BFD_SIZE_TYPE): Define.
1707 * libbfd.c (bfd_malloc2, bfd_realloc2, bfd_zmalloc2): New functions.
1708 * opncls.c (bfd_alloc2, bfd_zalloc2): New functions.
1709 * elf.c (bfd_elf_get_elf_syms, setup_group, assign_section_numbers,
1710 elf_map_symbols, map_sections_to_segments,
1711 assign_file_positions_for_segments, copy_private_bfd_data,
1712 swap_out_syms, _bfd_elf_slurp_version_tables): Use bfd_*alloc2
1714 * bfd-in2.h: Rebuilt.
1715 * libbfd.h: Rebuilt.
1717 * elf.c (_bfd_elf_print_private_bfd_data): Don't crash on bogus
1718 verdef or verneed section.
1719 (_bfd_elf_slurp_version_tables): Handle corrupt verdef and/or
1720 verneed sections gracefully.
1721 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto_ptr): Don't crash on
1722 bogus relocation values.
1723 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
1724 * elf64-s390.c (elf_s390_info_to_howto): Likewise.
1725 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
1726 * elf64-x86-64.c (elf64_x86_64_info_to_howto): Likewise.
1727 * elfxx-ia64.c (lookup_howto): Likewise.
1729 * elf.c (bfd_elf_get_str_section): Allocate an extra byte after
1730 the end of strtab and clear it.
1733 2005-07-05 Nick Clifton <nickc@redhat.com>
1735 * po/vi.po: New Vietnamese translation.
1736 * configure.in (ALL_LINGUAS): Add vi.
1737 * configure: Regenerate.
1739 2005-07-05 Peter S. Mazinger <ps.m@gmx.net>
1741 * elf32-arm.c (elf32_arm_size_dynamic_sections): Fix a typo and
1742 touchup logic like i386/ppc.
1744 2005-07-05 Alan Modra <amodra@bigpond.net.au>
1746 * elf.c (special_sections): Move const qualifier.
1747 (special_sections_b..special_sections_t): Likewise.
1748 * elf32-arm.c (elf32_arm_symbian_get_sec_type_attr): Remove duplicate
1750 (elf32_arm_symbian_special_sections): Move const qualifier.
1751 * elf32-m32r.c: Similarly.
1752 * elf32-m68hc11.c: Similarly.
1753 * elf32-m68hc12.c: Similarly.
1754 * elf32-mcore.c: Similarly.
1755 * elf32-ppc.c: Similarly.
1756 * elf32-sh64.c: Similarly.
1757 * elf32-v850.c: Similarly.
1758 * elf32-xtensa.c: Similarly.
1759 * elf64-alpha.c: Similarly.
1760 * elf64-hppa.c: Similarly.
1761 * elf64-ppc.c: Similarly.
1762 * elf64-sh64.c: Similarly.
1763 * elfxx-ia64.c: Similarly.
1764 * elfxx-mips.c: Similarly.
1766 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1768 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Use
1769 info->executable instead of !info->shared where appropriate.
1771 2005-07-04 Alan Modra <amodra@bigpond.net.au>
1774 * elf.c (assign_file_positions_for_segments): Remove excluded
1775 sections from the segment map.
1777 2005-07-04 Alan Modra <amodra@bigpond.net.au>
1780 * elf-bfd.h (struct elf_backend_data): Add get_sec_type_attr. Delete
1782 (_bfd_elf_get_special_section): Declare.
1783 (bfd_elf_special_section): Update prototype.
1784 * elf.c (special_sections): Remove unused outer entries.
1785 (get_special_section): Delete.
1786 (_bfd_elf_get_special_section): New function.
1787 (_bfd_elf_get_sec_type_attr): Replace "name" arg with "sec". Update
1788 special_sections indexing.
1789 (_bfd_elf_new_section_hook): Call backend get_sec_type_attr.
1790 * elf32-arm.c (symbian_special_sections_d): Delete.
1791 (symbian_special_sections_g, symbian_special_sections_h): Delete.
1792 (symbian_special_sections_i, symbian_special_sections_f): Delete.
1793 (symbian_special_sections_p): Delete.
1794 (elf32_arm_symbian_special_sections): Merge above to here.
1795 (elf32_arm_symbian_get_sec_type_attr): New function.
1796 (elf_backend_special_sections): Don't define.
1797 (elf_backend_get_sec_type_attr): Define.
1798 * elf32-m32r.c: Similarly to elf32-arm.c.
1799 * elf32-m68hc11.c: Likewise.
1800 * elf32-m68hc12.c: Likewise.
1801 * elf32-mcore.c: Likewise.
1802 * elf32-sh64.c: Likewise.
1803 * elf32-v850.c: Likewise.
1804 * elf32-xtensa.c: Likewise.
1805 * elf64-alpha.c: Likewise.
1806 * elf64-hppa.c: Likewise.
1807 * elf64-ppc.c: Likewise.
1808 * elf64-sh64.c: Likewise.
1809 * elfxx-ia64.c: Likewise.
1810 * elfxx-mips.c: Likewise.
1811 * elf32-ppc.c: Likewise.
1812 (bfd_elf_special_section ppc_alt_plt): New. Use it if .plt loadable.
1813 * elfxx-mips.h (_bfd_mips_elf_get_sec_type_attr): Declare.
1814 (_bfd_mips_elf_special_sections, elf_backend_special_sections): Delete.
1815 (elf_backend_get_sec_type_attr): Define.
1816 * elfxx-target.h (elf_backend_get_sec_type_attr): Define.
1817 (elf_backend_special_sections): Don't define.
1818 (elfNN_bed): Update.
1820 2005-07-01 Nick Clifton <nickc@redhat.com>
1822 * cpu-d10v.c: Update to ISO C90 style function declarations and
1824 * cpu-d30v.c: Likewsie.
1825 * cpu-i370.c: Likewsie.
1826 * cpu-xstormy16.c: Likewsie.
1827 * elf32-arc.c: Likewsie.
1828 * elf32-d10v.c: Likewsie.
1829 * elf32-d30v.c: Likewsie.
1830 * elf32-dlx.c: Likewsie.
1831 * elf32-i370.c: Likewsie.
1832 * elf32-i960.c: Likewsie.
1833 * elf32-ip2k.c: Likewsie.
1834 * elf32-m32r.c: Likewsie.
1835 * elf32-mcore.c: Likewsie.
1836 * elf32-openrisc.c: Likewsie.
1837 * elf32-or32.c: Likewsie.
1838 * elf32-pj.c: Likewsie.
1839 * elf32-v850.c: Likewsie.
1840 * elf32-xstormy16.c: Likewsie.
1842 2005-07-01 Alan Modra <amodra@bigpond.net.au>
1844 * elf64-alpha.c (elf64_alpha_create_got_section): Always create
1846 (elf64_alpha_create_dynamic_sections): Always make new sections
1847 by using bfd_make_section_anyway_with_flags. Check that .got not
1849 (elf64_alpha_check_relocs): Delete "got_created". Use tdata->gotobj
1852 2005-06-30 Alan Modra <amodra@bigpond.net.au>
1854 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Ignore dynamic
1855 _SDA_BASE_ and _SDA2_BASE_ symbols.
1856 * elflink.c (_bfd_elf_provide_symbol): Correct comment. Define
1857 sym if not def_regular.
1858 (_bfd_elf_provide_section_bound_symbols): Similarly.
1860 2005-06-30 Ben Elliston <bje@gnu.org>
1862 * config.bfd: Mark as obsolete:
1867 2005-06-29 Alan Modra <amodra@bigpond.net.au>
1869 * elflink.c (_bfd_elf_gc_mark): Mark sections referenced by
1870 .eh_frame specially..
1871 (bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame.
1872 Don't recheck sections we have already marked.
1873 (elf_gc_sweep): Keep non-code sections referenced from .eh_frame.
1874 * section.c (struct bfd_section): Add gc_mark_from_eh.
1875 (STD_SECTION): Adjust.
1876 * ecoff.c (bfd_debug_section): Adjust.
1877 * bfd-in2.h: Regenerate.
1879 2005-06-29 Alan Modra <amodra@bigpond.net.au>
1881 * elflink.c (elf_gc_sweep): Do not refcount on sections that have
1882 not been processed by check_relocs.
1884 2005-06-29 Paul Brook <paul@codesourcery.com>
1886 * bfd-in.h (_bfd_elf_provide_symbol): Update prototype.
1887 * bfd-in2.h: Regenerate.
1888 * elf32-ppc.c (ppc_elf_set_sdata_syms): Make sdata symbols section
1890 * elflink.c (bfd_elf_set_symbol): Add section argument.
1891 (_bfd_elf_provide_symbol): Ditto.
1892 (_bfd_elf_provide_section_bound_symbols): Pass NULL section argument.
1894 2005-06-27 Carlos O'Donell <carlos@systemhalted.org>
1896 * bfd/elf32-hppa.c (struct elf32_hppa_stub_hash_entry):
1897 Use bh_root, and hh.
1898 (struct elf32_hppa_link_hash_entry): Use eh, and hsh_cache.
1899 (struct elf32_hppa_dyn_reloc_entry): Use hdh_next.
1900 (struct elf32_hppa_link_hash_table): Use etab and bstab.
1901 (stub_hash_newfunc): Use hh.
1902 (hppa_link_hash_newfunc): Use hsh_cache.
1903 (elf32_hppa_link_hash_table_create): Use etab, and bstab.
1904 (elf32_hppa_link_hash_table_free): Use bstab.
1905 (hppa_stub_name): Use eh.
1906 (hppa_get_stub_entry): Use hh, hsh_entry, and hsh_cache.
1907 (hppa_add_stub): Use bstab.
1908 (hppa_type_of_stub): Use eh.
1909 (hppa_build_one_stub): Use hh and bh_root.
1910 (elf32_hppa_copy_indirect_symbol): Use hdh_next.
1911 (elf32_hppa_check_relocs): Use eh, etab, and hdh_next.
1912 (elf32_hppa_gc_sweep_hook): Use hdh_next.
1913 (elf32_hppa_adjust_dynamic_symbol): Use hdh_next, and etab.
1914 (allocate_plt_static): Use etab.
1915 (allocate_dynrelocs): Use etab, and hdh_next.
1916 (readonly_dynrelocs): Use hdh_next.
1917 (elf32_hppa_size_dynamic_sections): Use etab, and hdh_next.
1918 (get_local_syms): Use eh, bstab, and hh.
1919 (elf32_hppa_size_stubs): Use eh, bstab, and hh.
1920 (elf32_hppa_set_gp): Use etab.
1921 (elf32_hppa_build_stubs): Use bstab.
1922 (final_link_relocate): Use eh, bh_root.
1923 (elf32_hppa_relocate_section): Use elf, etab.
1924 (elf32_hppa_finish_dynamic_sections): Use etab.
1926 2005-06-27 H.J. Lu <hongjiu.lu@intel.com>
1928 * elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): Remove
1931 2005-06-21 Carlos O'Donell <carlos@systemhalted.org>
1933 * bfd/elf32-hppa.c (hppa_elf_hash_entry): Define.
1934 (hppa_stub_hash_entry): Define.
1935 (stub_hash_newfunc): Rename variables.
1936 (hppa_link_hash_newfunc): Likewise.
1937 (elf32_hppa_link_hash_table_free): Likewise.
1938 (hppa_stub_name): Likewise.
1939 (hppa_get_stub_entry): Likewise.
1940 (hppa_add_stub): Likewise.
1941 (hppa_type_of_stub): Likewise.
1942 (hppa_build_one_stub): Likewise.
1943 (hppa_size_one_stub): Likewise.
1944 (elf32_hppa_create_dynamic_sections): Likewise.
1945 (elf32_hppa_copy_indirect_symbol): Likewise.
1946 (elf32_hppa_check_relocs): Likewise.
1947 (elf32_hppa_gc_mark_hook): Likewise.
1948 (elf32_hppa_gc_sweep_hook): Likewise.
1949 (elf32_hppa_grok_psinfo): Likewise.
1950 (elf32_hppa_hide_symbol): Likewise.
1951 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1952 (allocate_dynrelocs): Likewise.
1953 (clobber_millicode_symbols): Likewise.
1954 (readonly_dynrelocs): Likewise.
1955 (elf32_hppa_size_dynamic_sections): Likewise.
1956 (get_local_syms): Likewise.
1957 (elf32_hppa_size_stubs): Likewise.
1958 (hppa_record_segment_addr): Likewise.
1959 (final_link_relocate): Likewise.
1960 (elf32_hppa_relocate_section): Likewise.
1961 (elf32_hppa_finish_dynamic_symbol): Likewise.
1963 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
1966 * elf-m10300.c (mn10300_elf_check_relocs): Handle indirect
1968 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
1969 * elf32-avr.c (elf32_avr_check_relocs): Likewise.
1970 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1971 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
1972 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
1973 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
1974 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
1975 * elf32-i370.c (i370_elf_check_relocs): Likewise.
1976 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1977 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1978 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1979 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1980 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1981 * elf32-ms1.c (ms1_elf_check_relocs): Likewise.
1982 * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
1983 * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
1984 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1985 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1986 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1987 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1988 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1989 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1990 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1991 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1992 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
1993 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1994 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1996 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
1999 * elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect
2002 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
2005 * elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol.
2006 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
2008 2005-06-18 H.J. Lu <hongjiu.lu@intel.com>
2010 * reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and
2011 BFD_RELOC_X86_64_GOTPC32.
2012 * bfd-in2.h: Regenerated.
2014 2005-06-17 Jakub Jelinek <jakub@redhat.com>
2016 * elf.c (bfd_section_from_shdr): Kill bogus warning.
2018 * elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for
2019 symbol, relocation, group or versym sections.
2021 * coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs
2023 * peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address
2024 doesn't point into the section.
2026 2005-06-17 Jan Beulich <jbeulich@novell.com>
2028 * bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64
2029 and BFD_RELOC_X86_64_GOTPC32.
2030 * libbfd.h (bfd_reloc_code_real_names): Likewise.
2031 * elf64-x86-64.c (x86_64_elf_howto_table): Add entries for
2032 R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
2033 (x86_64_reloc_map): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64,
2034 and R_X86_64_GOTPC32.
2035 (elf64_x86_64_info_to_howto): Adjust bounding relocation type.
2036 (elf64_x86_64_check_relocs): Also handle R_X86_64_PC64,
2037 R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
2038 (elf64_x86_64_relocate_section): Likewise.
2039 (elf64_x86_64_gc_sweep_hook): Also handle R_X86_64_PC64.
2041 2005-06-15 Mark Kettenis <kettenis@gnu.org>
2043 * archive.c: Include "libiberty.h".
2045 2005-06-15 Nick Clifton <nickc@redhat.com>
2047 * elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries
2048 produced by the GreenHills toolchain can be assimilated.
2050 2005-06-14 Steve Ellcey <sje@cup.hp.com>
2052 * som.c (som_find_inliner_info): New.
2054 2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
2056 * elflink.c (_bfd_elf_merge_symbol): Fix a typo in comment.
2058 2005-06-14 Jakub Jelinek <jakub@redhat.com>
2060 * elf.c (bfd_section_from_shdr): Fail if name is NULL.
2061 Prevent endless recursion on broken objects.
2063 * archive.c (do_slurp_coff_armap): Check for overflows.
2065 2005-06-10 Daniel Jacobowitz <dan@codesourcery.com>
2067 * elfcode.h (elf_write_relocs): Do nothing if there are no
2070 2005-06-10 Alan Modra <amodra@bigpond.net.au>
2072 * dwarf2.c (decode_line_info): Revert last change. Instead set
2073 initial low_pc to -1 to avoid need to test whether loc_pc has
2076 2005-06-09 Christopher Faylor <cgf@timesys.com>
2078 * coffcode.h (sec_to_styp_flags): Set appropriate section flags when
2079 either SEC_ALLOC OR SEC_LOAD.
2081 2005-06-09 Christopher Faylor <cgf@timesys.com>
2083 * coffcode.h (sec_to_styp_flags): Remove read/write flags from noload
2084 section header. Do not add STYP_NOLOAD since it does not appear to be
2087 2005-06-09 H.J. Lu <hongjiu.lu@intel.com>
2090 * dwarf2.c (lookup_address_in_line_info_table): Restore code
2091 handling NULL function info, removed with 2005-04-03 change.
2093 2005-06-08 Mark Mitchell <mark@codesourcery.com>
2095 * opncls.c (bfd_fopen): Mark returned BFD as cacheable if FD == -1.
2097 2005-06-09 Alan Modra <amodra@bigpond.net.au>
2099 * elflink.c (elf_mark_used_section): Delete.
2100 (bfd_elf_gc_sections): Call bfd_generic_gc_sections.
2101 * reloc.c (bfd_mark_used_section): New function.
2102 (bfd_generic_gc_sections): Call bfd_mark_used_section.
2104 2005-06-08 Alan Modra <amodra@bigpond.net.au>
2106 * opncls.c (bfd_fopen): Don't set bfd_error unconditionally.
2107 (bfd_fdopenr): Same.
2109 2005-06-07 Mark Mitchell <mark@codesourcery.com>
2111 * opncls.c (bfd_fdopenr): Add missing break statements.
2113 2005-06-07 Mark Mitchell <mark@codesourcery.com>
2115 * opncls.c (bfd_fopen): New API.
2116 (bfd_openr): Use it.
2117 (bfd_fdopenr): Likewise.
2118 * bfd-in2.h: Regenerated.
2120 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
2121 Michael Snyder <msnyder@redhat.com>
2122 Stan Cox <scox@redhat.com>
2124 * Makefile.am (ALL_MACHINES): Add ms1 support.
2125 (ALL_MACHINES_CFILES): Same.
2126 (BFD32_BACKENDS): Same.
2127 (BFD32_BACKENDS_CFILES): Same.
2129 * Makefile.in: Regenerate.
2131 * archures.c (bfd_architecture): Add ms1 entries.
2132 Externalize bfd_ms1_arch.
2133 (bfd_archures_list): Add bfd_ms1_arch.
2135 * bfd-in2.h: Regenerate.
2137 * cpu-ms1.c: New file.
2139 * elf32-ms1.c: New file.
2141 * targets.c: Define extern of bfd_elf32_ms1_vec.
2142 Add bfd_elf32_ms1_vec to _bfd_target_vector.
2144 * configure.in: Add bfd_elf32_ms1_vec case.
2146 * configure: Regenerate.
2148 * config.bfd: Add ms1-*-elf to table.
2150 2005-06-07 Zack Weinberg <zack@codesourcery.com>
2152 * coff-i386.c: Change md_apply_fix3 to md_apply_fix in comment.
2154 2005-06-07 Alan Modra <amodra@bigpond.net.au>
2156 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Init _bfd_find_line.
2157 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
2159 2005-06-06 H.J. Lu <hongjiu.lu@intel.com>
2162 * bfd.c (bfd_find_line): New.
2164 * dwarf2.c (comp_unit): Add variable_table.
2165 (funcinfo): Add file, line, and sec.
2167 (lookup_symbol_in_function_table): New.
2168 (lookup_symbol_in_variable_table): New.
2169 (scan_unit_for_functions): Renamed to ...
2170 (scan_unit_for_symbols): This. Handle DW_TAG_entry_point and
2172 (comp_unit_find_nearest_line): Updated.
2173 (comp_unit_find_line): New.
2174 (_bfd_dwarf2_find_line): New.
2176 * elf-bfd.h (_bfd_elf_find_line): New.
2177 (_bfd_generic_find_line): New. Defined.
2179 * elf.c (_bfd_elf_find_line): New.
2181 * libbfd-in.h (_bfd_dwarf2_find_line): New.
2182 (_bfd_generic_find_line): New.
2184 * bfd-in2.h: Regenerated.
2185 * libbfd.h: Likewise.
2187 * libbfd.c (_bfd_generic_find_line): New.
2189 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize _bfd_find_line
2190 with _bfd_generic_find_line.
2191 (bfd_target): Add _bfd_find_line.
2193 2005-06-06 H.J. Lu <hongjiu.lu@intel.com>
2195 * dwarf2.c (decode_line_info): Properly set low_pc.
2197 2005-06-06 Alan Modra <amodra@bigpond.net.au>
2199 * elf64-pcc.c (ppc64_elf_gc_mark_hook): For the local sym in .opd
2200 case, include addend when indexing .opd section map.
2201 (ppc64_elf_edit_opd): Add no_opd_opt param. Do nothing besides
2202 clear opd_adjust array if no_opd_opt set. Tidy code.
2203 Ignore zero size .opd. Check bfd_alloc return value.
2204 (ppc_stub_name): Return immediately on bfd_malloc fail.
2205 * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
2207 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
2209 * dwarf2.c (comp_unit): Fix a typo in comment.
2211 2005-06-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2213 * elf32-vax.c (rtype_to_howto): Remove PARAMS.
2214 (reloc_type_lookup): Dito.
2215 (elf_vax_discard_copies): Dito.
2216 (elf_vax_instantiate_got_entries): Dito.
2217 (elf_vax_link_hash_traverse): Dito.
2218 (elf_vax_link_hash_newfunc): Dito.
2219 (elf_vax_link_hash_table_create): Dito.
2220 (elf32_vax_set_private_flags): Dito.
2221 (elf32_vax_merge_private_bfd_data): Dito.
2222 (elf32_vax_print_private_bfd_data): Dito.
2223 (elf_vax_check_relocs): Dito.
2224 (elf_vax_gc_mark_hook): Dito.
2225 (elf_vax_gc_sweep_hook): Dito.
2226 (elf_vax_size_dynamic_sections): Dito.
2227 (elf_vax_discard_copies): Dito.
2228 (elf_vax_instantiate_got_entries): Dito.
2229 (elf_vax_relocate_section): Dito.
2230 (elf_vax_finish_dynamic_symbol): Dito.
2231 (elf_vax_finish_dynamic_sections): Dito.
2232 (elf_vax_hash_table): Break-up of line isn't needed.
2233 (elf_vax_check_relocs): Remove leading whitespace
2234 (elf_vax_relocate_section): Remove redundant whitespace
2235 (elf_vax_link_hash_newfunc): Don't cast NULL.
2236 (elf_vax_link_hash_table_create): Dito.
2237 * cpu-vax.c (bfd_vax_arch) Remove a trailing space.
2239 2005-06-03 Alan Modra <amodra@bigpond.net.au>
2242 * configure.in: Bump version
2243 * configure: Regenerate.
2244 * elflink.c (elf_link_input_bfd): Use einfo linker callback to print
2245 discarded section sym refs and kill linker output.
2246 * simple.c (simple_dummy_einfo): New function.
2247 (bfd_simple_get_relocated_section_contents): Init callbacks.einfo.
2249 * elf32-i386.c (elf_i386_relocate_section): Handle zero symndx
2250 for all reloc types.
2252 2005-06-02 Alan Modra <amodra@bigpond.net.au>
2254 * elf64-ppc.c (add_symbol_adjust): Set sym visibility to most
2255 restrictive of func code and func descr for undefined syms as well
2258 2005-05-31 Jim Blandy <jimb@redhat.com>
2260 * Makefile.am: Regenerate dependencies with 'make dep-am'.
2261 * Makefile.in: Regenerate.
2263 2005-05-31 Richard Henderson <rth@redhat.com>
2265 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_JSRDIRECT): New.
2266 (ALPHA_ELF_LINK_HASH_TLS_IE): Renumber to 0x80.
2267 (ALPHA_ELF_LINK_HASH_LU_PLT): Rename from ALPHA_ELF_LINK_HASH_LU_FUNC.
2268 (elf64_alpha_want_plt): Update to match.
2269 (elf64_alpha_check_relocs): Collect JSRDIRECT in gotent_flags.
2270 (elf64_alpha_relax_with_lituse): Likewise. Handle JSRDIRECT.
2272 2005-05-31 Zack Weinberg <zack@codesourcery.com>
2274 * elf32-arm.c (elf32_arm_reloc_type_lookup)
2275 (elf32_arm_nabi_grok_prstatus, elf32_arm_nabi_grok_psinfo):
2276 Use ISO C90 function declaration style.
2278 2005-05-31 James E Wilson <wilson@specifixinc.com>
2280 * elfcode.h (NAME(bfd_elf,bfd_from_remote_memory)): Check for program
2281 header PF_R flag on PT_LOAD segments.
2283 2005-05-30 Richard Henderson <rth@redhat.com>
2285 * elf64-alpha.c (elf64_alpha_relocate_section): Use dtp_base for
2286 the zero index relocs produced by elf64_alpha_relax_tls_get_addr.
2288 2005-05-29 Richard Henderson <rth@redhat.com>
2290 * configure.in (--enable-secureplt): New.
2291 * elf64-alpha.c (INSN_LDA, INSN_LDAH, INSN_LDQ, INSN_BR): New.
2292 (INSN_SUBQ, INSN_S4SUBQ, INSN_JMP): New.
2293 (INSN_A, INSN_AB, INSN_ABC, INSN_ABO, INSN_AD): New.
2294 (elf64_alpha_use_secureplt): New.
2295 (OLD_PLT_HEADER_SIZE, OLD_PLT_ENTRY_SIZE): New.
2296 (NEW_PLT_HEADER_SIZE, NEW_PLT_ENTRY_SIZE): New.
2297 (PLT_HEADER_SIZE, PLT_ENTRY_SIZE): Conditionalize on secureplt.
2298 (ALPHA_ELF_LINK_HASH_PLT_LOC): Remove.
2299 (struct alpha_elf_link_hash_entry): Add plt_offset.
2300 (PLT_HEADER_WORD1, PLT_HEADER_WORD2, PLT_HEADER_WORD3): Remove.
2301 (PLT_HEADER_WORD4, PLT_ENTRY_WORD1, PLT_ENTRY_WORD2): Remove.
2302 (PLT_ENTRY_WORD3): Remove.
2303 (elf64_alpha_create_dynamic_sections): If secureplt, set SEC_READONLY
2304 on .plt and create .got.plt.
2305 (elf64_alpha_output_extsym): Remove .plt frobbing for symbol values.
2306 (get_got_entry): Initialize plt_offset.
2307 (elf64_alpha_want_plt): New.
2308 (elf64_alpha_check_relocs): Use it.
2309 (elf64_alpha_adjust_dynamic_symbol): Likewise. Don't allocate
2311 (elf64_alpha_calc_got_offsets_for_symbol): Don't report internal
2312 error as user error.
2313 (elf64_alpha_size_plt_section_1): Allocate one plt entry per
2315 (elf64_alpha_size_plt_section): Size .got.plt section.
2316 (elf64_alpha_size_rela_got_1): Don't allocate relocations if
2318 (elf64_alpha_size_dynamic_sections): Call elf64_alpha_size_plt_section.
2319 Add PLTRO DYNAMIC entry.
2320 (elf64_alpha_finish_dynamic_symbol): Generate secureplt format.
2321 (elf64_alpha_finish_dynamic_sections): Likewise.
2323 2005-05-28 David Daney <ddaney@avtrex.com>
2325 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Move
2326 calculation of DT_RELSZ to occur after all dynamic relocations
2329 2005-05-28 Eli Zaretskii <eliz@gnu.org>
2331 * configure.in: Add snprintf and vsnprintf to AC_CHECK_DECLS.
2332 * config.in, configure: Regenerate.
2334 2005-05-26 Mark Kettenis <kettenis@gnu.org>
2335 Maciej W. Rozycki <macro@linux-mips.org>
2337 * elfxx-mips.c (_bfd_mips_elf_section_processing): Warn and
2338 stop processing of options if one of invalid size is
2340 (_bfd_mips_elf_section_from_shdr): Likewise.
2341 (_bfd_mips_elf_fake_sections): Reset the type of empty special
2344 2005-05-26 Richard Henderson <rth@redhat.com>
2346 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Remove
2347 plt_old_section, plt_old_value.
2348 (elf64_alpha_adjust_dynamic_symbol): Don't set it.
2349 (elf64_alpha_size_plt_section_1): Don't use it.
2351 2005-05-26 Jakub Jelinek <jakub@redhat.com>
2353 * elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and
2354 first shdr has sh_size == 0. Fail if e_shnum is large to cause
2355 arithmetic overflow when allocating the i_shdr array.
2356 Sanity check sh_link and sh_info fields. Fix e_shstrndx sanity check.
2358 2005-05-25 Richard Henderson <rth@redhat.com>
2360 * elf64-alpha.c: Update all function definitions to ISO C. Remove
2361 all function prototypes; rearrange functions into def-use order.
2363 2005-05-25 Richard Henderson <rth@redhat.com>
2365 * elf64-alpha.c (elf64_alpha_merge_gots): Fix gotent iteration
2366 in the presence of deleting elements.
2367 (elf64_alpha_size_got_sections): Zero dead got section size.
2369 2005-05-23 Fred Fish <fnf@specifixinc.com>
2371 * dwarf2.c (struct dwarf2_debug): Add inliner_chain member.
2372 (struct funcinfo): Add caller_func, caller_file, caller_line.
2373 tag, and nesting_level members.
2374 (lookup_address_in_function_table): Change first passed parameter
2375 from "struct funcinfo *" to "struct comp_unit *".
2376 (lookup_address_in_function_table): Dereference unit to find function
2378 (lookup_address_in_function_table): Traverse the function list to
2379 create a chain of inlined functions back to the first non inlined
2381 (scan_unit_for_functions): Remember tag and nesting level. Handle
2382 DW_AT_call_file and DW_AT_call_line.
2383 (comp_unit_find_nearest_line): Adjust lookup_address_in_function_table
2384 call to pass unit pointer instead of function table pointer. For
2385 inlined functions, save pointer to the inliner chain.
2386 (_bfd_dwarf2_find_nearest_line): Initialize inliner_chain to NULL.
2387 (_bfd_dwarf2_find_inliner_info): New function that returns information
2388 from the inliner chain after a call to bfd_find_nearest_line.
2390 * bfd.c (bfd_find_inliner_info): Define using BFD_SEND.
2391 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Add entry for
2392 NAME##_find_inliner_info.
2393 (bfd_target): Add _bfd_find_inliner_info.
2394 * bfd-in2.h: Regenerate.
2396 * libbfd-in.h (_bfd_nosymbols_find_inliner_info): Define as
2397 macro that always returns bfd_false.
2398 (_bfd_dwarf2_find_inliner_info): Declare.
2399 * libbfd.h: Regenerate.
2401 * elf32-arm.c (elf32_arm_find_inliner_info): New function
2402 that calls _bfd_dwarf2_find_inliner_info.
2403 (bfd_elf32_find_inliner_info): Define to elf32_arm_find_inliner_info.
2405 * elfxx-mips.c (_bfd_mips_elf_find_inliner_info): New function
2406 that calls _bfd_dwarf2_find_inliner_info.
2407 * elfxx-mips.h (_bfd_mips_elf_find_inliner_info): Declare.
2408 * elfn32-mips.c (bfd_elf32_find_inliner_info): Define to
2409 _bfd_mips_elf_find_inliner_info.
2410 * elf64-mips.c (bfd_elf64_find_inliner_info): Ditto.
2411 * elf32-mips.c (bfd_elf32_find_inliner_info): Ditto.
2413 * elf.c (_bfd_elf_find_inliner_info): New function that calls
2414 _bfd_dwarf2_find_inliner_info.
2415 * elf-bfd.h (_bfd_elf_find_inliner_info): Declare.
2416 * elfxx-target.h (bfd_elfNN_find_inliner_info): Define to
2417 _bfd_elf_find_inliner_info.
2419 * coffgen.c (coff_find_inliner_info): New function that
2420 calls _bfd_dwarf2_find_inliner_info.
2421 * libcoff-in.h (coff_find_inliner_info): Declare.
2422 * libcoff.h: Regenerate.
2423 * coff-rs6000.c (rs6000coff_vec): Add coff_find_inliner_info.
2424 (pmac_xcoff_vec) Ditto.
2425 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
2426 (aix5coff64_vec): Ditto.
2428 * aout-target.h (MY_find_inliner_info): Define as
2429 _bfd_nosymbols_find_inliner_info.
2430 * aout-tic30.c (MY_find_inliner_info): Ditto.
2431 * binary.c (binary_find_inliner_info): Ditto.
2432 * i386msdos.c (msdos_find_inliner_info): Ditto.
2433 * ihex.c (ihex_find_inliner_info): Ditto.
2434 * libaout.h (aout_32_find_inliner_info): Ditto.
2435 * libecoff.h (_bfd_ecoff_find_inliner_info): Ditto.
2436 * mach-o.c (bfd_mach_o_find_inliner_info): Ditto.
2437 * mmo.c (mmo_find_inliner_info): Ditto.
2438 * nlm-target.h (nlm_find_inliner_info): Ditto.
2439 * pef.c (bfd_pef_find_inliner_info): Ditto.
2440 * ppcboot.c (ppcboot_find_inliner_info): Ditto.
2441 * srec.c (srec_find_inliner_info): Ditto.
2442 * tekhex.c (tekhex_find_inliner_info): Ditto.
2443 * versados.c (versados_find_inliner_info): Ditto.
2444 * xsym.c (bfd_sym_find_inliner_info): Ditto.
2446 * ieee.c (ieee_find_inliner_info): New function that always
2448 * oasys.c (oasys_find_inliner_info): Ditto.
2449 * vms.c (vms_find_inliner_info): Ditto.
2451 2005-05-24 Alan Modra <amodra@bigpond.net.au>
2453 * elf32-ppc.c (ppc_elf_check_relocs): For old gcc -fPIC code
2454 force old plt layout.
2456 2005-05-22 Richard Henderson <rth@redhat.com>
2458 * elf64-alpha.c (elf64_alpha_relax_section): Ignore non-allocated
2460 (elf64_alpha_check_relocs): Likewise.
2461 (elf64_alpha_relocate_section): Don't emit dynamic relocations to
2462 non-allocated sections.
2464 2005-05-22 Richard Henderson <rth@redhat.com>
2466 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr to
2467 undefweak to use zero register. Call elf64_alpha_relax_got_load
2468 if not all uses removed.
2469 (elf64_alpha_relax_got_load): Relax undefweak to lda zero.
2470 (elf64_alpha_relax_section): Handle undefweak symbols.
2471 (elf64_alpha_calc_dynrel_sizes): Don't add relocs for undefweak.
2472 (elf64_alpha_size_rela_got_1): Likewise.
2473 (elf64_alpha_relocate_section): Likewise.
2475 2005-05-22 Richard Henderson <rth@redhat.com>
2477 * elf64-alpha.c (elf64_alpha_relax_section): Only operate
2478 on SEC_CODE sections.
2480 2005-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2482 * som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to
2484 (som_write_space_strings): Change type of tmp_space and p to char *.
2485 (som_write_symbol_strings): Likewise. Also change type of comp to
2487 (som_begin_writing): Change type of strings_size to unsigned int.
2488 (som_finish_writing): Likewise.
2489 (som_slurp_reloc_table): Change type of external_relocs to unsigned
2491 * som.h (struct som_section_data_struct): Change type of reloc_stream
2492 field to unsigned char *.
2494 2005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
2496 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
2497 copy relocations for VxWorks.
2499 2005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
2501 * bfd/elf32-ppc.c (struct ppc_elf_link_hash_entry): Add new field
2503 (ppc_elf_copy_indirect_symbol): Copy has_sda_refs.
2504 (ppc_elf_check_relocs): Set has_sda_refs.
2505 (ppc_elf_adjust_dynamic_symbol): Check has_sda_refs before eliminating
2506 copy relocations. Use has_sda_refs to place variables in .sbss.
2507 (ppc_elf_finish_dynamic_symbol): Use has_sda_refs to place variables in
2510 2005-05-20 Bob Wilson <bob.wilson@acm.org>
2512 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
2513 xtensa_default_isa is initialized.
2515 2005-05-20 Alan Modra <amodra@bigpond.net.au>
2517 * elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned
2518 for second and subsequent list entries. Only allocate multiple
2519 glink stubs when shared or pie.
2520 (ppc_elf_finish_dynamic_symbol): Break out early when only one
2521 glink stub is needed.
2523 2005-05-19 Zack Weinberg <zack@codesourcery.com>
2525 * Makefile.am: Have 'all' depend on 'info'.
2526 * Makefile.in: Regenerate.
2528 2005-05-19 Alan Modra <amodra@bigpond.net.au>
2530 * elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and
2531 init_offset. Add init_got_refcount, init_plt_refcount,
2532 init_got_offset and init_plt_offset.
2533 * elf.c (_bfd_elf_link_hash_newfunc): Adjust for above change.
2534 (_bfd_elf_link_hash_hide_symbol): Likewise.
2535 (_bfd_elf_link_hash_table_init): Likewise.
2536 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2537 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
2538 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Likewise.
2539 (bfd_elf_size_dynamic_sections): Likewise.
2540 * elf32-ppc.c (GLINK_PLTRESOLVE): Now 16 insns.
2541 (LWZU_0_X_12, LWZ_0_4_30, LWZ_0_X_12, LWZ_11_X_11, LWZ_11_X_30,
2542 LWZ_12_4_12, LWZ_12_8_30, LWZ_12_X_12, SUB_11_11_30): Delete.
2543 (ADDIS_12_12, BCL_20_31, LWZU_0_12, LWZ_0_12, LWZ_11_11, LWZ_11_30,
2544 LWZ_12_12, MFLR_0, MFLR_12, MTLR_0, SUB_11_11_12): Define.
2545 (struct plt_entry): New.
2546 (ppc_elf_link_hash_table_create): Set new init_plt fields.
2547 (ppc_elf_copy_indirect_symbol): Handle merge of plt plist. Don't
2548 use _bfd_elf_link_hash_copy_indirect.
2549 (update_plt_info, find_plt_ent): New functions.
2550 (ppc_elf_check_relocs): Handle R_PPC_PLTREL24 with non-zero addend
2551 and adjust for use of plt list rather than refcount.
2552 (ppc_elf_gc_sweep_hook): Likewise.
2553 (ppc_elf_tls_optimize): Likewise.
2554 (ppc_elf_adjust_dynamic_symbol): Likewise.
2555 (allocate_dynrelocs): Likewise.
2556 (ppc_elf_relax_section): Likewise.
2557 (ppc_elf_relocate_section): Likewise. Adjust R_PPC_PLTREL24 addends
2558 when performing a relocatable link.
2559 (ppc_elf_finish_dynamic_symbol): Likewise. Write .glink stubs here..
2560 (ppc_elf_finish_dynamic_sections): ..rather than here. Use new
2563 2005-05-19 Alan Modra <amodra@bigpond.net.au>
2565 * elf.c (assign_file_positions_for_segments): Use maximum of
2566 maxpagesize and section alignment when adjusting initial
2567 segment offset and section offsets.
2569 2005-05-18 Zack Weinberg <zack@codesourcery.com>
2571 * elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks
2574 2005-05-18 H.J. Lu <hongjiu.lu@intel.com>
2576 * elf.c (group_signature): Undo the last change. Check if the
2577 symbol table section is correct.
2579 2005-05-17 Zack Weinberg <zack@codesourcery.com>
2581 * elf32-arm.c: Wherever possible, use official reloc names
2583 (elf32_arm_howto_table, elf32_arm_tls_gd32_howto)
2584 (elf32_arm_tls_ldo32_howto, elf32_arm_tls_ldm32_howto)
2585 (elf32_arm_tls_le32_howto, elf32_arm_tls_ie32_howto)
2586 (elf32_arm_vtinherit_howto, elf32_arm_vtentry_howto)
2587 (elf32_arm_pc11_howto, elf32_arm_thm_pc9_howto, elf32_arm_got_prel)
2588 (elf32_arm_r_howto): Replace with elf32_arm_howto_table_1,
2589 elf32_arm_howto_table_2, and elf32_arm_howto_table_3.
2590 Add many new relocations from AAELF.
2591 (elf32_arm_howto_from_type): Update to match.
2592 (elf32_arm_reloc_map): Add entries for R_ARM_THM_JUMP24,
2593 R_ARM_THM_JUMP11, R_ARM_THM_JUMP19, R_ARM_THM_JUMP8,
2594 R_ARM_THM_JUMP6, R_ARM_GNU_VTINHERIT, and R_ARM_GNU_VTENTRY.
2595 (elf32_arm_reloc_type_lookup): Use elf32_arm_howto_from_type.
2596 (elf32_arm_final_link_relocate): Add support for
2597 R_ARM_THM_JUMP24, R_ARM_THM_JUMP19, R_ARM_THM_JUMP6. Remove
2598 case entries redundant with default.
2600 * reloc.c: Reorganize ARM relocations. Add Thumb
2601 assembler-internal relocations BFD_RELOC_ARM_T32_OFFSET_U8,
2602 BFD_RELOC_ARM_T32_OFFSET_IMM, BFD_RELOC_ARM_T32_IMMEDIATE.
2603 Add visible relocations BFD_RELOC_THUMB_PCREL_BRANCH7,
2604 BFD_RELOC_THUMB_BRANCH20, BFD_RELOC_THUMB_BRANCH25.
2605 Delete unused relocations BFD_RELOC_ARM_GOT12, BFD_RELOC_ARM_COPY.
2606 * bfd-in2.h, libbfd.h: Regenerate.
2608 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
2610 * elf.c (_bfd_elf_write_object_contents): Check for non-NULL
2612 * format.c (bfd_check_format_matches): Set output_has_begun
2614 * section.c (bfd_set_section_contents): Use bfd_write_p. Remove
2615 special case for both_direction.
2617 2005-05-17 Nick Clifton <nickc@redhat.com>
2619 * elf.c (group_signature): Check for a group section which is
2620 actually a (corrupt) symbol table section in disguise and prevent
2621 an infinite loop from occurring.
2623 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
2625 * elfxx-ia64.c (elfNN_ia64_relax_brl): Undo the change made on
2628 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
2630 * elfxx-ia64.c (elfNN_ia64_relax_br): Keep the original
2631 predicate on slot 0 only if slot 0 isn't br.
2633 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
2636 * elf32-i386.c (elf_i386_size_dynamic_sections): Also remove
2637 empty sdynbss section.
2638 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
2640 2005-05-17 Tavis Ormandy <taviso@gentoo.org>
2642 * elf.c (bfd_section_from_shdr): Add sanity check when parsing
2645 2005-05-17 Alan Modra <amodra@bigpond.net.au>
2647 * elf32-ppc.c (LIS_11. LIS_12): Define.
2648 (LWZU_0_X_12, LWZ_0_X_12, LWZ_12_4_12, LWZ_12_X_12): Define.
2649 (ppc_elf_finish_dynamic_sections): Provide non-pic plt call stub
2650 for --data-plt when building non-pie executables.
2652 2005-05-17 Nick Clifton <nickc@redhat.com>
2654 * elf32-arm.c (elf32_arm_final_link_relocate): Gracefully handle
2655 the situation where a symbols's section is not known but a section
2656 relative R_ARM_RELATIVE reloc has to be generated for the Symbian
2659 * elf32-v850.c (v850_elf_relocate_section): Move code to test for
2660 the presence of a symbol table to just before the symbol table is
2663 2005-05-16 H.J. Lu <hongjiu.lu@intel.com>
2666 * elfxx-ia64.c (elfNN_ia64_relax_br): New.
2667 (elfNN_ia64_relax_section): Use it.
2669 2005-05-14 Mark Kettenis <kettenis@gnu.org>
2671 * elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead
2674 2005-05-14 Alan Modra <amodra@bigpond.net.au>
2676 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set DT_PPC_GOT,
2678 (ppc_elf_finish_dynamic_sections): Likewise.
2680 2005-05-13 Fred Fish <fnf@specifixinc.com>
2682 * libbfd-in.h: Fix a comment typo, 'neaderst' -> 'nearest'
2683 * libbfd.h: Rebuilt.
2685 2005-05-13 Bob Wilson <bob.wilson@acm.org>
2687 * elf32-xtensa.c (xtensa_get_property_section_name): Add missing
2688 periods in linkonce_kind values.
2690 2005-05-12 H.J. Lu <hongjiu.lu@intel.com>
2692 * elf32-i386.c (elf_i386_relocate_section): Allow R_386_GOTOFF
2693 against protected function when building executable.
2695 2005-05-12 Alan Modra <amodra@bigpond.net.au>
2697 * elf32-ppc.c (LWZU_0_X_11): Delete.
2698 (B, LWZ_11_X_11, LWZ_11_X_30, MTCTR_11): Define.
2699 (ppc_elf_select_plt_layout): Set .got flags too. Formatting.
2700 (ppc_elf_size_dynamic_sections): Allocate space for .glink branch
2702 (ppc_elf_finish_dynamic_symbol): Point .plt entries into the branch
2704 (ppc_elf_finish_dynamic_sections): Adjust DT_PPC_GLINK value.
2705 Generate .glink branch table and updated stubs.
2707 2005-05-11 Alan Modra <amodra@bigpond.net.au>
2709 * reloc.c (BFD_RELOC_HI16_PCREL): Define.
2710 (BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL): Define.
2711 * elf32-ppc.c (GLINK_PLTRESOLVE, GLINK_ENTRY_SIZE): Define.
2712 (CROR_151515, CROR_313131): Delete.
2713 (ADDIS_11_11, ADDI_11_11, SUB_11_11_30, ADD_0_11_11, ADD_11_0_11,
2714 LWZ_0_4_30, MTCTR_0, LWZ_12_8_30, BCTR, ADDIS_11_30,
2715 LWZU_0_X_11): Define.
2716 (ppc_elf_howto_raw): Add R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI
2717 and R_PPC_REL16_HA entries.
2718 (ppc_elf_reloc_type_lookup): Convert new bfd reloc types.
2719 (ppc_elf_addr16_ha_reloc): Also handle R_PPC_REL16_HA.
2720 (struct ppc_elf_link_hash_table): Add glink, glink_pltresolve,
2721 new_plt, and old_plt.
2722 (ppc_elf_create_dynamic_sections): Create .glink section.
2723 (ppc_elf_check_relocs): Set new_plt and old_plt.
2724 (ppc_elf_select_plt_layout): New function.
2725 (ppc_elf_tls_setup): Set plt output section elf type and flags.
2726 (allocate_got): Handle differences between old and new got layout.
2727 (allocate_dynrelocs): Likewise for plt.
2728 (ppc_elf_size_dynamic_sections): Likewise. Allocate memory for
2729 .glink. Don't allocate memory for old bss .plt. Emit DT_PPC_GLINK.
2730 (ppc_elf_relax_section): Rename ppc_info to htab. Handle .glink
2731 destination of R_PPC_PLTREL24 relocs.
2732 (ppc_elf_relocate_section): Handle new relocs and changed destination
2734 (ppc_elf_finish_dynamic_symbol): Init new style plt and handle
2735 differences in layout.
2736 (ppc_elf_finish_dynamic_sections): Set DT_PPC_GLINK value. Don't
2737 put a blrl in new got. Write glink contents.
2738 * elf32-ppc.h (ppc_elf_select_plt_layout): Declare.
2739 * libbfd.h: Regenerate.
2740 * bfd-in2.h: Regenerate.
2742 2005-05-11 Andreas Schwab <schwab@suse.de>
2744 * elf32-i386.c (elf_i386_finish_dynamic_sections): Fix signedness
2747 2005-05-10 H.J. Lu <hongjiu.lu@intel.com>
2749 * elf.c (_bfd_elf_make_section_from_shdr): Only check debug
2750 section if SEC_ALLOC isn't set.
2752 2005-05-09 Kelley Cook <kcook@gcc.gnu.org>
2754 * configure.in: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
2755 * acinclude.m4: Don't sinclude accross.m4.
2756 * config.in, configure, Makefile.in, doc/Makefile.in: Regenerate.
2758 2005-05-09 Alan Modra <amodra@bigpond.net.au>
2760 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_dotsym.
2761 (ppc64_elf_add_symbol_hook): Set has_dotsym.
2762 (ppc64_elf_check_directives): Only process syms when has_dotsym.
2763 (func_desc_adjust): Hide fake function descriptors when function
2764 code entry is defined.
2765 (adjust_opd_syms): Adjust for deleted_section becoming union field.
2767 2005-05-09 Alan Modra <amodra@bigpond.net.au>
2769 * elfcode.h (elf_object_p): Add more sanity checks on elf header.
2771 2005-05-08 Dave Korn <dave.korn@artimi.com>
2773 * coff-tic80.c: Undefine _CONST after system headers to prevent
2774 clash with tic80-specific definition in include/coff/tic80.h
2776 2005-05-08 H.J. Lu <hongjiu.lu@intel.com>
2779 * elflink.c (elf_link_output_extsym): Use output_bfd if
2780 h->root.u.def.section is bfd_abs_section_ptr when reporting
2783 2005-05-07 H.J. Lu <hongjiu.lu@intel.com>
2785 * elf-bfd.h (elf_backend_data): Update special_sections to
2786 array of pointer to bfd_elf_special_section.
2787 * elf.c (special_sections): Likewise.
2788 * elf32-arm.c (elf32_arm_symbian_special_sections): Likewise.
2789 * elf32-m32r.c (m32r_elf_special_sections): Likewise.
2790 * elf32-m68hc11.c (elf32_m68hc11_special_sections): Likewise.
2791 * elf32-m68hc12.c (elf32_m68hc12_special_sections): Likewise.
2792 * elf32-mcore.c (mcore_elf_special_sections): Likewise.
2793 * elf32-ppc.c (ppc_elf_special_sections): Likewise.
2794 * elf32-sh64.c (sh64_elf_special_sections): Likewise.
2795 * elf32-v850.c (v850_elf_special_sections): Likewise.
2796 * elf32-xtensa.c (elf_xtensa_special_sections): Likewise.
2797 * elf64-alpha.c (elf64_alpha_special_sections): Likewise.
2798 * elf64-hppa.c (elf64_hppa_special_sections): Likewise.
2799 * elf64-ppc.c (ppc64_elf_special_sections): Likewise.
2800 * elf64-sh64.c (sh64_elf64_special_sections): Likewise.
2801 * elfxx-ia64.c (elfNN_ia64_special_sections): Likewise.
2802 * elfxx-mips.c (_bfd_mips_elf_special_sections): Likewise.
2803 * elfxx-mips.h (_bfd_mips_elf_special_sections): Likewise.
2805 * elf.c (get_special_section): Updated.
2807 2005-05-07 Alan Modra <amodra@bigpond.net.au>
2809 * elf-bfd.h (struct elf_backend_data): Remove got_symbol_offset.
2810 * elfxx-target.h (elf_backend_got_symbol_offset): Delete.
2811 * elflink.c (_bfd_elf_create_got_section): Use zero in place of
2813 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
2814 * elf32-frv.c (_frv_create_got_section): Likewise.
2815 * elf32-i370.c (i370_elf_finish_dynamic_sections): Delete ppc code.
2816 (elf_backend_got_symbol_offset): Don't define.
2817 * elf64-ppc.c (elf_backend_got_symbol_offset): Don't define.
2818 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add got_header_size
2820 (ppc_elf_create_got): Tidy.
2821 (ppc_elf_create_dynamic_sections): Don't set SEC_IN_MEMORY for .plt.
2822 (ppc_elf_check_relocs): Reduce string comparisons by using elf.hgot.
2823 (ppc_elf_gc_sweep_hook): Likewise.
2824 (ppc_elf_relocate_section): Likewise.
2825 (ppc_elf_finish_dynamic_symbol): Likewise.
2826 (allocate_got): New function.
2827 (allocate_dynrelocs): Use allocate_got.
2828 (ppc_elf_size_dynamic_sections): Likewise. Delay tlsld_got allocation
2829 so that local got can refcount it. Set got_header_size.
2830 (ppc_elf_relocate_section): Use value of elf.hgot rather than hard-
2832 (ppc_elf_finish_dynamic_sections): Likewise.
2833 (elf_backend_got_symbol_offset): Don't define.
2834 (elf_backend_got_header_size): Ditto.
2836 2005-05-05 Steve Ellcey <sje@cup.hp.com>
2838 * configure.in (ACX_HEADER_STRING): New.
2839 * configure: Regenerate.
2840 * config.in: Regenerate.
2841 * sysdep.h (STRING_WITH_STRINGS): Use.
2843 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2845 * elf.c (_bfd_elf_close_and_cleanup): Only call
2846 _bfd_dwarf2_cleanup_debug_info on bfd_object.
2848 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2850 * elflink.c (_bfd_elf_provide_section_bound_symbols): Use
2851 "__bss_start" instead of "_edata" as fallback.
2853 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2855 * bfd-in2.h: Regenerated.
2857 2005-05-05 Paul Brook <paul@codesourcery.com>
2859 * config.bfd: Use bfd_elf32_i386_vxworks_vec for i?86-*-vxworks.
2860 * configure.in: Add bfd_elf32_i386_vxworks_vec. i386 targets need
2862 * configure: Regenerate.
2863 * Makefile.am (BFD32_BACKENDS): Add elf-vxworks.lo.
2864 (BFD32_BACKENDS_CFILES): Add elf-vxworks.c.
2865 (elf32-i386.lo): Depend on elf-vxworks.h.
2866 (elf-vxworks.lo): New rule.
2867 * Makefile.in: Regenerate.
2868 * elf-bfd.h (elf_backend_data): Update type of
2869 elf_backend_emit_relocs.
2870 (_bfd_elf_link_output_relocs): Update prototype.
2871 * elflink.c (_bfd_elf_link_output_relocs): Always use
2872 bed->elf_backend_emit_relocs when outputting relocations.
2873 * elfxx-target.h (elf_backend_emit_relocs): Default to
2874 _bfd_elf_link_output_relocs.
2875 * targets.c (bfd_elf32_i386_vxworks_vec): Declare.
2876 (_bfd_target_vector): Add bfd_elf32_i386_vxworks_vec.
2877 * elf32-i386.c: Add elf32-i386-vxworks target BFD.
2878 (elf_i386_plt0_entry): Remove padding.
2879 (elf_i386_pic_plt0_entry): Ditto.
2880 (PLTRESOLVE_RELOCS_SHLIB, PLTRESOLVE_RELOCS): Define.
2881 (PLT_NON_JUMP_SLOT_RELOCS): Define.
2882 (elf_i386_link_hash_table): Add srelplt2, hgot, hplt, is_vxworks and
2883 plt0_pad_byte fields.
2884 (elf_i386_link_hash_table_create): Zero them.
2885 (elf_i386_create_dynamic_sections): Create static relocation section.
2886 (allocate_dynrelocs): Allocate space for static PLT relocations.
2887 (elf_i386_size_dynamic_sections): Save shortcuts to PLT and GOT
2888 symbols. Give PLT symbols function type. Don't strip PLT sections
2889 if we have exported symbols from them.
2890 (elf_i386_finish_dynamic_symbol): Fill in VxWorks PLT static
2891 relocation section. Don't mark _GLOBAL_OFFSET_TABLE_ as absolute on
2893 (elf_i386_finish_dynamic_sections): Allow different pad bytes.
2894 Add relocation for GOT location. Fill in PLT static relocations.
2895 (elf_i386_vxworks_link_hash_table_create): New function.
2896 (elf_i386_vxworks_link_output_symbol_hook): New function.
2897 * elf-vxworks.h: New file.
2899 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2901 * section.c (bfd_make_section_anyway_with_flags): New.
2902 (bfd_make_section_anyway): Call bfd_make_section_anyway_with_flags,
2903 (bfd_make_section_with_flags): New.
2904 (bfd_make_section): Call bfd_make_section_with_flags.
2906 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Call
2907 bfd_make_section_with_flags/bfd_make_section_anyway_with_flags
2908 instead of bfd_make_section/bfd_make_section and don't call
2909 bfd_set_section_flags.
2910 (mn10300_elf_check_relocs): Likewise.
2911 (_bfd_mn10300_elf_create_dynamic_sections): Likewise.
2912 * elf32-arm.c (create_got_section): Likewise.
2913 (bfd_elf32_arm_add_glue_sections_to_bfd): Likewise.
2914 (elf32_arm_check_relocs): Likewise.
2915 * elf32-cris.c (cris_elf_check_relocs): Likewise.
2916 * elf32-frv.c (elf32_frv_add_symbol_hook): Likewise.
2917 (_frv_create_got_section): Likewise.
2918 (elf32_frvfdpic_create_dynamic_sections): Likewise.
2919 * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise.
2920 (elf32_hppa_check_relocs): Likewise.
2921 * elf32-i370.c (i370_elf_create_dynamic_sections): Likewise.
2922 (i370_elf_check_relocs): Likewise.
2923 * elf32-i386.c (create_got_section): Likewise.
2924 (elf_i386_check_relocs): Likewise.
2925 * elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise.
2926 (create_got_section): Likewise.
2927 (m32r_elf_create_dynamic_sections): Likewise.
2928 (m32r_elf_check_relocs): Likewise.
2929 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
2930 * elf32-ppc.c (ppc_elf_create_got): Likewise.
2931 (ppc_elf_create_dynamic_sections): Likewise.
2932 (ppc_elf_add_symbol_hook): Likewise.
2933 (ppc_elf_check_relocs): Likewise.
2934 * elf32-s390.c (create_got_section): Likewise.
2935 (elf_s390_check_relocs): Likewise.
2936 * elf32-sh.c (create_got_section): Likewise.
2937 (sh_elf_create_dynamic_sections): Likewise.
2938 (sh_elf_check_relocs): Likewise.
2939 * elf32-vax.c (elf_vax_check_relocs): Likewise.
2940 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
2941 * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise.
2942 (add_extra_plt_sections): Likewise.
2943 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
2944 (elf64_alpha_create_got_section): Likewise.
2945 (elf64_alpha_create_dynamic_sections): Likewise.
2946 (elf64_alpha_check_relocs): Likewise.
2947 * elf64-hppa.c (get_reloc_section): Likewise.
2948 (get_opd): Likewise.
2949 (get_plt): Likewise.
2950 (get_dlt): Likewise.
2951 (get_stub): Likewise.
2952 (elf64_hppa_create_dynamic_sectionso): Likewise.
2953 * elf64-mmix.c (mmix_elf_check_common_relocs): Likewise.
2954 * elf64-ppc.c (create_linkage_sections): Likewise.
2955 (ppc64_elf_check_relocs): Likewise.
2956 * elf64-s390.c (create_got_section): Likewise.
2957 (elf_s390_check_relocs): Likewise.
2958 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
2959 (sh64_elf64_create_dynamic_sections): Likewise.
2960 * elf64-x86-64.c (create_got_section): Likewise.
2961 (elf64_x86_64_check_relocs): Likewise.
2962 * elflink.c (_bfd_elf_create_got_section): Likewise.
2963 (_bfd_elf_link_create_dynamic_sections): Likewise.
2964 (elf_link_add_object_symbols): Likewise.
2965 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2966 (elfNN_ia64_create_dynamic_sections): Likewise.
2967 (get_fptr): Likewise.
2968 (get_pltoff): Likewise.
2969 (get_reloc_section): Likewise.
2970 (elfNN_ia64_object_p): Likewise.
2971 * elfxx-mips.c (mips_elf_rel_dyn_section): Likewise.
2972 (mips_elf_create_compact_rel_section): Likewise.
2973 (mips_elf_create_got_section): Likewise.
2974 (_bfd_mips_elf_create_dynamic_sections): Likewise.
2975 * elfxx-sparc.c (create_got_section): Likewise.
2976 (_bfd_sparc_elf_check_relocs): Likewise.
2978 * elf.c (_bfd_elf_new_section_hook): Call _bfd_elf_get_sec_type_attr
2979 on linker created sections.
2981 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2984 * elflink.c (_bfd_elf_link_assign_sym_version): Allow version
2985 script on executable.
2987 2005-05-05 John Levon <levon@movementarian.org>
2989 * dwarf2.c (read_abbrevs): If bfd_realloc fails, free currently
2990 allocated memory before returning.
2991 (decode_line_info): Likewise.
2992 (_bfd_dwarf2_cleanup_debug_info): New function: Frees memory
2993 allocated by functions in this file.
2994 * elf-bfd.h (_bfd_dwarf2_cleanup_debug_info): Prototype.
2995 * elf.c (_bfd_elf_close_and_cleanup): Call
2996 _bfd_dwarf2_cleanup_debug_info.
2998 2005-05-05 Hans-Peter Nilsson <hp@axis.com>
3000 * Makefile.am (INCLUDES): Don't -D_GNU_SOURCE here.
3001 * configure.in: Call AC_GNU_SOURCE here, after AC_PROG_CC.
3002 * configure, config.in, Makefile.in: Regenerate.
3003 * sysdep.h (stpcpy): Revert last change.
3005 2005-05-05 Hans-Peter Nilsson <hp@axis.com>
3007 * sysdep.h (stpcpy): Wrap declaration in parentheses.
3009 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
3011 * elfxx-ia64.c (ARCH_SIZE): New.
3012 (LOG_SECTION_ALIGN): Likewise.
3013 (elfNN_ia64_create_dynamic_sections): Use LOG_SECTION_ALIGN to
3014 align relocation sections.
3015 (get_fptr): Likewise.
3016 (get_reloc_section): Likewise.
3017 (elfNN_ia64_tprel_base): Likewise.
3018 (elfNN_ia64_check_relocs): Support 32bit relocations.
3019 (allocate_global_fptr_got): Likewise.
3020 (allocate_dynrel_entries): Likewise.
3021 (set_got_entry): Likewise.
3022 (set_pltoff_entry): Likewise.
3023 (elfNN_ia64_relocate_section): Likewise.
3025 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
3027 * configure.in: Add AC_CHECK_DECLS(stpcpy).
3028 * configure: Regenerate.
3029 * config.in: Likewise.
3031 * sysdep.h (stpcpy): New.
3033 2005-05-04 Nick Clifton <nickc@redhat.com>
3035 * Update the address and phone number of the FSF organization in
3036 the GPL notices in the following files:
3037 aix386-core.c, aix5ppc-core.c, aout-adobe.c, aout-arm.c,
3038 aout-cris.c, aout-ns32k.c, aout-sparcle.c, aout-target.h,
3039 aout-tic30.c, aout0.c, aout32.c, aout64.c, aoutf1.h, aoutx.h,
3040 archive.c, archive64.c, archures.c, armnetbsd.c, bfd-in.h,
3041 bfd-in2.h, bfd.c, bfdio.c, bfdwin.c, binary.c, bout.c, cache.c,
3042 cf-i386lynx.c, cf-m68klynx.c, cf-sparclynx.c, cisco-core.c,
3043 coff-a29k.c, coff-alpha.c, coff-apollo.c, coff-arm.c, coff-aux.c,
3044 coff-go32.c, coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i860.c,
3045 coff-i960.c, coff-ia64.c, coff-m68k.c, coff-m88k.c, coff-maxq.c,
3046 coff-mcore.c, coff-mips.c, coff-or32.c, coff-pmac.c, coff-ppc.c,
3047 coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c,
3048 coff-svm68k.c, coff-tic30.c, coff-tic4x.c, coff-tic54x.c,
3049 coff-tic80.c, coff-u68k.c, coff-w65.c, coff-we32k.c, coff-z8k.c,
3050 coff64-rs6000.c, coffcode.h, coffgen.c, cofflink.c, coffswap.h,
3051 corefile.c, cpu-a29k.c, cpu-alpha.c, cpu-arc.c, cpu-arm.c,
3052 cpu-avr.c, cpu-cr16c.c, cpu-cris.c, cpu-crx.c, cpu-d10v.c,
3053 cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, cpu-h8300.c,
3054 cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, cpu-i860.c,
3055 cpu-i960.c, cpu-ia64-opc.c, cpu-ia64.c, cpu-ip2k.c, cpu-iq2000.c,
3056 cpu-m10200.c, cpu-m10300.c, cpu-m32r.c, cpu-m68hc11.c,
3057 cpu-m68hc12.c, cpu-m68k.c, cpu-m88k.c, cpu-maxq.c, cpu-mcore.c,
3058 cpu-mips.c, cpu-mmix.c, cpu-msp430.c, cpu-ns32k.c, cpu-openrisc.c,
3059 cpu-or32.c, cpu-pdp11.c, cpu-pj.c, cpu-powerpc.c, cpu-rs6000.c,
3060 cpu-s390.c, cpu-sh.c, cpu-sparc.c, cpu-tic30.c, cpu-tic4x.c,
3061 cpu-tic54x.c, cpu-tic80.c, cpu-v850.c, cpu-vax.c, cpu-w65.c,
3062 cpu-we32k.c, cpu-xstormy16.c, cpu-xtensa.c, cpu-z8k.c, demo64.c,
3063 dwarf1.c, dwarf2.c, ecoff.c, ecofflink.c, ecoffswap.h,
3064 efi-app-ia32.c, efi-app-ia64.c, elf-bfd.h, elf-eh-frame.c,
3065 elf-hppa.h, elf-m10200.c, elf-m10300.c, elf-strtab.c, elf.c,
3066 elf32-am33lin.c, elf32-arc.c, elf32-arm.c, elf32-avr.c,
3067 elf32-cr16c.c, elf32-cris.c, elf32-crx.c, elf32-d10v.c,
3068 elf32-d30v.c, elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-gen.c,
3069 elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, elf32-i370.c,
3070 elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
3071 elf32-iq2000.c, elf32-m32r.c, elf32-m68hc11.c, elf32-m68hc12.c,
3072 elf32-m68hc1x.c, elf32-m68hc1x.h, elf32-m68k.c, elf32-m88k.c,
3073 elf32-mcore.c, elf32-mips.c, elf32-msp430.c, elf32-openrisc.c,
3074 elf32-or32.c, elf32-pj.c, elf32-ppc.c, elf32-ppc.h, elf32-s390.c,
3075 elf32-sh-symbian.c, elf32-sh.c, elf32-sh64-com.c, elf32-sh64.c,
3076 elf32-sh64.h, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
3077 elf32-xstormy16.c, elf32-xtensa.c, elf32.c, elf64-alpha.c,
3078 elf64-gen.c, elf64-hppa.c, elf64-hppa.h, elf64-mips.c,
3079 elf64-mmix.c, elf64-ppc.c, elf64-ppc.h, elf64-s390.c,
3080 elf64-sh64.c, elf64-sparc.c, elf64-x86-64.c, elf64.c, elfcode.h,
3081 elfcore.h, elflink.c, elfn32-mips.c, elfxx-ia64.c, elfxx-mips.c,
3082 elfxx-mips.h, elfxx-sparc.c, elfxx-sparc.h, elfxx-target.h,
3083 epoc-pe-arm.c, epoc-pei-arm.c, format.c, freebsd.h, gen-aout.c,
3084 genlink.h, hash.c, host-aout.c, hp300bsd.c, hp300hpux.c,
3085 hppabsd-core.c, hpux-core.c, i386aout.c, i386bsd.c, i386dynix.c,
3086 i386freebsd.c, i386linux.c, i386lynx.c, i386mach3.c, i386msdos.c,
3087 i386netbsd.c, i386os9k.c, ieee.c, ihex.c, init.c, irix-core.c,
3088 libaout.h, libbfd-in.h, libbfd.c, libbfd.h, libcoff-in.h,
3089 libcoff.h, libecoff.h, libhppa.h, libieee.h, libnlm.h, liboasys.h,
3090 libpei.h, libxcoff.h, linker.c, lynx-core.c, m68k4knetbsd.c,
3091 m68klinux.c, m68klynx.c, m68knetbsd.c, m88kmach3.c, m88kopenbsd.c,
3092 mach-o-target.c, mach-o.c, mach-o.h, merge.c, mipsbsd.c, mmo.c,
3093 netbsd-core.c, netbsd.h, newsos3.c, nlm-target.h, nlm.c,
3094 nlm32-alpha.c, nlm32-i386.c, nlm32-ppc.c, nlm32-sparc.c, nlm32.c,
3095 nlm64.c, nlmcode.h, nlmswap.h, ns32k.h, ns32knetbsd.c, oasys.c,
3096 opncls.c, osf-core.c, pc532-mach.c, pdp11.c, pe-arm.c, pe-i386.c,
3097 pe-mcore.c, pe-mips.c, pe-ppc.c, pe-sh.c, peXXigen.c,
3098 pef-traceback.h, pef.c, pef.h, pei-arm.c, pei-i386.c, pei-mcore.c,
3099 pei-mips.c, pei-ppc.c, pei-sh.c, peicode.h, ppcboot.c,
3100 ptrace-core.c, reloc.c, reloc16.c, riscix.c, rs6000-core.c,
3101 sco5-core.c, section.c, simple.c, som.c, som.h, sparclinux.c,
3102 sparclynx.c, sparcnetbsd.c, srec.c, stab-syms.c, stabs.c, sunos.c,
3103 syms.c, sysdep.h, targets.c, tekhex.c, ticoff.h, trad-core.c,
3104 vax1knetbsd.c, vaxbsd.c, vaxnetbsd.c, versados.c, vms-gsd.c,
3105 vms-hdr.c, vms-misc.c, vms-tir.c, vms.c, vms.h, xcoff-target.h,
3106 xcofflink.c, xsym.c, xsym.h, xtensa-isa.c, xtensa-modules.c,
3109 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
3111 * bfd-in.h (_bfd_elf_provide_section_bound_symbols): New.
3112 * bfd-in2.h: Regenerated.
3114 * elflink.c (bfd_elf_set_symbol): New.
3115 (_bfd_elf_provide_symbol): Call it.
3116 (_bfd_elf_provide_section_bound_symbols): New.
3118 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
3120 * elflink.c (_bfd_elf_merge_symbol): Only skip weak definitions
3121 at the end, if a strong definition has already been seen.
3123 2005-05-04 Alan Modra <amodra@bigpond.net.au>
3125 * section.c (struct bfd_section): Replace link_order_head and
3126 link_order_tail with map_head and map_tail union.
3127 (STD_SECTION): Update.
3128 (_bfd_strip_section_from_output): Delete.
3129 * aoutx.h: Update throughout for above changes.
3130 * coff-ppc.c: Likewise.
3131 * cofflink.c: Likewise.
3132 * ecoff.c: Likewise.
3133 * elf-eh-frame.c: Likewise.
3134 * elf-m10300.c: Likewise.
3136 * elf32-arm.c: Likewise.
3137 * elf32-cris.c: Likewise.
3138 * elf32-hppa.c: Likewise.
3139 * elf32-i386.c: Likewise.
3140 * elf32-m32r.c: Likewise.
3141 * elf32-m68hc1x.c: Likewise.
3142 * elf32-m68k.c: Likewise.
3143 * elf32-ppc.c: Likewise.
3144 * elf32-s390.c: Likewise.
3145 * elf32-sh.c: Likewise.
3146 * elf32-vax.c: Likewise.
3147 * elf32-xtensa.c: Likewise.
3148 * elf64-alpha.c: Likewise.
3149 * elf64-hppa.c: Likewise.
3150 * elf64-ppc.c: Likewise.
3151 * elf64-s390.c: Likewise.
3152 * elf64-sh64.c: Likewise.
3153 * elf64-x86-64.c: Likewise.
3154 * elflink.c: Likewise.
3155 * elfxx-ia64.c: Likewise.
3156 * elfxx-mips.c: Likewise.
3157 * elfxx-sparc.c: Likewise.
3158 * linker.c: Likewise.
3159 * merge.c: Likewise.
3160 * pdp11.c: Likewise.
3161 * xcofflink.c: Likewise.
3162 * elflink.c (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Split
3163 out from bfd_elf_size_dynamic_sections.
3164 * bfd-in.h (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Declare.
3165 * bfd-in2.h: Regenerate.
3167 2005-05-04 Alan Modra <amodra@bigpond.net.au>
3169 * section.c (bfd_section_list_remove): Don't clear s->next.
3170 (bfd_section_list_append): Always init s->prev.
3171 (bfd_section_list_prepend): Define.
3172 (bfd_section_list_insert_after): Minor optimization.
3173 (bfd_section_removed_from_list): Rewrite.
3174 * elf.c (assign_section_numbers): Simplify list traversal now that
3175 bfd_section_list_remove doesn't destroy removed section next ptr.
3176 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3177 * elfxx-ia64.c (elfNN_ia64_object_p): Use bfd_section_list_prepend.
3178 * xcofflink.c (_bfd_xcoff_bfd_final_link): Simplify list traversal.
3179 * bfd-in2.h: Regenerate.
3181 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
3183 * bfd.c (bfd): Remove section_tail and add section_last.
3184 (bfd_preserve): Likewise.
3185 (bfd_preserve_save): Likewise.
3186 (bfd_preserve_restore): Likewise.
3187 * opncls.c (_bfd_new_bfd): Likewise.
3189 * coffcode.h (coff_compute_section_file_positions): Updated.
3190 (coff_compute_section_file_positions): Likewise.
3191 * elf.c (assign_section_numbers): Likewise.
3192 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3193 * elf64-mmix.c (mmix_elf_final_link): Likewise.
3194 * elfxx-ia64.c (elfNN_ia64_object_p): Likewise.
3195 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
3196 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3197 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
3199 * ecoff.c (bfd_debug_section): Initialize prev.
3201 * section.c (bfd_section): Add prev.
3202 (bfd_section_list_remove): Updated.
3203 (bfd_section_list_append): New.
3204 (bfd_section_list_insert_after): New.
3205 (bfd_section_list_insert_before): New.
3206 (bfd_section_list_insert): Removed.
3207 (bfd_section_removed_from_list): Updated.
3208 (STD_SECTION): Initialize prev.
3209 (bfd_section_init): Updated.
3210 (bfd_section_list_clear): Updated.
3212 * bfd-in2.h: Regenerated.
3214 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
3216 * elf.c (_bfd_elf_new_section_hook): Don't call
3217 _bfd_elf_get_sec_type_attr on sections from input files.
3219 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
3221 * merge.c (sec_merge_init): Call bfd_hash_table_init_n with
3222 hash table size 16699 instead of bfd_hash_table_init.
3224 2005-05-01 Paul Brook <paul@codesourcery.com>
3226 * elflink.c (_bfd_elf_merge_symbol): Skip weak definitions if a strong
3227 definition has already been seen.
3229 2005-05-01 Paul Brook <paul@codesourcery.com>
3231 * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Treat
3232 R_ARM_PLT32 the same as R_ARM_PC24.
3233 (arm_add_to_rel): Ditto.
3235 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
3237 * config.bfd: Add h8300*-*-rtemscoff.
3238 Switch h8300*-*-rtems* to elf.
3240 2005-04-29 Daniel Jacobowitz <dan@codesourcery.com>
3242 * aclocal.m4, Makefile.in: Regnerated.
3244 2005-04-28 Paul Brook <paul@codesourcery.com>
3246 Merge changes only applied to Makefile.in.
3247 * Makefile.am (BFD32_BACKENDS): Add elfxx-sparc.lo
3248 (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c
3249 (elfxx-sparc.lo): New rule.
3250 (elf32-sparc.lo): Add elfxx-sparc.h dependency.
3251 (elf64-sparc.lo): Likewise.
3253 2005-04-28 Julian Brown <julian@codesourcery.com>
3255 * elflink.c (_bfd_elf_provide_symbol): Provide symbol for weak
3258 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
3260 * elf-bfd.h (bfd_elf_sym_name): Also take "asection *".
3262 * elf.c (bfd_elf_sym_name): Updated.
3263 (group_signature): Likewise.
3264 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3265 * elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
3266 (ppc64_elf_edit_toc): Likewise.
3267 (ppc64_elf_relocate_section): Likewise.
3268 * elfcode.h (elf_slurp_symbol_table): Likewise.
3269 * elflink.c (elf_link_input_bfd): Likewise.
3271 * elfxx-ia64.c (elfNN_ia64_relocate_section): Call
3272 bfd_elf_sym_name to get local symbol name when reporting errors.
3274 2005-04-27 Nick Clifton <nickc@redhat.com>
3276 * elflink.c (elf_link_input_bfd): Handle the case where a badly
3277 formatted input file results in a reloc which has no associated
3280 2005-04-26 Jerome Guitton <guitton@gnat.com>
3282 * bfd.m4 (BFD_NEED_DECLARATION): Restore.
3284 2005-04-25 David S. Miller <davem@davemloft.net>
3286 * elfxx-sparc.c (sparc_elf_append_rela_64): Add BFD64 protection.
3287 (sparc_elf_r_info_64, _bfd_sparc_elf_finish_dynamic_symbol,
3288 sparc64_finish_dyn, _bfd_sparc_elf_finish_dynamic_sections):
3291 2005-04-25 H.J. Lu <hongjiu.lu@intel.com>
3294 * elflink.c (elf_link_input_bfd): Make non-debugging reference
3295 to discarded section an error.
3297 2005-04-21 Jerome Guitton <guitton@gnat.com>
3299 * configure.in: Replace BFD_NEED_DECLARATION checks by the
3300 corresponding AC_CHECK_DECLS.
3301 * sysdep.h: Replace NEED_DECLARATION_* checks by the corresponding
3303 * bfd.m4 (BFD_NEED_DECLARATION): Remove, obsolete.
3304 * configure: Regenerate.
3307 2005-04-21 Andreas Schwab <schwab@suse.de>
3309 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove
3310 unsigned from type of dynamic_interpreter.
3311 * elfxx-sparc.c (_bfd_sparc_elf_link_hash_table_create): Remove
3314 * elf.c (assign_section_numbers): Fix comment.
3316 2005-04-21 Jerome Guitton <guitton@gnat.com>
3318 * som.c (som_bfd_print_private_bfd_data): Add explicit cast to long
3319 for struct som_exec_auxhdr fields.
3321 2005-04-21 Nick Clifton <nickc@redhat.com>
3323 * aout-adobe.c: Convert to ISO C and fix formatting.
3324 * aout-arm.c: Convert to ISO C and fix formatting.
3325 * aout-cris.c: Convert to ISO C and fix formatting.
3326 * aout-ns32k.c: Convert to ISO C and fix formatting.
3327 * aout-tic30.c: Convert to ISO C and fix formatting.
3328 * coffcode.h: Convert to ISO C and fix formatting.
3329 * coffswap.h: Convert to ISO C and fix formatting.
3330 * i386aout.c: Convert to ISO C and fix formatting.
3331 * libaout.h: Convert to ISO C and fix formatting.
3332 * libcoff-in.h: Convert to ISO C and fix formatting.
3333 * libcoff.h: Convert to ISO C and fix formatting.
3334 * libecoff.h: Convert to ISO C and fix formatting.
3335 * libnlm.h: Convert to ISO C and fix formatting.
3336 * libpei.h: Convert to ISO C and fix formatting.
3337 * libxcoff.h: Convert to ISO C and fix formatting.
3338 * nlm-target.h: Convert to ISO C and fix formatting.
3339 * nlm.c: Convert to ISO C and fix formatting.
3340 * nlm32-alpha.c: Convert to ISO C and fix formatting.
3341 * nlm32-i386.c: Convert to ISO C and fix formatting.
3342 * nlm32-ppc.c: Convert to ISO C and fix formatting.
3343 * nlm32-sparc.c: Convert to ISO C and fix formatting.
3344 * nlmcode.h: Convert to ISO C and fix formatting.
3345 * nlmswap.h: Convert to ISO C and fix formatting.
3346 * pe-mips.c: Convert to ISO C and fix formatting.
3347 * peXXigen.c: Convert to ISO C and fix formatting.
3348 * peicode.h: Convert to ISO C and fix formatting.
3349 * vms-gsd.c: Convert to ISO C and fix formatting.
3350 * vms-hdr.c: Convert to ISO C and fix formatting.
3351 * vms-misc.c: Convert to ISO C and fix formatting.
3352 * vms-tir.c: Convert to ISO C and fix formatting.
3353 * vms.c: Convert to ISO C and fix formatting.
3354 * vms.h: Convert to ISO C and fix formatting.
3356 * coffgen.c (coff_print_symbol): Restore correct formatting of
3359 2005-04-20 David S. Miller <davem@davemloft.net>
3361 * elfxx-sparc.c (sparc_elf_r_symndx_64): Fix compiler warning.
3362 (_bfd_sparc_elf_link_hash_table_create): Likewise.
3363 (allocate_dynrelocs): Likewise.
3365 2005-04-20 Jerome Guitton <guitton@gnat.com>
3367 * configure.in: Fix the check for basename declaration. Add check
3368 for declarations of ftello, ftello64, fseeko, fseeko64.
3369 * configure: Regenerate.
3371 * sysdep.h: If needed, declare ftello, ftello64, fseeko, fseeko64.
3373 2005-04-19 David S. Miller <davem@davemloft.net>
3375 * elfxx-sparc.c: New file.
3376 * elfxx-sparc.h: New file.
3377 * Makefile.in (BFD32_BACKENDS): Add elfxx-sparc.lo
3378 (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c
3379 (elfxx-sparc.lo): New rule.
3380 (elf32-sparc.lo): Add elfxx-sparc.h dependency.
3381 (elf64-sparc.lo): Likewise.
3382 * configure.in (bfd_elf32_sparc_vec): Add elfxx-sparc.lo
3383 (bfd_elf64_sparc_vec): Likewise.
3384 * configure: Regenerate.
3385 * elf32-sparc.c: Remove common code now in elfxx-sparc.c
3386 * elf64-sparc.c: Likewise, also use elf64_sparc_*() naming
3387 which is more consistent with elf32-sparc.c
3389 2005-04-19 Daniel Jacobowitz <dan@codesourcery.com>
3391 * elfxx-mips.c (struct mips_elf_link_hash_entry): Update comment.
3392 (mips_elf_create_local_got_entry): Check h->root.forced_local.
3394 2005-04-19 Alan Modra <amodra@bigpond.net.au>
3396 * elf32-ppc.c (ppc_elf_check_relocs): Don't bother with
3397 dynamic relocs in non-SEC_ALLOC sections.
3398 (ppc_elf_gc_sweep_hook): Likewise.
3399 (ppc_elf_relax_section): Likewise.
3400 (ppc_elf_relocate_section): Likewise.
3402 2005-04-18 Nick Clifton <nickc@redhat.com>
3404 * aix5ppc-core.c (xcoff64_core_p): Fix compile time warning
3405 assigning a value to return_value.
3407 2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
3410 * elf.c (_bfd_elf_copy_private_section_data): Don't copy linker
3413 2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
3416 * elf.c (setup_group): Properly handle zero group count.
3418 2005-04-17 Mark Kettenis <kettenis@gnu.org>
3420 * som.c (hppa_som_reloc, som_mkobject, som_is_space)
3421 (som_is_subspace, compare_subspaces, som_compute_checksum)
3422 (som_build_and_write_symbol_table, som_slurp_symbol_table): New
3424 (hppa_som_reloc, compare_syms, compare_subspaces)
3425 (som_print_symbol, som_get_section_contents)
3426 (som_set_section_contents): Remove space after 'void *'.
3427 (som_bfd_print_private_bfd_data): Use %lx to print longs.
3428 (som_bfd_merge_private_bfd_data)
3429 (som_bfd_copy_private_header_data, som_bfd_set_private_flags): New
3432 2004-04-15 Julian Brown <julian@codesourcery.com>
3434 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
3435 * bfd-in2.h: Regenerate.
3436 * elf32-arm.c (elf32_arm_link_hash_table): New field, 'use_blx'.
3437 (elf32_arm_link_hash_table_create): Initialise fix_v4bx, use_blx.
3438 (bfd_elf32_arm_set_target_relocs): Handle use_blx.
3439 (elf32_arm_final_link_relocate): Use Thumb BLX for R_ARM_THM_PC22
3440 relocations if requested to.
3441 (allocate_dynrelocs): Don't count size of omitted Thumb stubs based on
3442 use_blx rather than symbian_p.
3443 (elf32_arm_finish_dynamic_symbol): Don't output Thumb PLT stubs if
3444 use_blx is in effect.
3445 (elf32_arm_symbian_link_hash_table_create): Enable use_blx by default
3448 2005-04-15 Nick Clifton <nickc@redhat.com>
3450 * coffgen.c (coff_print_symbol): Use fprintf_vma to print vma
3453 2005-04-15 Alan Modra <amodra@bigpond.net.au>
3456 * elflink.c (elf_smash_syms): Clear undef.next if it's not being
3457 used as a list pointer.
3459 2005-04-14 Alan Modra <amodra@bigpond.net.au>
3461 * Makefile.am (NO_WERROR): Define.
3462 * warning.m4: New file
3463 * acinclude.m4: Include warning.m4.
3464 * configure.in: Invoke AM_BINUTILS_WARNINGS.
3465 * Makefile.in: Regenerate.
3466 * configure: Regenerate.
3468 2005-04-14 Alan Modra <amodra@bigpond.net.au>
3470 * merge.c (sec_merge_emit): Tidy. Check for bfd_zmalloc errors.
3471 Write trailing padding.
3473 * merge.c (merge_strings): Round up section size for alignment.
3475 2005-04-14 David S. Miller <davem@davemloft.net>
3477 Add TLS support for 64-bit Sparc ELF.
3478 * elf64-sparc.c (sparc64_elf_dyn_relocs,
3479 sparc64_elf_link_hash_entry, sparc64_elf_obj_tdata): New structs.
3480 (GOT_UNKNOWN, GOT_NORMAL, GOT_TLD_GD, GOT_TLD_IE,
3481 sparc64_elf_hash_entry, sparc64_elf_tdata,
3482 sparc64_elf_local_got_tls_type): New defines.
3483 (sparc64_elf_mkobject): New function.
3484 (sparc64_elf_link_hash_table): Add members for dynamic linker
3485 sections PLT, RELPLT, DYNBSS, and RELBSS. Add tls_ldm_got
3486 uion to track TLS GOT references. Add sym_sec to cache
3487 mappings from local sym to section.
3488 (link_hash_newfunc): New function.
3489 (sparc64_elf_bfd_link_hash_table_create): Rename to
3490 sparc64_elf_link_hash_table_create for consistency.
3491 Pass link_hash_newfunc to _bfd_elf_link_hash_table_init.
3492 (sparc64_elf_create_dynamic_sections): Initialize new section
3493 members of sparc64_elf_link_hash_table. Only init srelbss
3495 (sparc64_elf_copy_indirect_symbol, sparc64_elf_tls_transition):
3497 (SPARC_NOP): Define.
3498 (sparc64_elf_build_plt, sparc64_elf_plt_entry_offset,
3499 sparc64_elf_plt_ptr_offset): Delete.
3500 (sparc64_plt_entry_build): New function to build PLT entries
3501 gradually instread of all at once at the end of linking.
3502 (sparc64_elf_check_relocs): Delete dynobj, sgot, and srelgot
3503 local vars. Get them from sparc64_elf_hash_table instead.
3504 Check early on if r_symndx is in bounds. Handle TLS transitions.
3505 Account for TLS GOT references and DF_STATIC_TLS, as needed.
3506 For TLS relocs, record the tls_type in either
3507 sparc64_elf_local_got_tls_type or sparc64_elf_hash_entry as
3508 appropriate. For R_SPARC_TLS_{GD,LDM}_CALL, emit a reference
3509 to the __tls_get_addr symbol. For PLT relocs, track references
3510 via h->plt.refcount. When R_SPARC_{PC10,PC22,PC_HH22,PC_HM10,
3511 PC_LM22} and h not-NULL, set h->non_got_ref. For global data
3512 symbol references, count the number of relocations needed for
3513 that symbol. For default switch case, don't error, this lets
3514 the TLS relocs not explicitly handled by this function get
3516 (sparc64_elf_gc_mark_hook, sparc64_gc_sweep_hook): New functions.
3517 (sparc64_elf_adjust_dynamic_symbol): Remove dynobj local var, get
3518 it from sparc64_elf_hash_table. Store the real PLT offset
3519 in h->plt.offset, and build PLT entries one at a time. Also
3520 get .dynbss section pointer from htab.
3521 (allocate_dynrelocs, readonly_dynrelocs,
3522 sparc64_omit_section_dynsym): New functions.
3523 (sparc64_elf_omit_section_dynsym): Use these new functions as
3525 (dtpoff_base, tpoff): New functions.
3526 (sparc64_elf_relocate_section): Kill dynobj, sgot, and splt
3527 locals, get them from sparc64_elf_hash_table. Handle TLS
3528 relocations and refcounting in main relocation loop.
3529 (sparc64_elf_finish_dynamic_symbol): Use
3530 sparc64_elf_link_hash_table. Build PLT entries as we see
3531 them. Handle TLS GOT relocations.
3532 (sparc64_elf_finish_dynamic_sections): Get sgot and dynobj
3533 from sparc64_elf_hash_table. Initialize only PLT header
3534 not all entries since we not build PLT entries one by one.
3535 (elf_backend_copy_indirect_symbol, bfd_elf64_mkobject,
3536 elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook,
3537 elf_backend_can_gc_sections, elf_backend_can_refcount): Define.
3539 2005-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3541 * elflink.c (elf_link_input_bfd): Update check for removed
3544 2005-04-12 Alan Modra <amodra@bigpond.net.au>
3546 * Makefile.am: Run "make dep-am".
3547 * Makefile.in: Regenerate.
3548 * aclocal.m4: Regenerate.
3549 * libcoff.h: Regenerate.
3551 2005-04-11 H.J. Lu <hongjiu.lu@intel.com>
3553 * linker.c (_bfd_generic_link_output_symbols): Also check if
3554 the output section of an input section has been removed from
3557 * section.c (bfd_section_list_remove): Clear the next field
3558 of the removed section.
3559 (bfd_section_removed_from_list): New.
3560 * bfd-in2.h: Regenerated.
3562 2005-04-11 David S. Miller <davem@davemloft.net>
3564 * elf32-sparc.c (elf32_sparc_relocate_section,
3565 R_SPARC_TLS_LDO_{HIX22,LOX10}): When not shared, transition to
3566 R_SPARC_TLS_LE_{HIX22,LOX10}.
3567 (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_HIX22): Only
3568 xor relocation with 0xffffffff if R_SPARC_TLS_LE_HIX22.
3569 (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_LOX10): Only
3570 or 0x1c00 into relocation if R_SPARC_TLS_LE_HIX22.
3572 2005-04-11 H.J. Lu <hongjiu.lu@intel.com>
3574 * coffcode.h (STRING_SIZE_SIZE): Updated to match libcoff-in.h.
3576 2005-04-11 Nick Clifton <nickc@redhat.com>
3578 * aout-target.h: Convert to ISO C.
3579 * aoutf1.h: Convert to ISO C.
3580 * aoutx.h: Convert to ISO C.
3581 * bout.c: Convert to ISO C.
3582 * dwarf1.c: Convert to ISO C.
3583 * ecoffswap.h: Convert to ISO C.
3584 * freebsd.h: Convert to ISO C.
3585 * genlink.h: Convert to ISO C.
3586 * ieee.c: Convert to ISO C.
3587 * ihex.c: Convert to ISO C.
3588 * libcoff-in.h: Convert to ISO C.
3589 * mach-o.c: Convert to ISO C.
3590 * mach-o.h: Convert to ISO C.
3591 * netbsd.h: Convert to ISO C.
3592 * ns32k.h: Convert to ISO C.
3593 * ns32knetbsd.c: Convert to ISO C.
3594 * oasys.c: Convert to ISO C.
3595 * pdp11.c: Convert to ISO C.
3596 * pef-traceback.h: Convert to ISO C.
3597 * pef.c: Convert to ISO C.
3598 * pef.h: Convert to ISO C.
3599 * riscix.c: Convert to ISO C.
3600 * som.c: Convert to ISO C.
3601 * som.h: Convert to ISO C.
3602 * srec.c: Convert to ISO C.
3603 * stabs.c: Convert to ISO C.
3604 * sunos.c: Convert to ISO C.
3605 * tekhex.c: Convert to ISO C.
3606 * versados.c: Convert to ISO C.
3607 * version.h: Convert to ISO C.
3608 * xcoff-target.h: Convert to ISO C.
3609 * xcofflink.c: Convert to ISO C.
3610 * xsym.c: Convert to ISO C.
3611 * xsym.h: Convert to ISO C.
3613 2005-04-08 Paul Brook <paul@codesourcery.com>
3615 * elf32-arm.c (ARM2THUMB_GLUE_SIZE): Rename...
3616 (ARM2THUMB_STATIC_GLUE_SIZE): ... to this.
3617 (ARM2THUMB_PIC_GLUE_SIZE): Define.
3618 (a2t1p_ldr_insn, a2t2p_add_pc_insn, a2t3p_bx_r12_insn): Add.
3619 (elf32_arm_to_thumb_stub): Create PIC stubs.
3620 (record_arm_to_thumb_glue): Use different stub size for relocatable
3623 2005-04-05 Alan Modra <amodra@bigpond.net.au>
3625 * elf64-ppc.c (dec_dynrel_count): New function split out from
3626 ppc64_elf_edit_toc, with additional code from ppc64_elf_edit_opd.
3627 (ppc64_elf_edit_toc, ppc64_elf_edit_opd): Use it.
3628 (ppc64_elf_tls_optimize): Likewise.
3630 2005-04-05 Mark Kettenis <kettenis@gnu.org>
3632 * netbsd-core.c (SPARC_WCOOKIE_OFFSET): Renamed from
3633 CORE_WCOOKIE_OFFSET.
3634 (SPARC64_WCOOKIE_OFFSET): New.
3635 (netbsd_core_file_p): Provide .wcookie section for OpenBSD/sparc64.
3637 2005-04-05 Nick Clifton <nickc@redhat.com>
3639 * po/rw.po: New translation: Kinyarwanda
3640 * configure.in (ALL_LINGUAS): Add rw
3641 * configure: Regenerate.
3643 2005-04-05 Richard Sandiford <rsandifo@redhat.com>
3645 * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME_P): New macro.
3646 (_bfd_mips_elf_section_from_shdr): Use it to check for recognized
3647 SHT_MIPS_OPTIONS names. Allow all sections with unrecognised
3649 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_OPTIONS_SECTION_NAME_P
3650 to check for SHT_MIPS_OPTIONS sections.
3651 (_bfd_mips_elf_set_section_contents): Likewise.
3653 2005-04-04 Eric Christopher <echristo@redhat.com>
3655 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents):
3656 Clean up gp handling code.
3658 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
3660 * elf.c (bfd_elf_set_group_contents): Ignore linker created
3662 (assign_section_numbers): Accept link_info. Check SHT_GROUP
3663 sections for relocatable files only. Remove the linker created
3665 (_bfd_elf_compute_section_file_positions): Pass link_info to
3666 assign_section_numbers.
3668 * elfxx-ia64.c (elfNN_ia64_object_p): New.
3669 (elf_backend_object_p): Defined.
3671 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
3673 * elf-bfd.h (elf_section_data): Use (sec) instead of sec.
3675 2005-04-03 Fred Fish <fnf@specifixinc.com>
3677 * dwarf2.c (struct dwarf2_debug): Add dwarf_ranges_buffer and
3678 dwarf_ranges_size members.
3679 (struct comp_unit): Add base_address member.
3680 (struct funcinfo): Replace low/high members with an arange.
3681 (arange_add): Replace incoming "unit" parameter with "abfd" and
3682 "first_arange" pointers. Reorganize/rewrite function body.
3683 (decode_line_info): Change arange_add call to pass bfd and arange
3685 (lookup_address_in_line_info_table): Use arange list instead of
3686 individual low/high members. Walk function's arange list to find
3687 lowest PC in list, to test for overlapping functions.
3688 (read_debug_ranges): New function, reads the debug_ranges section.
3689 (lookup_address_in_function_table): Use arange list instead of
3690 individual low/high members. Rewrite to find smallest range that
3692 (read_rangelist): Read a given rangelist from debug_ranges.
3693 (scan_unit_for_functions): Use arange list instead of individual
3694 low/high members. Handle a DW_AT_ranges attribute.
3695 (parse_comp_unit): Use arange list instead of individual low/high
3696 members. Save comp unit base address. Handle a DW_AT_ranges
3699 2005-04-01 H.J. Lu <hongjiu.lu@intel.com>
3701 * elf.c (assign_section_numbers): Really use the kept section.
3703 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
3705 * elf-bfd.h (_bfd_elf_check_kept_section): New.
3707 * elf.c (assign_section_numbers): When sh_link points to a
3708 discarded section, call _bfd_elf_check_kept_section to see if
3709 the kept section can be used. Otherwise reject sh_link
3710 pointing to discarded section.
3712 * elflink.c (_bfd_elf_check_kept_section): New.
3713 (elf_link_input_bfd): Use it.
3715 2005-04-01 Alan Modra <amodra@bigpond.net.au>
3717 * elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocs
3718 that we no longer need.
3720 2005-04-01 Alan Modra <amodra@bigpond.net.au>
3722 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors
3724 (ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
3726 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
3728 * elf.c (assign_section_numbers): Fix a typo.
3730 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
3732 * elflink.c (elf_link_input_bfd): Remove the extra `\n' in
3734 (_bfd_elf_section_already_linked): Likewise.
3736 2005-03-31 Jerome Guitton <guitton@gnat.com>
3738 * config.in: Regenerate.
3740 2005-03-31 Jerome Guitton <guitton@gnat.com>
3742 * config.in (HAVE_DECL_BASENAME): New configure macro.
3743 * configure.in: Check for basename.
3744 * configure: Regenerate.
3746 2005-03-30 Julian Brown <julian@codesourcery.com>
3748 * bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename from
3749 bfd_elf32_is_arm_mapping_symbol_name.
3750 * bfd-in2.h: Regenerate.
3751 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from
3752 bfd_elf32_is_arm_mapping_symbol_name.
3753 * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename
3754 bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
3755 (arm_elf_find_function): Likewise.
3756 (elf32_arm_output_symbol_hook): Likewise.
3758 2005-03-30 Julian Brown <julian@codesourcery.com>
3760 * bfd-in.h (bfd_elf32_is_arm_mapping_symbol_name): Add prototype.
3761 * bfd-in2.h: Regenerate.
3762 * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename call to
3763 bfd_elf32_is_arm_mapping_symbol_name.
3764 (elf32_arm_output_symbol_hook): Likewise.
3765 (arm_elf_find_function): Likewise, and include STT_NOTYPE in test for
3767 (is_arm_mapping_symbol_name): Function moved from here...
3768 * cpu-arm.c (bfd_elf32_is_arm_mapping_symbol_name): ...to here, renamed
3771 2005-03-29 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3773 * configure.in: Check for ffs decl and alphabetize.
3774 * config.in: Regenerate.
3775 * configure: Regenerate.
3776 * sysdep.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
3778 2005-03-29 Fred Fish <fnf@specifixinc.com>
3780 * dwarf2.c (struct comp_unit): Fix typo.
3781 (scan_unit_for_functions): Remove unused local variable "name"
3782 and dead code that set it.
3784 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
3785 Phil Blundell <philb@gnu.org>
3787 * bfd-in2.h, libbfd.h: Regenerated.
3788 * reloc.c: Add ARM TLS relocations.
3789 * elf32-arm.c (elf32_arm_howto_table): Add dynamic TLS
3791 (elf32_arm_tls_gd32_howto, elf32_arm_tls_ldo32_howto)
3792 (elf32_arm_tls_ldm32_howto, elf32_arm_tls_le32_howto)
3793 (elf32_arm_tls_ie32_howto): New.
3794 (elf32_arm_howto_from_type): Support TLS relocations.
3795 (elf32_arm_reloc_map): Likewise.
3796 (elf32_arm_reloc_type_lookup): Likewise.
3798 (struct elf32_arm_obj_tdata): New.
3799 (elf32_arm_tdata, elf32_arm_local_got_tls_type): Define.
3800 (elf32_arm_mkobject): New function.
3801 (struct elf32_arm_relocs_copied): Add pc_count.
3802 (elf32_arm_hash_entry, GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD)
3803 (GOT_TLS_IE): Define.
3804 (struct elf32_arm_link_hash_table): Add tls_ldm_got.
3805 (elf32_arm_link_hash_newfunc): Initialize tls_type.
3806 (elf32_arm_copy_indirect_symbol): Copy pc_count and tls_type.
3807 (elf32_arm_link_hash_table_create): Initialize tls_ldm_got.
3808 (dtpoff_base, tpoff): New functions.
3809 (elf32_arm_final_link_relocate): Handle TLS relocations.
3810 (IS_ARM_TLS_RELOC): Define.
3811 (elf32_arm_relocate_section): Warn about TLS mismatches.
3812 (elf32_arm_gc_sweep_hook): Handle TLS relocations and pc_count.
3813 (elf32_arm_check_relocs): Detect invalid symbol indexes. Handle
3814 TLS relocations and pc_count.
3815 (elf32_arm_adjust_dynamic_symbol): Check non_got_ref.
3816 (allocate_dynrelocs): Handle TLS. Bind REL32 relocs to local
3818 (elf32_arm_size_dynamic_sections): Handle TLS.
3819 (elf32_arm_finish_dynamic_symbol): Likewise.
3820 (bfd_elf32_mkobject): Define.
3822 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
3824 * elf32-arm.c (elf32_arm_check_relocs): Increment count for all
3825 relocation types. Don't count relocations which will use a PLT.
3827 2005-03-29 Joel Brobecker <brobecker@gnat.com>
3829 * elf.c (elfcore_grok_nto_status): Print tid as long.
3830 (elfcore_grok_nto_regs): Likewise.
3832 2005-03-29 Joel Brobecker <brobecker@gnat.com>
3834 * irix-core.c: Remove some unnecessary prototypes.
3836 2005-03-28 Joel Brobecker <brobecker@adacore.com>
3838 * irix-core.c: Convert to ISO C.
3840 2005-03-28 Joel Brobecker <brobecker@adacore.com>
3842 * irix-core.c (do_sections): Replace + by | in expression.
3843 (irix_core_core_file_matches_executable_p): Add ATTRIBUTE_UNUSED
3844 to unused parameters to avoid a compiler warning.
3846 2005-03-28 Mark Kettenis <kettenis@gnu.org>
3848 * netbsd-core.c: Convert to ISO C. Fix formatting.
3850 2005-03-24 Eric Christopher <echristo@redhat.com>
3852 * elfxx-mips.c: Revert previous patch.
3854 2005-03-24 Nick Clifton <nickc@redhat.com>
3856 * targets.c (_bfd_target_vector): Only include the
3857 bfd_elf32_ia64_hpux_big_vec vector when building a 64-bit BFD with
3858 all targets enabled.
3860 2005-03-24 James E Wilson <wilson@specifixinc.com>
3862 * Makefile.am (BFD32_BACKENDS): Delete elf32-ia64.lo.
3863 (BFD64_BACKENDS): Add elf32-ia64.lo.
3864 * Makefile.in: Regenerate.
3866 2005-03-23 Eric Christopher <echristo@redhat.com>
3868 * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): New.
3869 (mips_elf_calculate_relocation): Use. Define DF_TEXTREL
3870 after emitting relocation.
3871 (_bfd_mips_elf_adjust_dynamic_symbol): Ditto.
3872 (_bfd_mips_elf_check_relocs): Remove code to set DF_TEXTREL
3875 2005-03-23 Mike Frysinger <vapier@gentoo.org>
3876 Nick Clifton <nickc@redhat.com>
3878 * config.bfd: Accept any C library to accompany a GNU Linux
3879 implementation, not just the GNU C library.
3880 * configure.in: Likewise.
3881 * configure: Regenerate.
3883 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
3885 * bfd-in.h (_bfd_elf_provide_symbol): New.
3886 * bfd-in2.h: Regenerated.
3888 * elf32-ppc.c (set_linker_sym): Moved to elflink.c.
3889 (ppc_elf_set_sdata_syms): Call _bfd_elf_provide_symbol instead
3892 * elflink.c (_bfd_elf_provide_symbol): New. Moved and renamed
3895 2005-03-22 Hans-Peter Nilsson <hp@axis.com>
3897 * hash.c (strtab_hash_newfunc): Fix typo in allocated size.
3899 2005-03-22 Bob Wilson <bob.wilson@acm.org>
3901 * xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup,
3902 xtensa_sysreg_lookup_name, xtensa_interface_lookup,
3903 xtensa_funcUnit_lookup): Skip bsearch call if count is zero.
3904 (xtensa_opcode_decode): Rearrange code.
3906 2005-03-22 Nick Clifton <nickc@redhat.com>
3908 * binary.c: Convert to ISO C90 formatting.
3909 * coff-arm.c: Convert to ISO C90 formatting.
3910 * coffgen.c: Convert to ISO C90 formatting.
3911 * elf32-gen.c: Convert to ISO C90 formatting.
3912 * elf64-gen.c: Convert to ISO C90 formatting.
3913 * hash.c: Convert to ISO C90 formatting.
3914 * ieee.c: Convert to ISO C90 formatting.
3916 2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
3918 * elf32-arm.c (elf32_arm_final_link_relocate): Don't fail for
3919 unresolved symbols in R_ARM_NONE relocations.
3921 2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
3923 * elf32-arm.c (elf32_arm_final_link_relocate): Add
3924 UNRESOLVED_RELOC_P argument. Set it appropriately.
3925 (elf32_arm_relocate_section): Update call to
3926 elf32_arm_final_link_relocate. Don't clobber RELOCATION; use
3927 unresolved_reloc instead.
3929 2005-03-23 Alan Modra <amodra@bigpond.net.au>
3931 * elflink.c (elf_link_add_object_symbols): Set SEC_EXCLUDE on
3932 .gnu.warning.* sections.
3934 2005-03-22 Alan Modra <amodra@bigpond.net.au>
3936 * elf32-ppc.c (elf_linker_section_pointers_t): Remove
3938 (ppc_elf_create_linker_section): Don't try to reuse existing section.
3939 (elf_create_pointer_linker_section): Delete info parm. Don't make
3940 h dynamic. Don't set written_address_p.
3941 (ppc_elf_check_relocs): Adjust ppc_elf_create_linker_section calls.
3942 (bfd_put_ptr): Delete.
3943 (elf_finish_pointer_linker_section): Remove output_bfd and info parms.
3944 Always write section contents. Assert global sym is def_regular.
3945 Use offset bottom bit as a written flag.
3946 (ppc_elf_relocate_section): Adjust elf_finish_pointer_linker_section
3949 2005-03-22 Alan Modra <amodra@bigpond.net.au>
3951 * elf32-ppc.c (ppc_elf_set_sdata_syms): New function, extracted from..
3952 (ppc_elf_set_sdata_syms): ..here. Expand comment. Set .sbss start
3955 2005-03-21 Nick Clifton <nickc@redhat.com>
3957 * coff-arm.c (coff_link_hash_entry): Only define for non WINCE
3959 (t2a1_bx_pc_insn): Likewise.
3960 (t2a2_noop_insn): Likewise.
3961 (t2a3_b_insn): Likewise.
3962 (t2a1_push_insn): Likewise.
3963 (t2a2_ldr_insn): Likewise.
3964 (t2a3_mov_insn): Likewise.
3965 (t2a4_bx_insn): Likewise.
3966 (t2a5_pop_insn): Likewise.
3967 (t2a6_bx_insn): Likewise.
3968 (coff_arm_relocate_section): Only declare the high_address
3969 variable for non WINCE targets.
3971 2005-03-22 Alan Modra <amodra@bigpond.net.au>
3973 * elf32-ppc.c (ppc_elf_add_symbol_hook): Make htab->sbss
3974 SEC_LINKER_CREATED. Attach to dynobj.
3975 (ppc_elf_size_dynamic_sections): Strip htab->sbss if zero size.
3977 2005-03-21 Alan Modra <amodra@bigpond.net.au>
3979 * elf32-ppc.c (struct elf_linker_section): Remove sym_hash and
3980 sym_offset. Add name, bss_name, sym_name, sym_val.
3981 (struct ppc_elf_link_hash_table): Remove sdata and sdata2 pointers.
3982 Add sdata array of elf_linker_section_t.
3983 (ppc_elf_link_hash_table_create): Set name, sym_name, and bss_name.
3984 (enum elf_linker_section_enum): Delete.
3985 (ppc_elf_create_linker_section): Rewrite. Don't create syms here.
3986 (ppc_elf_check_relocs): Delay ppc_elf_create_linker_section until
3987 the special sections are needed. Adjust htab->sdata refs.
3988 Ensure dynobj is set in sreloc code.
3989 (ppc_elf_size_dynamic_sections): Strip sdata sections.
3990 (ppc_elf_set_sdata_syms): New function.
3991 (elf_finish_pointer_linker_section): Use 0x8000 for sym_offset.
3992 (ppc_elf_relocate_section): Adjust references to htab->sdata. Use
3993 sym_val instead of sym_hash.
3994 * elf32-ppc.h (ppc_elf_set_sdata_syms): Declare.
3996 2005-03-21 Alan Modra <amodra@bigpond.net.au>
3998 * elf32-ppc.c (is_ppc_elf_target): Move to linker part of file.
3999 (ppc_elf_merge_private_bfd_data): Likewise.
4001 2005-03-21 Alan Modra <amodra@bigpond.net.au>
4003 * elf32-ppc.c (struct elf_linker_section): Remove rel_section.
4004 (ppc_elf_create_linker_section): Don't create rel_section.
4005 (elf_create_pointer_linker_section): Don't size relocs.
4006 (elf_finish_pointer_linker_section): Remove relative_reloc parm.
4007 Don't generate relocs.
4008 (ppc_elf_relocate_section): Adjust calls to
4009 elf_finish_pointer_linker_section.
4011 2005-03-21 Alan Modra <amodra@bigpond.net.au>
4013 * elf32-ppc.c (is_ppc_elf_target): New function.
4014 (ppc_elf_merge_private_bfd_data): Use it rather than just testing
4015 for bfd_target_elf_flavour. Do this test before endian check.
4016 (ppc_elf_add_symbol_hook): Use is_pcc_elf_target.
4017 (ppc_elf_size_dynamic_sections): Likewise.
4019 2005-03-20 H.J. Lu <hongjiu.lu@intel.com>
4021 * elf-bfd.h (elf_backend_data): Add int to
4022 elf_backend_section_from_shdr.
4023 (bfd_elf_section_data): Update comment for this_idx.
4024 (_bfd_elf_make_section_from_shdr): Add int.
4025 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
4027 * elf.c (_bfd_elf_make_section_from_shdr): Take section index
4028 and use it to set this_idx in bfd_elf_section_data.
4029 (bfd_section_from_shdr): Pass shindex to
4030 _bfd_elf_make_section_from_shdr.
4031 (_bfd_elf_section_from_bfd_section): Use this_idx in
4032 bfd_elf_section_data to find section index.
4034 * elf32-arm.c (elf32_arm_section_from_shdr): Take section
4035 index and pass it to _bfd_elf_make_section_from_shdr.
4036 * elf32-i370.c(i370_elf_section_from_shdr): Likewise.
4037 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
4038 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
4039 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
4040 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
4041 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
4042 * elf64-x86-64.c (elf64_x86_64_section_from_shdr): Likewise.
4043 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
4044 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
4046 2005-03-19 Danny Smith <dannysmith@users.sourceforge.net>
4047 Ross Ridge <rridge@csclub.uwaterloo.ca>
4049 * peicode.h (pe_ILF_build_a_bfd): Strip only one prefix
4050 character in IMPORT_NAME_UNDECORATE and IMPORT_NAME_NOPREFIX
4053 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
4055 * elflink.c (elf_mark_used_section): Remove check for special
4058 2005-03-18 Andreas Schwab <schwab@suse.de>
4060 * elfxx-ia64.c (elfNN_ia64_install_value): Change type of insn
4061 from bfd_vma to ia64_insn, remove broken cast.
4063 2005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
4065 * elf32-m68k.c (elf_cfv4e_plt0_entry): plt entry for coldfire v4e.
4066 (elf_m68k_adjust_dynamic_symbol,elf_m68k_finish_dynamic_symbol,
4067 elf_m68k_finish_dynamic_sections): Use it.
4069 2005-03-17 Paul Brook <paul@codesourcery.com>
4070 Dan Jacobowitz <dan@codesourcery.com>
4071 Mark Mitchell <mark@codesourcery.com>
4073 * elf32-arm.c (elf32_arm_modify_segment_map): New function.
4074 (elf32_arm_additional_program_headers): Likewise.
4075 (elf_backend_modify_segment_map): Define.
4076 (elf_backend_additional_program_headers): Likewise.
4077 (elf32_arm_symbian_modify_segment_map): Use
4078 elf32_arm_modify_segment_map.
4080 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
4082 * elflink.c (elf_mark_used_section): Check bfd_is_const_section
4083 for special sections.
4085 2005-03-18 Alan Modra <amodra@bigpond.net.au>
4087 * elf-bfd.h (_bfd_elf_link_renumber_dynsyms): Delete.
4088 * elflink.c (_bfd_elf_link_renumber_dynsyms): Make static, add
4089 section_sym_count param, and return number of section symbols.
4090 (bfd_elf_size_dynamic_sections): Clear section symbol area of
4091 .dynsym contents. Don't bother calling swap_symbol_out on the
4092 first all-zero dynsym.
4093 (elf_mark_used_section): Formatting. Avoid twiddling flags in
4094 special sections like bfd_abs_section.
4095 (bfd_elf_gc_sections): Spelling fix.
4097 2005-03-16 Fred Fish <fnf@specifixinc.com>
4100 * dwarf2.c (read_indirect_string): Fix apparent typo, check
4101 dwarf_str_buffer allocation, not dwarf_abbrev_buffer.
4103 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
4105 * elflink.c (elf_mark_used_section): New.
4106 (bfd_elf_gc_sections): Call elf_gc_mark_section for
4107 non-relocatable link if we don't do GC.
4109 2005-03-16 Nick Clifton <nickc@redhat.com>
4110 Ben Elliston <bje@au.ibm.com>
4112 * configure.in (werror): New switch: Add -Werror to the
4113 compiler command line. Enabled by default. Disable via
4115 * configure: Regenerate.
4117 2005-03-16 Nick Clifton <nickc@redhat.com>
4119 * ecoff.c: Convert to ISO C90 formatting.
4121 2005-03-16 Alan Modra <amodra@bigpond.net.au>
4123 * elf32-ppc.c: Divide file into general and linker specific
4124 functions. Sort linker functions into roughly the order in which
4125 they are called by the ELF linker code.
4127 2005-03-16 Alan Modra <amodra@bigpond.net.au>
4129 * elf32-ppc.c (ppc_elf_create_linker_section): Set SEC_LINKER_CREATED
4130 on section. Correct comment, and add FIXME.
4131 (ppc_elf_additional_program_headers): Don't bump header count for
4132 interp. Test SEC_ALLOC, not SEC_LOAD, and don't test size.
4133 (ppc_elf_size_dynamic_sections): Don't strip sdata and sdata2, but
4134 do allocate memory if they need it.
4136 2005-03-15 Mikkel Krautz <krautz@gmail.com>
4138 * config.bfd (x86_64-elf): Add target.
4140 2005-03-15 Alan Modra <amodra@bigpond.net.au>
4142 * po/es.po: Commit new Spanish translation.
4144 2005-03-14 H.J. Lu <hongjiu.lu@intel.com>
4146 * elfxx-ia64.c (elfNN_ia64_relocate_section): Set symbo name
4147 for global symbol when reporting overflow.
4149 2005-03-11 Jakub Jelinek <jakub@redhat.com>
4151 * libbfd-in.h (_bfd_ar_spacepad): New prototype.
4152 * libbfd.h: Rebuilt.
4153 * archive.c (_bfd_ar_spacepad): New function.
4154 (_bfd_construct_extended_name_table, _bfd_write_archive_contents,
4155 bsd_write_armap, _bfd_archive_bsd_update_armap_timestamp,
4156 coff_write_armap): Use it.
4157 (bfd_ar_hdr_from_filesystem): Likewise. Fix HP-UX large
4159 * archive64.c (bfd_elf64_archive_write_armap): Use _bfd_ar_spacepad.
4161 2005-03-10 Mark Kettenis <kettenis@gnu.org>
4163 * archive.c (_bfd_look_for_bfd_in_cache): Move declaration of
4164 has_table to the start of the function.
4166 2005-03-10 Ben Elliston <bje@au.ibm.com>
4168 * archive.c: Include hashtab.h.
4169 (struct ar_cache): Rename `arelt' to `arbfd' and remove `next'.
4170 (_bfd_look_for_bfd_in_cache): Reimplement using htab_find.
4171 (hash_file_ptr): New function.
4172 (eq_file_ptr): Likewise.
4173 (_bfd_add_bfd_to_archive_cache): Reimplement using a hash table.
4174 * libbfd-in.h: Include hashtab.h.
4175 (struct artdata): Change `cache' member type to htab_t.
4176 * libbfd.h: Rebuild.
4178 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
4180 * configure.in: Bump version to 2.16.90.
4181 * configure: Regenerated.
4183 2005-03-07 Jakub Jelinek <jakub@redhat.com>
4185 * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp.
4186 close is a function like macro in system headers.
4188 2005-03-07 Alan Modra <amodra@bigpond.net.au>
4191 * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Reinstate
4192 _GLOBAL_OFFSET_TABLE_ as a normal dynamic symbol.
4194 2005-03-06 Alan Modra <amodra@bigpond.net.au>
4196 * elf.c (elfcore_grok_win32pstatus): Warning fixes.
4198 2005-03-05 Alan Modra <amodra@bigpond.net.au>
4200 * po/bfd.pot: Regenerate.
4202 2005-03-05 Alan Modra <amodra@bigpond.net.au>
4204 * elf64-ppc.c (update_plt_info): Don't mark new ABI call syms
4206 (func_desc_adjust): Force dot-syms local in executables as well
4209 2005-03-04 David Daney <ddaney@avtrex.com>
4211 * elfxx-mips.c (mips_elf_calculate_relocation): Handle special
4212 '__gnu_local_gp' symbol used by gas -mno-shared.
4214 2005-03-03 H.J. Lu <hongjiu.lu@intel.com>
4216 * elf-bfd.h (elf_backend_data): Add "const char *" to
4217 elf_backend_section_from_phdr.
4219 * elf.c (bfd_section_from_phdr): Pass "proc" to the
4220 elf_backend_section_from_phdr hook.
4222 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
4223 Joseph Myers <joseph@codesourcery.com>
4225 * elfxx-mips.c (struct mips_got_entry): Add tls_type.
4226 (struct mips_got_info): Add tls_gotno, tls_assigned_gotno,
4228 (struct mips_elf_got_per_bfd_arg): Add global_count.
4229 (struct mips_elf_count_tls_arg): New.
4230 (struct mips_elf_hash_sort_data): Update comment for min_got_dynindx.
4231 (struct mips_elf_link_hash_entry): Add tls_type and tls_got_offset.
4232 (GOT_NORMAL, GOT_TLS_GD, GOT_TLS_LDM, GOT_TLS_IE)
4233 (GOT_TLS_OFFSET_DONE, GOT_TLS_DONE): Define.
4234 (TLS_RELOC_P): Define.
4235 (TP_OFFSET, DTP_OFFSET): Define.
4236 (dtprel_base, tprel_base): New functions.
4237 (mips_elf_link_hash_newfunc): Initialize tls_type.
4238 (mips_elf_got_entry_hash, mips_elf_got_entry_eq)
4239 (mips_elf_multi_got_entry_hash, mips_elf_multi_got_entry_eq): Handle
4241 (mips_tls_got_relocs, mips_elf_count_local_tls_relocs)
4242 (mips_elf_count_global_tls_entries, mips_elf_count_global_tls_relocs)
4243 (mips_elf_output_dynamic_relocation, mips_elf_initialize_tls_slots)
4244 (mips_tls_got_index): New functions.
4245 (mips_elf_local_got_index): Add new R_SYMNDX, H, and R_TYPE
4246 arguments. Pass them to mips_elf_create_local_got_entry. Use
4248 (mips_elf_global_got_index): Add new R_TYPE and INFO arguments.
4250 (mips_elf_got_page, mips_elf_got16_entry): Update calls to
4251 mips_elf_create_local_got_entry.
4252 (mips_elf_create_local_got_entry): Add new R_SYMNDX, H, and R_TYPE
4253 arguments. Handle TLS entries.
4254 (mips_elf_sort_hash_table_f): Add non-TLS assertions.
4255 (mips_elf_record_local_got_symbol): Add new TLS_FLAG argument. Handle
4257 (mips_elf_record_global_got_symbol): Likewise.
4258 (mips_elf_make_got_per_bfd): Initialize new mips_got_info members.
4260 (mips_elf_merge_gots): Handle TLS entries when merging.
4261 (mips_elf_initialize_tls_index): New function.
4262 (mips_elf_set_global_got_offset): Handle TLS entries.
4263 (mips_elf_adjust_gp): Handle TLS.
4264 (mips_elf_multi_got): Remove redundant call to
4265 mips_elf_resolve_final_got_entries. Initialize global_count.
4266 Correct a comment. Initialize new TLS members of mips_got_info.
4267 Assign TLS GOT indexes for new GOTs.
4268 (mips_elf_create_got_section): Initialize new TLS members of
4270 (mips_elf_calculate_relocation): Handle TLS relocs.
4271 (_bfd_mips_elf_check_relocs): Likewise. Update calls to changed
4273 (_bfd_mips_elf_always_size_sections): Handle TLS.
4274 (_bfd_mips_elf_size_dynamic_sections): Likewise.
4275 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Update calls to
4277 (_bfd_mips_elf_copy_indirect_symbol): Copy tls_type.
4278 (_bfd_mips_elf_hide_symbol): Handle TLS.
4279 * elfn32-mips.c (elf_mips_howto_table_rel, elf_mips_howto_table_rela)
4280 (mips_reloc_map): Add TLS relocs.
4281 * elf32-mips.c (elf_mips_howto_table_rel, mips_reloc_map): Likewise.
4282 * elf64-mips.c (mips_elf64_howto_table_rel)
4283 (mips_elf64_howto_table_rela, mips_reloc_map): Likewise.
4284 * reloc.c: Define new MIPS TLS relocations.
4285 * libbfd.h, bfd-in2.h: Regenerated.
4287 2005-03-02 Jan Beulich <jbeulich@novell.com>
4289 * Makefile.am: Add dependency of cache.o on libiberty.h.
4290 * cache.c: Include libiberty.h.
4291 (bfd_open_file): Use unlink_if_ordinary instead of unlink.
4293 2005-03-01 Zack Weinberg <zack@codesourcery.com>
4295 * elf.c (bfd_section_from_shdr <default case>): Call
4296 elf_backend_section_from_shdr hook unconditionally, and return
4298 (bfd_section_from_phdr): Similarly, for elf_backend_section_from_phdr.
4299 * elfxx-target.h (elf_backend_section_from_shdr)
4300 (elf_backend_section_from_phdr): Default to
4301 _bfd_elf_make_section_from_shdr and _bfd_elf_make_section_from_phdr
4304 2005-03-01 Alan Modra <amodra@bigpond.net.au>
4306 * targets.h: Typo fix.
4307 * bfd-in2.h: Regenerate.
4309 * bout.c (b_out_write_object_contents): Don't use sizeof on host
4310 structs to size on-disk structures.
4311 (b_out_set_section_contents): Size the external struct, not the
4312 internal one for on-disk size.
4313 (b_out_sizeof_headers): Likewise.
4315 2005-03-01 Alan Modra <amodra@bigpond.net.au>
4317 * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym
4318 entry points with the func descriptor as well as undefweak.
4320 2005-02-28 Ross Ridge <rridge@csclub.uwaterloo.ca>
4322 * peicode.h (pe_ILF_build_a_bfd): Do not assume that an @ will be
4323 present when IMPORT_NAME_UNDOECRATE is used.
4325 2005-02-28 H.J. Lu <hongjiu.lu@intel.com>
4328 * elf-bfd.h (_bfd_elf_merge_symbol): Add a pointer to unsigned
4331 * elf32-sh-symbian.c (sh_symbian_relocate_section): Pass NULL
4332 to _bfd_elf_merge_symbol.
4334 * elflink.c (_bfd_elf_merge_symbol): Use the pointer to
4335 unsigned int to return the alignment of the old common symbol
4336 in the dynamic object.
4337 (_bfd_elf_add_default_symbol): Pass NULL to
4338 _bfd_elf_merge_symbol.
4339 (elf_link_add_object_symbols): Pass &old_alignment to
4340 _bfd_elf_merge_symbol. Get the alignment of the new common
4341 symbol in the dynamic object.
4343 2005-02-24 Ben Elliston <bje@au.ibm.com>
4345 * coffcode.h (coff_sym_filepos): Remove GNU960 conditional code.
4346 * format.c (bfd_check_format_matches): Likewise.
4347 * archive.c (BFD_GNU960_ARMAG): Likewise.
4348 (bfd_generic_archive_p): Likewise.
4349 (_bfd_write_archive_contents): Likewise.
4351 2005-02-24 H.J. Lu <hongjiu.lu@intel.com>
4353 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.95.
4354 * configure: Regenerate.
4356 2005-02-24 Julian Brown <julian@sirius.codesourcery.com>
4358 * elflink.c (elf_link_add_object_symbols): Force symbols in discarded
4359 COMDAT group sections to have default visibility.
4361 2005-02-24 Alan Modra <amodra@bigpond.net.au>
4363 * coffcode.h (coff_print_aux): Warning fix.
4364 * elf-m10300.c (mn10300_elf_relax_section): Use section->id
4365 instead of section pointer to identify.
4366 * coff-h8300.c (h8300_reloc16_extra_cases): Likewise. Allocate
4367 the correct size buffer for local sym mangling too.
4368 (h8300_bfd_link_add_symbols): Likewise.
4369 * elf32-sh-symbian.c (sh_symbian_process_embedded_commands): Fix
4371 * elf32-sh64.c (shmedia_prepare_reloc): Use %B and %p in error message
4372 * elf32-xtensa.c (literal_value_hash): Warning fix.
4373 * versados.c (process_otr): Warning fix.
4374 (versados_canonicalize_reloc): Likewise.
4375 * vms-gsd.c (_bfd_vms_slurp_gsd): Warning fix.
4376 * vms.c (fill_section_ptr): Warning fix.
4378 2005-02-23 H.J. Lu <hongjiu.lu@intel.com>
4380 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Defined.
4381 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Likewise.
4383 2005-02-23 Nick Clifton <nickc@redhat.com>
4385 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Initialise
4386 the relvaddr field of the Elf32_crinfo structure.
4388 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Initialise
4389 variables that are passed by reference to
4390 m68hc11_get_relocation_value in case that function does not
4393 * elf32-cr16c.c (cr16c_elf_final_link_relocate): Remove duplicated
4394 return statements and replace with a single return at the end of
4395 the function. This helps pacify the flow analysis code in gcc 4.0.
4397 * elf.c (_bfd_elf_compute_section_file_positions): Initialise
4398 strtab to avoid compile time warning.
4400 2005-02-23 Ben Elliston <bje@au.ibm.com>
4402 * opncls.c (bfd_zalloc): Document this function.
4404 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
4406 * coffcode.h (sec_to_styp_flags): Replaced SEC_CLINK with
4407 SEC_TIC54X_CLINK. Replace SEC_BLOCK with SEC_TIC54X_BLOCK.
4408 Replace SEC_SHARED with SEC_COFF_SHARED.
4409 (styp_to_sec_flags): Likewise.
4411 * elfxx-target.h (TARGET_BIG_SYM): Remove SEC_ARCH_BIT_0.
4412 (TARGET_LITTLE_SYM): Likewise.
4414 * section.c (SEC_ARCH_BIT_0): Removed.
4415 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Defined with
4416 SEC_LINK_DUPLICATES_ONE_ONLY and SEC_LINK_DUPLICATES_SAME_SIZE.
4417 (SEC_SHARED): Renamed to ...
4418 (SEC_COFF_SHARED): This.
4419 (SEC_BLOCK): Renamed to ...
4420 (SEC_TIC54X_BLOCK): This.
4421 (SEC_CLINK): Renamed to ...
4422 (SEC_TIC54X_CLINK): This.
4423 (SEC_XXX): Rearranged. Move SEC_COFF_SHARED_LIBRARY,
4424 SEC_COFF_SHARED, SEC_TIC54X_BLOCK and SEC_TIC54X_CLINK to the
4426 * bfd-in2.h: Regenerated.
4428 2005-02-21 Fred Fish <fnf@specifixinc.com>
4430 * dwarf2.c (find_abstract_instance_name): Call recursively
4431 to handle a DW_AT_specification.
4433 2005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4435 * elfxx-mips.c (ecoff_swap_rpdr_out, mips_elf_output_extsym,
4436 mips_elf_create_dynamic_relocation,
4437 _bfd_mips_elf_size_dynamic_sections, _bfd_mips_elf_final_link):
4438 Remove #if 0'd code.
4440 2005-02-21 Alan Modra <amodra@bigpond.net.au>
4442 * Makefile.am: Run "make dep-am"
4443 * Makefile.in: Regenerate.
4445 2005-02-21 Alan Modra <amodra@bigpond.net.au>
4447 * coffgen.c (bfd_coff_get_comdat_section): Check that
4448 coff_section_data isn't NULL.
4450 2005-02-21 Alan Modra <amodra@bigpond.net.au>
4452 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Warning fix.
4453 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Likewise.
4454 * coff-rs6000.c (xcoff_write_armap_big): Warning fixes. Remove
4455 useless assignments.
4456 (xcoff_write_archive_contents_big): Likewise.
4457 (_bfd_xcoff_put_ldsymbol_name): Likewise.
4458 * coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise.
4459 * coffgen.c (coff_write_symbols): Make "written" a bfd_vma.
4460 * cofflink.c (process_embedded_commands): Warning fixes.
4461 * cpu-arm.c: Delete unnecessary prototypes. Convert to C90.
4463 * dwarf2.c: Warning fixes.
4464 * elf-bfd.h: Likewise.
4465 * elf-eh-frame.c: Likewise.
4466 * elf-strtab.c: Likewise.
4468 * elf32-m68k.c: Likewise.
4469 * elf32-ppc.c: Likewise.
4470 * elf32-sh-symbian.c: Likewise.
4471 * elf32-sh.c: Delete unnecessary prototypes. Warning fixes.
4472 * elf64-sh64.c: Likewise.
4473 * peicode.h: Likewise.
4474 * elf64-mmix.c: Warning fixes.
4475 * elfcode.h: Likewise.
4476 * elfxx-mips.c: Likewise.
4477 * libbfd-in.h: Likewise.
4478 * libbfd.c: Likewise.
4479 * mach-o.c: Likewise.
4480 * merge.c: Likewise.
4482 * opncls.c: Likewise.
4485 * vms-hdr.c: Likewise.
4486 * vms-tir.c: Likewise.
4487 * xtensa-isa.c: Likewise.
4488 * xtensa-modules.c: Likewise.
4490 (pstrcmp): Use correct choice of string lengths. Fix return value.
4491 (bfd_sym_module_name): Correct string length.
4492 * bfd-in2.h: Regenerate.
4493 * libbfd.h: Regenerate.
4495 2005-02-17 Alexandre Oliva <aoliva@redhat.com>
4497 * elf32-frv.c (elf32_frv_relocate_section): Remove warning from
4498 uninitialized check_segment[1] in TLSMOFF case.
4499 Reported by Alan Modra.
4500 (elf32_frv_relocate_section): Improve errors and warnings.
4502 2005-02-17 Alan Modra <amodra@bigpond.net.au>
4504 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning.
4506 2005-02-16 Alan Modra <amodra@bigpond.net.au>
4508 * coff-arm.c (coff_arm_is_local_label_name): Warning fix.
4509 * elf32-frv.c (frvfdpic_relocs_info_hash): Likewise.
4510 * pef.c (bfd_pef_scan): Don't ignore return value of
4511 bfd_pef_scan_start_address.
4512 * mach-o.c (bfd_mach_o_scan): Don't ignore return value of
4513 bfd_mach_o_scan_start_address.
4514 * elfxx-ia64.c (elfNN_ia64_relax_brl): Rewrite for 32-bit bfd_vma.
4515 * elfxx-mips.c: Remove unnecessary prototypes.
4516 (sort_dynamic_relocs_64): Abort if not BFD64.
4518 2005-02-16 Alan Modra <amodra@bigpond.net.au>
4520 * elf64-ppc.c (ppc64_elf_edit_toc): Skip toc if size is zero.
4521 Skip toc reloc adjust if reloc_count is zero.
4523 2005-02-15 Nigel Stephens <nigel@mips.com>
4524 Maciej W. Rozycki <macro@mips.com>
4526 * elf32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
4527 reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
4528 R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
4529 (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
4530 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
4532 (mips16_gprel_reloc): Remove bit shuffling; call
4533 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
4534 and _bfd_mips16_elf_reloc_shuffle() instead.
4535 (mips16_reloc_map): New reloc map for MIPS16 relocs.
4536 (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
4538 (mips_elf32_rtype_to_howto): Fetch MIPS16 howtos from
4539 elf_mips16_howto_table_rel.
4540 * elf64-mips.c (mips16_elf64_howto_table_rel): New array for
4541 MIPS16 REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16
4542 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
4543 (elf_mips16_jump_howto): Move into mips16_elf64_howto_table_rel.
4544 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
4546 (mips16_elf64_howto_table_rela): New array for MIPS16 RELA
4547 reloc howtos. Add R_MIPS16_26, R_MIPS16_GPREL, R_MIPS16_HI16 and
4548 R_MIPS16_LO16 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16
4550 (mips16_gprel_reloc): Remove bit shuffling; call
4551 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
4552 and _bfd_mips16_elf_reloc_shuffle() instead.
4553 (mips16_reloc_map): New reloc map for MIPS16 relocs.
4554 (bfd_elf64_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
4556 (mips_elf64_rtype_to_howto): Fetch MIPS16 howtos from
4557 mips16_elf64_howto_table_rela or mips16_elf64_howto_table_rel.
4558 * elfn32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
4559 REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
4560 R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
4561 (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
4562 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
4564 (mips16_gprel_reloc): Remove bit shuffling; call
4565 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
4566 and _bfd_mips16_elf_reloc_shuffle() instead.
4567 (mips16_reloc_map): New reloc map for MIPS16 relocs.
4568 (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
4570 (mips_elf_n32_rtype_to_howto): Fetch MIPS16 howtos from
4571 elf_mips16_howto_table_rela or elf_mips16_howto_table_rel.
4572 * elfxx-mips.c (_bfd_mips16_elf_reloc_unshuffle): New function to
4573 handle bit shuffling for MIPS16 relocs.
4574 (_bfd_mips16_elf_reloc_shuffle): Likewise.
4575 (_bfd_mips_elf_lo16_reloc): Use _bfd_mips16_elf_reloc_unshuffle()
4576 and _bfd_mips16_elf_reloc_shuffle().
4577 (_bfd_mips_elf_generic_reloc): Likewise.
4578 (mips_elf_calculate_relocation): Likewise. Handle R_MIPS16_HI16
4580 (mips_elf_obtain_contents): Remove bit shuffling.
4581 (mips_elf_perform_relocation): Likewise; call
4582 _bfd_mips16_elf_reloc_unshuffle() and _bfd_mips16_elf_reloc_shuffle()
4584 (_bfd_mips_elf_relocate_section): Likewise. Handle R_MIPS16_HI16
4586 * elfxx-mips.h (_bfd_mips16_elf_reloc_unshuffle): Declare.
4587 (_bfd_mips16_elf_reloc_shuffle): Likewise.
4588 * reloc.c (BFD_RELOC_MIPS16_HI16): New reloc.
4589 (BFD_RELOC_MIPS16_HI16_S): Likewise.
4590 (BFD_RELOC_MIPS16_LO16): Likewise.
4591 * bfd-in2.h: Regenerate.
4592 * libbfd.h: Regenerate.
4594 2005-02-15 Jan Beulich <jbeulich@novell.com>
4596 * elfxx-ia64.c (ia64_howto_table): Correct strings for
4597 R_IA64_DTPMOD64[LM]SB.
4599 2005-02-14 H.J. Lu <hongjiu.lu@intel.com>
4601 * elfxx-ia64.c (elfNN_ia64_relax_section): Allow relax
4602 backward branch in the same section.
4603 (elfNN_ia64_relocate_section): Inform users that the input
4604 section is too big to relax br instruction when overflow
4605 happens to R_IA64_PCREL21B, R_IA64_PCREL21BI, R_IA64_PCREL21M
4606 and R_IA64_PCREL21F.
4608 2005-02-14 Orjan Friberg <orjanf@axis.com>
4610 * elfcore.h (elf_core_file_p): Move the call to
4611 elf_backend_object_p to allow the correct machine to be set before
4612 processing the program headers.
4614 2005-02-14 Nick Clifton <nickc@redhat.com>
4617 * peicode.h (pe_bfd_copy_private_bfd_data): Copy the large address
4618 aware flag from the input bfd to the output bfd.
4620 2005-02-11 Maciej W. Rozycki <macro@mips.com>
4622 * elf32-mips.c (_bfd_mips_elf32_gprel16_reloc): Reject
4623 R_MIPS_LITERAL relocations for external symbols.
4624 * elf64-mips.c (mips_elf64_literal_reloc): Likewise.
4625 * elfn32-mips.c (mips_elf_literal_reloc): Likewise.
4627 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
4629 * bfd-in2.h: Rebuilt.
4631 2005-02-11 Paul Brook <paul@codesourcery.com>
4633 * elf-bfd.h (struct elf_link_hash_table): Add
4634 is_relocatable_executable.
4635 * elf.c (_bfd_elf_link_hash_table_init): Initialize it.
4636 * elflink.c (bfd_elf_link_record_dynamic_symbol): Create local dynamic
4637 symbols in relocatable executables.
4638 (bfd_elf_record_link_assignment): Create dynamic section symbols in
4639 relocatable executables.
4640 (_bfd_elf_link_renumber_dynsyms): Ditto.
4641 (bfd_elf_final_link): Ditto.
4642 * elf32-arm.c (elf32_arm_final_link_relocate): Copy absolute
4643 relocations into relocatable executables.
4644 (elf32_arm_check_relocs): Crate dynamic sections for relocatable
4645 executables. Also copy absolute relocations.
4646 (elf32_arm_adjust_dynamic_symbol): Don't create copy relocations
4647 in relocatable executables.
4648 (allocate_dynrelocs): Copy relocations for relocatable executables.
4649 Output dynamic symbols for symbols defined in linker scripts.
4651 2005-02-11 Nick Clifton <nickc@redhat.com>
4653 * libbfd.c (read_signed_leb128): Use an unsigned type for 'shift'
4654 to avoid a compile time warning.
4656 * coff-alpha.c (alpha_adjust_reloc_in): Remove redundant test from
4659 * coff-tic4x.c (coff_rtype_to_howto): Move definition before
4660 inclusion of coffcode.h so that it is actually picked up.
4662 * coffcode.h (coff_std_swap_table): Add an unused attribute in
4663 case it is not used.
4665 * elf32-ip2k.c (ip2k_call_opcode, IS_CALL_OPCODE): Remove unused
4666 structure and macro.
4668 * elf32-iq2000.c (iq2000_reloc_map): Remove unused structure and
4671 * elf32-m32r.c (m32r_reloc_map_old): Use #ifdef USE_M32R_OLD_RELOC
4672 to protect the declaration of this array.
4674 * xsym.c (bfd_sym_parse_contained_variables_table_entry_v32):
4675 Avoid call to memcpy with a size of 0.
4677 2005-02-12 Alan Modra <amodra@bigpond.net.au>
4679 * elf64-ppc.c (toc_adjusting_stub_needed): Return true for
4680 old-style branches to undefined dot-symbols which will be
4681 satisfied by a plt call.
4683 2005-02-11 Alan Modra <amodra@bigpond.net.au>
4685 * elf64-ppc.c (move_plt_plist): New function, extracted from..
4686 (ppc64_elf_copy_indirect_symbol): ..here.
4687 (func_desc_adjust): Use move_plt_plist.
4689 2005-02-10 Paul Brook <paul@codesourcery.com>
4691 * elf32-arm.c (elf32_arm_final_link_relocate): Handle R_ARM_THM_PC9.
4693 2005-02-10 Paul Brook <paul@codesourcery.com>
4695 * elflink.c (bfd_elf_record_link_assignment): Make hidden and internal
4697 (elf_link_renumber_hash_table_dynsyms): Ignore local symbols.
4698 (elf_link_renumber_local_hash_table_dynsyms): New function.
4699 (_bfd_elf_link_renumber_dynsyms): Number local dynamic symbols.
4701 2005-02-10 Jakub Jelinek <jakub@redhat.com>
4703 * bfd-in.h (BFD_LINKER_CREATED): Define.
4704 * bfd-in2.h: Rebuilt.
4705 * elflink.c (bfd_elf_size_dynamic_sections): Disregard
4706 BFD_LINKER_CREATED bfds when determining input bfds without
4707 .note.GNU-stack section.
4709 2005-02-10 Maciej W. Rozycki <macro@mips.com>
4711 * elf64-mips.c (mips16_gprel_reloc): Update a comment.
4712 * elfn32-mips.c (mips16_gprel_reloc): Keep R_MIPS16_GPREL
4713 relocations against external symbols unchanged.
4715 2005-02-08 Paul Brook <paul@codesourcery.com>
4717 * elflink.c (elf_link_input_bfd): Ignore symbols from null input
4720 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
4722 * elflink.c (elf_link_add_object_symbols): Don't add "warning: "
4725 2005-02-07 Maciej W. Rozycki <macro@mips.com>
4727 * elf64-mips.c: Fix formatting throughout.
4729 2005-02-07 Maciej W. Rozycki <macro@mips.com>
4731 * elfn32-mips.c (elf_mips_howto_table_rela): Fix a comment typo.
4733 2005-02-07 Alexandre Oliva <aoliva@redhat.com>
4735 * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove special handling for
4736 *ABS*/*UND* sections.
4737 (elf32_frv_relocate_section): Move zero-addend-required error...
4738 (_frv_emit_got_relocs_plt_entries): ... here. Report error for
4739 missing needed TLS section.
4741 2005-02-07 Hans-Peter Nilsson <hp@axis.com>
4743 * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO
4744 being the last symbol.
4745 (aout_link_add_symbols): Just return TRUE if a warning
4748 2005-02-07 Maciej W. Rozycki <macro@mips.com>
4750 * elf32-mips.c (mips_elf_gprel32_reloc): Reject
4751 R_MIPS_GPREL32 relocations against external symbols.
4752 * elf64-mips.c (mips_elf64_gprel32_reloc): Replace an incorrect
4755 2005-02-07 Alan Modra <amodra@bigpond.net.au>
4757 * elf-bfd.h (elf_string_from_elf_strtab): Delete macro.
4758 * elf.c (bfd_elf_string_from_elf_section): Expand occurrence of
4759 elf_string_from_elf_strtab.
4760 (_bfd_elf_setup_group_pointers, bfd_section_from_shdr): Likewise.
4761 (bfd_section_from_shdr): For SHT_SYMTAB, load SHT_SYMTAB_SHNDX too
4762 if it exists. Don't do the reverse for SHT_SYMTAB_SHNDX. For
4763 SHT_STRTAB, check whether the strtab is for symtab or dynsymtab by
4764 looking at cached symtab info first, before iterating over headers.
4765 For SHT_REL and SHT_RELA, load dynsymtab if needed.
4766 * elfcode.h (elf_object_p): Don't load section header stringtab
4769 2005-02-06 H.J. Lu <hongjiu.lu@intel.com>
4771 * elf32-i386.c (elf_i386_relocate_section): Disallow R_386_GOTOFF
4772 against protected function when building shared library.
4775 * elf64-x86-64.c (is_32bit_relative_branch): New.
4776 (elf64_x86_64_relocate_section): Alllow R_X86_64_PC32 on a
4777 protected function symbol when building shared library for
4778 32bit relative branch instruction.
4780 2005-02-06 Alan Modra <amodra@bigpond.net.au>
4782 * elf64-ppc.c (add_symbol_adjust): Don't create fake descriptor
4783 syms when doing a relocatable link.
4784 (ppc64_elf_gc_mark_hook): Check that syms are defined before looking
4786 (ppc64_elf_tls_setup): Likewise.
4787 (ppc64_elf_edit_opd): Don't use an undefined func desc sym.
4789 2005-02-04 Alan Modra <amodra@bigpond.net.au>
4791 * elf64-ppc.c (struct ppc_link_hash_entry): Add "fake".
4792 (link_hash_newfunc): Clear all locals using memset.
4793 (make_fdh): Remove flags param. Always create fake func desc
4794 weak. Link the descriptor with the code entry sym.
4795 (ppc64_elf_archive_symbol_lookup): Don't return fake syms.
4796 (add_symbol_adjust): Adjust make_fdh call.
4797 (func_desc_adjust): Likewise. Twiddle any pre-existing fake
4798 descriptor to strong undefined if code entry is strong.
4800 2005-02-04 Alan Modra <amodra@bigpond.net.au>
4802 * elflink.c (bfd_elf_record_link_assignment): Do "provide" symbol
4803 lookup here. Set to new before calling bfd_link_repair_undef_list.
4804 (elf_smash_syms): Check that u.undef.weak isn't the not_needed bfd.
4806 2005-02-03 Alan Modra <amodra@bigpond.net.au>
4808 * linker.c (_bfd_link_hash_newfunc): Set all local fields.
4810 2005-02-03 Alan Modra <amodra@bigpond.net.au>
4812 * linker.c (_bfd_generic_link_add_one_symbol): Set u.undef.weak.
4813 * elflink.c (elf_smash_syms): Restore symbols that were undefweak
4814 before the as-needed lib was loaded. Abort on unexpected refs.
4816 2005-02-02 Alan Modra <amodra@bigpond.net.au>
4818 * elflink.c (elf_smash_syms): Expand comments.
4819 (elf_link_add_object_symbols): Only call elf_smash_syms for
4820 as-needed dynamic objects.
4822 * elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear
4823 everything, just the field specific to ia64.
4824 * elf64-hppa.c (elf64_hppa_new_dyn_hash_entry): Likewise.
4826 2005-02-01 Alan Modra <amodra@bigpond.net.au>
4828 * elf64-ppc.c (func_desc_adjust): Move code creating func desc sym to..
4829 (make_fdh): ..here. New function. Don't set BSF_OBJECT for
4831 (struct add_symbol_adjust_data): New.
4832 (add_symbol_adjust): Make an undefweak func desc for old ABI
4833 objects to link with --as-needed shared libs. Return fail status.
4834 Don't adjust old ABI func entry sym to weak if func desc syms
4836 (ppc64_elf_check_directives): Adjust call to add_symbol_adjust,
4839 2005-02-01 Hans-Peter Nilsson <hp@axis.com>
4841 * cpu-cris.c (get_compatible): Rearrange disabled code and comment
4844 2005-02-01 Alan Modra <amodra@bigpond.net.au>
4846 * elf64-ppc.c (ppc64_elf_check_directives): Move undefs list fixup..
4847 * linker.c (bfd_link_repair_undef_list): ..to new function, but don't
4848 remove anything but new and undefweak.
4849 * elflink.c (_bfd_elf_link_create_dynamic_sections): Override any
4851 (_bfd_elf_create_dynamic_sections): Formatting.
4852 (bfd_elf_record_link_assignment): Call bfd_link_repair_undef_list.
4853 (_bfd_elf_merge_symbol): Don't handle as-needed syms here.
4854 (struct elf_smash_data): New.
4855 (elf_smash_syms): New function.
4856 (elf_link_add_object_symbols): Call elf_smash_syms. Don't add
4857 unneeded dynamic objects to loaded list.
4858 (elf_link_output_extsym): Don't handle as-needed here. Strip
4859 bfd_link_hash_new symbols.
4860 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
4861 delref when dynindx is already -1.
4862 * elf64-alpha.c (elf64_alpha_output_extsym): Strip bfd_link_hash_new
4864 * elfxx-mips.c (mips_elf_output_extsym): Likewise.
4866 2005-02-01 Ben Elliston <bje@au.ibm.com>
4868 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Redefine.
4870 2005-02-01 Ben Elliston <bje@au.ibm.com>
4872 * aout-arm.c, aout-target.h, aoutx.h, archive.c, armnetbsd.c,
4873 bfd-in.h, bfdio.c, coff-alpha.c, coff-arm.c, coff-h8300.c,
4874 coff-i860.c, coff-mcore.c, coff-or32.c, coff-ppc.c, coff-sh.c,
4875 coff-sparc.c, coffcode.h, coffgen.c, cofflink.c, cpu-cris.c,
4876 cpu-h8500.c, cpu-ns32k.c, ecoff.c, ecofflink.c, elf.c,
4877 elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-hppa.c,
4878 elf32-i860.c, elf32-ip2k.c, elf32-m32r.c, elf32-sh.c,
4879 elf32-v850.c, elf64-mips.c, elf64-sparc.c, elflink.c,
4880 i386aout.c, i386msdos.c, i386os9k.c, ieee.c, mach-o.c,
4881 nlm32-sparc.c, oasys.c, opncls.c, pdp11.c, pe-mips.c, peXXigen.c,
4882 pef.c, peicode.h, reloc.c, riscix.c, section.c, simple.c, som.c,
4883 sparclynx.c, targets.c, vms-misc.c, vms-tir.c, xsym.c,
4884 hosts/delta68.h, hosts/vaxbsd.h: Remove #if 0'd code
4885 throughout. Similarly, collapse #if 1'd code.
4887 2005-02-01 Ben Elliston <bje@au.ibm.com>
4889 * elf-bfd.h (bfd_elf_discard_group): Remove.
4890 * elf.c (bfd_elf_discard_group): Likewise.
4891 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Remove macro.
4893 2005-01-31 Richard Sandiford <rsandifo@redhat.com>
4895 * elf-bfd.h (elf_backend_data): Add elf_backend_eh_frame_address_size.
4896 (_bfd_elf_eh_frame_address_size): Declare.
4897 * elfxx-target.h (elf_backend_eh_frame_address_size): Define a default.
4898 (elfNN_bed): Initialize elf_backend_eh_frame_address_size.
4899 * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Declare.
4900 (elf_backend_eh_frame_address_size): Define.
4901 * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): New function.
4902 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Get the address
4903 size from the new backend hook.
4904 (_bfd_elf_write_section_eh_frame): Likewise.
4905 (_bfd_elf_eh_frame_address_size): New function.
4907 2005-01-31 Andrew Cagney <cagney@gnu.org>
4909 * configure: Regenerate to track ../gettext.m4.
4911 2005-01-31 Mark Mitchell <mark@codesourcery.com>
4913 * elf32-arm.c (elf32_arm_symbian_special_sections): Do not set
4914 SHF_WRITE for .init_array, .fini_array, and .preinit_array.
4916 2005-01-31 Nick Clifton <nickc@redhat.com>
4918 * confg.bfd: Make targets scheduled for obsoletion (m68k-lynxos,
4919 sparc-lynxos, vax-vms) be obsolete.
4921 2005-01-28 Daniel Jacobowitz <dan@codesourcery.com>
4923 * elf-bfd.h (struct elf_backend_data): Add minpagesize.
4924 * elf32-arm.c (ELF_MINPAGESIZE): Define.
4925 * elf32-ppc.c (ELF_MINPAGESIZE): Define.
4926 * elfcode.h (elf_object_p): Use minpagesize instead of
4928 * elfxx-target.h (ELF_MINPAGESIZE): Default to ELF_MAXPAGESIZE.
4929 (elfNN_bed): Include ELF_MINPAGESIZE.
4931 2005-01-28 Julian Brown <julian@codesourcery.com>
4933 * bin-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
4934 * bin-in2.h (bfd_elf32_arm_set_target_relocs): Update prototype.
4935 * elf32-arm.c (elf32_arm_link_hash_table): Add fix_v4bx flag.
4936 (bfd_elf32_arm_set_target_relocs): Add formal parameter fix_v4bx for
4937 passing flag value from ld. Set flag value in global hash table entry.
4938 (elf32_arm_final_link_relocate): Add code to implement R_ARM_V4BX
4941 2005-01-27 Andrew Cagney <cagney@gnu.org>
4943 * configure: Regenerate to track ../gettext.m4 change.
4945 2005-01-25 Mark Mitchell <mark@codesourcery.com>
4947 * elf32-arm.c (elf_backend_default_use_rela_p): Define to zero for
4950 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
4952 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
4953 * elf32-frv.c (elf32_frv_relocate_section): Force local binding
4955 * reloc.c: Add R_FRV_TLSMOFF.
4956 * elf32-frv.c (elf32_frv_howto_table): Likewise.
4957 (frv_reloc_map, frv_reloc_type_lookup): Map it.
4958 (elf32_frv_relocate_section): Handle it.
4959 (elf32_frv_check_relocs): Likewise.
4960 * libbfd.h, bfd-in2.h: Rebuilt.
4961 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
4962 * elf32-frv.c (_frvfdpic_emit_got_relocs_plt_entries): Don't crash
4963 when given an undefweak TLS symbol. Fix constant TLS PLT entries
4964 such that they return the constant in gr9.
4965 (_frvfdpic_relax_tls_entries): Don't crash for undefweak TLS
4967 (_frvfdpic_size_got_plt): Set _cooked_size of dynamic sections.
4968 too, such that they shrink on relaxation.
4969 (elf32_frvfdpic_finish_dynamic_sections): Check __ROFIXUP_END__ as
4970 marking the position right past the _GLOBAL_OFFSET_TABLE_ value.
4971 (_frvfdpic_assign_plt_entries): Shrink constant TLS PLT entries
4972 if we can guarantee the use of 16-bit constants.
4973 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
4974 Introduce TLS support for FR-V FDPIC.
4975 * reloc.c: Add TLS relocations.
4976 * elf32-frv.c (elf32_frv_howto_table): Add TLS relocations.
4977 (elf32_frv_rel_tlsdesc_value_howto): New.
4978 (elf32_frv_rel_tlsoff_howto): New.
4979 (frv_reloc_map): Add new mappings.
4980 (struct frvfdpic_elf_link_hash_table): Add pointer to summary
4982 (frvfdpic_dynamic_got_plt_info): New.
4983 (frvfdpic_plt_tls_ret_offset): New.
4984 (ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE): Move earlier.
4985 (struct _frvfdpic_dynamic_got_info): Likewise. Add TLS members.
4986 (struct _frvfdpic_dynamic_got_plt_info): Likewise.
4987 (FRVFDPIC_SYM_LOCAL): Regard symbols defined in the absolute
4989 (struct frvfdpic_relocs_info): Add TLS fields.
4990 (frvfdpic_relocs_info_hash): Warning clean up.
4991 (frvfdpic_relocs_info_find): Initialize tlsplt_entry.
4992 (frvfdpic_pic_merge_early_relocs_info): Merge TLS fields.
4993 (FRVFDPIC_TLS_BIAS): Define.
4994 (tls_biased_base): New.
4995 (_frvfdpic_emit_got_relocs_plt_entries): Deal with TLS
4997 (frv_reloc_type_lookup): Likewise.
4998 (frvfdpic_info_to_howto_rel): Likewise.
4999 (elf32_frv_relocate_section): Likewise.
5000 (_frv_create_got_section): Create the PLT section here.
5001 (elf32_frvfdpic_create_dynamic_sections): Not here.
5002 (_frvfdpic_count_nontls_entries): Move out of...
5003 (_frvfdpic_count_got_plt_entries): ... here.
5004 (_frvfdpic_count_tls_entries): Likewise. Add TLS support.
5005 (_frvfdpic_count_relocs_fixups): Likewise. Add relaxation
5007 (_frvfdpic_relax_tls_entries): New.
5008 (_frvfdpic_compute_got_alloc_data): Add TLS support.
5009 (_frvfdpic_get_tlsdesc_entry): New.
5010 (_frvfdpic_assign_got_entries): Add TLS support.
5011 (_frvfdpic_assign_plt_entries): Likewise.
5012 (_frvfdpic_reset_got_plt_entries): New.
5013 (_frvfdpic_size_got_plt): Move out of...
5014 (elf32_frvfdpic_size_dynamic_sections): ... here.
5015 (_frvfdpic_relax_got_plt_entries): New.
5016 (elf32_frvfdpic_relax_section): New.
5017 (elf32_frvfdpic_finish_dynamic_sections): Add TLS sanity check.
5018 (elf32_frv_check_relocs): Add TLS support.
5019 (bfd_elf32_bfd_relax_section): Define for FDPIC.
5020 * libbfd.h, bfd-in2.h: Rebuilt.
5022 2005-01-25 Alan Modra <amodra@bigpond.net.au>
5024 * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound): Only include
5025 loadable reloc sections.
5026 (_bfd_elf_canonicalize_dynamic_reloc): Likewise.
5027 (_bfd_elf_get_synthetic_symtab): Return 0 if no dynamic syms.
5029 2005-01-25 Alan Modra <amodra@bigpond.net.au>
5031 * elflink.c (elf_link_add_object_symbols): Don't create link dynamic
5032 sections immediately when linking shared libs. Instead, wait until
5033 we know a lib is needed.
5034 (_bfd_elf_link_create_dynstrtab): Extract from..
5035 (_bfd_elf_link_create_dynamic_sections_): ..here.
5036 (elf_add_dt_needed_tag): Call _bfd_elf_link_create_dynstrtab and
5037 _bfd_elf_link_create_dynamic_sections. Add abfd param. Allow
5038 for non-existent .dynamic.
5039 (elf_link_output_extsym): Don't complain about undefined symbols
5040 in as-needed dynamic libs that aren't actually linked.
5042 2005-01-24 Andrew Cagney <cagney@gnu.org>
5044 * configure: Regenerate, ../gettext.m4 was updated.
5046 2005-01-21 Ben Elliston <bje@au.ibm.com>
5048 * aout-encap.c: Remove unused file.
5050 2005-01-19 H.J. Lu <hongjiu.lu@intel.com>
5053 * elflink.c (_bfd_elf_dynamic_symbol_p): Only protected
5054 non-function symbols are local.
5055 (_bfd_elf_symbol_refs_local_p): Likewise.
5057 2005-01-18 Alan Modra <amodra@bigpond.net.au>
5059 * bfd.c (bfd_link_just_syms): Add abfd param.
5060 * bfd-in2.h: Regenerate.
5062 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
5064 * elf-eh-frame.c (skip_cfa_op, skip_non_nops): New functions.
5065 (_bfd_elf_discard_section_eh_frame): Use them to interpret the CFA
5066 instructions. If the amount of padding is known, reduce the size
5067 of the CIE or FDE by that amount.
5069 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
5071 * elf-bfd.h (struct cie): Use bfd_vmas for code_align, ra_column and
5072 augmentation_size. Use bfd_signed_vmas for data_align.
5073 * elf-eh-frame.c (read_uleb128, read_sleb128): Delete in favor of...
5074 (read_byte, skip_leb128, read_uleb128, read_sleb128): ...these new
5075 functions. Don't read past the end of the enclosing CIE or FDE.
5076 (skip_bytes): New utility function.
5077 (_bfd_elf_discard_section_eh_frame): Use new functions, adding more
5079 (_bfd_elf_write_section_eh_frame): Use new functions.
5081 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
5083 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use an
5084 assert-style REQUIRE() macro to handle sanity checks.
5086 2005-01-17 H.J. Lu <hongjiu.lu@intel.com>
5088 * dwarf2.c (dwarf2_debug): Move info_ptr_unit to ...
5090 (read_unsigned_leb128): Removed.
5091 (read_signed_leb128): Removed.
5092 (find_abstract_instance_name): Updated.
5093 (parse_comp_unit): Accept info_ptr_unit.
5094 (_bfd_dwarf2_find_nearest_line): Set info_ptr_unit for each
5095 comp unit and pass it to parse_comp_unit.
5097 * elf-eh-frame.c (read_unsigned_leb128): Moved to ...
5098 (read_signed_leb128): Moved to ...
5101 * libbfd-in.h (read_unsigned_leb128): New prototype.
5102 (read_signed_leb128): Likewise.
5103 * libbfd.h: Regenerated.
5105 2005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
5106 Nick Clifton <nickc@redhat.com>
5108 * cpu-sh.c (bfd_to_arch_table): Change arch_sh1_up to arch_sh_up,
5109 arch__sh4_nofp_up to arch_sh4_nofpu_up and arch_sh4a_nofp_up to
5110 arch_sh4a_nofpu_up in order to match the external names and make the
5111 testsuite's job easier.
5112 * archuires.c: Rename bfd_mach_sh2a_fake? to more meaningful
5114 * bfd-in2.h: Regenerate.
5116 2005-01-15 Andrew Cagney <cagney@gnu.org>
5119 * acinclude.m4: Move BFD_NEED_DECLARATION,
5120 BFD_HAVE_SYS_PROCFS_TYPE and BFD_HAVE_SYS_PROCFS_TYPE_MEMBER to
5121 the new file bfd.m4. Include ../bfd/bfd.m4.
5122 * configure: Re-generate.
5124 2005-01-12 Alan Modra <amodra@bigpond.net.au>
5126 * elf32-ppc.c (ppc_elf_howto_raw): Delete RELAX32* entries.
5127 (ppc_elf_relax_section): Use PLT variants of RELAX32 relocs for
5129 (ppc_elf_relocate_section): Handle R_PPC_RELAX32_PLT and
5130 R_PPC_RELAX32PC_PLT.
5132 2005-01-11 Alan Modra <amodra@bigpond.net.au>
5134 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Follow indirect and warning
5136 * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
5137 * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
5138 * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
5139 * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
5140 * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
5141 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
5142 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Likewise.
5143 * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
5144 * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
5145 * elf32-sparc.c (elf32_sparc_gc_sweep_hook): Likewise.
5146 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
5147 * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
5148 * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
5149 * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
5151 2005-01-11 Alan Modra <amodra@bigpond.net.au>
5153 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Correct
5156 2005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
5158 * archures.c: Define bfd_mach_maxq10 and bfd_mach_maxq20.
5159 * bfd-in2.h: Regenerate.
5160 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Add code
5161 to support these new machine values.
5162 * cpu-maxq.c (bfd_maxq10_arch): New architecture definition for
5164 (bfd_maxq_arch): Update values for the maxq20.
5166 2005-01-10 Eric Botcazou <ebotcazou@libertysurf.fr>
5168 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): When linking a
5169 non-shared object, do not reserve space in .plt and .rela.plt for
5170 regular symbols neither defined nor referenced in shared objects.
5172 2005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5174 * elf32-sparc.c (elf32_sparc_link_hash_table_create): Use bfd_zmalloc
5175 to zero the structure.
5176 (create_got_section): Use BFD_ASSERT instead of abort.
5177 * elf64-sparc.c (struct sparc64_elf_link_hash_table): New 'sgot' and
5179 (create_got_section): New function.
5180 (sparc64_elf_create_dynamic_sections): Likewise.
5181 (sparc64_elf_check_relocs): Invoke create_got_section instead of
5182 _bfd_elf_create_got_section. Use the sgot and srelgot shortcuts.
5183 (sparc64_elf_size_dynamic_sections): Use the srelgot shortcut.
5184 (sparc64_elf_relocate_section): Use the sgot and srelgot shortcuts.
5185 (sparc64_elf_finish_dynamic_symbol): Likewise.
5186 (sparc64_elf_finish_dynamic_sections): Use the sgot shortcut.
5187 (elf_backend_create_dynamic_sections): Define to
5188 sparc64_elf_create_dynamic_sections.
5190 2005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5192 * elf32-sparc.c (elf32_sparc_omit_section_dynsym): New function.
5193 (elf_backend_omit_section_dynsym): Define to it.
5194 * elf64-sparc.c (sparc64_elf_omit_section_dynsym): New function.
5195 (elf_backend_omit_section_dynsym): Define to it.
5197 2005-01-07 Jakub Jelinek <jakub@redhat.com>
5199 * bfd/elf.c (INCLUDE_SECTION_IN_SEGMENT): Don't put empty sections into
5200 PT_DYNAMIC segment, unless .dynamic.
5202 2005-01-06 Paul Brook <paul@codesourcery.com>
5204 * config.bfd: Add entry for arm-*-vxworks and arm-*-windiss.
5205 * configure.in: Add bfd_elf32_{big,little}arm_vxworks_vec.
5206 * configure: Regenerate.
5207 * elf32-arm.c: Add VxWorks target bfd.
5209 (elf32_arm_link_hash_table): Add use_rel.
5210 (elf32_arm_link_hash_table_create, elf32_arm_final_link_relocate,
5211 elf32_arm_relocate_section): Replace USE_REL with runtime check.
5212 Correct offset calculation for RELA case.
5213 (elf_backend_may_use_rel_p, elf_backend_may_use_rela_p,
5214 elf_backend_default_use_rela_p, elf_backend_rela_normal): Define.
5215 (elf32_arm_vxworks_link_hash_table_create): New function.
5216 * targets.c (bfd_elf32_bigarm_vxworks_vec): Add declaration.
5217 (bfd_elf32_littlearm_vxworks_vec): Ditto.
5218 (_bfd_target_vector): Add bfd_elf32_{big,little}arm_vxworks_vec.
5220 2005-01-06 Alan Modra <amodra@bigpond.net.au>
5222 * elf64-ppc.c (struct ppc_link_hash_table): Add no_multi_toc and
5224 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Define.
5225 (ppc64_elf_check_relocs): Update references to has_gp_reloc.
5226 (ppc64_elf_setup_section_lists): Add no_multi_toc parm, set htab bit.
5227 (ppc64_elf_next_toc_section): Heed no_multi_toc.
5228 (ppc64_elf_reinit_toc): Set multi_toc_needed.
5229 (toc_adjusting_stub_needed): Rewrite.
5230 (ppc64_elf_next_input_section): Use multi_toc_needed to shortcut
5231 toc tests. Adjust for toc_adjusting_stub_needed changes.
5232 (ppc64_elf_size_stubs): Update references to has_gp_reloc.
5233 * elf64-ppc.h (ppc64_elf_setup_section_lists): Update prototype.
5234 * section.c: Expand comment on backend bits.
5235 * bfd-in2.h: Regenerate.
5236 * libbfd.h: Regenerate.
5238 2005-01-06 Alan Modra <amodra@bigpond.net.au>
5240 * elf64-ppc.c (ppc64_elf_size_stubs): When determining need for
5241 toc adjusting stub, do not test source section flags.
5243 2005-01-05 Eric Botcazou <ebotcazou@libertysurf.fr>
5245 * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
5246 from STABS debugging sections again.
5248 2005-01-05 Fred Fish <fnf@specifixinc.com>
5250 * dwarf2.c (struct dwarf2_debug): Add info_ptr_unit member.
5251 (find_abstract_instance_name): New function.
5252 (scan_unit_for_functions): Handle DW_TAG_inlined_subroutine.
5253 (scan_unit_for_functions): Handle DW_AT_abstract_origin.
5254 (_bfd_dwarf2_find_nearest_line): Initialize info_ptr_unit.
5256 2004-12-31 Paul Brook <paul@copdesourcery.com>
5258 * elf32-arm.c (elf32_arm_symbian_plt_entry): Fix comment typo.
5260 2004-12-31 Alan Modra <amodra@bigpond.net.au>
5262 * reloc.c (BFD_RELOC_AVR_LDI, BFD_RELOC_AVR_6, BFD_RELOC_AVR_6_ADIW):
5263 Commit missing changes from 2004-12-22.
5264 * bfd-in2.h: Regenerate.
5266 2004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
5268 * elf32-crx.c (elf32_crx_relax_section): Support 'bcop' relaxation.
5270 2004-12-21 Kris Warkentin <kewarken@qnx.com>
5272 * elf.c (elfcore_grok_nto_gregs): Change name to elfcore_grok_nto_regs.
5273 Add 'base' argument for constructing register sections. Reformat.
5274 (elfcore_grok_nto_note): Call elfcore_grok_nto_regs for both
5275 gp and fp regs. Reformat.
5277 2004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
5279 * reloc.c: Add new relocs R_AVR_LDI, R_AVR_6, R_AVR_6_ADIW.
5280 * bfd-in2.h: Regenerate.
5281 * elf32-avr.c (elf_avr_nowto_table): Add the new relocs.
5282 (avr_reloc_map): Likewise.
5283 (avr_final_link_relocate): Likewise.
5285 2004-12-22 Alan Modra <amodra@bigpond.net.au>
5287 * elflink.c (_bfd_elf_merge_symbol): Treat old definitions from
5288 as-needed dynamic libs as undefined.
5289 (elf_link_add_object_symbols): Remove DYN_AS_NEEDED from as-needed
5290 libs when finding they are needed.
5292 2004-12-20 Alan Modra <amodra@bigpond.net.au>
5294 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add opd_relocs.
5295 (opd_entry_value): Use opd_relocs if available.
5296 (ppc64_elf_relocate_section): Don't set reloc_done. Instead
5297 copy .opd relocations to opd_relocs.
5298 (ppc64_elf_edit_toc): Set rel_hdr.sh_size after editing relocs.
5300 2004-12-16 Richard Sandiford <rsandifo@redhat.com>
5302 * reloc.c (BFD_RELOC_V850_LO16_SPLIT_OFFSET): New bfd_reloc_code_type.
5303 * elf32-v850.c (v850_elf_howto_table): Add entry for
5304 R_V850_LO16_SPLIT_OFFSET.
5305 (v850_elf_reloc_map): Map it to BFD_RELOC_V850_LO16_SPLIT_OFFSET.
5306 (v850_elf_perform_lo16_relocation): New function, extracted from...
5307 (v850_elf_perform_relocation): ...here. Use it to handle
5308 R_V850_LO16_SPLIT_OFFSET.
5309 (v850_elf_check_relocs, v850_elf_final_link_relocate): Handle
5310 R_V850_LO16_SPLIT_OFFSET.
5311 * libbfd.h, bfd-in2.h: Regenerate.
5313 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
5315 * config.bfd: Add s390x-ibm-tpf support.
5317 2004-12-14 Tomer Levi <Tomer.Levi@nsc.com>
5319 * elf32-crx.c (elf32_crx_relax_delete_bytes): Add 'struct bfd_link_info *'
5320 to prototype, to make hash info available.
5321 Prevent wrapped symbols from being adjusted twice.
5323 2004-12-14 Richard Sandiford <rsandifo@redhat.com>
5325 * elfxx-mips.c (mips_elf_calculate_relocation): Don't report an
5326 overflow for calls to undefined weak symbols.
5328 2004-12-11 Alan Modra <amodra@bigpond.net.au>
5330 * elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
5331 canonical sections syms have a name.
5333 2004-12-11 Alan Modra <amodra@bigpond.net.au>
5335 * elf64-ppc.c (opd_entry_value): Don't use cached relocs if they
5336 have been adjusted for output.
5337 (ppc64_elf_relocate_section): Mark sections with reloc_done.
5339 2004-12-10 Alan Modra <amodra@bigpond.net.au>
5341 * elf.c (bfd_elf_sym_name): Rename from bfd_elf_local_sym_name and
5342 add symtab_hdr param.
5343 (group_signature): Update calls.
5344 * elf-bfd.h (bfd_elf_sym_name): Update.
5345 * elf32-ppc.c (ppc_elf_relocate_section): Update.
5346 * elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Update.
5347 (ppc64_elf_relocate_section): Update.
5348 * elflink.c (elf_link_input_bfd): Update.
5350 2004-12-10 Jakub Jelinek <jakub@redhat.com>
5352 * elf.c (bfd_elf_local_sym_name): Avoid crashes with invalid
5353 st_shndx on STT_SECTION sections.
5355 2004-12-09 Daniel Jacobowitz <dan@codesourcery.com>
5357 * elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalize
5358 ELF section symbols.
5360 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
5362 * elfxx-mips.c (mips_elf_calculate_relocation): For R_MIPS_JALR,
5363 return a real value, unless it is a PLT symbol.
5364 (mips_elf_perform_relocation): On the RM9000, turn a jal into a
5367 * elfn32-mips.c (elf_mips_howto_table_rela): Change dst_mask of
5368 R_MIPS_JALR entry to 0.
5370 * archures.c: Define bfd_mach_mips9000.
5371 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_9000.
5372 (mips_set_isa_flags): Handle bfd_mach_mips9000.
5373 * cpu-mips.c (I_mips9000): Define.
5374 (arch_info_struct): Add case for bfd_mach_mips9000.
5375 * aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mips9000.
5376 * bfd-in2.h: Regenerate.
5378 2004-12-08 Ian Lance Taylor <ian@wasabisystems.com>
5380 * elfxx-mips.c (mips_elf_calculate_relocation): Test for R_MIPS_26
5383 2004-12-07 Ben Elliston <bje@gnu.org>
5385 * netbsd-core.c (netbsd_core_file_p): Make `i' unsigned.
5387 2004-12-06 Daniel Jacobowitz <dan@debian.org>
5389 Suggested by Fergal Daly <fergal@esatclear.ie>:
5390 * simple.c (simple_dummy_multiple_definition): New function.
5391 (bfd_simple_get_relocated_section_contents): Use it.
5393 2004-12-03 Jan Beulich <jbeulich@novell.com>
5395 * elf.c (elf_find_function): Don't use the last file symbol ever,
5396 seen, but the last one seen prior to the symbol being reported.
5397 Don't report a filename at all for global symbols when that might
5400 2004-12-01 Paul Brook <paul@codesourcery.com>
5402 * elf32-arm.c (elf32_arm_copy_private_bfd_data): Set EI_OSABI.
5403 (elf32_arm_post_process_headers): Set EI_OSABI depending on ABI
5406 2004-12-01 Paul Brook <paul@codesourcery.com>
5408 * elflink.c (elf_link_add_object_symbols): Make symbols from discarded
5411 2004-11-30 Paul Brook <paul@codesourcery.com>
5413 * elf32-arm.c (struct elf32_arm_link_hash_table): Remove
5414 no_pipeline_knowledge
5415 (elf32_arm_link_hash_table_create): Ditto.
5416 (bfd_elf32_arm_process_before_allocation): Ditto.
5417 (elf32_arm_final_link_relocate): Ditto. Remove oabi relocation
5419 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
5421 * bfd-in2.h: Regenerate.
5423 2004-11-30 Randolph Chung <tausq@debian.org>
5425 * elf32-hppa.c (elf32_hppa_grok_prstatus): New function.
5426 (elf32_hppa_grok_psinfo): New function.
5427 (elf_backend_grok_prstatus): Define.
5428 (elf_backend_grok_psinfo): Define.
5430 2004-11-24 H.J. Lu <hongjiu.lu@intel.com>
5433 * elfcode.h (elf_slurp_symbol_table): Handle STT_TLS.
5435 2004-11-24 Paul Brook <paul@codesourcery.com>
5437 * elf.c (assign_section_numbers): Number SHT_GROUP sections first.
5439 2004-11-24 Paul Brook <paul@codesourcery.com>
5441 * elf32-arm.c (elf32_arm_swap_symbol_in): New function.
5442 (elf32_arm_swap_symbol_out): New function.
5443 (elf32_arm_size_info): Add.
5444 (elf_backend_size_info): Define.
5446 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5448 * hpux-core.c (hpux_core_core_file_p): Use offsetof macro in calls to
5451 2004-11-19 Alan Modra <amodra@bigpond.net.au>
5453 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Warning fix.
5454 * elf32-iq2000.c (iq2000_reloc_type_lookup): C90 function decl.
5455 * nlmcode.h (nlm_write_object_contents): Warning fix.
5457 2004-11-18 Bob Wilson <bob.wilson@acm.org>
5459 * elf32-xtensa.c (ebb_propose_action): Fix argument order.
5461 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
5463 * elf32-arm.c (PLT_THUMB_STUB_SIZE): Define.
5464 (elf32_arm_plt_thumb_stub): New.
5465 (struct elf32_arm_link_hash_entry): Add plt_thumb_refcount
5467 (elf32_arm_link_hash_traverse): Fix typo.
5468 (elf32_arm_link_hash_table): Add obfd.
5469 (elf32_arm_link_hash_newfunc): Initialize new fields.
5470 (elf32_arm_copy_indirect_symbol): Copy plt_thumb_refcount.
5471 (elf32_arm_link_hash_table_create): Initialize obfd.
5472 (record_arm_to_thumb_glue): Mark the glue as a local ARM function.
5473 (record_thumb_to_arm_glue): Mark the glue as a local Thumb function.
5474 (bfd_elf32_arm_get_bfd_for_interworking): Verify that the
5475 interworking BFD is not dynamic.
5476 (bfd_elf32_arm_process_before_allocation): Handle R_ARM_PLT32. Do
5477 not emit glue for PLT references.
5478 (elf32_arm_final_link_relocate): Handle Thumb functions. Do not
5479 emit glue for PLT references. Support the Thumb PLT prefix.
5480 (elf32_arm_gc_sweep_hook): Handle R_ARM_THM_PC22 and
5482 (elf32_arm_check_relocs): Likewise.
5483 (elf32_arm_adjust_dynamic_symbol): Handle Thumb functions and
5485 (allocate_dynrelocs): Handle Thumb PLT references.
5486 (elf32_arm_finish_dynamic_symbol): Likewise.
5487 (elf32_arm_symbol_processing): New function.
5488 (elf_backend_symbol_processing): Define.
5490 2004-11-16 Richard Sandiford <rsandifo@redhat.com>
5492 * elf-bfd.h (eh_cie_fde): Add new fields: add_augmentation_size and
5493 add_fde_encoding. Remove need_relative.
5494 * elf-eh-frame.c (extra_augmentation_string_bytes)
5495 (extra_augmentation_data_bytes, size_of_output_cie_fde): New functions.
5496 (_bfd_elf_discard_section_eh_frame): Consider changing the FDE encoding
5497 in cases where the CIE has no existing 'R' augmentation. Use
5498 size_of_output_cie_fde when assigning offsets. Use the final offset
5499 as the new section size.
5500 (_bfd_elf_eh_frame_section_offset): Remove need_relative handling.
5501 Account for any extra augmentation bytes in the returned offset.
5502 (_bfd_elf_write_section_eh_frame): Rework so that the entries are
5503 moved before being modified. Pad growing entries with DW_CFA_nops.
5504 Add 'z' and 'R' augmentations as directed by add_augmentation_size
5505 and add_fde_encoding.
5507 2004-11-15 Mark Mitchell <mark@codesourcery.com>
5509 * elf32-arm.c (elf32_arm_relocate_section): Use
5510 arm_real_reloc_type.
5512 2004-11-16 Richard Sandiford <rsandifo@redhat.com>
5514 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Return early
5515 for discard relocations; don't add an R_MIPS_NONE to the main body
5518 2004-11-04 Paul Brook <paul@codesourcery.com>
5520 * elf-bfd.h (_bfd_elf_slurp_version_tables): Update prototype.
5521 * elf.c (_bfd_elf_print_private_bfd_data): Pass extra argument.
5522 (_bfd_elf_slurp_version_tables): Add extra argument. Create extra
5523 default version definition for unversioned symbols.
5524 * elfcode.h (elf_slurp_symbol_table): Pass extra argument.
5525 * elflink.c (elf_link_add_object_symbols): Pass extra argument to
5526 _bfd_elf_slurp_version_tables. Set default version for unversioned
5529 2004-11-15 Paul Brook <paul@codesourcery.com>
5531 * elflink.c (elf_link_add_object_symbols): Don't assume version
5532 indices are consecutive.
5534 2004-11-14 Richard Sandiford <rsandifo@redhat.com>
5536 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal with
5537 composite relocations against the personality data.
5539 2004-11-13 Paul Brook <paul@codesourcery.com>
5541 * bfd/elf32-arm.c (elf32_arm_final_link_relocate): Resolve
5542 R_ARM_PREL31 relocations to PLT entries.
5543 (elf32_arm_relocate_section, elf32_arm_gc_sweep_hook): Ditto.
5544 (elf32_arm_check_relocs): Ditto.
5546 2004-11-12 Bob Wilson <bob.wilson@acm.org>
5548 * xtensa-isa.c (xtensa_interface_class_id): New.
5550 2004-11-11 Bob Wilson <bob.wilson@acm.org>
5552 * elf32-xtensa.c (property_table_compare): Remove assertion about
5553 entries with the same address and non-zero size.
5554 (xtensa_read_table_entries): Report such entries as errors.
5556 2004-11-11 Mark Mitchell <mark@codesourcery.com>
5558 * elf32-arm.c (elf32_arm_final_link_relocate): Correct logic for
5559 R_ARM_RELATIVE on Symbian OS.
5561 2004-11-09 Mark Mitchell <mark@codesourcery.com>
5563 * som.c (som_bfd_print_private_bfd_data): New function.
5564 (som_object_setup): Save the auxiliary header. Don't assume that
5565 zero is an invalid entry point for a shared library.
5566 (som_object_p): Allocate the auxiliary header on the heap.
5568 * elf32-arm.c (elf32_arm_begin_write_processing): Do not use a K&R
5570 (elf32_arm_symbian_modify_segment_map): Likewise.
5572 2004-11-09 Daniel Jacobowitz <dan@debian.org>
5574 From David Poole <daveml@mbuf.com>:
5575 * elf32-arm.c (elf32_arm_readonly_dynrelocs): New function.
5576 (elf32_arm_size_dynamic_sections): Call it.
5578 2004-11-09 Alan Modra <amodra@bigpond.net.au>
5580 * Makefile.am (SOURCE_HFILES): Remove elf32-arm.h.
5581 (ALL_MACHINES_CFILES): Fix typo.
5582 * Makefile.in: Regenerate.
5583 * po/SRC-POTFILES.in: Regenerate.
5585 2004-11-08 Mark Mitchell <mark@codesourcery.com>
5587 * elf32-arm.c (elf32_arm_final_link_relocate): When generating an
5588 R_ARM_RELATIVE relocation for Symbian OS, mention the section
5589 symbol in the relocation.
5591 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
5592 Vineet Sharma <vineets@noida.hcltech.com>
5594 * coff-maxq.c: New File.
5595 * cpu-maxq.c: New File.
5596 * coffcode.h: Likewise.
5597 * config.bfd: Likewise.
5598 * configure.in (maxqcoff_vec): New target vector.
5599 * Makefile.am: Add support for maxq target.
5600 * configure.in: Likewise.
5601 * archures.c:. Likewise.
5602 * targets.c: Likewise.
5603 * bfd_in2.h : Regenerated.
5604 * Makefile.in: Regenerated.
5605 * configure: Regenerated.
5606 * doc/Makefile.in: Regenerated.
5608 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
5610 * coff-i386.c (coff_i386_reloc): Fix weak symbols.
5611 * cofflink.c (_bfd_coff_link_input_bfd): Don't process
5612 C_NT_WEAK aux entries.
5613 (_bfd_coff_generic_relocate_section): Handle undefined
5616 2004-11-07 Andreas Schwab <schwab@suse.de>
5618 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Use
5619 SYMBOL_CALLS_LOCAL and check for undefweak symbols with
5620 non-default visibility.
5622 2004-11-01 Mark Mitchell <mark@codesourcery.com>
5624 * elf32-arm.c (elf32_arm_symbian_begin_write_processing): Clear
5626 (elf32_arm_symbian_modify_segment_map): Don't
5627 reset includes_filehdr and includes_phdrs here.
5629 2004-11-04 Daniel Jacobowitz <dan@debian.org>
5631 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace
5632 elfarm-nabi with elf32-arm. Remove elfarm-oabi.
5633 (elf32-arm.lo): Replace elfarm-nabi.lo rule. Remove elf32-arm.h
5635 * config.bfd: Move arm-*-oabi* and thumb-*-oabi* from obsolete list
5636 to a new removed list. Remove normal configuration stanzas.
5637 * configure.in: (bfd_elf32_bigarm_vec, bfd_elf32_bigarm_symbian_vec)
5638 (bfd_elf32_littlearm_symbian_vec, bfd_elf32_littlearm_vec): Replace
5639 elfarm-nabi.lo with elf32-arm.lo.
5640 (bfd_elf32_bigarm_oabi_vec, bfd_elf32_littlearm_oabi_vec): Remove.
5641 * elf32-arm.c: Renamed from elfarm-nabi.c. Inline elf32-arm.h.
5642 * elf32-arm.h: Remove.
5643 * elfarm-oabi.c: Remove.
5644 * targets.c (_bfd_target_vector): Remove bfd_elf32_bigarm_oabi_vec
5645 and bfd_elf32_littlearm_oabi_vec.
5646 * aclocal.m4, Makefile.in, configure, doc/Makefile.in: Regenerated.
5648 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
5650 * config.bfd: Support crisv32-*-* like cris-*-*.
5651 * archures.c (bfd_mach_cris_v0_v10, bfd_mach_cris_v32)
5652 (bfd_mach_cris_v10_v32): New macros.
5653 * cpu-cris.c: Tweak formatting.
5654 (get_compatible): New function.
5656 (bfd_cris_arch_compat_v10_v32, bfd_cris_arch_v32): New
5657 bfd_arch_info_type:s.
5658 (bfd_cris_arch): Use bfd_mach_cris_v0_v10 for member mach,
5659 get_compatible for member compatible and link bfd_cris_arch_v32 as
5661 * elf32-cris.c (cris_elf_pcrel_reloc)
5662 (cris_elf_set_mach_from_flags): New functions.
5663 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL>
5664 <R_CRIS_32_PCREL>: Use cris_elf_pcrel_reloc.
5665 (cris_elf_grok_prstatus, cris_elf_grok_psinfo): Give correct
5666 numbers for bfd_mach_cris_v32.
5667 (PLT_ENTRY_SIZE_V32): New macro.
5668 (elf_cris_plt0_entry): Drop last comma in initializer.
5669 (elf_cris_plt0_entry_v32, elf_cris_plt_entry_v32)
5670 (elf_cris_pic_plt0_entry_v32, elf_cris_pic_plt_entry_v32): New
5672 (cris_elf_relocate_section): Change all "%B(%A)" messages to
5674 (elf_cris_finish_dynamic_symbol): Do V32-specific PLT entries.
5675 (elf_cris_finish_dynamic_sections): Similar.
5676 (elf_cris_adjust_dynamic_symbol): Similar.
5677 (cris_elf_check_relocs): Change all "%B(%A)" messages to "%B,
5679 <switch with PIC relocs>: Emit error and return FALSE for
5680 bfd_mach_cris_v10_v32.
5681 <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
5682 Emit warning when generating textrel reloc.
5683 (cris_elf_object_p): Call cris_elf_set_mach_from_flags.
5684 (cris_elf_final_write_processing): Set flags according to mach.
5685 (cris_elf_print_private_bfd_data): Display
5686 EF_CRIS_VARIANT_COMMON_V10_V32 and EF_CRIS_VARIANT_V32.
5687 (cris_elf_merge_private_bfd_data): Drop variables old_flags,
5688 new_flags. Don't call cris_elf_final_write_processing. Don't
5689 look at the actual elf header flags at all; use
5690 bfd_get_symbol_leading_char to check ibfd, obfd. Trap difference
5691 in bfd_get_mach for ibfd and obfd and handle merging of compatible
5693 (bfd_elf32_bfd_copy_private_bfd_data): Define.
5694 * reloc.c (BFD_RELOC_CRIS_SIGNED_8, BFD_RELOC_CRIS_UNSIGNED_8)
5695 (BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_UNSIGNED_16)
5696 (BFD_RELOC_CRIS_LAPCQ_OFFSET): New relocs.
5697 * bfd-in2.h, libbfd.h: Regenerate.
5699 2004-11-04 Alan Modra <amodra@bigpond.net.au>
5701 * elf64-ppc.h (ppc64_elf_edit_toc): Declare.
5702 * elf64-ppc.c (struct ppc_link_hash_entry <adjust_done>): Update
5704 (struct adjust_toc_info): New.
5705 (adjust_toc_syms, ppc64_elf_edit_toc): New functions.
5707 2004-11-03 Bob Wilson <bob.wilson@acm.org>
5709 * elf.c (assign_file_positions_for_segments): Set next_file_pos even
5710 if there are no segments.
5712 2004-11-02 Daniel Jacobowitz <dan@debian.org>
5714 * config.bfd: Mark arm-*-oabi and thumb-*-oabi as obsolete.
5716 2004-11-02 Nick Clifton <nickc@redhat.com>
5718 * elf32-iq2000.c: Convert to ISO C90 formatting.
5720 2004-11-02 Hans-Peter Nilsson <hp@axis.com>
5722 * elflink.c (_bfd_elf_create_got_section): Hide _GLOBAL_OFFSET_TABLE_.
5724 2004-10-28 H.J. Lu <hongjiu.lu@intel.com>
5726 * elfxx-ia64.c (elfNN_ia64_relocate_section): Handle weak
5727 undefined symbols for R_IA64_SECREL32MSB, R_IA64_SECREL32LSB,
5728 R_IA64_SECREL64MSB and R_IA64_SECREL64LSB.
5730 2004-10-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5732 * elf32-sh.c (tpoff): Take alignment into account.
5734 2004-10-28 Nick Clifton <nickc@redhat.com>
5736 * elf32-iq2000.c (iq2000_elf_relocate_section): Do nothing when
5737 performing a relocatable link.
5738 (iq2000_elf_object_p): Do not set elf_bad_symtab. This is only
5739 for MIPS ports under Irix.
5741 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
5743 * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Handle
5744 R_ARM_CALL and R_ARM_JUMP24 as aliases of R_ARM_PC24.
5745 (elf32_arm_final_link_relocate): Ditto.
5746 (arm_add_to_rel, elf32_arm_relocate_section): Ditto.
5747 (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto
5748 (elf32_arm_adjust_dynamic_symbol): Ditto.
5749 * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_CALL and
5750 R_ARM_JUMP32. Move R_ARM_R{REL32,ABS32,PC24,BASE}...
5751 (elf32_arm_r_howto): ... To here.
5752 (elf32_arm_howto_from_type): Use elf32_arm_r_howto.
5754 2004-10-26 H.J. Lu <hongjiu.lu@intel.com>
5757 * elfxx-ia64.c (elfNN_ia64_relocate_section): Correct
5758 R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, R_IA64_SECREL64MSB
5759 and R_IA64_SECREL64LSB.
5761 2004-10-26 Paul Brook <paul@codesourcery.com>
5763 * elflink.c (elf_finalize_dynstr): Skip shared aux structure.
5764 (bfd_elf_size_dynamic_sections): Create default version definition.
5765 (elf_link_output_extsym): Adjust for default symbol version.
5767 2004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
5769 * mmo.c: Adjust to ISO C.
5771 * mmo.c (mmo_write_section_description): New function broken out
5772 of mmo_internal_write_section.
5773 (mmo_internal_write_section): For each of .text and .data, call
5774 mmo_write_section_description before outputting contents if it has
5775 nontrivially deducible vma or contents.
5776 (mmo_has_leading_or_trailing_zero_tetra_p): New function.
5777 (mmo_canonicalize_symtab): Adjust absolute symbols to .data
5778 symbols if found within the .data address range.
5780 2004-10-24 Daniel Jacobowitz <dan@debian.org>
5782 * opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY.
5784 2004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
5786 * mmo.c (File Layout): Correct place of misplaced blurb about
5789 2004-10-22 Mark Kettenis <kettenis@gnu.org>
5791 * config.bfd: Add mips64*-*-openbsd.
5793 2004-10-21 Bob Wilson <bob.wilson@acm.org>
5795 * elf32-xtensa.c (ebb_propose_action): Put declarations before
5798 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
5800 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.94.
5801 * configure: Regenerate.
5803 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
5806 * aoutx.h (aout_link_input_section_std): Pass proper hash entry
5807 to linker reloc_overflow callback.
5808 (aout_link_input_section_ext): Likewise.
5809 (aout_link_reloc_link_order): Likewise.
5810 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
5811 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
5813 (alpha_relocate_section): Likewise.
5814 * coff-arm.c (coff_arm_relocate_section): Likewise.
5815 * coff-h8300.c (h8300_reloc16_extra_cases): Likewise.
5816 * coff-h8500.c (extra_case): Likewise.
5817 * coff-i960.c (coff_i960_relocate_section): Likewise.
5818 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
5819 * coff-mips.c (mips_relocate_section): Likewise.
5820 * coff-or32.c (coff_or32_relocate_section): Likewise.
5821 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
5822 * coff-rs6000.c (xcoff_ppc_relocate_section): Likewise.
5823 * coff-sh.c (sh_relocate_section): Likewise.
5824 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
5825 * coff-w65.c (w65_reloc16_extra_cases): Likewise.
5826 * coff-z8k.c (extra_case): Likewise.
5827 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
5828 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
5829 (_bfd_coff_generic_relocate_section): Likewise.
5830 * ecoff.c (ecoff_reloc_link_order): Likewise.
5831 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
5832 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
5833 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
5834 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
5835 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
5836 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
5837 * elf32-cris.c (cris_elf_relocate_section): Likewise.
5838 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
5839 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
5840 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
5841 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
5842 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
5843 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
5844 * elf32-i370.c (i370_elf_relocate_section): Likewise.
5845 * elf32-i386.c (elf_i386_relocate_section): Likewise.
5846 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
5847 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
5848 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
5849 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
5850 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
5851 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5852 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
5853 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
5854 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
5855 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5856 * elf32-s390.c (elf_s390_relocate_section): Likewise.
5857 * elf32-sh.c (sh_elf_relocate_section): Likewise.
5858 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5859 * elf32-v850.c (v850_elf_relocate_section): Likewise.
5860 * elf32-vax.c (elf_vax_relocate_section): Likewise.
5861 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
5862 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5863 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
5864 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
5865 * elf64-s390.c (elf_s390_relocate_section): Likewise.
5866 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
5867 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5868 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
5869 * elflink.c (elf_reloc_link_order): Likewise.
5870 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
5871 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
5872 (_bfd_elf_mips_get_relocated_section_contents): Likewise.
5873 * linker.c (_bfd_generic_reloc_link_order): Likewise.
5874 * pdp11.c (pdp11_aout_link_input_section): Likewise.
5875 (aout_link_reloc_link_order): Likewise.
5876 * reloc.c (bfd_generic_get_relocated_section_contents):
5878 * xcofflink.c (xcoff_reloc_link_order): Likewise.
5879 * simple.c (simple_dummy_reloc_overflow): Updated.
5881 2004-10-20 Andreas Schwab <schwab@suse.de>
5883 * elf32-m68k.c (elf_m68k_plt_sym_val): New function.
5884 (elf_backend_plt_sym_val): Define.
5886 2004-10-19 Danny Smith <dannysmith@users.sourceforege.net>
5888 * config.bfd: Set targ_underscore=yes for PE COFF targets
5890 2004-10-19 Alan Modra <amodra@bigpond.net.au>
5892 * elf64-ppc.c (opd_entry_value): Handle --just-symbols objects.
5893 (ppc64_elf_edit_opd): Likewise.
5895 2004-10-18 Mark Mitchell <mark@codesourcery.com>
5897 * elfarm-nabi.c (ELF_DYNAMIC_SEC_FLAGS): Add comment.
5898 * elflink.c (_bfd_elf_create_dynamic_sections): For a loaded PLT,
5899 set SEC_ALLOC and SEC_LOAD.
5901 2004-10-18 Nick Clifton <nickc@redhat.com>
5903 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Compute
5904 'name' for relocs against both local and global symbols.
5906 2004-10-16 Daniel Jacobowitz <dan@debian.org>
5908 * bfd-in2.h: Regenerate.
5909 * bfd.c (struct bfd): Add no_export.
5910 * elflink.c (elf_link_add_object_symbols): Handle no_export.
5912 2004-10-15 Alan Modra <amodra@bigpond.net.au>
5914 * config.bfd: Whitespace cleanup.
5915 * Makefile.am: Run "make dep-am"
5916 * Makefile.in: Regenerate.
5918 2004-10-15 Jakub Jelinek <jakub@redhat.com>
5920 * elflink.c (struct already_linked_section): Removed.
5921 (try_match_symbols_in_sections, already_linked): Removed.
5922 (_bfd_elf_section_already_linked): Skip ^\.gnu\.linkonce\.[^.]*\.
5923 prefix of section names when finding already_linked_table
5924 chain. Compare section names. Instead of calling already_linked,
5925 do it inline and only for sections in the same already_linked_list.
5927 2004-10-15 Alan Modra <amodra@bigpond.net.au>
5929 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Add "info"
5930 parameter. If called after _bfd_elf_write_section_eh_frame,
5931 don't allow a -2 return unless need_* bit is already set, and
5932 handle offsets adjusted for output_offset.
5933 * elf-bfd.h (_bfd_elf_eh_frame_section_offset): Update prototype.
5934 * elf.c (_bfd_elf_section_offset): Update call.
5936 2004-10-13 H.J. Lu <hongjiu.lu@intel.com>
5939 * coffcode.h (coff_compute_section_file_positions): Cast to
5940 bfd_vma when computing page alignment.
5942 2004-10-13 Mark Mitchell <mark@codesourcery.com>
5944 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
5945 offsets, not VMAs, for DT_VERSYM, DT_VERDEF, DT_VERNEED.
5947 2004-10-12 Mark Mitchell <mark@codesourcery.com>
5949 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.plt
5950 relocations use a virtual address, not a section offset.
5952 2004-10-12 Bob Wilson <bob.wilson@acm.org>
5954 * elf32-xtensa.c (elf_xtensa_get_private_bfd_flags): Delete.
5955 (narrow_instruction, widen_instruction): Remove unnecessary calls to
5956 xtensa_format_encode.
5957 (ebb_propose_action): Inline call to ebb_add_proposed_action.
5958 (ebb_add_proposed_action): Delete.
5960 2004-10-12 Bob Wilson <bob.wilson@acm.org>
5962 * elf32-xtensa.c: Use ISO C90 formatting.
5964 2004-10-12 Paul Brook <paul@codesourcery.com>
5966 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Rephrase error
5969 2004-10-12 Paul Brook <paul@codesourcery.com>
5971 * elf32-arm.h: Support EABI version 4 objects.
5973 2004-10-12 Alan Modra <amodra@bigpond.net.au>
5976 * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Place last in chain.
5977 Don't mark as default.
5978 (bfd_x86_64_arch): Don't mark as default.
5980 2004-10-12 Alan Modra <amodra@bigpond.net.au>
5982 * elflink.c (enum action_discarded): New.
5983 (elf_section_complain_discarded): Delete.
5984 (elf_action_discarded): New function subsuming the above and also
5985 controlling reloc behaviour.
5986 (elf_link_input_bfd): Use it.
5988 2004-10-11 Jakub Jelinek <jakub@redhat.com>
5990 * elf.c (bfd_section_from_shdr): Handle SHT_GNU_LIBLIST.
5991 (special_sections): Add .gnu.liblist and .gnu.conflict.
5992 (assign_section_numbers): Handle SHT_GNU_LIBLIST.
5994 2004-10-11 Alan Modra <amodra@bigpond.net.au>
5997 * elflink.c (elf_link_input_bfd): Try harder to support
5998 relocations against symbols in removed linkonce sections.
6000 2004-10-11 Alan Modra <amodra@bigpond.net.au>
6002 * elflink.c (elf_link_input_bfd): Revert PR 354 change.
6005 * elflink.c (elf_link_input_bfd): Check that relocs in SEC_ALLOC
6006 sections do not reference symbols in non-SEC_ALLOC sections.
6008 2004-10-11 Alan Modra <amodra@bigpond.net.au>
6011 * elflink.c (elf_link_sort_relocs): Don't bomb on unusual sections.
6012 (_bfd_elf_link_omit_section_dynsym): Formatting.
6014 2004-10-10 Alan Modra <amodra@bigpond.net.au>
6016 * libbfd-in.h (BFD_ASSERT, BFD_FAIL): Wrap macro body in do while.
6017 * libbfd.h: Regnerate.
6018 * elf32-cris.c: Add missing semicolon to BFD_ASSERTs.
6019 * elf32-frv.c: Likewise.
6020 * elf32-m32r.c: Likewise.
6021 * elf32-ppc.c: Likewise.
6022 * elf64-hppa.c: Likewise.
6023 * elfxx-ia64.c: Likewise.
6024 * opncls.c: Likewise.
6026 2004-10-10 Alan Modra <amodra@bigpond.net.au>
6028 * elf-bfd.h (struct eh_frame_hdr_info): Add offsets_adjusted.
6029 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Adjust
6030 offsets stored in struct eh_cie_fde entries before doing other
6033 * elf-bfd.h (struct eh_cie_fde): Add cie_inf, remove sec.
6034 (struct eh_frame_hdr_info): Add last_cie_inf, remove last_cie_offset.
6035 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete code
6036 setting offsets for removed CIEs. Don't set "sec", instead set
6037 cie_inf for FDEs. Keep a pointer to last struct eh_cie_fde for a
6038 CIE in hdr_info. Only set make_relative and make_lsda_relative
6039 for CIEs. Use pointers rather than array indices.
6040 (_bfd_elf_eh_frame_section_offset): Test/set make_relative,
6041 make_lsda_relative, need_* on cie_inf for FDEs.
6042 (_bfd_elf_write_section_eh_frame): Adjust offset and new_offset for
6043 section output_offset. Delete cie_offset, instead use cie_inf
6044 pointer to CIE entry. Use need_relative and need_lsda_relative on
6045 CIE entry for FDEs. Use pointers rather than array indices.
6047 2004-10-09 Alan Modra <amodra@bigpond.net.au>
6049 * coff-rs6000.c (rs6000coff_vec): Add initializer for
6050 bfd_is_target_special_symbol.
6051 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
6052 * som.c (som_bfd_is_target_special_symbol): Define.
6054 2004-10-08 Nick Clifton <nickc@redhat.com>
6056 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.93.
6057 * configure: Regenerate.
6058 * bfd-in2.h: Regenerate.
6059 * syms.c (bfd_is_target_special_symbol): New interface function.
6060 Returns true when a symbol should be considered to be special.
6061 * targets.c (bfd_target): Include bfd_is_target_special_symbol in
6062 the symbol jump table.
6063 * elf32-arm.h (elf32_arm_is_target_special_symbol): New function.
6064 Return true iff the symbol is a mapping symbol.
6065 (bfd_elf32_bfd_is_target_special_symbol): Define.
6066 * elfxx-target.h: Provide a default definition for
6067 bfd_is_target_special_symbol.
6068 * aout-target.h: Likewise.
6069 * aout-tic30.c: Likewise.
6070 * binary.c: Likewise.
6071 * coffcode.h: Likewise.
6072 * i386msdos.c: Likewise.
6075 * libaout.h: Likewise.
6076 * libbfd-in.h: Likewise
6077 * libecoff.h: Likewise.
6078 * mach-o.c: Likewise.
6080 * nlm-target.h: Likewise.
6081 * oasys.c: Likewise.
6083 * ppcboot.c: Likewise.
6085 * tekhex.c: Likewise.
6086 * versados.c: Likewise.
6088 * xcoff-target.h: Likewise.
6090 * libbfd.h: Regenerate.
6092 2004-10-08 Daniel Jacobowitz <dan@debian.org>
6094 * config.bfd: Include 64-bit support for i[3-7]86-*-solaris2*.
6095 * elf64-x86-64.c (elf64_x86_64_section_from_shdr): New function.
6096 (elf_backend_section_from_shdr): Define.
6098 2004-10-08 Alan Modra <amodra@bigpond.net.au>
6100 * syms.c (bfd_is_local_label): Return false for file symbols.
6102 2004-10-07 Bob Wilson <bob.wilson@acm.org>
6103 David Heine <dlheine@tensilica.com>
6105 * elf32-xtensa.c (elf32xtensa_size_opt): New global variable.
6106 (xtensa_default_isa): Global variable moved here from xtensa-isa.c.
6107 (elf32xtensa_no_literal_movement): New global variable.
6108 (elf_howto_table): Add entries for new relocations.
6109 (elf_xtensa_reloc_type_lookup): Handle new relocations.
6110 (property_table_compare): When addresses are equal, compare sizes and
6111 various property flags.
6112 (property_table_matches): New.
6113 (xtensa_read_table_entries): Extend to read new property tables. Add
6114 output_addr parameter to indicate that output addresses should be used.
6115 Use bfd_get_section_limit.
6116 (elf_xtensa_find_property_entry): New.
6117 (elf_xtensa_in_literal_pool): Use elf_xtensa_find_property_entry.
6118 (elf_xtensa_check_relocs): Handle new relocations.
6119 (elf_xtensa_do_reloc): Use bfd_get_section_limit. Handle new
6120 relocations. Use new xtensa-isa.h functions.
6121 (build_encoding_error_message): Remove encode_result parameter. Add
6122 new target_address parameter used to detect alignment errors.
6123 (elf_xtensa_relocate_section): Use bfd_get_section_limit. Clean up
6124 error handling. Use new is_operand_relocation function.
6125 (elf_xtensa_combine_prop_entries, elf_xtensa_merge_private_bfd_data):
6126 Use underbar macro for error messages. Formatting.
6127 (get_const16_opcode): New.
6128 (get_l32r_opcode): Add a separate flag for initialization.
6129 (get_relocation_opnd): Operand number is no longer explicit in the
6130 relocation. Change to decode the opcode and analyze its operands.
6131 (get_relocation_slot): New.
6132 (get_relocation_opcode): Add bfd parameter. Use bfd_get_section_limit.
6133 Use new xtensa-isa.h functions to handle multislot instructions.
6134 (is_l32r_relocation): Add bfd parameter. Use is_operand_relocation.
6135 (get_asm_simplify_size, is_alt_relocation, is_operand_relocation,
6136 insn_decode_len, insn_decode_opcode, check_branch_target_aligned,
6137 check_loop_aligned, check_branch_target_aligned_address, narrowable,
6138 widenable, narrow_instruction, widen_instruction, op_single_fmt_table,
6139 get_single_format, init_op_single_format_table): New.
6140 (elf_xtensa_do_asm_simplify): Add error_message parameter and use it
6141 instead of calling _bfd_error_handler. Use new xtensa-isa.h functions.
6142 (contract_asm_expansion): Add error_message parameter and pass it to
6143 elf_xtensa_do_asm_simplify. Replace use of R_XTENSA_OP0 relocation
6144 with R_XTENSA_SLOT0_OP.
6145 (get_expanded_call_opcode): Extend to handle either L32R or CONST16
6146 instructions. Use new xtensa-isa.h functions.
6147 (r_reloc struct): Add new virtual_offset field.
6148 (r_reloc_init): Add contents and content_length parameters. Set
6149 virtual_offset field to zero. Add contents to target_offset field for
6150 partial_inplace relocations.
6151 (r_reloc_is_defined): Check for null.
6152 (print_r_reloc): New debug function.
6153 (source_reloc struct): Replace xtensa_operand field with pair of the
6154 opcode and the operand position. Add is_abs_literal field.
6155 (init_source_reloc): Specify operand by opcode/position pair. Set
6156 is_abs_literal field.
6157 (source_reloc_compare): When target_offsets are equal, compare other
6158 fields to make sorting predictable.
6159 (literal_value struct): Add is_abs_literal field.
6160 (value_map_hash_table struct): Add has_last_loc and last_loc fields.
6161 (init_literal_value): New.
6162 (is_same_value): Replace with ...
6163 (literal_value_equal): ... this function. Add comparisons of
6164 virtual_offset and is_abs_literal fields.
6165 (value_map_hash_table_init): Use bfd_zmalloc. Check for allocation
6166 failure. Initialize has_last_loc field.
6167 (value_map_hash_table_delete): New.
6168 (hash_literal_value): Rename to ...
6169 (literal_value_hash): ... this. Include is_abs_literal flag and
6170 virtual_offset field in the hash value.
6171 (get_cached_value): Rename to ...
6172 (value_map_get_cached_value): ... this. Update calls to
6173 literal_value_hash and literal_value_equal.
6174 (add_value_map): Check for allocation failure. Update calls to
6175 value_map_get_cached_value and literal_value_hash.
6176 (text_action, text_action_list, text_action_t): New types.
6177 (find_fill_action, compute_removed_action_diff, adjust_fill_action,
6178 text_action_add, text_action_add_literal, offset_with_removed_text,
6179 offset_with_removed_text_before_fill, find_insn_action,
6180 print_action_list, print_removed_literals): New.
6181 (offset_with_removed_literals): Delete.
6182 (xtensa_relax_info struct): Add is_relaxable_asm_section, action_list,
6183 fix_array, fix_array_count, allocated_relocs, relocs_count, and
6184 allocated_relocs_count fields.
6185 (init_xtensa_relax_info): Initialize new fields.
6186 (reloc_bfd_fix struct): Add new translated field.
6187 (reloc_bfd_fix_init): Add translated parameter and use it to set the
6189 (fix_compare, cache_fix_array): New.
6190 (get_bfd_fix): Remove fix_list parameter and get all relax_info for the
6191 section via get_xtensa_relax_info. Use cache_fix_array to set up
6192 sorted fix_array and use bsearch instead of linear search.
6193 (section_cache_t): New struct.
6194 (init_section_cache, section_cache_section, clear_section_cache): New.
6195 (ebb_t, ebb_target_enum, proposed_action, ebb_constraint): New types.
6196 (init_ebb_constraint, free_ebb_constraint, init_ebb, extend_ebb_bounds,
6197 extend_ebb_bounds_forward, extend_ebb_bounds_backward,
6198 insn_block_decodable_len, ebb_propose_action, ebb_add_proposed_action):
6200 (retrieve_contents): Use bfd_get_section_limit.
6201 (elf_xtensa_relax_section): Add relocations_analyzed flag. Update call
6202 to compute_removed_literals. Free value_map_hash_table when no longer
6204 (analyze_relocations): Check is_relaxable_asm_section flag. Call
6205 compute_text_actions for all sections.
6206 (find_relaxable_sections): Mark sections as relaxable if they contain
6207 ASM_EXPAND relocations that can be optimized. Adjust r_reloc_init
6208 call. Increment relax_info src_count field only for appropriate
6209 relocation types. Remove is_literal_section check.
6210 (collect_source_relocs): Use bfd_get_section_limit. Adjust calls to
6211 r_reloc_init and find_associated_l32r_irel. Check
6212 is_relaxable_asm_section flag. Handle L32R instructions with absolute
6213 literals. Pass is_abs_literal flag to init_source_reloc.
6214 (is_resolvable_asm_expansion): Use bfd_get_section_limit. Check for
6215 CONST16 instructions. Adjust calls to r_reloc_init and
6216 pcrel_reloc_fits. Handle weak symbols conservatively.
6217 (find_associated_l32r_irel): Add bfd parameter and pass it to
6219 (compute_text_actions, compute_ebb_proposed_actions,
6220 compute_ebb_actions, check_section_ebb_pcrels_fit,
6221 check_section_ebb_reduces, text_action_add_proposed,
6222 compute_fill_extra_space): New.
6223 (remove_literals): Replace with ...
6224 (compute_removed_literals): ... this function. Call
6225 init_section_cache. Use bfd_get_section_limit. Sort internal_relocs.
6226 Call xtensa_read_table_entries to get the property table. Skip
6227 relocations other than R_XTENSA_32 and R_XTENSA_PLT. Use new
6228 is_removable_literal, remove_dead_literal, and
6229 identify_literal_placement functions.
6230 (get_irel_at_offset): Rewrite to use bsearch on sorted relocations
6231 instead of linear search.
6232 (is_removable_literal, remove_dead_literal,
6233 identify_literal_placement): New.
6234 (relocations_reach): Update check for literal not referenced by any
6235 PC-relative relocations. Adjust call to pcrel_reloc_fits.
6236 (coalesce_shared_literal, move_shared_literal): New.
6237 (relax_section): Use bfd_get_section_limit. Call
6238 translate_section_fixes. Update calls to r_reloc_init and
6239 offset_with_removed_text. Check new is_relaxable_asm_section flag.
6240 Add call to pin_internal_relocs. Add special handling for
6241 R_XTENSA_ASM_SIMPLIFY and R_XTENSA_DIFF* relocs. Use virtual_offset
6242 info to calculate new addend_displacement variable. Replace code for
6243 deleting literals with more general code to perform the actions
6244 determined by the action_list for the section.
6245 (translate_section_fixes, translate_reloc_bfd_fix): New.
6246 (translate_reloc): Check new is_relaxable_asm_section flag. Call
6247 find_removed_literal only if is_operand_relocation. Update call to
6248 offset_with_removed_text. Use new target_offset and removed_bytes
6250 (move_literal): New.
6251 (relax_property_section): Use bfd_get_section_limit. Set new
6252 is_full_prop_section flag and handle new property tables. Update calls
6253 to r_reloc_init and offset_with_removed_text. Check
6254 is_relaxable_asm_section flag. Handle expansion of zero-sized
6255 unreachable entries, with use of offset_with_removed_text_before_fill.
6256 For relocatable links, combine entries only for literal tables.
6257 (relax_section_symbols): Check is_relaxable_asm_section flag. Update
6258 calls to offset_with_removed_text. Translate st_size field for
6260 (do_fix_for_relocatable_link): Change to return bfd_boolean to indicate
6261 failure. Add contents parameter. Update call to get_bfd_fix. Update
6262 call to r_reloc_init. Call _bfd_error_handler and return FALSE for
6263 R_XTENSA_ASM_EXPAND relocs.
6264 (do_fix_for_final_link): Add input_bfd and contents parameters. Update
6265 call to get_bfd_fix. Include offset from contents for partial_inplace
6267 (is_reloc_sym_weak): New.
6268 (pcrel_reloc_fits): Use new xtensa-isa.h functions.
6269 (prop_sec_len): New.
6270 (xtensa_is_property_section): Handle new property sections.
6271 (is_literal_section): Delete.
6272 (internal_reloc_compare): When r_offset matches, compare r_info and
6273 r_addend to make sorting predictable.
6274 (internal_reloc_matches): New.
6275 (xtensa_get_property_section_name): Handle new property sections.
6276 (xtensa_get_property_predef_flags): New.
6277 (xtensa_callback_required_dependence): Use bfd_get_section_limit.
6278 Update calls to xtensa_isa_init, is_l32r_relocation, and r_reloc_init.
6279 * xtensa-isa.c (xtensa_default_isa): Moved to elf32-xtensa.c.
6280 (xtisa_errno, xtisa_error_msg): New variables.
6281 (xtensa_isa_errno, xtensa_isa_error_msg): New.
6282 (xtensa_insnbuf_alloc): Add error handling.
6283 (xtensa_insnbuf_to_chars): Add num_chars parameter. Update to
6284 use xtensa_format_decode. Add error handling.
6285 (xtensa_insnbuf_from_chars): Add num_chars parameter. Decode the
6286 instruction length to find the number of bytes to copy.
6287 (xtensa_isa_init): Add error handling. Replace calls to
6288 xtensa_load_isa and xtensa_extend_isa with code to initialize lookup
6289 tables in the xtensa_modules structure.
6290 (xtensa_check_isa_config, xtensa_add_isa, xtensa_load_isa,
6291 xtensa_extend_isa): Delete.
6292 (xtensa_isa_free): Change to only free lookup tables.
6293 (opname_lookup_compare): Replace with ...
6294 (xtensa_isa_name_compare): ... this function. Use strcasecmp.
6295 (xtensa_insn_maxlength): Rename to ...
6296 (xtensa_isa_maxlength): ... this.
6297 (xtensa_insn_length): Delete.
6298 (xtensa_insn_length_from_first_byte): Replace with ...
6299 (xtensa_isa_length_from_chars): ... this function.
6300 (xtensa_num_opcodes): Rename to ...
6301 (xtensa_isa_num_opcodes): ... this.
6302 (xtensa_isa_num_pipe_stages, xtensa_isa_num_formats,
6303 xtensa_isa_num_regfiles, xtensa_isa_num_stages,
6304 xtensa_isa_num_sysregs, xtensa_isa_num_interfaces,
6305 xtensa_isa_num_funcUnits, xtensa_format_name, xtensa_format_lookup,
6306 xtensa_format_decode, xtensa_format_encode, xtensa_format_length,
6307 xtensa_format_num_slots, xtensa_format_slot_nop_opcode,
6308 xtensa_format_get_slot, xtensa_format_set_slot): New functions.
6309 (xtensa_opcode_lookup): Add error handling.
6310 (xtensa_decode_insn): Replace with ...
6311 (xtensa_opcode_decode): ... this function, with new format and
6312 slot parameters. Add error handling.
6313 (xtensa_encode_insn): Replace with ...
6314 (xtensa_opcode_encode): ... this function, which does the encoding via
6315 one of the entries in the "encode_fns" array. Add error handling.
6316 (xtensa_opcode_name): Add error handling.
6317 (xtensa_opcode_is_branch, xtensa_opcode_is_jump, xtensa_opcode_is_loop,
6318 xtensa_opcode_is_call): New.
6319 (xtensa_num_operands): Replace with ...
6320 (xtensa_opcode_num_operands): ... this function. Add error handling.
6321 (xtensa_opcode_num_stateOperands,
6322 xtensa_opcode_num_interfaceOperands, xtensa_opcode_num_funcUnit_uses,
6323 xtensa_opcode_funcUnit_use, xtensa_operand_name,
6324 xtensa_operand_is_visible): New.
6325 (xtensa_get_operand, xtensa_operand_kind): Delete.
6326 (xtensa_operand_inout): Add error handling and special-case for
6328 (xtensa_operand_get_field, xtensa_operand_set_field): Rewritten to
6329 operate on one slot of an instruction. Added error handling.
6330 (xtensa_operand_encode): Handle default operands with no encoding
6331 functions. Check for success by comparing against decoded value.
6333 (xtensa_operand_decode): Handle default operands. Return decoded value
6334 through argument pointer. Add error handling.
6335 (xtensa_operand_is_register, xtensa_operand_regfile,
6336 xtensa_operand_num_regs, xtensa_operand_is_known_reg): New.
6337 (xtensa_operand_isPCRelative): Rename to ...
6338 (xtensa_operand_is_PCrelative): ... this. Add error handling.
6339 (xtensa_operand_do_reloc, xtensa_operand_undo_reloc): Return value
6340 through argument pointer. Add error handling.
6341 (xtensa_stateOperand_state, xtensa_stateOperand_inout,
6342 xtensa_interfaceOperand_interface, xtensa_regfile_lookup,
6343 xtensa_regfile_lookup_shortname, xtensa_regfile_name,
6344 xtensa_regfile_shortname, xtensa_regfile_view_parent,
6345 xtensa_regfile_num_bits, xtensa_regfile_num_entries,
6346 xtensa_state_lookup, xtensa_state_name, xtensa_state_num_bits,
6347 xtensa_state_is_exported, xtensa_sysreg_lookup,
6348 xtensa_sysreg_lookup_name, xtensa_sysreg_name, xtensa_sysreg_number,
6349 xtensa_sysreg_is_user, xtensa_interface_lookup, xtensa_interface_name,
6350 xtensa_interface_num_bits, xtensa_interface_inout,
6351 xtensa_interface_has_side_effect, xtensa_funcUnit_lookup,
6352 xtensa_funcUnit_name, xtensa_funcUnit_num_copies): New.
6353 * xtensa-modules.c: Rewrite to use new data structures.
6354 * reloc.c (BFD_RELOC_XTENSA_DIFF8, BFD_RELOC_XTENSA_DIFF16,
6355 BFD_RELOC_XTENSA_DIFF32, BFD_RELOC_XTENSA_SLOT0_OP,
6356 BFD_RELOC_XTENSA_SLOT1_OP, BFD_RELOC_XTENSA_SLOT2_OP,
6357 BFD_RELOC_XTENSA_SLOT3_OP, BFD_RELOC_XTENSA_SLOT4_OP,
6358 BFD_RELOC_XTENSA_SLOT5_OP, BFD_RELOC_XTENSA_SLOT6_OP,
6359 BFD_RELOC_XTENSA_SLOT7_OP, BFD_RELOC_XTENSA_SLOT8_OP,
6360 BFD_RELOC_XTENSA_SLOT9_OP, BFD_RELOC_XTENSA_SLOT10_OP,
6361 BFD_RELOC_XTENSA_SLOT11_OP, BFD_RELOC_XTENSA_SLOT12_OP,
6362 BFD_RELOC_XTENSA_SLOT13_OP, BFD_RELOC_XTENSA_SLOT14_OP,
6363 BFD_RELOC_XTENSA_SLOT0_ALT, BFD_RELOC_XTENSA_SLOT1_ALT,
6364 BFD_RELOC_XTENSA_SLOT2_ALT, BFD_RELOC_XTENSA_SLOT3_ALT,
6365 BFD_RELOC_XTENSA_SLOT4_ALT, BFD_RELOC_XTENSA_SLOT5_ALT,
6366 BFD_RELOC_XTENSA_SLOT6_ALT, BFD_RELOC_XTENSA_SLOT7_ALT,
6367 BFD_RELOC_XTENSA_SLOT8_ALT, BFD_RELOC_XTENSA_SLOT9_ALT,
6368 BFD_RELOC_XTENSA_SLOT10_ALT, BFD_RELOC_XTENSA_SLOT11_ALT,
6369 BFD_RELOC_XTENSA_SLOT12_ALT, BFD_RELOC_XTENSA_SLOT13_ALT,
6370 BFD_RELOC_XTENSA_SLOT14_ALT): Add new relocations.
6371 * Makefile.am (xtensa-isa.lo, xtensa-modules.lo): Update dependencies.
6372 * Makefile.in: Regenerate.
6373 * bfd-in2.h: Likewise.
6374 * libbfd.h: Likewise.
6376 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
6378 * elf64-mips.c (mips_elf64_write_rel): Use STN_UNDEF for relocs
6379 against the absolute section.
6380 (mips_elf64_write_rela): Likewise.
6382 2004-10-07 Jan Beulich <jbeulich@novell.com>
6384 * elf.c (elf_find_function): Don't generally check for matching
6385 section, just for non-file symbols. Remove redunant comparison
6387 * elf32-arm.h (arm_elf_find_function): Likewise.
6389 2004-10-07 Jeff Baker <jbaker@qnx.com>
6391 * elflink.c (_bfd_elf_add_dynamic_entry): Add code to warn if
6392 adding a DT_TEXTREL to a shared object and --warn-shared-textrel
6395 2004-10-04 Roland McGrath <roland@redhat.com>
6397 * hash.c (bfd_hash_set_default_size): Use const for table.
6398 Use size_t instead of int for variable compared to sizeof results.
6400 2004-10-05 Alan Modra <amodra@bigpond.net.au>
6403 * syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs.
6405 2004-10-01 Paul Brook <paul@codesourcery.com>
6407 * elf32-arm.h (elf32_arm_fake_sections,
6408 is_arm_elf_unwind_section_name, elf32_arm_section_from_shdr): New
6410 (elf_backend_fake_sections, elf_backend_section_from_shdr): Define.
6412 2004-10-01 Alan Modra <amodra@bigpond.net.au>
6414 * elf-bfd.h (struct eh_cie_fde): Add need_relative and
6416 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Set
6417 need_relative or need_lsda_relative if we are processing an
6418 offset for a reloc on a FDE initial loc or LSDA field
6420 (_bfd_elf_write_section_eh_frame): Test need_relative and
6421 need_lsda_relative in place of corresponding make_* field
6422 when deciding to use pc-relative encodings.
6424 2004-09-30 Paul Brook <paul@codesourcery.com>
6426 * elf32-arm.h (bfd_elf32_arm_set_target_relocs): Handle "abs"
6427 target2 relocation type.
6429 2004-09-30 H.J. Lu <hongjiu.lu@intel.com>
6432 * elflink.c (_bfd_elf_merge_symbol): Check TLS symbol.
6434 2004-09-30 Paul Brook <paul@codesourcery.com>
6436 * reloc.c: Add BFD_RELOC_ARM_SMI.
6437 * bfd-in2.h: Regenerate.
6440 2004-09-24 Alan Modra <amodra@bigpond.net.au>
6442 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add output section
6443 vma and output offset to address.
6444 * simple.c (simple_save_output_info): Only set output section
6445 and offset for debug sections, or those not already set up by
6447 (bfd_simple_get_relocated_section_contents): Update comment.
6449 2004-09-24 Alan Modra <amodra@bigpond.net.au>
6451 * elf.c (IS_LOADED): Delete.
6452 (assign_file_positions_for_segments): Just test SEC_LOAD instead.
6453 Restore SEC_HAS_CONTENTS test to the one place it was used prior
6456 2004-09-23 Alan Modra <amodra@bigpond.net.au>
6459 * elf32-sparc.c (elf32_sparc_final_write_processing): Handle
6460 bfd_mach_sparc_sparclet and bfd_mach_sparc_sparclite. Remove
6461 redundant assignment of EM_SPARC.
6463 2004-09-22 Brian Ford <ford@vss.fsi.com>
6465 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
6466 alignment for .rdata sections so sse[2] code works with gcc >= 3.3.3
6468 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6470 2004-09-22 Alan Modra <amodra@bigpond.net.au>
6472 * elf32-ppc.c (ppc_elf_modify_segment_map): Delete.
6473 (elf_backend_modify_segment_map): Don't define.
6475 2004-09-22 Alan Modra <amodra@bigpond.net.au>
6477 * elf.c (IS_LOADED): Define.
6478 (assign_file_positions_for_segments): Don't round up file offset of
6479 PT_LOAD segments containing no SEC_LOAD sections, instead round down.
6480 Delete code handling link script adjustment of lma. Do the adjust
6481 in later code handling similar ajustments. Remove dead code error
6482 check. Warn if section lma would require a negative offset
6483 adjustment. Tweak lma adjustment to use p_filesz rather than p_memsz.
6484 Use p_vaddr + p_memsz inside section loop in place of voff. Don't
6485 update voff in section loop. Change voff in segment loop to be an
6486 adjustment on top of "off". Set sec->filepos and update "off" later.
6487 Test for loadable sections consistently using IS_LOADED. Similarly,
6488 test for alloc-only sections other than .tbss consistently.
6489 Don't bother checking SEC_ALLOC in PT_LOAD segments. Remove FIXME.
6490 Tidy PT_NOTE handling. Use %B and %A in error messages.
6491 (assign_file_positions_except_relocs): Use %B in error message.
6493 2004-09-17 H.J. Lu <hongjiu.lu@intel.com>
6495 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.9.
6496 (CONFIG_STATUS_DEPENDENCIES): New.
6497 (Makefile): Removed.
6498 (config.status): Likewise.
6499 * Makefile.in: Regenerated.
6501 2004-09-17 Paul Brook <paul@codesourcery.com>
6503 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add prototype.
6504 (bfd_elf32_arm_process_before_allocation): Update prototype.
6505 * bfd-in2.h: Regenerate.
6506 * bfd/elf32-arm.h (elf32_arm_link_hash_table): Add target2_reloc.
6507 (elf32_arm_link_hash_table_create): Set it.
6508 (bfd_elf32_arm_process_before_allocation): Remove target1_is_rel.
6509 (bfd_elf32_arm_set_target_relocs): New function.
6510 (arm_real_reloc_type): New function.
6511 (elf32_arm_final_link_relocate): Use it. Handle R_ARM_PREL31 and
6512 R_ARM_GOT_PREL. Remove R_ARM_TARGET1.
6513 (elf32_arm_gc_sweep_hook): Ditto.
6514 (elf32_arm_check_relocs): Ditto.
6515 (elf32_arm_relocate_section): Handle R_ARM_GOT_PREL.
6516 * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_PREL31 and
6518 (elf32_arm_got_prel): New variable.
6519 (elf32_arm_howto_from_type): New function.
6520 (elf32_arm_info_to_howto): Use it.
6521 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PREL31 and
6522 BFD_RELOC_ARM_TARGET2.
6523 * libbfd.h: Regenerate.
6524 * reloc.c: Add BFD_RELOC_ARM_TARGET2 and BFD_RELOC_ARM_PREL31.
6526 2004-09-17 Alan Modra <amodra@bigpond.net.au>
6528 * ecoff.c: Update u.undef.next refs.
6529 * elf64-ppc.c: Likewise.
6530 * elflink.c: Likewise.
6531 * linker.c: Likewise.
6532 * xcofflink.c: Likewise.
6534 * elf-bfd.h (struct elf_link_hash_entry): Rearrange. Add FIXME to
6535 dynamic_def. Combine weakdef and elf_hash_value. Move vtable
6536 fields to indirect struct.
6537 * elf-m10300.c: Update u.weakdef refs.
6538 * elf32-arm.h: Likewise.
6539 * elf32-cris.c: Likewise.
6540 * elf32-frv.c: Likewise.
6541 * elf32-hppa.c: Likewise.
6542 * elf32-i370.c: Likewise.
6543 * elf32-i386.c: Likewise.
6544 * elf32-m32r.c: Likewise.
6545 * elf32-m68k.c: Likewise.
6546 * elf32-ppc.c: Likewise.
6547 * elf32-s390.c: Likewise.
6548 * elf32-sh.c: Likewise.
6549 * elf32-sparc.c: Likewise.
6550 * elf32-vax.c: Likewise.
6551 * elf32-xtensa.c: Likewise.
6552 * elf64-alpha.c: Likewise.
6553 * elf64-hppa.c: Likewise.
6554 * elf64-ppc.c: Likewise.
6555 * elf64-s390.c: Likewise.
6556 * elf64-sh64.c: Likewise.
6557 * elf64-sparc.c: Likewise.
6558 * elf64-x86-64.c: Likewise.
6559 * elfxx-ia64.c: Likewise.
6560 * elfxx-mips.c: Likewise.
6561 * elflink.c: Likewise. Also u.elf_hash_value.
6562 (elf_gc_propagate_vtable_entries_used): Update for h->vtable
6564 (elf_gc_smash_unused_vtentry_relocs): Likewise.
6565 (bfd_elf_gc_record_vtinherit): Alloc vtable.
6566 (bfd_elf_gc_record_vtentry): Likewise.
6567 * elf.c (_bfd_elf_link_hash_newfunc): Use memset.
6569 2004-09-17 Alan Modra <amodra@bigpond.net.au>
6571 * Makefile.am: Run "make dep-am".
6572 * Makefile.in: Regenerate.
6573 * bfd-in2.h: Regenerate.
6574 * po/SRC-POTFILES.in: Regenerate.
6575 * po/bfd.pot: Regenerate.
6577 2004-09-16 Alan Modra <amodra@bigpond.net.au>
6579 * elf-bfd.h (struct elf_link_hash_entry): Replace elf_link_hash_flags
6580 with bitfields. Make "type" and "other" bitfields too.
6581 (ELF_LINK_HASH_REF_REGULAR, ELF_LINK_HASH_DEF_REGULAR,
6582 ELF_LINK_HASH_REF_DYNAMIC, ELF_LINK_HASH_DEF_DYNAMIC,
6583 ELF_LINK_HASH_REF_REGULAR_NONWEAK, ELF_LINK_HASH_DYNAMIC_ADJUSTED,
6584 ELF_LINK_HASH_NEEDS_COPY, ELF_LINK_HASH_NEEDS_PLT, ELF_LINK_NON_ELF,
6585 ELF_LINK_HIDDEN, ELF_LINK_FORCED_LOCAL, ELF_LINK_HASH_MARK,
6586 ELF_LINK_NON_GOT_REF, ELF_LINK_DYNAMIC_DEF, ELF_LINK_DYNAMIC_WEAK,
6587 ELF_LINK_POINTER_EQUALITY_NEEDED): Delete.
6588 (ELF_COMMON_DEF_P, WILL_CALL_FINISH_DYNAMIC_SYMBOL): Update.
6589 * elf-hppa.h: Update all uses of elf_link_hash_flags.
6590 * elf-m10300.c: Likewise.
6592 * elf32-arm.h: Likewise.
6593 * elf32-cris.c: Likewise.
6594 * elf32-frv.c: Likewise.
6595 * elf32-hppa.c: Likewise.
6596 * elf32-i370.c: Likewise.
6597 * elf32-i386.c: Likewise.
6598 * elf32-m32r.c: Likewise.
6599 * elf32-m68k.c: Likewise.
6600 * elf32-ppc.c: Likewise.
6601 * elf32-s390.c: Likewise.
6602 * elf32-sh-symbian.c: Likewise.
6603 * elf32-sh.c: Likewise.
6604 * elf32-sh64.c: Likewise.
6605 * elf32-sparc.c: Likewise.
6606 * elf32-vax.c: Likewise.
6607 * elf32-xtensa.c: Likewise.
6608 * elf64-alpha.c: Likewise.
6609 * elf64-hppa.c: Likewise.
6610 * elf64-ppc.c: Likewise.
6611 * elf64-s390.c: Likewise.
6612 * elf64-sh64.c: Likewise.
6613 * elf64-sparc.c: Likewise.
6614 * elf64-x86-64.c: Likewise.
6615 * elflink.c: Likewise.
6616 * elfxx-ia64.c: Likewise.
6617 * elfxx-mips.c: Likewise.
6618 * configure.in (AM_INIT_AUTOMAKE): Set version to 2.15.92.
6619 * configure: Regenerate.
6620 * aclocal.m4: Regenerate.
6622 2004-09-16 Alan Modra <amodra@bigpond.net.au>
6624 * elf32-arm.h (elf32_arm_gc_sweep_hook): Add #ifndef OLD_ARM_ABI
6625 around uses of R_ARM_TARGET1.
6626 (elf32_arm_check_relocs): Likewise.
6628 2004-09-13 Paul Brook <paul@codesourcery.com>
6630 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
6632 * bfd-in2.h: Regenerate.
6633 * libbfd.h: Regenerate.
6634 * elf32-arm.h (elf32_arm_link_hash_table): Add target1_is_rel.
6635 (elf32_arm_link_hash_table_create): Set target1_is_rel.
6636 (bfd_elf32_arm_process_before_allocation): Ditto.
6637 (elf32_arm_final_link_relocate): Handle R_ARM_TARGET1.
6638 (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
6639 * elfarm-nabi.c (elf32_arm_howto_table): Rename RELABS to TARGET1.
6642 2004-09-10 Joel Brobecker <brobecker@gnat.com>
6644 * hpux-core.c (thread_section_p): New function.
6645 (hpux_core_core_file_p): Fix computation of offset in call
6646 to bfd_seek. Create a ".reg" section from an arbitrary
6647 ".reg/<id>" section if none was created after having read
6650 2004-09-11 Andreas Schwab <schwab@suse.de>
6652 * acinclude.m4: Fix spelling of ACX_NONCANONICAL_*.
6653 * aclocal.m4: Rebuild.
6654 * configure: Rebuild.
6656 2004-09-10 Joel Brobecker <brobecker@gnat.com>
6658 * section.c (bfd_sections_find_if): Fix parameter name in
6659 comment to match code.
6661 2004-09-10 Alan Modra <amodra@bigpond.net.au>
6663 * elf.c (assign_file_positions_except_relocs): Assign relocs
6664 stored in a bfd section.
6666 2004-09-08 Hans-Peter Nilsson <hp@axis.com>
6668 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset
6669 h->gotplt_refcount to 0, not -1.
6671 2004-09-07 Hans-Peter Nilsson <hp@axis.com>
6673 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
6674 case R_CRIS_32_GOTPLT>: For internal error message, handle NULL
6676 (cris_elf_check_relocs) <case R_CRIS_32_PLT_PCREL>: Don't try to
6677 handle symbol visibility here.
6679 2004-09-07 Alan Modra <amodra@bigpond.net.au>
6681 * elf64-ppc.c (struct ppc_link_hash_table): Add stub_globals.
6682 (is_ppc64_elf_target): Rename from is_ppc64_target. Update all
6684 (ppc_stub_name): Remove trailing "+0" on stub name.
6685 (create_linkage_sections): Create relocations for
6686 branch lookup table when --emit-relocs as well as when --shared.
6687 (ppc_build_one_stub): Emit relocs for long branch stubs. Adjust
6688 relbrlt test. For --emit-stub-syms, always output a sym even when
6689 one already exists on a plt call stub. Put stub type in the stub
6691 (ppc_size_one_stub): Size long branch stub relocs. Adjust relbrlt
6693 (ppc64_elf_size_stubs): Count global sym stubs added. Zero
6694 reloc_count in stub sections. Adjust relbrlt test.
6695 (ppc64_elf_build_stubs): Adjust relbrlt test. Tweak stats output.
6696 * elflink.c (bfd_elf_size_dynamic_sections): Fix comment typo.
6697 (elf_link_input_bfd): Ignore symbol index zero relocs when checking
6698 for relocs against discarded symbols. Fix comments.
6700 2004-09-06 Mark Mitchell <mark@codesourcery.com>
6702 * elf-bfd.h (_bfd_elf_make_dynamic_segment): Declare it.
6703 * elf.c (_bfd_elf_make_dynamic_segment): New function, split out
6705 (map_sections_to_segments): ... here. Use it. Assign a file
6706 position to the .dynamic section if it is not loadable, but part
6707 of the PT_DYNAMIC segment.
6708 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
6709 offsets, not VMAs, for the BPABI. Do not fill in the header in
6710 the .got.plt section for the BPABI.
6711 * elfarm-nabi.c (elf32_arm_symbian_modify_segment_map): Add a
6713 (elf_backend_want_got_plt): Define to zero for Symbian OS.
6715 2004-09-06 Nick Clifton <nickc@redhat.com>
6717 * elflink.c (elf_link_add_object_symbols): Set the error code to
6718 bfd_error_wrong_format when the input format does not match the
6721 2004-09-06 Alan Modra <amodra@bigpond.net.au>
6723 * elf64-ppc.c (is_ppc64_target): New function, extracted from..
6724 (ppc64_elf_check_directives): ..here.
6725 (ppc64_elf_size_dynamic_sections): Use it here to check bfd type
6726 before accessing ppc64_elf_tdata.
6727 (ppc64_elf_finish_dynamic_sections): And here too.
6729 2004-09-04 Alan Modra <amodra@bigpond.net.au>
6731 * bfd.c (_bfd_default_error_handler): Correct loop exit.
6733 2004-09-03 Mark Mitchell <mark@codesourcery.com>
6735 * config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors.
6736 * configure.in (bfd_elf32_bigarm_symbian_vec): Add it.
6737 (bfd_elf32_littlearm_symbian_vec): Likewise.
6738 * configure: Regenerated.
6739 * elf-bfd.h (elf_backend_data): Add dynamic_sec_flags.
6740 * elf32-arm.h (PLT_HEADER_SIZE): Do not define.
6741 (PLT_ENTRY_SIZE): Likewise.
6742 (bfd_vma_elf32_arm_symbian_plt_entry): New
6744 (elf32_arm_link_hash_table): Add plt_header_size, plt_entry_size,
6746 (create_got_section): Don't create sections when generating BPABI
6748 (elf32_arm_create_dynamic_sections): Tidy.
6749 (elf32_arm_link_hash_table_create): Set plt_header_size,
6750 plt_entry_size, and symbian_p.
6751 (elf32_arm_check_relocs): Do not mark .rel.dyn as loadable when
6752 generating BPABI objects.
6753 (allocate_dynrelocs): Use htab->plt_header_size, not
6754 PLT_HEADER_SIZE. Do not add to .got.plt when
6755 generating BPABI objects.
6756 (elf32_arm_finish_dynamic_symbol): Generate Symbian OS PLTs.
6757 * elfarm-nabi.c: Add SymbianOS target vectors.
6758 * elflink.c (_bfd_elf_create_got_section): Use dynamic_sec_flags.
6759 (_bfd_elf_link_create_dynamic_sections): Likewise.
6760 * elfxx-target.h (ELF_DYNAMIC_SEC_FLAGS): New macro.
6761 (elfNN_bed): Use it.
6762 * targets.c (bfd_elf32_bigarm_symbian_vec): New variable.
6763 (bfd_elf32_littlearm_symbian_vec): Likewise.
6764 (_bfd_target_vector): Add them.
6766 2004-09-03 Nick Clifton <nickc@redhat.com>
6769 * coffcode.h (handle_COMDAT): Replace abort with an warning
6770 message and allow the scan to continue.
6772 2004-09-02 Alan Modra <amodra@bigpond.net.au>
6774 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Use static_syms passed
6775 in when reading relocs, not our sorted syms. Remove unnecessary
6778 2004-08-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6780 * elf.c (special_sections): Add .gnu.linkonce.b modelled on .bss.
6782 2004-08-30 Nathanael Nerode <neroden@gcc.gnu.org>
6784 * acinclude.m4: Require AC_CANONICAL_TARGET, not AC_CANONICAL_SYSTEM.
6785 Include ../config/acx.m4 and use ACX_NONCANONICAL_* where appropriate;
6786 replace uses of *_alias with *_noncanonical.
6787 * aclocal.m4: Rebuild with aclocal 1.4p6.
6788 * Makefile.in: Rebuild with automake 1.4p6.
6789 * doc/Makefile.in: Rebuild with automake 1.4p6.
6790 * configure.in: Autoupdate with autoupdate 2.59.
6791 * config.in: Regenerate with autoheader 2.59.
6792 * configure: Regnerate with autoconf 2.59.
6794 2004-08-28 Alan Modra <amodra@bigpond.net.au>
6796 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Copy input
6797 symbol pointer arrays before modifying.
6799 2004-08-28 Alan Modra <amodra@bigpond.net.au>
6801 * bfd.c (bfd_get_synthetic_symtab): Pass counts and both symbol tables.
6802 * elf-bfd.h (_bfd_elf_get_synthetic_symtab): Adjust.
6803 * elf.c (_bfd_elf_get_synthetic_symtab): Adjust.
6804 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Adjust.
6805 * targets.c (struct bfd_target <_bfd_get_synthetic_symtab>): Adjust.
6806 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't read symbols.
6807 Use both symbol tables on non-relocatable objects. Use a common
6808 error exit. Fix "mid" warning.
6809 * libbfd.h: Regenerate.
6810 * bfd-in2.h: Regenerate.
6812 2004-08-28 Alan Modra <amodra@bigpond.net.au>
6814 * elf64-ppc.c (ppc64_elf_branch_reloc): Check .opd is in a regular
6816 (struct sfpr_def_parms): Save some space.
6817 (sfpr_define): Here too.
6819 * elf64-ppc.c (compare_symbols): Put section syms first.
6820 (sym_exists_at): New function.
6821 (ppc64_elf_get_synthetic_symtab): Use relocs to find code entry
6822 points only for relocatable files. Use .opd section contents
6823 otherwise. Generally clean up the code.
6825 2004-08-27 Alan Modra <amodra@bigpond.net.au>
6827 * elf64-ppc.c (STD_R0_0R1, STD_R0_0R12, LD_R0_0R1, LD_R0_0R12,
6828 LI_R12_0, STVX_VR0_R12_R0, LVX_VR0_R12_R0, MTLR_R0, SFPR_MAX): Define.
6829 (struct sfpr_def_parms): New.
6830 (sfpr_define): New function.
6831 (savegpr0, savegpr0_tail, restgpr0, restgpr0_tail): New functions.
6832 (savegpr1, savegpr1_tail, restgpr1, restgpr1_tail): New functions.
6833 (savefpr, savefpr0_tail, restfpr, restfpr0_tail): New functions.
6834 (savefpr1_tail, restfpr1_tail): New functions.
6835 (savevr, savevr_tail, restvr, restvr_tail): New functions.
6836 (MIN_SAVE_FPR, MAX_SAVE_FPR): Don't define.
6837 (ppc64_elf_func_desc_adjust): Use sfpr_define in place of existing
6838 code. Define all ABI mandated _save and _rest functions.
6840 2004-08-26 Paul Brook <paul@codesourcery.com>
6842 * elf32-arm.h (INTERWORK_FLAG): Return true for EABIv3 objects.
6844 2004-08-26 Alan Modra <amodra@bigpond.net.au>
6846 * elf32-m32r.c (m32r_elf_relocate_section): Don't compare with
6849 2004-08-26 Alan Modra <amodra@bigpond.net.au>
6851 * elf32-i386.c (elf_i386_relocate_section): Tweak last change so
6852 that pcrel correction is applied for R_386_PC32.
6854 2004-08-25 Alan Modra <amodra@bigpond.net.au>
6856 * elf32-i386.c (elf_i386_relocate_section): Zero section contents
6857 for R_386_32 and R_386_PC32 relocs against symbols defined in
6860 2004-08-25 Dmitry Diky <diwil@spec.ru>
6862 * reloc.c (BFD_RELOC_MSP430_2X_PCREL,BFD_RELOC_MSP430_RL_PCREL):
6863 Add new relocations.
6864 * bfd-in2.h: Regenerate.
6865 * libbfd.h: Regenerate.
6866 * elf32-msp430.c: Clean-up code.
6867 (elf_msp430_howto_table): Add new relocation entries.
6868 (bfd_elf32_bfd_reloc_type_lookup): New relocation handlers.
6869 (msp430_elf_relax_section): New function.
6870 (msp430_elf_relax_delete_bytes): New function.
6871 (msp430_elf_symbol_address_p): New function.
6873 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6875 * elf32-m32r.c (m32r_elf_relocate_section): Handle
6876 R_M32R_SDA16_RELA in the same way as R_M32R_SDA16.
6878 2004-08-20 Daniel Jacobowitz <dan@debian.org>
6880 * elflink.c (_bfd_elf_section_already_linked): Handle
6881 SEC_LINK_DUPLICATES_SAME_CONTENTS.
6883 2004-08-19 Mark Mitchell <mark@codesourcery.com>
6885 * config.bfd (arm*-*-symbianelf*): New target.
6886 (arm*-*-eabi*): Likewise.
6888 2004-08-19 Alan Modra <amodra@bigpond.net.au>
6890 * elf64-ppc.c (ppc_get_stub_entry): Change third param to a
6891 "struct ppc_link_hash_entry *".
6892 (ppc64_elf_relocate_section): Ditto for type of h. Introduce h_elf
6893 to satisfy RELOC_FOR_GLOBAL_SYMBOL.
6895 2004-08-19 Jakub Jelinek <jakub@redhat.com>
6897 * elf64-ppc.c (ppc64_elf_edit_opd): Support 16 byte long .opd
6898 entries (where fd_aux overlaps next entry's fd_func).
6899 Add non_overlapping argument, use it.
6900 (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, adjust_opd_syms,
6901 ppc64_elf_size_stubs, ppc64_elf_relocate_section,
6902 ppc64_elf_output_symbol_hook): Use address / 8 instead of address / 24
6903 as indexes into opd_sym_map/opd_adjust array.
6904 * elf64-ppc.h (ppc64_elf_edit_opd): Adjust prototype.
6906 2004-08-18 Alan Modra <amodra@bigpond.net.au>
6908 * elf64-ppc.c (func_desc_adjust): Give undefined dot-symbols a value
6909 if we can look up their function descriptor in a regular file.
6911 2004-08-18 Nick Clifton <nickc@redhat.com>
6914 * cofflink.c (coff_link_add_symbols): Check that the comdat
6915 pointer in the coff_section_data structure has been initialised
6918 2004-08-18 Alan Modra <amodra@bigpond.net.au>
6921 * elflink.c (bfd_elf_record_link_assignment): Add comment about
6922 changing bfd_link_hash_undefined to bfd_link_hash_new.
6924 2004-08-17 Jakub Jelinek <jakub@redhat.com>
6926 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Only define
6928 * elf64-ppc.c (bfd_elf64_get_synthetic_symtab): Define.
6929 (synthetic_opd, synthetic_relocatable): New variables.
6930 (compare_symbols, compare_relocs): New helper routines.
6931 (ppc64_elf_get_synthetic_symtab): New function.
6932 * bfd.c (bfd_get_synthetic_symtab): Rename dynsyms argument
6934 * bfd-in2.h: Regenerated.
6935 * elf.c (_bfd_elf_get_synthetic_symtab): Rename dynsyms argument
6936 to relsyms. Return 0 if abfd is relocatable.
6938 2004-08-17 Alan Modra <amodra@bigpond.net.au>
6940 * elflink.h (elf_gc_sweep): Keep non-alloc, non-load sections.
6942 2004-08-17 Nick Clifton <nickc@redhat.com>
6944 * (is_arm_mapping_symbol_name): New function - return true
6945 when a symbol name matches the requirements for an ARM mapping
6947 (arm_elf_find_function): New function based on
6948 elf_find_function in elf.c but skipping ARM mapping symbols
6949 and including thumb function symbols.
6950 (elf32_arm_find_nearest_line): Use arm_elf_find_function.
6951 (elf32_arm_output_symbol_hook): Use is_arm_mapping_symbol_name.
6953 2004-08-17 Alan Modra <amodra@bigpond.net.au>
6955 * elf64-ppc.c (ppc64_elf_branch_reloc): New function.
6956 (ppc64_elf_howto_raw): Use ppc64_elf_branch_reloc.
6957 (ppc64_elf_brtaken_reloc): Here too.
6959 2004-08-17 Alan Modra <amodra@bigpond.net.au>
6961 * elf64-ppc.c (add_symbol_adjust): Correct mismatched function
6963 (ppc64_elf_check_directives): Check that we have the right hash
6964 table before proceeding.
6966 2004-08-17 Alan Modra <amodra@bigpond.net.au>
6968 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add "deleted_section".
6969 (adjust_opd_syms): Attach opd syms for deleted entries to one of
6970 the sections that will be discarded.
6972 2004-08-16 Alan Modra <amodra@bigpond.net.au>
6974 * elflink.c (elf_section_complain_discarded): Ignore .fixup.
6976 2004-08-16 Alan Modra <amodra@bigpond.net.au>
6978 * bfd.c (_bfd_default_error_handler): Account for doubled '%' in
6979 free space available.
6981 2004-08-16 Alan Modra <amodra@bigpond.net.au>
6983 * pdp11.c (struct pdp11_aout_reloc_external): Delete. Replace
6984 occurrences with bfd_byte * thoughout file.
6986 * coff-rs6000.c (do_shared_object_padding): Warning fix.
6987 (xcoff_write_armap_big): Likewise.
6988 (xcoff_write_archive_contents_old): Likewise.
6989 (xcoff_write_archive_contents_big): Likewise.
6991 * elf64-mmix.c (mmix_elf_get_section_contents): Delete declaration.
6993 2004-08-13 Nick Clifton <nickc@redhat.com>
6995 * elf32-arm.h: Convert to ISO C90.
6997 2004-08-13 Alan Modra <amodra@bigpond.net.au>
7000 * elf32-hppa.c (elf32_hppa_hide_symbol): Use init_refcount to
7003 2004-08-13 Alan Modra <amodra@bigpond.net.au>
7005 * bfd.c (_bfd_default_error_handler): Handle %A and %B.
7006 (bfd_archive_filename, bfd_get_section_ident): Delete.
7007 * ecofflink.c (bfd_ecoff_debug_accumulate_other): Don't call
7008 bfd_archive_filename.
7009 * elflink.c (elf_link_input_bfd): Don't use callbacks->error_handler
7010 to warn about symbols in discarded sections. Use _bfd_error_handler.
7011 * aout-adobe.c (aout_adobe_callback): See below.
7012 * aout-cris.c (swap_ext_reloc_in): ..
7013 * coff-arm.c (find_thumb_glue, find_arm_glue,
7014 coff_arm_relocate_section, bfd_arm_process_before_allocation,
7015 coff_arm_merge_private_bfd_data, _bfd_coff_arm_set_private_flags,
7016 coff_arm_copy_private_bfd_data): ..
7017 * coff-i860.c (i860_reloc_processing): ..
7018 * coff-mcore.c (mcore_coff_unsupported_reloc,
7019 coff_mcore_relocate_section): ..
7020 * coff-ppc.c (coff_ppc_relocate_section): ..
7021 * coff-rs6000.c (xcoff_create_csect_from_smclas
7022 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
7023 sh_swap_insns, sh_relocate_section): ..
7024 * coff-tic54x.c (tic54x_reloc_processing): ..
7025 * coff-tic80.c (coff_tic80_relocate_section): ..
7026 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): ..
7027 * coffcode.h (styp_to_sec_flags, coff_slurp_line_table,
7028 coff_slurp_symbol_table, coff_classify_symbol,
7029 coff_slurp_reloc_table): ..
7030 * coffgen.c (_bfd_coff_read_string_table): ..
7031 * cofflink.c (coff_link_add_symbols, _bfd_coff_link_input_bfd,
7032 _bfd_coff_generic_relocate_section): ..
7033 * cpu-arm.c (bfd_arm_merge_machines): ..
7034 * cpu-sh.c (sh_merge_bfd_arch): ..
7035 * elf-hppa.h (elf_hppa_relocate_section): ..
7036 * elf.c (bfd_elf_string_from_elf_section, setup_group,
7037 _bfd_elf_setup_group_pointers, bfd_section_from_shdr,
7038 assign_section_numbers, _bfd_elf_symbol_from_bfd_symbol,
7039 copy_private_bfd_data, _bfd_elf_validate_reloc): ..
7040 * elf32-arm.h (find_thumb_glue, find_arm_glue,
7041 bfd_elf32_arm_process_before_allocation, elf32_thumb_to_arm_stub,
7042 elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate,
7043 elf32_arm_relocate_section, elf32_arm_set_private_flags,
7044 elf32_arm_copy_private_bfd_data, elf32_arm_merge_private_bfd_data): ..
7045 * elf32-cris.c (cris_elf_relocate_section, cris_elf_check_relocs,
7046 cris_elf_merge_private_bfd_data
7047 * elf32-frv.c (elf32_frv_relocate_section, elf32_frv_check_relocs): ..
7048 * elf32-gen.c (elf32_generic_link_add_symbols): ..
7049 * elf32-hppa.c (hppa_add_stub, hppa_build_one_stub,
7050 elf32_hppa_check_relocs, get_local_syms, final_link_relocate,
7051 elf32_hppa_relocate_section): ..
7052 * elf32-i370.c (i370_elf_merge_private_bfd_data,
7053 i370_elf_check_relocs, i370_elf_relocate_section): ..
7054 * elf32-i386.c (elf_i386_info_to_howto_rel, elf_i386_check_relocs,
7055 elf_i386_relocate_section): ..
7056 * elf32-m32r.c (m32r_elf_relocate_section,
7057 m32r_elf_merge_private_bfd_data): ..
7058 * elf32-m68hc1x.c (m68hc12_add_stub,
7059 _bfd_m68hc11_elf_merge_private_bfd_data): ..
7060 * elf32-m68k.c (elf_m68k_relocate_section): ..
7061 * elf32-mcore.c (mcore_elf_unsupported_reloc,
7062 mcore_elf_relocate_section): ..
7063 * elf32-ppc.c (ppc_elf_merge_private_bfd_data, bad_shared_reloc,
7064 ppc_elf_check_relocs, ppc_elf_relocate_section,
7065 ppc_elf_begin_write_processing): ..
7066 * elf32-s390.c (elf_s390_check_relocs, invalid_tls_insn,
7067 elf_s390_relocate_section): ..
7068 * elf32-sh-symbian.c (sh_symbian_import_as,
7069 sh_symbian_process_embedded_commands,
7070 sh_symbian_relocate_section): ..
7071 * elf32-sh.c (sh_elf_relax_section, sh_elf_relax_delete_bytes,
7072 sh_elf_swap_insns, sh_elf_relocate_section, sh_elf_check_relocs,
7073 sh_elf_merge_private_data): ..
7074 * elf32-sparc.c (elf32_sparc_check_relocs,
7075 elf32_sparc_relocate_section,
7076 elf32_sparc_merge_private_bfd_data): ..
7077 * elf32-v850.c (v850_elf_check_relocs,
7078 v850_elf_merge_private_bfd_data): ..
7079 * elf32-xtensa.c (elf_xtensa_check_relocs,
7080 elf_xtensa_relocate_section, elf_xtensa_merge_private_bfd_data): ..
7081 * elf64-alpha.c (elf64_alpha_relax_with_lituse,
7082 elf64_alpha_relax_got_load, elf64_alpha_size_got_sections,
7083 elf64_alpha_relocate_section_r, elf64_alpha_relocate_section): ..
7084 * elf64-gen.c (elf64_generic_link_add_symbols): ..
7085 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data, ppc_add_stub,
7086 ppc64_elf_check_relocs, ppc64_elf_edit_opd,
7087 ppc64_elf_relocate_section): ..
7088 * elf64-s390.c (elf_s390_check_relocs, invalid_tls_insn,
7089 elf_s390_relocate_section): ..
7090 * elf64-sh64.c (sh_elf64_relocate_section): ..
7091 * elf64-sparc.c (sparc64_elf_check_relocs,
7092 sparc64_elf_add_symbol_hook, sparc64_elf_relocate_section,
7093 sparc64_elf_merge_private_bfd_data): ..
7094 * elf64-x86-64.c (elf64_x86_64_check_relocs,
7095 elf64_x86_64_relocate_section): ..
7096 * elflink.c (_bfd_elf_add_default_symbol,
7097 _bfd_elf_link_assign_sym_version, elf_link_read_relocs_from_section,
7098 _bfd_elf_link_output_relocs, elf_link_add_object_symbols,
7099 bfd_elf_size_dynamic_sections, elf_link_output_extsym,
7100 elf_get_linked_section_vma, elf_fixup_link_order,
7101 bfd_elf_final_link, bfd_elf_gc_record_vtinherit,
7102 bfd_elf_gc_record_vtinherit, _bfd_elf_section_already_linked): ..
7103 * elfxx-ia64.c (elfNN_ia64_relax_section,
7104 elfNN_ia64_relocate_section, elfNN_ia64_merge_private_bfd_data): ..
7105 * elfxx-mips.c (mips_elf_perform_relocation,
7106 _bfd_mips_elf_check_relocs,
7107 _bfd_mips_elf_merge_private_bfd_data): ..
7108 * ieee.c (ieee_slurp_external_symbols): ..
7109 * ihex.c (ihex_bad_byte, ihex_scan, ihex_read_section): ..
7110 * libbfd.c (_bfd_generic_verify_endian_match): ..
7111 * linker.c (_bfd_generic_link_add_one_symbol,
7112 _bfd_generic_section_already_linked): ..
7113 * pdp11.c (translate_to_native_sym_flags): ..
7114 * pe-mips.c (coff_pe_mips_relocate_section): ..
7115 * peicode.h (pe_ILF_build_a_bfd): ..
7116 * srec.c (srec_bad_byte): ..
7117 * stabs.c (_bfd_link_section_stabs): ..
7118 * xcofflink.c (xcoff_link_add_symbols, xcoff_link_input_bfd): ..
7119 Replace all uses of bfd_archive_filename and bfd_get_section_ident
7120 with corresponding %B and %A in _bfd_error_handler format string.
7121 Replace occurrences of "fprintf (stderr," with _bfd_error_handler
7122 calls to use %A and %B. Fix "against symbol .. from section" and
7123 similar error messages. Combine multiple _bfd_error_handler calls
7124 where they were separated due to bfd_archive_filename deficiencies.
7125 * bfd-in2.h: Regenerate.
7127 2004-08-12 H.J. Lu <hongjiu.lu@intel.com>
7129 * elf32-i386.c (elf_i386_relocate_section): Report unrecognized
7132 2004-08-10 Alan Modra <amodra@bigpond.net.au>
7134 * elf64-ppc.c (struct ppc_link_hash_entry): Add was_undefined.
7135 (struct ppc_link_hash_table): Remove no_multi_toc, multi_toc_needed.
7136 Make emit_stub_syms, stub_error and has_14bit_branch bit-fields.
7138 (link_hash_newfunc): Init was_undefined.
7139 (add_symbol_adjust): Don't set undefined dot symbols to defweak;
7140 Use undefweak instead.
7141 (ppc64_elf_check_directives): Fix undefs chain.
7142 (ppc64_elf_next_toc_section): Remove no_multi_toc and multi_toc_needed
7144 (ppc64_elf_size_stubs): Adjust for add_symbol_adjust change.
7145 (undo_symbol_twiddle, ppc64_elf_restore_symbols): New functions.
7146 * elf64-ppc.h (ppc64_elf_restore_symbols): Declare.
7148 2004-08-09 Jakub Jelinek <jakub@redhat.com>
7150 * elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic
7151 error, test input_section flags rather than sec.
7153 2004-08-09 Alan Modra <amodra@bigpond.net.au>
7155 * elf-bfd.h (struct elf_backend_data): Add
7156 elf_backend_archive_symbol_lookup.
7157 (_bfd_elf_archive_symbol_lookup): Declare.
7158 * elflink.c (_bfd_elf_archive_symbol_lookup): New function..
7159 (elf_link_add_archive_symbols): ..extracted from here. Call the
7161 * elfxx-target.h (elf_backend_archive_symbol_lookup): Provide default.
7162 (elfNN_bed): Init new field.
7163 * elf64-ppc.c (elf_backend_check_directives): Define.
7164 (elf_backend_archive_symbol_lookup): Define.
7165 (struct ppc_link_hash_table): Add tls_get_add_fd. Make tls_get_add
7166 a ppc_link_hash_entry pointer.
7168 (ppc64_elf_archive_symbol_lookup, opd_entry_value): New functions.
7169 (add_symbol_adjust, ppc64_elf_check_directives): New functions.
7170 (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, func_desc_adjust,
7171 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup,
7172 ppc64_elf_tls_optimize, allocate_dynrelocs, ppc_type_of_stub,
7173 ppc_build_one_stub, ppc64_elf_size_stubs, ppc64_elf_relocate_section,
7174 ppc64_elf_finish_dynamic_symbol): Handle branch relocs to function
7177 2004-08-09 Alan Modra <amodra@bigpond.net.au>
7179 * elf64-ppc.c (struct ppc_link_hash_entry): Expand adjust_done comment.
7180 (ppc64_elf_add_symbol_hook): Test for NULL section.
7181 (get_sym_h): Formatting.
7182 (ppc64_elf_size_stubs): Include reloc addend in value stored as
7185 * elf64-ppc.c (ppc64_elf_relocate_section): Combine handling of
7186 long branch stubs with code handling plt and r2off branch stubs.
7188 2004-08-09 Alan Modra <amodra@bigpond.net.au>
7190 * elf-bfd.h (_bfd_elf_gc_mark): Declare.
7191 * elflink.c (elf_link_input_bfd): Formatting.
7192 (_bfd_elf_gc_mark): Rename from elf_gc_mark and make global. Adjust
7194 * elf64-ppc.c (struct ppc_link_hash_entry): Remove is_entry.
7195 (link_hash_newfunc): Don't set it.
7196 (ppc64_elf_copy_indirect_symbol): Nor copy it.
7197 (ppc64_elf_mark_entry_syms): Delete.
7198 (ppc64_elf_gc_mark_hook): Mark entry syms here. Also mark opd
7199 sections. Use get_opd_info.
7200 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Delete.
7202 2004-08-09 Alan Modra <amodra@bigpond.net.au>
7204 * elf64-ppc.c (adjust_opd_syms): Fix merge error.
7206 * elf64-ppc.c (struct ppc_link_hash_table): Remove have_undefweak.
7207 (func_desc_adjust): Don't set have_undefweak.
7208 (ppc64_elf_func_desc_adjust): Don't add an extr nop to sfpr.
7209 (ppc64_elf_relocate_section): NOP out calls to undefweak functions.
7211 * elf64-ppc.c (struct ppc_link_hash_entry): Make "oh" a
7212 "struct ppc_link_hash_entry *". Adjust all references.
7213 (ppc64_elf_hide_symbol): Correct a comment.
7215 * elf64-ppc.c (get_opd_info): New function.
7216 (adjust_opd_syms): Use get_opd_info. Define removed symbols as zero.
7217 (ppc64_elf_edit_opd): Use get_opd_info. Check that sym has a dot
7218 before calling get_fdh. Test fdh rather than h before dereferencing
7219 fdh. Mark removed symbols in opd_adjust.
7220 (ppc64_elf_tls_optimize): Don't bother with opd adjustment here.
7221 (ppc64_elf_relocate_section): Use get_opd_info, and handle removed
7223 (ppc64_elf_output_symbol_hook): Likewise.
7225 2004-08-06 Paul Brook <paul@codesourcery.com>
7227 * elfarm-nabi.c (elf32_arm_howto_table): Add new EABI relocations.
7228 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_RELABS32,
7229 BFD_RELOC_ARM_ROSEGREL32 and BFD_RELOC_ARM_SBREL32.
7230 * reloc.c: Add BFD_RELOC_ARM_RELABS32, BFD_RELOC_ARM_ROSEGREL32
7231 and BFD_RELOC_ARM_SBREL32.
7232 * bfd-in2.h, bbfd.h: Regenerate.
7234 2004-08-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7236 * elfxx-mips.c (mips_elf_calculate_relocation): Test only for
7237 the dynamic link symbol actually in use.
7239 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
7241 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Handle bfd_link_hash_new
7243 2004-07-31 Joel Brobecker <brobecker@gnat.com>
7244 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7246 * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle
7247 SHN_MIPS_TEXT and SHN_MIPS_DATA.
7249 2004-07-30 H.J. Lu <hongjiu.lu@intel.com>
7250 Nick Clifton <nickc@redhat.com>
7253 * bfd.c (_bfd_default_error_handler): Make it global.
7255 * elf-bfd.h (elf_backend_data): Add link_order_error_handler.
7257 * elf.c (assign_section_numbers): Cope gracefully with sections
7258 which have SHF_LINK_ORDER set but no sh_link set up.
7259 * elflink.c (elf_get_linked_section_vma): Likewise.
7261 * elfxx-ia64.c (elf_backend_link_order_error_handler): New. Set
7264 * elfxx-target.h (elf_backend_link_order_error_handler): New.
7265 Set it to _bfd_default_error_handler.
7266 (elfNN_bed): Add elf_backend_link_order_error_handler.
7268 * libbfd-in.h (_bfd_default_error_handler): New.
7270 * libbfd.h: Regenerated.
7272 2004-07-30 Jakub Jelinek <jakub@redhat.com>
7274 * archures.c (bfd_mach_sparc_64bit_p): Define.
7275 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Use it.
7276 * bfd-in2.h: Rebuilt.
7278 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
7280 Introduce SH2a support.
7281 2004-02-18 Corinna Vinschen <vinschen@redhat.com>
7282 * archures.c (bfd_mach_sh2a_nofpu): New.
7283 * bfd-in2.h: Rebuilt.
7284 * cpu-sh.c (SH2A_NOFPU_NEXT): New.
7285 (arch_info_struct): Add sh2a_nofpu.
7286 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a_nofpu.
7287 2003-12-29 DJ Delorie <dj@redhat.com>
7288 * reloc.c: Add relocs for sh2a.
7289 * bfd-in2.h: Regenerate.
7290 * libbfd.hh: Regenerate.
7291 2003-12-01 Michael Snyder <msnyder@redhat.com>
7292 * archures.c (bfd_mach_sh2a): New.
7293 * bfd-in2.h: Rebuilt.
7294 * cpu-sh.c (SH_NEXT, SH2_NEXT, etc.): Change defines to enums.
7296 (arch_info_struct): Add sh2a.
7297 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a.
7299 2004-07-28 Nick Clifton <nickc@redhat.com>
7300 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7303 * som.c (setup_sections): Improve estimation of space sizes in
7304 relocatable objects.
7306 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
7307 * config.bfd (hppa*-*-netbsd*): Set targ_defvec to
7308 bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec
7310 * configure.in (bfd_elf32_hppa_nbsd_vec): Add case.
7311 * configure: Regenerate.
7312 * elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd"
7313 case that accepts OSABI=NetBSD and OSABI=SysV.
7314 (elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to
7315 the base of .got or .data (if .got does not exist).
7316 (elf32_hppa_post_process_headers): For elf32-hppa-netbsd,
7318 (TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case.
7319 (TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case.
7320 * targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration.
7321 (_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec.
7323 2004-07-27 H.J. Lu <hongjiu.lu@intel.com>
7326 * elf-bfd.h (bfd_elf_section_data): Add sec_group.
7327 (elf_sec_group): Defined.
7328 (bfd_elf_match_symbols_in_sections): New prototype.
7329 (_bfd_elf_setup_group_pointers): Likewise.
7331 * elf.c (bfd_elf_discard_group): Abort.
7332 (bfd_elf_set_group_contents): Also include relocation sections.
7333 Remove zero-fill for ld -r.
7334 (_bfd_elf_setup_group_pointers): New function.
7335 (elf_sort_elf_symbol): Likewise.
7336 (elf_sym_name_compare): Likewise.
7337 (bfd_elf_match_symbols_in_sections): Likewise.
7339 * elfcode.h (elf_object_p): Call _bfd_elf_setup_group_pointers.
7341 * elflink.c (match_group_member): New.
7342 (elf_link_input_bfd): Check group member for discarded section.
7343 (try_match_symbols_in_sections): New function.
7344 (already_linked): Likewise.
7345 (_bfd_elf_section_already_linked): Support mixing comdat group
7346 and linkonce section.
7348 * libbfd-in.h (bfd_section_already_linked_table_traverse): New.
7349 * linker.c (bfd_section_already_linked_table_traverse): New.
7351 * libbfd.h: Regenerated.
7353 2004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
7355 * reloc.c: Add BFD_RELOC_CRX_SWITCH8, BFD_RELOC_CRX_SWITCH16,
7356 BFD_RELOC_CRX_SWITCH32.
7357 * bfd-in2.h: Regenerate.
7358 * libbfd.h: Regenerate.
7359 * elf32-crx.c: Support relocation/relaxation of
7360 BFD_RELOC_CRX_SWITCH* types.
7362 2004-07-27 Alan Modra <amodra@bigpond.net.au>
7364 * elf64-ppc.c: Correct "Linker stubs" comment.
7366 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
7368 * elf-bfd.h (bfd_elf_section_data): Add a pointer for the
7370 (elf_linked_to_section): New.
7372 * elf.c (assign_section_numbers): Set up sh_link for
7375 * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info
7376 to sh_link for SHT_IA_64_UNWIND sections.
7378 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
7380 * elflink.c (elf_fixup_link_order): Add _() to error message.
7382 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
7384 * elflink.c (elf_fixup_link_order): Issue a warning and flag
7387 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
7389 * aout-adobe.c (aout_32_section_already_linked): Defined.
7390 * aout-target.h (MY_section_already_linked): Likewise.
7391 * aout-tic30.c (MY_section_already_linked): Likewise.
7392 * binary.c (binary_section_already_linked): Likewise.
7393 * bout.c (b_out_section_already_linked): Likewise.
7394 * coff-alpha.c (_bfd_ecoff_section_already_linked): Likewise.
7395 * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
7396 * coffcode.h (coff_section_already_linked): Likewise.
7397 * i386msdos.c (msdos_section_already_linked): Likewise.
7398 * i386os9k.c (os9k_section_already_linked): Likewise.
7399 * ieee.c (ieee_section_already_linked): Likewise.
7400 * ihex.c (ihex_section_already_linked): Likewise.
7401 * mach-o.c (bfd_mach_o_section_already_linked): Likewise.
7402 * mmo.c (mmo_section_already_linked): Likewise.
7403 * nlm-target.h (nlm_section_already_linked): Likewise.
7404 * oasys.c (oasys_section_already_linked): Likewise.
7405 * pef.c (bfd_pef_section_already_linked): Likewise.
7406 * ppcboot.c (ppcboot_section_already_linked): Likewise.
7407 * som.c (som_bfd_discard_group): Likewise.
7408 * srec.c (srec_section_already_linked): Likewise.
7409 * tekhex.c (tekhex_section_already_linked): Likewise.
7410 * versados.c (versados_section_already_linked): Likewise.
7411 * vms.c (vms_section_already_linked): Likewise.
7412 * coff-target.h (_bfd_xcoff_section_already_linked): Likewise.
7413 * xsym.c (bfd_sym_section_already_linked): Likewise.
7415 * bfd-in.h (bfd_section_already_linked_table_init): New.
7416 (bfd_section_already_linked_table_free): Likewise.
7418 * coff-rs6000.c (rs6000coff_vec): Add
7419 _bfd_generic_section_already_linked.
7420 (pmac_xcoff_vec): Likewise.
7421 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
7422 (aix5coff64_vec): Likewise.
7424 * elf-bfd.h (_bfd_elf_section_already_linked): New prototype.
7425 * elflink.c (_bfd_elf_section_already_linked): New function.
7427 * elfxx-target.h (bfd_elfNN_section_already_linked): Defined.
7429 * libbfd-in.h (_bfd_nolink_section_already_linked): Defined.
7430 (_bfd_generic_section_already_linked): New.
7431 (bfd_section_already_linked_hash_entry): Likewise.
7432 (bfd_section_already_linked): Likewise.
7433 (bfd_section_already_linked_table_lookup): Likewise.
7434 (bfd_section_already_linked_table_insert): Likewise.
7436 * linker.c (bfd_section_already_linked): New.
7437 (_bfd_section_already_linked_table): Likewise.
7438 (bfd_section_already_linked_table_lookup): Likewise.
7439 (bfd_section_already_linked_table_insert): Likewise.
7440 (already_linked_newfunc): Likewise.
7441 (bfd_section_already_linked_table_init): Likewise.
7442 (bfd_section_already_linked_table_free): Likewise.
7443 (_bfd_generic_section_already_linked): Likewise.
7445 * section.c (bfd_section): Remove comdat.
7446 (bfd_comdat_info): Moved to ...
7447 * bfd-in.h (coff_comdat_info): Here.
7448 (bfd_coff_get_comdat_section): New.
7449 * coffgen.c (bfd_coff_get_comdat_section): Likewise.
7450 * libcoff-in.h (coff_section_tdata): Add comdat.
7451 * coffcode.h (handle_COMDAT): Updated.
7452 * cofflink.c (coff_link_add_symbols): Likewise.
7453 * ecoff.c (bfd_debug_section): Likewise.
7455 * targets.c (bfd_target): Add _section_already_linked.
7456 (BFD_JUMP_TABLE_LINK): Updated.
7458 * bfd-in2.h: Regenerated.
7459 * libbfd.h: Likewise.
7460 * libcoff.h: Likewise.
7462 2003-07-21 Paul Brook <paul@codesourcery.com>
7464 * elflink.c (elf_get_linked_section_vma, compare_link_order,
7465 elf_fixup_link_order): New functions.
7466 (bfd_elf_final_link): Call elf_fixup_link_order.
7468 2004-07-21 Alexandre Oliva <aoliva@redhat.com>
7470 * elf-bfd.h (ELF_COMMON_DEF_P): New.
7471 * elflink.c (_bfd_elf_symbol_refs_local_p): Use it to handle
7473 * elf-m10300.c: Use SYMBOL_REFERENCES_LOCAL instead of
7474 _bfd_elf_symbol_refs_local_p.
7475 * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove hack for common
7478 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
7480 * bfd-in.h (dynamic_lib_link_class): Add DYN_NO_ADD_NEEDED and
7482 (bfd_elf_get_dyn_lib_class): New prototype.
7483 * elf.c (bfd_elf_get_dyn_lib_class): New function.
7485 * elflink.c (elf_link_add_object_symbols): Check DYN_AS_NEEDED,
7486 DYN_DT_NEEDED and DYN_NO_NEEDED bits to see if a DT_NEEDED
7487 entry is needed. Issue an error if a DT_NEEDED entry is needed
7488 for a file marked DYN_NO_NEEDED.
7489 (elf_link_check_versioned_symbol): Check the DYN_DT_NEEDED bit
7492 * bfd-in2.h: Regenerated.
7494 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7496 * elflink.c (elf_section_complain_discarded): Don't complain in
7499 2004-07-10 James E Wilson <wilson@specifixinc.com>
7501 * elfxx-ia64.c (elfNN_ia64_relax_ldxmov): Remove abfd parameter.
7502 (elfNN_ia64_install_value, elfNN_ia64_relax_brl): Likewise.
7503 (elfNN_ia64_relax_section, elfNN_ia64_relocate_section,
7504 elfNN_ia64_finish_dynamic_symbol, elfNN_ia64_finish_dynamic_sections):
7506 (elfNN_ia64_relax_brl): Change bfd_get_64 to bfd_getl64. Change
7507 bfd_put_64 to bfd_putl64.
7508 (elfNN_ia64_relax_ldxmov, elfNN_ia64_install_value): Likewise.
7510 2004-07-09 H.J. Lu <hongjiu.lu@intel.com>
7513 * elfxx-ia64.c (elfNN_ia64_relax_section): Only warn br in
7514 .init/.fini sections when trying to relax it.
7516 2004-07-09 Jie Zhang <zhangjie@magima.com.cn>
7518 * elf.c (assign_file_positions_for_segments): Make sure the
7519 .dynamic section is the first section in the PT_DYNAMIC segment.
7521 2004-07-09 Nick Clifton <nickc@redhat.com>
7523 * config.bfd: Change sh-sybmian-elf to sh-*-symbianelf.
7524 * elf32-sh-symbian.c: Rename the sh_find_elf_flags and
7525 sh_elf_get_flags_from_mach functions so that they do not conflict
7526 when this target is built with other sh-elf targets.
7527 * elf32-sh.c (sh_elf_get_flags_from_mach): Remove bogus
7528 suppression of this function.
7529 (sh_elf_find_flags): Likewise.
7531 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
7533 * Makefile.am (ALL_MACHINES): Add cpu-crx.lo.
7534 (ALL_MACHINES_CFILES): Add cpu-crx.c.
7535 (BFD32_BACKENDS): Add elf32-crx.lo.
7536 (BFD32_BACKENDS_CFILES): Add elf32-crx.c.
7537 (cpu-crx.lo): New target.
7538 (elf32-crx.lo): New target.
7539 * Makefile.in: Regenerate.
7540 * archures.c (bfd_architecture): Add bfd_{arch,mach}_crx.
7541 (bfd_archures_list): Add bfd_crx_arch.
7542 * bfd-in2.h: Regenerate.
7543 * config.bfd: Handle crx-*-elf*, crx*.
7544 * configure.in: Handle bfd_elf32_crx_vec.
7545 * configure: Regenerate.
7546 * cpu-crx.c: New file.
7547 * elf32-crx.c: Likewise.
7548 * libbfd.h: Regenerate.
7549 * reloc.c: Add BFD_RELOC_CRX_REL4, BFD_RELOC_CRX_REL8,
7550 BFD_RELOC_CRX_REL8_CMP, BFD_RELOC_CRX_REL16, BFD_RELOC_CRX_REL24,
7551 BFD_RELOC_CRX_REL32, BFD_RELOC_CRX_REGREL12, BFD_RELOC_CRX_REGREL22,
7552 BFD_RELOC_CRX_REGREL28, BFD_RELOC_CRX_REGREL32, BFD_RELOC_CRX_ABS16,
7553 BFD_RELOC_CRX_ABS32, BFD_RELOC_CRX_NUM8, BFD_RELOC_CRX_NUM16,
7554 BFD_RELOC_CRX_NUM32, BFD_RELOC_CRX_IMM16 and BFD_RELOC_CRX_IMM32
7555 * targets.c (bfd_elf32_crx_vec): Declare.
7556 (bfd_target_vector): Add bfd_elf32_crx_vec.
7558 2004-07-06 Nick Clifton <nickc@redhat.com>
7560 * config.bfd: Add sh-symbian-elf target.
7561 * configure.in: Add bfd_elf32_shl_symbian_vec.
7562 * configure: Regenerate.
7563 * elf-bfd.h (struct elf_backend_data): Add new field
7565 * elflink.c (elf_link_add_object_symbols): Invoke the
7566 check_directives function, if defined.
7567 * elfxx-target.h: Provide a default, NULL definition for
7569 * targets.c: Add bfd_elf32_shl_symbian_vec.
7570 * elf32-sh.c (sh_elf_swap_insns): Protect against unnecessary
7572 (elf32_shlin_grok_prstatus, elf32_shlib_grok_psinfo,
7573 * sh_elf_get_flags_from_mach, sh_elf_find_flags): Likewise.
7574 (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Only define if they have
7575 not already been defined.
7576 * elf32-sh64.c: Use SH_TARGET_ALREADY_DEFINED.
7577 * sh-symbian.c: New file. Provide functions to support the
7578 * sh-symbian-elf target.
7579 * Makefile.am: Add elf32-sh-symbian.c
7580 * Makefile.in: Regenerate.
7582 2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
7584 * elf32-sh.c: Include ../opcodes/sh-opc.h.
7585 * Makefile.am: Ran make dep-am.
7586 * Makefile.in: Ran make dep-in.
7588 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
7590 * cofflink.c (_bfd_coff_generic_relocate_section): Resolve PE weak
7593 2004-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
7595 * config.bfd: Add want64 to configuration target s390-*-linux*.
7597 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
7599 * bfd.c (bfd_get_section_ident): New.
7601 * elflink.c (elf_link_read_relocs_from_section): Call
7602 bfd_get_section_ident to identify the section when reporting
7604 (_bfd_elf_link_output_relocs): Likewise.
7605 (elf_link_output_extsym): Likewise.
7606 (elf_link_input_bfd): Likewise.
7607 (bfd_elf_gc_record_vtinherit): Likewise.
7609 * bfd-in2.h: Regenerated.
7611 2004-07-01 Jie Zhang <zhangjie@magima.com.cn>
7612 Nick Clifton <nickc@redhat.com>
7615 * elfxx-mips.c (_bfd_mips_elf_final_link): Pass the correct number
7616 of section symbols to mips_elf_sort_hash_table ().
7618 2004-07-01 Alan Modra <amodra@bigpond.net.au>
7620 * elflink.c (elf_section_ignore_discarded_relocs): Revert last
7622 (elf_section_complain_discarded): New function. Handle
7623 .gcc_except_table too.
7624 (elf_link_input_bfd): Rewrite handling of relocs against symbols
7625 in discarded sections.
7626 * elf-bfd.h (elf_discarded_section): Protect macro arg.
7628 2004-06-30 James E Wilson <wilson@specifixinc.com>
7630 * elfxx-ia64.c (elfNN_ia64_check_relocs): New local pltoff. Initialize
7631 to NULL. Call get_pltoff if NULL and NEED_PLTOFF is true.
7633 2004-06-30 H.J. Lu <hongjiu.lu@intel.com>
7636 * elflink.c (elf_link_input_bfd): Issue an error for non-debug
7637 local references to discarded sections and report their
7640 2004-06-30 Alan Modra <amodra@bigpond.net.au>
7642 * elflink.c (elf_section_ignore_discarded_relocs): Don't test
7643 sec_info_type, test section name instead.
7645 2004-06-29 H.J. Lu <hongjiu.lu@intel.com>
7648 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't relax branch
7649 in .init/.fini sections.
7651 2004-06-29 Bob Wilson <bob.wilson@acm.org>
7653 * elf32-xtensa.c (elf_xtensa_relocate_section): Use
7654 bfd_get_section_limit.
7656 2004-06-29 Bob Wilson <bob.wilson@acm.org>
7658 * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Don't change the
7659 output section size.
7661 2004-06-29 Alan Modra <amodra@bigpond.net.au>
7663 * elf64-mmix.c (mmix_set_relaxable_size): Save original size in
7665 (mmix_elf_perform_relocation): Adjust for above change.
7666 (mmix_elf_relocate_section): Likewise.
7667 (mmix_elf_relax_section): Likewise. Use output_section->rawsize.
7668 (mmix_elf_get_section_contents): Delete.
7669 (bfd_elf64_get_section_contents): Delete.
7670 (mmix_elf_relocate_section): Zero stub area.
7671 * linker.c (default_indirect_link_order): Alloc max of section size
7673 * simple.c (bfd_simple_get_relocated_section_contents): Likewise.
7674 * section.c (bfd_malloc_and_get_section): Likewise.
7675 (struct bfd_section): Update rawsize comment.
7676 * bfd-in2.h: Regenerate.
7678 * reloc16.c (bfd_coff_reloc16_relax_section): Set rawsize.
7680 2004-06-29 Alan Modra <amodra@bigpond.net.au>
7682 * bfd-in.h (bfd_get_section_limit): Define.
7683 * reloc.c (bfd_perform_relocation, bfd_install_relocation)
7684 (_bfd_final_link_relocate): Use bfd_get_section_limit.
7685 * aout-tic30.c (tic30_aout_final_link_relocate): Likewise.
7686 * coff-arm.c (coff_arm_relocate_section): Likewise.
7687 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): Likewise.
7688 * cpu-ns32k.c (do_ns32k_reloc): Likewise.
7689 (bfd_ns32k_final_link_relocate): Likewise.
7690 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): Likwise.
7691 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): Likewise.
7692 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc)
7693 (i860_howto_highadj_reloc, i860_howto_splitn_reloc): Likewise.
7694 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc)
7695 (m32r_elf_generic_reloc, m32r_elf_relocate_section): Likewise.
7696 * elf32-m68hc1x.c (m68hc11_elf_special_reloc): Likewise.
7697 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
7698 * elf32-or32.c (or32_elf_consth_reloc): Likewise.
7699 * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Likewise.
7700 * elf32-s390.c (s390_elf_ldisp_reloc): Likewise.
7701 * elf32-sh.c (sh_elf_reloc_loop): Likewise.
7702 * elf32-sparc.c (sparc_elf_wdisp16_reloc): Likewise.
7703 (sparc_elf_hix22_reloc, sparc_elf_lox10_reloc): Likwise.
7704 * elf32-v850.c (v850_elf_reloc): Likewise.
7705 * elf32-xstormy16.c (xstormy16_elf_24_reloc): Likewise.
7706 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Likewise.
7707 * elf64-alpha.c (elf64_alpha_reloc_gpdisp): Likewise.
7708 * elf64-mips.c (mips_elf64_gprel32_reloc)
7709 (mips16_gprel_reloc): Likewise.
7710 * elf64-mmix.c (mmix_elf_reloc): Likewise.
7711 * elf64-s390.c (s390_elf_ldisp_reloc): Likewise.
7712 * elf64-sparc.c (init_insn_reloc): Likewise.
7713 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
7714 * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp)
7715 (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc)
7716 (_bfd_mips_elf_generic_reloc): Likewise.
7717 * bfd-in2.h: Regenerate.
7719 2004-06-28 Alan Modra <amodra@bigpond.net.au>
7721 * bfd-in.h (struct stab_info): Move from stabs.c.
7722 * stabs.c (struct stab_link_includes_table): Delete.
7723 (stab_link_includes_lookup): Delete.
7724 (_bfd_write_section_stabs, _bfd_write_stab_strings): Remove one
7725 level of indirection from sinfo parm.
7726 (_bfd_link_section_stabs): Likewise. Set SEC_LINKER_CREATED on
7727 stabstr section. Adjust hash table accesses.
7728 * coff-ppc.c (ppc_bfd_coff_final_link): Do include rawsize in contents
7729 alloc. Adjust stab_info test.
7730 * cofflink.c (_bfd_coff_link_hash_table_init): Clear stab_info.
7731 (_bfd_coff_final_link): Adjust stab_info test.
7732 (_bfd_coff_link_input_bfd): Ignore SEC_LINKER_CREATED sections.
7733 * elf-bfd.h (struct elf_link_hash_table): Include struct stab_info
7735 * libcoff-in.h (struct coff_link_hash_table): Likewise.
7736 * elf.c (_bfd_elf_link_hash_table_init): Clear stab_info.
7737 * elflink.c (bfd_elf_final_link): Don't attempt to link linker created
7738 stabstr section. Adjust stab_info test.
7739 * libbfd-in.h (_bfd_link_section_stabs, _bfd_write_section_stabs)
7740 (_bfd_write_stab_strings): Adjust prototypes.
7741 * libbfd.h: Regenerate.
7742 * libcoff.h: Regenerate.
7743 * bfd-in2.h: Regenerate.
7745 2004-06-27 Mark Kettenis <kettenis@gnu.org>
7747 From Miod Vallat <miod@online.fr>:
7748 * aoutx.h (NAME(aout,machine_type)): Handle bfd_arch_m88k.
7750 2004-06-26 Alexandre Oliva <aoliva@redhat.com>
7752 * elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): Delete.
7753 (struct elf32_mn10300_link_hash_entry): Remove
7754 pcrel_relocs_copied.
7755 (mn10300_elf_check_relocs): Only reserve dynamic relocations for
7756 R_MN10300_32. Don't adjust pcrel_relocs_copied.
7757 (mn10300_elf_final_link_relocate): Fail for direct, pc-relative
7758 and gotoff relocations if the symbol doesn't bind locally. Use
7759 _bfd_elf_symbol_refs_local_p to test. Don't create dynamic
7760 relocation for PCREL32.
7761 (mn10300_elf_relocate_section): Use _bfd_elf_symbol_refs_local_p
7762 to test whether a symbol binds locally.
7763 (elf32_mn10300_link_hash_newfunc): Don't initialize
7764 pcrel_relocs_copied.
7765 (_bfd_mn10300_elf_discard_copies): Delete.
7766 (_bfd_mn10300_elf_size_dynamic_sections): Don't call it.
7768 2004-06-26 Mark Kettenis <kettenis@gnu.org>
7770 * config.bfd: Replace m88k-*-openbsd* with m88*-*-openbsd*.
7772 2004-06-25 Joel Brobecker <brobecker@gnat.com>
7774 * som.c (som_set_reloc_info): Correct small typo.
7776 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7778 * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_GOTOFF.
7779 (m32r_elf_relocate_section): Changed for R_M32R_GOTOFF.
7780 (m32r_elf_gcsweep_hook): Likewise.
7781 (m32r_elf_check_relocs): Likewise.
7782 (m32r_elf_howto_table): Added R_M32R_GOTOFF_HI_ULO,
7783 R_M32R_GOTOFF_HI_SLO and R_M32R_GOTOFF_LO.
7784 * reloc.c: Added BFD_RELOC_M32R_GOTOFF_HI_ULO,
7785 BFD_RELOC_M32R_GOTOFF_HI_SLO and BFD_RELOC_M32R_GOTOFF_LO.
7786 * bfd-in2.h: Regenerated.
7787 * libbfd.h: Regenerated.
7789 2004-06-24 H.J. Lu <hongjiu.lu@intel.com>
7791 * elf64-x86-64.c (elf64_x86_64_check_relocs): Warn overflow
7793 (elf64_x86_64_relocate_section): Issue an error for
7794 R_X86_64_PC8, R_X86_64_PC16 and R_X86_64_PC32 relocations
7795 against global symbols when building shared library.
7797 2004-06-24 Alan Modra <amodra@bigpond.net.au>
7799 * section.c (struct sec): Rename "_cooked_size" to "size".
7800 Rename "_raw_size" to "rawsize".
7801 (STD_SECTION): Adjust comments.
7802 (bfd_set_section_size, bfd_get_section_contents): Use size.
7803 (bfd_malloc_and_get_section): New function.
7804 * bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
7805 * coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
7806 Correctly free reloc and contents memory.
7807 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
7808 and fake CIE now that we can shink section size to zero.
7809 (_bfd_elf_write_section_eh_frame): Likewise..
7810 * elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
7811 * elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
7812 _bfd_stab_section_offset. Use _bfd_elf_section_offset.
7813 * stabs.c (_bfd_stab_section_offset_): Remove unused args and
7814 unneeded indirection.
7815 * elf.c (_bfd_elf_section_offset): .. and update call.
7816 * libbfd-in.h (_bfd_stab_section_offset): Update prototype.
7817 * libbfd.h: Regenerate.
7818 * bfd-in2.h: Regenerate.
7820 Replace occurrences of "_raw_size" and "_cooked_size" in most places
7821 with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
7822 sections. Use "rawsize", if non-zero, for bfd_get_section_contents
7823 calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
7824 Similarly use "rawsize", if non-zero, in reloc functions to validate
7825 reloc addresses. Use new bfd_malloc_and_get_section in most places
7826 where bfd_get_section_contents was called. Expand all occurrences of
7827 bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
7828 grok_prstatus and similar functions to "size".
7829 * aix386-core.c (aix386_core_file_p): ..
7830 * aix5ppc-core.c (xcoff64_core_p): ..
7831 * aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
7832 aout_adobe_set_section_contents): ..
7833 * aout-target.h (callback): ..
7834 * aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
7835 MY_bfd_final_link): ..
7836 * aoutf1.h (sunos4_core_file_p): ..
7837 * aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
7838 adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
7839 final_link, aout_link_input_section): ..
7840 * binary.c (binary_object_p, binary_canonicalize_symtab,
7841 binary_set_section_contents): ..
7842 * bout.c (b_out_callback, b_out_write_object_contents,
7843 b_out_set_section_contents, b_out_bfd_relax_section,
7844 b_out_bfd_get_relocated_section_contents): ..
7845 * cisco-core.c (cisco_core_file_validate): ..
7846 * coff-alpha.c (alpha_ecoff_object_p,
7847 alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
7848 * coff-arm.c (coff_arm_relocate_section,
7849 bfd_arm_allocate_interworking_sections): ..
7850 * coff-h8300.c (h8300_reloc16_extra_cases,
7851 h8300_bfd_link_add_symbols): ..
7852 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
7853 * coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
7854 ppc_bfd_coff_final_link): ..
7855 * coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
7856 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
7857 sh_align_loads, sh_coff_get_relocated_section_contents): ..
7858 * coff64-rs6000.c (xcoff64_write_object_contents,
7859 xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
7860 * coffcode.h (coff_compute_section_file_positions,
7861 coff_write_object_contents): ..
7862 * coffgen.c (make_a_section_from_file, coff_write_symbols,
7863 coff_section_symbol, build_debug_section): ..
7864 * cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
7865 process_embedded_commands, _bfd_coff_link_input_bfd,
7866 _bfd_coff_write_global_sym): ..
7867 * cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
7868 * cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
7869 * dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
7870 * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
7871 _bfd_dwarf2_find_nearest_line): ..
7872 * ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
7873 ecoff_compute_section_file_positions,
7874 _bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
7875 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
7876 _bfd_elf_discard_section_eh_frame_hdr,
7877 _bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
7878 _bfd_elf_write_section_eh_frame,
7879 _bfd_elf_write_section_eh_frame_hdr): ..
7880 * elf-hppa.h (elf_hppa_sort_unwind): ..
7881 * elf-m10200.c (mn10200_elf_relax_section,
7882 mn10200_elf_relax_delete_bytes,
7883 mn10200_elf_get_relocated_section_contents): ..
7884 * elf-m10300.c (_bfd_mn10300_elf_create_got_section,
7885 mn10300_elf_check_relocs, mn10300_elf_relax_section,
7886 mn10300_elf_relax_delete_bytes,
7887 mn10300_elf_get_relocated_section_contents,
7888 _bfd_mn10300_elf_adjust_dynamic_symbol,
7889 _bfd_mn10300_elf_discard_copies,
7890 _bfd_mn10300_elf_size_dynamic_sections,
7891 _bfd_mn10300_elf_finish_dynamic_sections): ..
7892 * elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
7893 _bfd_elf_make_section_from_phdr, elf_fake_sections,
7894 bfd_elf_set_group_contents, map_sections_to_segments,
7895 elf_sort_sections, assign_file_positions_for_segments,
7896 SECTION_SIZE, copy_private_bfd_data,
7897 _bfd_elf_get_dynamic_reloc_upper_bound,
7898 _bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
7899 _bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
7900 elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
7901 elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
7902 _bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
7903 * elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
7904 bfd_elf32_arm_process_before_allocation,
7905 elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
7906 elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
7907 elf32_arm_write_section): ..
7908 * elf32-cris.c (cris_elf_grok_prstatus,
7909 elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
7910 elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
7911 cris_elf_check_relocs, elf_cris_size_dynamic_sections,
7912 elf_cris_discard_excess_dso_dynamics,
7913 elf_cris_discard_excess_program_dynamics): ..
7914 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
7915 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
7916 * elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
7917 _frv_create_got_section, _frvfdpic_assign_plt_entries,
7918 elf32_frvfdpic_size_dynamic_sections,
7919 elf32_frvfdpic_modify_segment_map,
7920 elf32_frvfdpic_finish_dynamic_sections): ..
7921 * elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
7922 elf32_h8_get_relocated_section_contents): ..
7923 * elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
7924 elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
7925 allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
7926 elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
7927 elf32_hppa_finish_dynamic_sections): ..
7928 * elf32-i370.c (i370_elf_adjust_dynamic_symbol,
7929 i370_elf_size_dynamic_sections, i370_elf_check_relocs,
7930 i370_elf_finish_dynamic_sections): ..
7931 * elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
7932 allocate_dynrelocs, elf_i386_size_dynamic_sections,
7933 elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
7934 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
7935 i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
7936 * elf32-ip2k.c (ip2k_is_switch_table_128,
7937 ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
7938 ip2k_relax_switch_table_256, ip2k_elf_relax_section,
7939 adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
7940 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
7941 m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
7942 allocate_dynrelocs, m32r_elf_size_dynamic_sections,
7943 m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
7944 m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
7945 m32r_elf_get_relocated_section_contents): ..
7946 * elf32-m68hc11.c (m68hc11_elf_build_one_stub,
7947 m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
7948 m68hc11_elf_relax_delete_bytes): ..
7949 * elf32-m68hc12.c (m68hc12_elf_build_one_stub,
7950 m68hc12_elf_size_one_stub): ..
7951 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
7952 elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
7953 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
7954 elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
7955 elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
7956 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
7957 elf32_mips_grok_prstatus): ..
7958 * elf32-or32.c (or32_elf_consth_reloc): ..
7959 * elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
7960 elf_create_pointer_linker_section, ppc_elf_create_linker_section,
7961 ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
7962 allocate_dynrelocs, ppc_elf_size_dynamic_sections,
7963 ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
7964 ppc_elf_final_write_processing): ..
7965 * elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
7966 allocate_dynrelocs, elf_s390_size_dynamic_sections,
7967 elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
7968 * elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
7969 sh_elf_relax_delete_bytes, sh_elf_align_loads,
7970 sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
7971 sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
7972 sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
7973 * elf32-sh64-com.c (sh64_address_in_cranges,
7974 sh64_get_contents_type): ..
7975 * elf32-sh64.c (sh64_find_section_for_address,
7976 sh64_elf_final_write_processing): ..
7977 * elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
7978 sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
7979 allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
7980 elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
7981 * elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
7982 * elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
7983 elf_vax_size_dynamic_sections, elf_vax_discard_copies,
7984 elf_vax_instantiate_got_entries, elf_vax_relocate_section,
7985 elf_vax_finish_dynamic_sections): ..
7986 * elf32-xstormy16.c (xstormy16_elf_24_reloc,
7987 xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
7988 xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
7989 xstormy16_elf_finish_dynamic_sections): ..
7990 * elf32-xtensa.c (xtensa_read_table_entries,
7991 elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
7992 elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
7993 bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
7994 elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
7995 elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
7996 get_relocation_opcode, retrieve_contents, find_relaxable_sections,
7997 collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
7998 relax_section, shrink_dynamic_reloc_sections, relax_property_section,
7999 xtensa_callback_required_dependence): ..
8000 * elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
8001 elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
8002 elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
8003 elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
8004 elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
8005 elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
8006 elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
8007 elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
8008 * elf64-hppa.c (allocate_dynrel_entries,
8009 elf64_hppa_size_dynamic_sections,
8010 elf64_hppa_finish_dynamic_sections): ..
8011 * elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
8012 mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
8013 elf64_mips_grok_prstatus): ..
8014 * elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
8015 mmix_elf_relocate_section, mmix_elf_final_link,
8016 mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
8017 mmix_elf_relax_section, mmix_elf_get_section_contents): ..
8018 * elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
8019 ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
8020 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
8021 allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
8022 ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
8023 toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
8024 ppc64_elf_build_stubs, ppc64_elf_relocate_section,
8025 ppc64_elf_finish_dynamic_sections): ..
8026 * elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
8027 allocate_dynrelocs, elf_s390_size_dynamic_sections,
8028 elf_s390_finish_dynamic_sections): ..
8029 * elf64-sh64.c (sh_elf64_get_relocated_section_contents,
8030 sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
8031 sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
8032 sh64_elf64_finish_dynamic_sections): ..
8033 * elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
8034 sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
8035 sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
8036 sparc64_elf_finish_dynamic_symbol,
8037 sparc64_elf_finish_dynamic_sections): ..
8038 * elf64-x86-64.c (elf64_x86_64_grok_prstatus,
8039 elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
8040 elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
8041 elf64_x86_64_finish_dynamic_sections): ..
8042 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
8043 * elfcode.h (elf_slurp_reloc_table): ..
8044 * elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
8045 elf_finalize_dynstr, elf_link_add_object_symbols,
8046 bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
8047 elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
8048 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
8049 elf32_mips_grok_prstatus): ..
8050 * elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
8051 elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
8052 elfNN_ia64_choose_gp, elfNN_ia64_final_link,
8053 elfNN_ia64_finish_dynamic_sections): ..
8054 * elfxx-mips.c (mips_elf_create_procedure_table,
8055 mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
8056 _bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
8057 mips_elf_global_got_index, mips_elf_multi_got,
8058 mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
8059 mips_elf_allocate_dynamic_relocations,
8060 mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
8061 _bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
8062 _bfd_mips_elf_always_size_sections,
8063 _bfd_mips_elf_size_dynamic_sections,
8064 _bfd_mips_elf_finish_dynamic_symbol,
8065 _bfd_mips_elf_finish_dynamic_sections,
8066 _bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
8067 _bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
8068 _bfd_elf_mips_get_relocated_section_contents,
8069 _bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
8070 * hp300hpux.c (callback): ..
8071 * hppabsd-core.c (make_bfd_asection): ..
8072 * hpux-core.c (make_bfd_asection): ..
8073 * i386linux.c (linux_link_create_dynamic_sections,
8074 bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
8075 * i386msdos.c (msdos_write_object_contents): ..
8076 * i386os9k.c (os9k_callback, os9k_write_object_contents,
8077 os9k_set_section_contents): ..
8078 * ieee.c (parse_expression, ieee_slurp_external_symbols,
8079 ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
8080 ieee_write_section_part, do_with_relocs, do_as_repeat,
8081 do_without_relocs, ieee_write_debug_part, init_for_output,
8082 ieee_set_section_contents): ..
8083 * ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
8084 * irix-core.c (do_sections, make_bfd_asection): ..
8085 * libaout.h (aout_section_merge_with_text_p): ..
8086 * libbfd.c (_bfd_generic_get_section_contents,
8087 _bfd_generic_get_section_contents_in_window): ..
8088 * linker.c (default_indirect_link_order): ..
8089 * lynx-core.c (make_bfd_asection): ..
8090 * m68klinux.c (linux_link_create_dynamic_sections,
8091 bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
8092 * mach-o.c (bfd_mach_o_make_bfd_section,
8093 bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
8094 bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
8095 bfd_mach_o_scan_read_segment): ..
8096 * merge.c (_bfd_add_merge_section, record_section, merge_strings,
8097 _bfd_merge_sections): ..
8098 * mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
8099 mmo_map_set_sizes, mmo_canonicalize_symtab,
8100 mmo_internal_write_section, mmo_write_object_contents): ..
8101 * netbsd-core.c (netbsd_core_file_p): ..
8102 * nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
8103 nlm_alpha_set_public_section): ..
8104 * nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
8105 * nlm32-sparc.c (nlm_sparc_write_import): ..
8106 * nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
8107 nlm_compute_section_file_positions): ..
8108 * oasys.c (oasys_object_p, oasys_slurp_section_data,
8109 oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
8110 * opncls.c (get_debug_link_info): ..
8111 * osf-core.c (make_bfd_asection): ..
8112 * pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
8113 adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
8114 final_link, aout_link_input_section): ..
8115 * peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
8116 pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
8117 * pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
8118 bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
8119 * ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
8120 * ptrace-core.c (ptrace_unix_core_file_p): ..
8121 * reloc.c (bfd_perform_relocation, bfd_install_relocation,
8122 _bfd_final_link_relocate, bfd_generic_relax_section,
8123 bfd_generic_get_relocated_section_contents): ..
8124 * reloc16.c (bfd_coff_reloc16_relax_section,
8125 bfd_coff_reloc16_get_relocated_section_c): ..
8126 * riscix.c (riscix_some_aout_object_p): ..
8127 * rs6000-core.c (read_hdr, make_bfd_asection): ..
8128 * sco5-core.c (make_bfd_asection): ..
8129 * simple.c (bfd_simple_get_relocated_section_contents): ..
8130 * som.c (som_object_setup, setup_sections, som_prep_headers,
8131 som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
8132 som_set_reloc_info, som_get_section_contents,
8133 som_bfd_link_split_section): ..
8134 * sparclinux.c (linux_link_create_dynamic_sections,
8135 bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
8136 * srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
8137 * stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
8138 _bfd_write_stab_strings, _bfd_stab_section_offset): ..
8139 * sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
8140 bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
8141 sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
8142 sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
8143 sunos_finish_dynamic_link): ..
8144 * syms.c (_bfd_stab_section_find_nearest_line): ..
8145 * tekhex.c (first_phase, tekhex_set_section_contents,
8146 tekhex_write_object_contents): ..
8147 * trad-core.c (trad_unix_core_file_p): ..
8148 * versados.c (process_esd, process_otr, process_otr): ..
8149 * vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
8150 * vms-misc.c (add_new_contents): ..
8151 * vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
8152 * vms.c (vms_set_section_contents): ..
8153 * xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
8154 xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
8155 _bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
8156 * xsym.c (bfd_sym_scan): .. See above.
8158 2004-06-21 H.J. Lu <hongjiu.lu@intel.com>
8160 * elfxx-ia64.c (elfNN_ia64_relax_section): Add addend when
8161 calling _bfd_merged_section_offset only for section symbols.
8163 2004-06-22 Alan Modra <amodra@bigpond.net.au>
8165 * elf32-ppc.c (ppc_elf_relax_section): Implement reference code
8166 for handling SEC_MERGE symbols in relax_section.
8168 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
8170 2003-05-15 Richard Sandiford <rsandifo@redhat.com>
8171 * cpu-h8300.c (compatible): Allow h8300s and h8300sx code to be
8172 linked together. Mark the result as h8300sx code.
8174 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
8176 * elf-bfd.h (struct elf_backend_data): Added
8177 elf_backend_omit_section_dynsym.
8178 (_bfd_elf_link_omit_section_dynsym): Declare.
8179 * elf32-frv.c (_frvfdpic_link_omit_section_dynsym): New.
8180 (elf_backend_omit_section_dynsym): Use it for frvfdpic.
8181 * elflink.c (_bfd_elf_link_omit_section_dynsym): Split out of...
8182 (_bfd_elf_link_renumber_dynsyms): ... this function.
8183 * elfxx-target.h (elf_backend_omit_section_dynsym): Default to
8184 _bfd_elf_link_omit_section_dynsym).
8185 (elfNN_bed): Added elf_backend_omit_section_dynsym.
8187 2004-06-21 Nick Clifton <nickc@redhat.com>
8189 * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED
8192 2004-06-17 Jerome Guitton <guitton@gnat.com>
8194 * bfd-in.h (bfd_cache_close_all): New function declaration.
8195 * bfd-in2.h: Regenerate.
8196 * cache.c (bfd_cache_close_all): New function definition.
8198 2004-06-16 Mark Kettenis <kettenis@gnu.org>
8200 * configure.in: Don't set COREFILE to trad-core.lo for FreeBSD
8202 * configure: Regenerate.
8204 2004-06-16 Daniel Jacobowitz <dan@debian.org>
8206 * elf32-ppc.c (ppc_elf_create_linker_section): Create symbols in
8207 the pre-existing section.
8209 2004-06-15 Alan Modra <amodra@bigpond.net.au>
8211 * section.c (struct sec): Remove usused flags. Reorganize a little.
8212 (bfd_get_section_size_before_reloc): Delete.
8213 (bfd_get_section_size_after_reloc): Delete.
8214 (STD_SECTION): Update.
8215 (bfd_get_section_size_now): Delete.
8216 (bfd_set_section_contents): Don't referece reloc_done.
8217 (bfd_get_section_contents): Remove reloc_done comment.
8218 * bout.c (b_out_bfd_get_relocated_section_contents): Don't set
8220 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise.
8221 * ecoff.c (bfd_debug_section): Update initializer.
8222 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Ditto.
8223 * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
8224 * bfd-in.h (bfd_section_size): Expand.
8225 (bfd_get_section_size): New macro.
8226 * bfd-in2.h: Regenerate.
8227 * coff64-rs6000.c (xcoff64_write_object_contents): Replace
8228 bfd_get_section_size_before_reloc with bfd_get_section_size.
8229 * coffcode.h (coff_write_object_contents): Likewise.
8230 * coffgen.c (build_debug_section): Likewise.
8231 * dwarf1.c (parse_line_table): Likewise.
8232 (_bfd_dwarf1_find_nearest_line): Likewise.
8233 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
8234 * i386msdos.c (msdos_write_object_contents): Likewise.
8235 * pdp11.c (squirt_out_relocs): Likewise.
8236 * elf32-sh64.c (sh64_find_section_for_address): Remove comment.
8237 * elf64-mmix.c (mmix_elf_final_link): Update comment.
8239 2004-06-14 Chris Demetriou <cgd@broadcom.com>
8241 * elf32-mips.c (elf_mips_gnu_pcrel32): Add (undoing 2004-04-24
8242 removal) with updated comment.
8243 (bfd_elf32_bfd_reloc_type_lookup): Add back case for
8245 (mips_elf32_rtype_to_howto): Add back case for R_MIPS_PC32.
8246 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
8248 2004-06-12 Alan Modra <amodra@bigpond.net.au>
8250 * elf64-x86-64.c (elf64_x86_64_relocate_section): Ignore reloc
8251 overflow on branches to undefweaks.
8253 2004-06-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8255 * coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly
8256 as ecoff_section_data() does not return a valid lvalue.
8258 2004-06-09 Alexandre Oliva <aoliva@redhat.com>
8260 * elflink.c (elf_sort_symbol): Compare section id, not pointers.
8261 (elf_link_add_object_symbols): Likewise.
8263 * elf-m10300.c (_bfd_mn10300_elf_reloc_type_class): New.
8264 (elf_backend_reloc_type_class): New.
8266 2004-06-08 Mark Kettenis <kettenis@gnu.org>
8268 * configure.in (hppa*-*-netbsd*, hppa*-*-openbsd): Set COREFILE to
8270 * configure: Regenerate.
8272 2004-06-07 Daniel Jacobowitz <dan@debian.org>
8274 From: Albert Chin-A-Young <china@thewrittenword.com>
8275 * bfd/elf-bfd.h (struct eh_cie_fde): Convert unsigned char bitfields
8278 2004-05-29 H.J. Lu <hongjiu.lu@intel.com>
8280 * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last
8283 2004-05-28 DJ Delorie <dj@redhat.com>
8285 * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend
8286 for linking, but otherwise adjust reloc for merged sections.
8288 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
8290 * elfxx-ia64.c (elfNN_ia64_relax_section): Properly call
8291 _bfd_merged_section_offset for local symbols.
8293 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
8295 * Makefile.am: Regenerate dependencies.
8296 * Makefile.in: Regenerate.
8297 * archures.c: Add bfd_mach_sh3_nommu .
8298 * bfd-in2.h: Regenerate.
8299 * cpu-sh.c: Add sh3-nommu architecture.
8300 (bfd_to_arch_table): Create new table.
8301 (sh_get_arch_from_bfd_mach): Create new function.
8302 (sh_get_arch_up_from_bfd_mach): Create new function.
8303 (sh_merge_bfd_arch): Create new function.
8304 * elf32-sh.c (sh_ef_bfd_table): Add table.
8305 (sh_elf_check_relocs): Replace switch statement with
8306 use of sh_ef_bfd_table .
8307 (sh_elf_get_flags_from_mach): Add new function.
8308 (sh_find_elf_flags): Likewise.
8309 (sh_elf_copy_private_data): Replace most of non-elf contents
8310 with a call to sh_merge_bfd_arch() .
8312 2004-05-27 Michael Chastain <mec.gnu@mindspring.com>
8314 * Makefile.am (bfdver.h): Use explicit filename, not $< .
8315 * Makefile.in: Regenerate.
8317 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
8319 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Avoid
8320 custom calling conventions for dynamic symbols.
8321 (mn10300_elf_relax_section): Avoid relaxing a function as a local
8322 symbol if it's an alias to a global one.
8324 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
8326 * elf.c (_bfd_elf_make_section_from_shdr): Undo the last
8329 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
8331 * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
8334 2004-05-26 Alan Modra <amodra@bigpond.net.au>
8336 * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
8337 for SHT_GROUP sections.
8339 2004-05-25 Alan Modra <amodra@bigpond.net.au>
8341 * elflink.c (elf_link_add_object_symbols): Don't set up merge
8343 * elf.c (_bfd_elf_merge_sections): .. Do it here instead.
8344 * merge.c: Formatting. Remove unnecessary casts. Expand
8345 bfd_get_section_alignment macro.
8346 (struct sec_merge_sec_info): Rename "first" to "first_str". Update
8347 use throughout file.
8348 (_bfd_add_merge_section): Rename from _bfd_merge_section. Update
8349 comment. Abort on dynamic or non-SEC_MERGE input. Don't test
8350 section name to determine sinfo group, instead test output section
8352 (_bfd_merge_sections): Add struct bfd_link_info param. Call
8353 _bfd_strip_section_from_output rather than just twiddling flags.
8354 * libbfd-in.h (_bfd_add_merge_section): Rename, update comment.
8355 (_bfd_merge_sections): Update prototype.
8356 * libbfd.h: Regenerate.
8358 2004-05-24 Mark Kettenis <kettenis@gnu.org>
8360 * netbsd-core.c: Correctly indent section that sets architecture
8363 From Miod Vallat <miod@online.fr>:
8364 * m88kopenbsd.c: New file.
8365 * targets.c (m88k_openbsd_vec): New.
8366 * config.bfd: Add m88k-*-openbsd*.
8367 * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo.
8368 (m88kopenbsd_vec): New.
8369 * configure: Regenerate.
8370 * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo.
8371 (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c.
8373 * Makefile.in: Regenerate.
8374 * po/SRC-POTFILES.in: Regenerate.
8376 2004-05-24 Nick Clifton <nickc@redhat.com>
8378 * hash.c: Remove bogus node "Changing the default Hash Table Size"
8379 introduced by hash table size patch.
8381 2004-05-22 Ben Elliston <bje@au.ibm.com>
8383 * configure.in (is_release): Remove.
8384 (bfd_version_date, bfd_version, bfd_version_string): Likewise.
8385 (AC_OUTPUT): Don't output bfdver.h from version.h.
8386 * configure: Regenerate.
8387 * Makefile.am (RELEASE): New variable.
8388 (bfdver.h): New target.
8389 * Makefile.in: Regenerate.
8390 * doc/Makefile.in: Likewise.
8392 2004-05-22 Ben Elliston <bje@au.ibm.com>
8394 * Makefile.am (config.status): Don't depend on version.h.
8395 * Makefile.in: Regenerate.
8397 2004-05-22 Alan Modra <amodra@bigpond.net.au>
8399 * merge.c (_bfd_merged_section_offset): Remove "addend" param.
8400 * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype.
8401 * libbfd.h: Regenerate.
8402 * elf.c (_bfd_elf_rela_local_sym): Adjust call.
8403 (_bfd_elf_rel_local_sym): Likewise.
8404 * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise.
8405 (elf_link_input_bfd): Likewise.
8406 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
8407 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
8408 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
8409 (elfNN_ia64_relocate_section): Likewise.
8411 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
8413 * hash.c (bfd_default_hash_table_size): New variable.
8414 (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE.
8415 (bfd_hash_set_default_size): New function. Set the default size
8416 to a selected prime number close to the argument. Document new
8418 * bfd-in.h: Add prototype for bfd_hash_set_default_size.
8419 * bfd-in2.h: Regenerate.
8420 * Makefile.am (hash.lo): Add dependency upon libiberty.h.
8421 * Makefile.in: Regenerate.
8423 2004-05-21 Mark Kettenis <kettenis@gnu.org>
8425 * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
8426 * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
8427 arm, m68k, m88k and hppa core files.
8429 2004-05-21 Nick Clifton <nickc@redhat.com>
8431 * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
8432 (bfd_bwrite): Likewise.
8433 (bfd_tell): Likewise.
8434 (bfd_flush): Likewise.
8435 (bfd_stat): Likewise.
8436 (bfd_seek): Likewise.
8437 (bfd_get_mtime): Likewise.
8438 (bfd_get_size): Likewise.
8440 2004-05-19 Ben Elliston <bje@au.ibm.com>
8442 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
8444 2004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
8446 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
8447 (bfd_generic_openr_next_archived_file): Likewise.
8449 2004-05-17 Bob Wilson <bob.wilson@acm.org>
8451 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
8452 section names by inserting a new substring after .gnu.linkonce, except
8453 for .gnu.linkonce.t.* where the "t." is replaced.
8455 2004-05-17 Adam Nemet <anemet@lnxw.com>
8457 * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
8458 (m68-*-lynxos* case): Likewise.
8459 (powerpc-*-lyxnos* case): New case.
8460 (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
8462 2004-05-17 David Heine <dlheine@tensilica.com>
8464 * aout-target.h (MY_bfd_copy_private_header_data): Define.
8465 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
8466 * bfd.c (bfd_copy_private_header_data): Define.
8467 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
8469 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
8470 * coffcode.h (coff_bfd_copy_private_header_data): Define.
8471 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
8472 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
8473 segments by calling copy_private_bfd_data.
8474 (_bfd_elf_copy_private_header_data): Define.
8475 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
8476 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
8477 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
8478 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
8479 * mmo.c (mmo_bfd_copy_private_header_data): Define.
8480 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
8481 * som.c (som_bfd_copy_private_header_data): Define.
8482 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
8483 * vms.c (vms_bfd_copy_private_header_data): Define.
8484 * bfd-in2.h: Regenerate.
8485 * libbfd.h: Regenerate.
8487 2004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
8489 * elfxx-mips.c (MINUS_TWO): Define.
8490 (mips_elf_higher, mips_elf_highest,
8491 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
8492 some bfd_vma values.
8493 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
8495 2004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8497 * som.c (log2): Rename to exact_log2. Adjust all callers.
8499 2004-05-13 Paul Brook <paul@codesourcery.com>
8501 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
8502 dwarf3 format CIE entries. Remove comment about the size of the
8503 ra_column field. It is now correctly deduced.
8505 2004-05-13 Joel Sherrill <joel@oarcorp.com>
8507 * config.bfd (or32-*-rtems*): Switch to elf.
8509 2004-05-13 Nick Clifton <nickc@redhat.com>
8511 * po/fr.po: Updated French translation.
8513 2004-05-11 Jakub Jelinek <jakub@redhat.com>
8515 * elflink.c (bfd_elf_final_link): Don't output STT_SECTION symbol
8516 into .dynsym if elf_section_data (sec)->dynindx <= 0.
8517 Adjust counting of last_local.
8518 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
8519 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
8520 created by the linker nor !SHF_ALLOC.
8522 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
8523 DT_PLTGOT to the start of the .got.plt section instead of the
8524 .got output section. Set sh_entsize for .got section in addition
8526 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
8527 is at sgot->output_section->vma.
8528 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
8529 DT_PLTGOT to the start of the .got.plt section instead of the
8530 .got output section.
8531 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
8532 is at sgot->output_section->vma. Set sh_entsize for .got section
8533 in addition to .got.plt.
8534 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
8535 (bfd_section_from_phdr): Likewise.
8536 (map_sections_to_segments): Likewise.
8537 (assign_file_positions_for_segments): Likewise.
8538 (get_program_header_size): Likewise.
8539 * elflink.c (bfd_elf_size_dynamic_sections): Set
8540 elf_tdata (output_bfd)->relro from info->relro.
8541 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
8543 2004-05-08 Alexandre Oliva <aoliva@redhat.com>
8545 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
8546 a zero symndx for which we hadn't accounted a dynamic relocation.
8547 (_frvfdpic_add_rofixup): Likewise.
8549 2004-05-07 Brian Ford <ford@vss.fsi.com>
8550 DJ Delorie <dj@redhat.com>
8552 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
8553 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
8554 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
8555 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
8557 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
8559 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
8560 immediately if there's no link info.
8561 (elf32_frvfdpic_copy_private_bfd_data): New.
8562 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
8564 2004-05-06 Zack Weinberg <zack@codesourcery.com>
8566 * dwarf2.c (add_line_info): Also set info->filename to NULL if
8567 filename argument is null; do not call strlen on a null pointer.
8569 2004-05-06 Daniel Jacobowitz <drow@mvista.com>
8571 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
8574 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
8576 * configure.in (bfd_elf32_frvfdpic_vec): New.
8577 * configure: Rebuilt.
8578 * targets.c (bfd_elf32_frvfdpic_vec): New.
8579 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
8581 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
8582 frvfdpic instead of frv. Rearrange elf-target macros such that
8583 the FDPIC-specific ones are only defined for this new target
8585 (bfd_elf32_frvfdpic_vec): Declare.
8587 (elf32_frv_relocate_section): Use it to enable segment checking
8588 and to control rofixup emission. Add output section vma to
8589 applied relocation in non-LOAD non-ALLOC sections. Use
8590 _bfd_error_handler for errors.
8591 (_frv_create_got_section): Create .rel.got and .rofixup only in
8592 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
8594 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
8595 (elf32_frvfdpic_modify_segment_map): Likewise.
8596 (elf32_frv_finish_dynamic_sections): New, do-nothing.
8597 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
8598 error message if we miscompute the rofixup size.
8599 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
8600 (frvfdpic_elf_encode_eh_address): Likewise.
8601 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
8602 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
8603 relocs. Reject unknown relocation types.
8604 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
8605 (frv_elf_merge_private_bfd_data): Likewise.
8606 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
8607 0x4000 for newly-added elf32-frvfdpic.
8609 2004-05-05 Nick Clifton <nickc@redhat.com>
8612 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
8613 returning NULL as most users of this function do not check its
8615 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
8616 of bfd_cache_lookup().
8617 * sco5-core.c (sco5_core_file_p): Likewise.
8618 * trad-core.c (trad_unix_core_file_p): Likewise.
8620 2004-05-05 Nick Clifton <nickc@redhat.com>
8622 * cache.c (bfd_cache_lookup): Improve formatting.
8623 * archive.c: Fix formatting.
8625 2004-05-05 Peter Barada <peter@the-baradas.com>
8627 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
8628 * cpu-m68k.c(bfd_m68k_arch): Likewise.
8629 * bfd-in2.h(bfd_architecture): Regenerate.
8631 2004-05-03 Alan Modra <amodra@bigpond.net.au>
8633 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
8635 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
8636 those against discarded link-once and SEC_MERGE section symbols.
8638 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
8640 * section.c (bfd_get_section_by_name_if): New.
8641 * bfd-in2.h: Regenerated.
8643 2004-05-02 Alan Modra <amodra@bigpond.net.au>
8645 * som.c (som_bfd_is_group_section): Define.
8647 2004-05-01 Alan Modra <amodra@bigpond.net.au>
8649 * section.c (bfd_make_section_anyway): Copy the whole
8650 bfd_hash_entry, not just "next" from existing entry.
8652 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
8654 * elf.c (bfd_section_from_shdr): Maintain the section order in
8656 (special_sections): Add ".note.GNU-stack".
8657 (elf_fake_sections): Handle section group for relocatable
8660 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
8662 * section.c (bfd_sections_find_if): New.
8663 * bfd-in2.h: Regenerated.
8665 2004-04-30 Alan Modra <amodra@bigpond.net.au>
8667 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
8669 * elf-bfd.h (bfd_elf_is_group_section): Declare.
8670 * elf.c (bfd_elf_is_group_section): New function.
8671 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
8672 * section.c (bfd_generic_is_group_section): New function.
8673 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
8674 (BFD_JUMP_TABLE_LINK): Adjust.
8675 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
8676 * aout-target.h (MY_bfd_is_group_section): Define.
8677 * aout-tic30.c (MY_bfd_is_group_section): Define.
8678 * bfd.c (bfd_is_group_section): Define.
8679 * binary.c (binary_bfd_is_group_section): Define.
8680 * bout.c (b_out_bfd_is_group_section): Define.
8681 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
8682 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
8683 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
8684 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
8685 * coffcode.h (coff_bfd_is_group_section): Define.
8686 * i386msdos.c (msdos_bfd_is_group_section): Define.
8687 * i386os9k.c (os9k_bfd_is_group_section): Define.
8688 * ieee.c (ieee_bfd_is_group_section): Define.
8689 * ihex.c (ihex_bfd_is_group_section): Define.
8690 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
8691 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
8692 * mmo.c (mmo_bfd_is_group_section): Define.
8693 * nlm-target.h (nlm_bfd_is_group_section): Define.
8694 * oasys.c (oasys_bfd_is_group_section): Define.
8695 * pef.c (bfd_pef_bfd_is_group_section): Define.
8696 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
8697 * srec.c (srec_bfd_is_group_section): Define.
8698 * tekhex.c (tekhex_bfd_is_group_section): Define.
8699 * versados.c (versados_bfd_is_group_section): Define.
8700 * vms.c (vms_bfd_is_group_section): Define.
8701 * xsym.c (bfd_sym_bfd_is_group_section): Define.
8702 * bfd-in2.h: Regenerate.
8703 * libbfd.h: Regenerate.
8705 2004-04-30 Alan Modra <amodra@bigpond.net.au>
8707 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
8709 2004-04-30 Hans-Peter Nilsson <hp@axis.com>
8711 * configure.in: Update version to 2.15.91.
8712 * configure: Regenerate.
8714 2004-04-29 Brian Ford <ford@vss.fsi.com>
8716 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
8717 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
8718 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
8719 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
8720 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
8721 .gnu.linkonce.wi. sections.
8722 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
8723 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
8725 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
8726 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
8728 2004-04-28 Chris Demetriou <cgd@broadcom.com>
8730 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
8731 * bfd-in2.h: Regenerate.
8732 * libbfd.h: Likewise.
8734 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8736 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
8738 (setup_sections): Use som_subspace_dictionary_record struct instead
8739 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
8740 is_comdat, is_common or dup_common.
8741 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
8742 is_comdat, is_common and dup_common in section subspace_dict from
8744 (som_begin_writing): Use som_subspace_dictionary_record struct.
8745 (som_finish_writing): Likewise.
8746 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
8747 is_common and dup_common flags in info for symbol. Add comment
8748 regarding linker support for these fields. Slightly reorganize
8750 (som_build_and_write_symbol_table): Set is_comdat, is_common and
8751 dup_common fields in symbol table from symbol info.
8752 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
8753 arguments. Set corresponding fields in copy_data. Change all callers.
8754 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
8756 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
8757 * som.h (som_subspace_dictionary_record): Define.
8758 (som_copyable_section_data_struct): Add is_comdat, is_common and
8760 (som_section_data_struct): Use som_subspace_dictionary_record struct
8761 instead of subspace_dictionary_record.
8762 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
8764 2004-04-27 Bob Wilson <bob.wilson@acm.org>
8766 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
8767 if set. Check reloc_done flag before applying relocations. Use
8768 output addresses, both when applying relocations and when comparing
8769 against the specified section.
8770 (elf_xtensa_relocate_section): Use output address to check if dynamic
8771 reloc is in a literal pool. Set section's reloc_done flag.
8773 2004-04-27 H.J. Lu <hongjiu.lu@intel.com>
8775 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
8776 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
8778 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
8781 2004-04-27 Alan Modra <amodra@bigpond.net.au>
8783 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
8784 structure field removed in 2004-04-24 patch.
8785 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
8787 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
8789 * elf32-arm.h (elf32_arm_section_flags): Likewise.
8790 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
8791 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
8792 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
8793 field before calling elf_backend_section_flags.
8795 2004-04-24 Chris Demetriou <cgd@broadcom.com>
8797 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
8798 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
8799 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
8800 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
8801 and BFD_RELOC_32_PCREL.
8802 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
8803 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
8804 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
8805 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
8806 (mips_elf_next_relocation): Move comment about matching HI/LO
8808 (_bfd_mips_elf_relocate_section): Here. Remove handling for
8809 R_MIPS_GNU_REL_HI16.
8811 2004-04-23 Chris Demetriou <cgd@broadcom.com>
8813 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
8814 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
8815 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
8816 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
8817 and update comments to reflect current usage.
8818 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
8819 and MIPS_R_SWITCH, as well as several empty entries. Update comment
8821 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
8822 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
8823 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
8824 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
8825 type number to be MIPS_R_PCREL16.
8826 (mips_relocate_section): Remove support for link-time relaxation
8827 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
8828 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
8829 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
8830 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
8831 relaxation of branches used by embedded-PIC.
8832 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
8833 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
8834 related members, update comment.
8835 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
8836 code related to embedded-PIC.
8837 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
8838 initialization of now-removed 'adjust' member of
8839 'struct ecoff_debug_info'.
8841 2004-04-23 Chris Demetriou <cgd@broadcom.com>
8843 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
8845 2004-04-21 Philip Blundell <pb@nexus.co.uk>
8847 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
8848 relocs for locally defined symbols during -shared final link.
8849 (elf32_arm_final_link_relocate): Likewise.
8851 2004-04-22 Jakub Jelinek <jakub@redhat.com>
8853 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
8854 ELF_LINK_POINTER_EQUALITY_NEEDED.
8855 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
8856 if r_type is not R_X86_64_PC32.
8857 (elf64_x86_64_finish_dynamic_symbol): If
8858 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
8861 2004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8863 * elf32-sh.c (sh_elf_plt_sym_val): New function.
8864 (elf_backend_plt_sym_val): Define.
8866 2004-04-22 Andrew Cagney <cagney@redhat.com>
8868 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
8870 2004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8872 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
8874 * som.c (som_set_section_contents): Constantify second argument.
8875 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
8876 (som_object_setup): Rework to avoid warning.
8877 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
8880 2004-04-22 Andrew Cagney <cagney@redhat.com>
8882 * cache.c (bfd_cache_close): Check for a previously closed file.
8884 2004-04-22 Jakub Jelinek <jakub@redhat.com>
8886 * bfd.c (bfd_get_synthetic_symtab): Define.
8887 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
8888 NAME##_get_synthetic_symtab.
8889 (struct bfd_target): Add _bfd_get_synthetic_symtab.
8890 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
8891 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
8893 (_bfd_elf_get_synthetic_symtab): New prototype.
8894 * elfcode.h (elf_get_synthetic_symtab): Define.
8895 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
8896 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
8897 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
8898 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
8899 * bfd-in2.h: Rebuilt.
8900 * libbfd.h: Rebuilt.
8901 * elf32-i386.c (elf_i386_plt_sym_val): New function.
8902 (elf_backend_plt_sym_val): Define.
8903 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
8904 (elf_backend_plt_sym_val): Define.
8905 * elf32-s390.c (elf_s390_plt_sym_val): New function.
8906 (elf_backend_plt_sym_val): Define.
8907 * elf64-s390.c (elf_s390_plt_sym_val): New function.
8908 (elf_backend_plt_sym_val): Define.
8909 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
8910 (elf_backend_plt_sym_val): Define.
8911 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
8912 (elf_backend_plt_sym_val): Define.
8913 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
8914 (elf_backend_plt_sym_val): Define.
8915 * aout-target.h (MY_get_synthetic_symtab): Define.
8916 * aout-tic30.c (MY_get_synthetic_symtab): Define.
8917 * coff-rs6000.c (rs6000coff_vec): Add
8918 _bfd_nodynamic_get_synthetic_symtab.
8919 (pmac_xcoff_vec): Likewise.
8920 * coff64-rs6000.c (rs6000coff64_vec): Add
8921 _bfd_nodynamic_get_synthetic_symtab.
8922 (aix5coff64_vec): Likewise.
8923 * sunos.c (MY_get_synthetic_symtab): Define.
8924 * vms.c (vms_get_synthetic_symtab): Define.
8926 2004-04-22 Nick Clifton <nickc@redhat.com>
8928 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
8930 2004-04-22 Peter Barada <peter@the-baradas.com>
8932 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
8933 * bfd2-in.h: Regenerate.
8934 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
8936 2004-04-21 Chris Demetriou <cgd@broadcom.com>
8938 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
8939 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
8940 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
8941 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
8942 * bfd-in2.h: Regenerate.
8944 2004-04-21 Bob Wilson <bob.wilson@acm.org>
8946 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
8947 require relocations against a weak symbol to reference the same
8948 symbol hash entry if not a final, static link.
8949 (get_cached_value, add_value_map): Add final_static_link argument.
8950 (remove_literals): Pass final_static_link argument as needed.
8952 2004-04-21 Andrew Cagney <cagney@redhat.com>
8954 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
8955 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
8956 (opncls_bwrite, opncls_bclose, opncls_bflush)
8957 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
8958 bfd iovec that uses function callbacks.
8959 (bfd_close): Use the iovec's bclose.
8960 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
8961 (cache_bclose, cache_bflush, cache_bstat)
8962 (cache_iovec): New functions and global variable, implement a
8963 cache "iovec", where applicable set bfd_error.
8964 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
8965 * bfdio.c (struct bfd_iovec): Define.
8966 (real_read): Delete function.
8967 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
8968 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
8969 assume that bread and bwrite set bfd_error.
8970 * bfd.c (struct bfd): Add "iovec", update comments.
8971 * bfd-in2.h, libbfd.h: Re-generate.
8973 2004-04-21 Andrew Cagney <cagney@redhat.com>
8975 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
8977 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
8979 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
8980 (bfd_elf_gc_sections): Fail if a shared object is being created.
8981 Do not fail if dynamic sections have been created. Instead call
8982 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
8983 dynamically referenced symbols. Do not mark the whole graph
8984 rooted at .eh_frame, only the section proper.
8986 2004-04-20 DJ Delorie <dj@redhat.com>
8988 * reloc.c: Add BFD_RELOC_32_SECREL.
8989 * bfd-in2.h: Regenerate.
8990 * libbfd.h: Likewise.
8991 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
8992 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
8993 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
8995 2004-04-19 Jakub Jelinek <jakub@redhat.com>
8997 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
8998 relocs against hidden/protected undefweak symbols properly.
8999 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
9001 2004-04-18 Mark Kettenis <kettenis@gnu.org>
9003 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
9004 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
9007 2004-04-17 Brian Ford <ford@vss.fsi.com>
9009 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
9010 filepos for the SizeOfHeaders field.
9011 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
9013 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
9015 2004-04-16 Alan Modra <amodra@bigpond.net.au>
9017 * simple.c (bfd_simple_get_relocated_section_contents): Don't
9018 change reloc_done. Set and restore _cooked_size.
9021 2004-04-15 Mark Kettenis <kettenis@gnu.org>
9023 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
9026 2004-04-15 Nick Clifton <nickc@redhat.com>
9028 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
9030 2004-04-15 Alan Modra <amodra@bigpond.net.au>
9032 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
9034 2004-04-15 H.J. Lu <hongjiu.lu@intel.com>
9036 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
9037 when it is a definition.
9039 2004-04-14 Alan Modra <amodra@bigpond.net.au>
9041 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
9042 when statically linking PIC code.
9043 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
9045 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
9047 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
9048 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
9049 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
9050 * configure: Regenerate.
9052 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
9054 * elflink.c: Include libiberty.h.
9055 * Makefile.am (elflink.lo): Depend on libiberty.h.
9056 * Makefile.in: Regenerate.
9058 2004-04-06 Daniel Jacobowitz <drow@mvista.com>
9060 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
9063 2004-04-05 H.J. Lu <hongjiu.lu@intel.com>
9065 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
9066 reserve the memory for dynamic linker
9068 2004-04-05 Mark Kettenis <kettenis@gnu.org>
9070 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
9071 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
9073 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
9075 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
9076 RELOC_FOR_GLOBAL_SYMBOL.
9077 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
9079 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
9081 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
9082 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
9084 2004-04-01 Paul Brook <paul@codesourcery.com>
9086 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
9087 * elf32-arm.h (struct elf32_elf_section_map): New.
9088 (struct _arm_elf_section_data): New.
9089 (elf32_arm_section_data): Define.
9090 (struct elf32_arm_link_hash_table): Add byteswap_code.
9091 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
9092 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
9093 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
9094 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
9095 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
9096 (bfd_elf32_new_section_hook, elf_backend_write_section,
9097 elf_backend_link_output_symbol_hook): Define.
9099 2004-04-01 Andy Chittenden <achittenden@bluearc.com>
9101 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
9102 that keeps the characters in a B_INCL..B_EINCL range.
9103 (_bfd_link_section_stabs): When computing the sum of the
9104 characters in a B_INCL..B_EINCL range also keep a copy of those
9105 characters. Use this information to distinguish between
9106 include sections that have the same sum and the same length
9107 but which are nevertheless unique.
9109 2004-03-31 Paul Brook <paul@codesourcery.com>
9111 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
9112 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
9114 2004-03-31 Andy Chittenden <achittenden@bluearc.com>
9116 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
9117 to 'sum_chars' and add field 'num_chars'.
9118 (_bfd_link_section_stabs): When computing the sum of the
9119 characters in a B_INCL..B_EINCL range also keep a count of the
9120 number of characters. Use this information to help distinguish
9121 between include sections when have the same sum but which
9122 nevertheless are still unique.
9124 2004-03-31 Mattias Engdegård <mattias@virtutech.se>
9126 * stabs.c (_bfd_link_section_stabs): Do not skip N_EXCL stabs.
9128 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
9129 Tomer Levi <Tomer.Levi@nsc.com>
9131 * Makefile.am (ALL_MACHINES): Add cpu-cr16c.lo.
9132 (ALL_MACHINES_CFILES): Add cpu-cr16c.c.
9133 (BFD32_BACKENDS): Add elf32-cr16c.lo.
9134 (BFD32_BACKENDS_CFILES): Add elf32-cr16c.c.
9135 (cpu-cr16c.lo): New target.
9136 (elf32-cr16c.lo): Likewise.
9137 * Makefile.in: Regenerate.
9138 * archures.c (bfd_architecture): Add bfd_{arch,mach}_cr16c.
9139 (bfd_archures_list): Add bfd_cr16c_arch.
9140 * config.bfd: Handle cr16c-*-elf*.
9141 * configure.in: Handle bfd_elf32_cr16c_vec.
9142 * configure: Regenerate.
9143 * reloc.c: Add BFD_RELOC_16C_NUM08, BFD_RELOC_16C_NUM08_C,
9144 BFD_RELOC_16C_NUM16, BFD_RELOC_16C_NUM16_C,
9145 BFD_RELOC_16C_NUM32, BFD_RELOC_16C_NUM32_C,
9146 BFD_RELOC_16C_DISP04, BFD_RELOC_16C_DISP04_C,
9147 BFD_RELOC_16C_DISP08, BFD_RELOC_16C_DISP08_C,
9148 BFD_RELOC_16C_DISP16, BFD_RELOC_16C_DISP16_C,
9149 BFD_RELOC_16C_DISP24, BFD_RELOC_16C_DISP24_C,
9150 BFD_RELOC_16C_DISP24a, BFD_RELOC_16C_DISP24a_C,
9151 BFD_RELOC_16C_REG04, BFD_RELOC_16C_REG04_C,
9152 BFD_RELOC_16C_REG04a, BFD_RELOC_16C_REG04a_C,
9153 BFD_RELOC_16C_REG14, BFD_RELOC_16C_REG14_C,
9154 BFD_RELOC_16C_REG16, BFD_RELOC_16C_REG16_C,
9155 BFD_RELOC_16C_REG20, BFD_RELOC_16C_REG20_C,
9156 BFD_RELOC_16C_ABS20, BFD_RELOC_16C_ABS20_C,
9157 BFD_RELOC_16C_ABS24, BFD_RELOC_16C_ABS24_C,
9158 BFD_RELOC_16C_IMM04, BFD_RELOC_16C_IMM04_C,
9159 BFD_RELOC_16C_IMM16, BFD_RELOC_16C_IMM16_C,
9160 BFD_RELOC_16C_IMM20, BFD_RELOC_16C_IMM20_C,
9161 BFD_RELOC_16C_IMM24, BFD_RELOC_16C_IMM24_C,
9162 BFD_RELOC_16C_IMM32, BFD_RELOC_16C_IMM32_C.
9163 * targets.c (bfd_elf32_cr16c_vec): Declare.
9164 (bfd_target_vector): Add bfd_elf32_cr16c_vec.
9165 * cpu-cr16c.c: New file.
9166 * elf32-cr16c.c: Likewise.
9167 * libbfd.h: Regenerate.
9168 * bfd-in2.h: Likewise.
9170 2004-03-30 Jakub Jelinek <jakub@redhat.com>
9172 * elf.c (map_sections_to_segments): Fix handling of .tbss.
9174 2004-03-27 Alan Modra <amodra@bigpond.net.au>
9176 * Makefile.am: Remove all mention of elflink.h.
9177 * Makefile.in: Regenerate.
9178 * bfd-in.h (bfd_elf_discard_info): Declare.
9179 (bfd_elf32_discard_info, bfd_elf64_discard_info): Delete.
9180 * bfd-in2.h: Regenerate.
9181 * elf-bfd.h (bfd_elf32_print_symbol, bfd_elf64_print_symbol,
9182 bfd_elf32_link_record_dynamic_symbol,
9183 bfd_elf64_link_record_dynamic_symbol,
9184 _bfd_elf_link_record_dynamic_symbol, bfd_elf32_bfd_final_link,
9185 bfd_elf64_bfd_final_link, elf_link_record_local_dynamic_symbol,
9186 _bfd_elf32_link_record_local_dynamic_symbol,
9187 _bfd_elf64_link_record_local_dynamic_symbol,
9188 _bfd_elf32_gc_sections, _bfd_elf32_gc_common_finalize_got_offsets,
9189 _bfd_elf32_gc_common_final_link, _bfd_elf64_gc_common_final_link,
9190 _bfd_elf32_gc_record_vtinherit, _bfd_elf32_gc_record_vtentry,
9191 _bfd_elf64_gc_sections, _bfd_elf64_gc_common_finalize_got_offsets,
9192 _bfd_elf64_gc_record_vtinherit, _bfd_elf64_gc_record_vtentry,
9193 _bfd_elf32_reloc_symbol_deleted_p,
9194 _bfd_elf64_reloc_symbol_deleted_p): Delete.
9195 (bfd_elf_link_record_dynamic_symbol,
9196 bfd_elf_link_record_local_dynamic_symbol,
9197 bfd_elf_final_link, bfd_elf_gc_sections,
9198 bfd_elf_gc_record_vtinherit, bfd_elf_gc_record_vtentry,
9199 bfd_elf_gc_common_finalize_got_offsets, bfd_elf_gc_common_final_link,
9200 bfd_elf_reloc_symbol_deleted_p): Declare.
9201 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
9202 * elf32-arm.h: Update for changed function names. Remove local
9203 WILL_CALL_FINISH_DYNAMIC_SECTION define.
9204 * elf-hppa.h, elf-m10300.c, elf32-cris.c, elf32-d10v.c, elf32-dlx.c,
9205 * elf32-fr30.c, elf32-frv.c, elf32-h8300.c, elf32-hppa.c, elf32-i386.c,
9206 * elf32-iq2000.c, elf32-m32r.c, elf32-m68hc1x.c, elf32-m68k.c,
9207 * elf32-mcore.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
9208 * elf32-sh.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
9209 * elf32-xstormy16.c, elf32-xtensa.c, elf64-alpha.c, elf64-hppa.c,
9210 * elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
9211 * elf64-x86-64.c, elfxx-ia64.c, elfxx-mips.c, elfxx-target.h: Likewise.
9212 * elfxx-target.h (bfd_elfNN_bfd_final_link): Define.
9213 (bfd_elfNN_print_symbol): Define.
9214 * elfcode.h: Don't include elflink.h.
9215 (elf_bfd_discard_info, elf_reloc_symbol_deleted_p,
9216 elf_link_record_dynamic_symbol, elf_bfd_final_link, elf_gc_sections,
9217 elf_gc_common_finalize_got_offsets, elf_gc_common_final_link,
9218 elf_gc_record_vtinherit, elf_gc_record_vtentry,
9219 elf_link_record_local_dynamic_symbol): Don't define.
9220 * elflink.c: Update for changed function names. Move elflink.h
9222 * elflink.h: Delete file.
9223 * po/SRC-POTFILES.in: Regenerate.
9224 * po/bfd.pot: Regenerate.
9226 2004-03-27 Alan Modra <amodra@bigpond.net.au>
9228 * elf64-mmix.c (mmix_elf_relocate_section): Restore code setting
9229 "name" for global syms accidentally removed in 2004-03-20 change.
9231 2004-03-27 Alan Modra <amodra@bigpond.net.au>
9233 * elf-bfd.h (struct elf_reloc_cookie): Add r_sym_shift field.
9234 * elflink.h: Replace all occurrences of sizeof (Elf_External_*)
9235 where Elf_External_* is different for 64 and 32 bit, with
9236 corresponding elf_size_info field.
9237 (struct elf_final_link_info): Use "bfd_byte *" instead
9238 of "Elf_External_Sym *" for external_syms and symbuf.
9239 (elf_link_adjust_relocs): Set up r_type_mask and r_sym_shift local
9240 vars and use instead of ELF_R_INFO and ELF_R_TYPE macros.
9241 (struct elf_link_sort_rela): Add "sym_mask" alias for "offset".
9242 (elf_link_sort_cmp1): Use sym_mask field instead of ELF_R_SYM.
9243 (elf_link_sort_cmp2): Adjust.
9244 (elf_link_sort_relocs): Set up r_sym_mask local var instead of
9245 using ELF_R_SYM macro. Set u.sym_mask.
9246 (elf_bfd_final_link): Call _bfd_elf_stringtab_init instead of macro
9247 version, elf_stringtab_init. Ditto for bfd_section_from_elf_index
9248 vs. section_from_elf_index. Adjust Elf_External_Sym pointer
9249 arithmetic. Pass bed to elf_link_flush_output_syms. Adjust
9250 Elf_External_Dyn pointer arithmentic. Use bed swap_dyn_in and
9251 swap_syn_out functions. Rearrange dyn swap in/out switch.
9252 (elf_link_output_sym): Adjust Elf_External_Sym pointer arithmentic.
9253 Pass bed to elf_link_flush_output_syms. Use bed swap_symbol_out.
9254 (elf_link_flush_output_syms): Add elf_backend_data arg.
9255 (elf_link_check_versioned_symbol): Likewise.
9256 (elf_link_output_extsym): Pass bed to elf_link_check_versioned_symbol.
9257 Adjust Elf_External_Sym pointer arithmetic. Use bed swap_symbol_out.
9258 (elf_link_input_bfd): Use bfd_section_from_elf_index. Set up
9259 r_type_mask and r_sym_shift local vars and use instead of ELF_R_SYM,
9260 ELF_R_TYPE and ELF_R_INFO macros.
9261 (elf_reloc_link_order): Select ELF32_R_INFO or ELF64_R_INFO invocation
9262 based on size rather than using ELF_R_INFO.
9263 (elf_gc_mark): Set up r_sym_shift local var and use instead of
9265 (struct alloc_got_off_arg): New.
9266 (elf_gc_common_finalize_got_offsets): Use elf_size_info instead of
9267 ARCH_SIZE. Pass get entry size down to elf_gc_allocate_got_offsets.
9268 (elf_gc_allocate_got_offsets): Adjust.
9269 (elf_reloc_symbol_deleted_p): Usee cookie.r_sym_shift instead of
9270 ELF_R_SYM. Use bfd_section_from_elf_index.
9271 (elf_bfd_discard_info): Set cookie.r_sym_shift.
9272 * elfcode.h (elf_stringtab_init, section_from_elf_index): Delete.
9273 (elf_slurp_symbol_table): Use bfd_section_from_elf_index.
9275 2004-03-26 Stan Shebs <shebs@apple.com>
9277 Remove MPW support, no longer used.
9278 * config.bfd (powerpc-*-mpw*): Remove configuration.
9279 * mpw-config.in, mpw-make.sed: Remove files.
9280 * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
9282 2004-03-26 Alan Modra <amodra@bigpond.net.au>
9284 * elf64-ppc.c (elf_backend_add_symbol_hook): Define.
9285 (ppc64_elf_add_symbol_hook): New function.
9286 * elf-bfd.h (struct elf_backend_data <elf_add_symbol_hook>): Remove
9287 const from Elf_Internal_Sym param.
9288 * elflink.c (elf_link_add_object_symbols): Adjust.
9289 * elf-hppa.h (elf_hppa_add_symbol_hook): Adjust.
9290 * elf32-frv.c (elf32_frv_add_symbol_hook): Adjust.
9291 * elf32-i370.c (elf_backend_add_symbol_hook): Adjust.
9292 * elf32-m32r.c (m32r_elf_add_symbol_hook): Adjust.
9293 * elf32-m68hc1x.c (elf32_m68hc11_add_symbol_hook): Adjust.
9294 * elf32-m68hc1x.h (elf32_m68hc11_add_symbol_hook): Adjust.
9295 * elf32-ppc.c (ppc_elf_add_symbol_hook): Adjust.
9296 * elf32-sh64.c (sh64_elf_add_symbol_hook): Adjust.
9297 * elf32-v850.c (v850_elf_add_symbol_hook): Adjust.
9298 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Adjust.
9299 * elf64-mmix.c (mmix_elf_add_symbol_hook): Adjust.
9300 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Adjust.
9301 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Adjust.
9302 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Adjust.
9303 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Adjust.
9304 * elfxx-mips.h (_bfd_mips_elf_add_symbol_hook): Adjust.
9306 2004-03-26 Alan Modra <amodra@bigpond.net.au>
9308 * elfxx-target.h (bfd_elfNN_bfd_link_add_symbols): Define.
9309 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): Delete.
9310 (_bfd_elf_sort_symbol, _bfd_elf_add_dt_needed_tag): Delete.
9311 (_bfd_elf_finalize_dynstr, bfd_elf32_bfd_link_add_symbols): Delete.
9312 (bfd_elf64_bfd_link_add_symbols): Delete.
9313 (bfd_elf_link_add_symbols): Declare.
9314 * elfcode.h (elf_bfd_link_add_symbols): Delete.
9315 * elflink.c: Include safe-ctype.h.
9316 (elf_add_dt_needed_tag): Rename from _bfd_elf_add_dt_needed_tag,
9318 (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static.
9319 (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make
9321 (elf_link_add_archive_symbols): Rename from
9322 _bfd_elf_link_add_archive_symbols, make static.
9323 (elf_link_add_object_symbols): New function. Corresponding
9324 elflink.h function converted to use elf_size_info.
9325 (bfd_elf_link_add_symbols): Likewise.
9326 (bfd_elf_size_dynamic_sections): Adjust.
9327 * elflink.h (elf_bfd_link_add_symbols): Delete.
9328 (elf_link_add_object_symbols): Delete.
9329 * elf32-gen.c (elf32_generic_link_add_symbols): Call
9330 bfd_elf_link_add_symbols.
9331 * elf64-gen.c (elf64_generic_link_add_symbols): Likewise.
9333 2004-03-25 Alan Modra <amodra@bigpond.net.au>
9335 * elflink.h (elf_link_add_object_symbols): Add DT_NEEDED for as-needed
9336 and chained shared libs only if dynsym. Clear dynsym on forced-local.
9338 * elf-bfd.h (_bfd_elf_add_dynamic_entry): Declare.
9339 (bfd_elf32_add_dynamic_entry, bfd_elf64_add_dynamic_entry): Delete.
9340 (_bfd_elf_add_dt_needed_tag): Declare.
9341 (_bfd_elf_sort_symbol): Declare.
9342 (_bfd_elf_finalize_dynstr): Declare.
9343 (RELOC_FOR_GLOBAL_SYM): Formatting.
9344 * elfcode.h (elf_add_dynamic_entry): Delete.
9345 * elflink.c (_bfd_elf_add_dynamic_entry): New function. Corresponding
9346 elflink.h function converted to use elf_size_info.
9347 (_bfd_elf_add_dt_needed_tag): Likewise.
9348 (_bfd_elf_sort_symbol): Likewise.
9349 (_bfd_elf_finalize_dynstr): Likewise.
9350 (compute_bucket_count): Likewise.
9351 (bfd_elf_size_dynamic_sections): Likewise. Check result of
9352 _bfd_elf_strtab_add before calling _bfd_elf_strtab_addref.
9353 (elf_adjust_dynstr_offsets, elf_collect_hash_codes): Moved from..
9354 * elflink.h: ..here.
9355 (sort_symbol, add_dt_needed_tag): Delete.
9356 (elf_add_dynamic_entry, elf_finalize_dynstr): Delete.
9357 (compute_bucket_count, NAME(bfd_elf,size_dynamic_sections)): Delete.
9359 * elf32-arm.h (add_dynamic_entry): Update. Remove casts.
9360 * elf32-cris.c (add_dynamic_entry): Likewise.
9361 * elf32-hppa.c (add_dynamic_entry): Likewise.
9362 * elf32-i370.c (add_dynamic_entry): Likewise.
9363 * elf32-i386.c (add_dynamic_entry): Likewise.
9364 * elf32-m32r.c (add_dynamic_entry): Likewise.
9365 * elf32-m68k.c (add_dynamic_entry): Likewise.
9366 * elf32-ppc.c (add_dynamic_entry): Likewise.
9367 * elf32-s390.c (add_dynamic_entry): Likewise.
9368 * elf32-sh.c (add_dynamic_entry): Likewise.
9369 * elf32-sparc.c (add_dynamic_entry): Likewise.
9370 * elf32-vax.c (add_dynamic_entry): Likewise.
9371 * elf32-xtensa.c (add_dynamic_entry): Likewise.
9372 * elf64-alpha.c (add_dynamic_entry): Likewise.
9373 * elf64-hppa.c (add_dynamic_entry): Likewise.
9374 * elf64-ppc.c (add_dynamic_entry): Likewise.
9375 * elf64-s390.c (add_dynamic_entry): Likewise.
9376 * elf64-sparc.c (add_dynamic_entry): Likewise.
9377 * elf64-x86-64.c (add_dynamic_entry): Likewise.
9378 * elfxx-ia64.c (add_dynamic_entry): Likewise.
9379 * elfxx-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
9380 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
9381 * elf32-frv.c (elf32_frv_size_dynamic_sections): Likewise.
9382 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
9384 2004-03-23 Paul Brook <paul@codesourcery.com>
9386 * elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
9388 2004-03-22 Bob Wilson <bob.wilson@acm.org>
9390 * elf32-xtensa.c (elf_xtensa_check_relocs): Remove code to read
9391 literal tables and check for relocs outside of literal pools.
9392 (elf_xtensa_make_sym_local): Don't clear ELF_LINK_NON_GOT_REF flag.
9393 (elf_xtensa_fix_refcounts): Don't check ELF_LINK_NON_GOT_REF or
9395 (elf_xtensa_size_dynamic_sections): Don't add DT_TEXTREL entry.
9396 (elf_xtensa_relocate_section): Read literal tables and check for
9397 dynamic relocations in read-only sections and not in literal pools.
9399 2004-03-23 Alan Modra <amodra@bigpond.net.au>
9402 * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char.
9404 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
9406 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
9407 R_CRIS_16_GOTPLT>: Also error if there's no PLT for a symbol
9408 not defined by the executable, or defined in a DSO.
9409 <eliding run-time relocation of .got>: Initialize GOT entry for a
9410 function symbol or ELF_LINK_HASH_NEEDS_PLT statically in an
9412 (cris_elf_gc_sweep_hook): Improve fallthrough marking.
9413 (elf_cris_try_fold_plt_to_got): Improve head comment. Do not fold
9414 a PLT reloc to GOT for an executable.
9415 (elf_cris_adjust_dynamic_symbol): Only fold a .got.plt entry with
9416 .got for a DSO and explain why.
9417 (elf_cris_discard_excess_program_dynamics): Also lose GOT-relocs
9418 and unreferenced symbols for which a PLT is defined. Adjust
9419 dynamic-symbol pruning correspondingly, to make sure we don't lose
9420 a dynamic symbol also defined by a DSO.
9422 2004-03-22 Alan Modra <amodra@bigpond.net.au>
9424 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Add input_bfd, input_section
9425 and rel args. Group input and output args. Wrap to 80 columns.
9426 * elf-m10200.c, elf-m10300.c, elf32-arm.h, elf32-avr.c,
9427 elf32-cris.c, elf32-d10v.c, elf32-fr30.c, elf32-h8300.c,
9428 elf32-hppa.c, elf32-i386.c, elf32-i860.c, elf32-ip2k.c,
9429 elf32-iq2000.c, elf32-m68hc1x.c, elf32-m68k.c, elf32-mcore.c,
9430 elf32-msp430.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
9431 elf32-sparc.c, elf32-v850.c, elf32-vax.c, elf32-xstormy16.c,
9432 elf32-xtensa.c, elf64-alpha.c, elf64-mmix.c, elf64-ppc.c,
9433 elf64-s390.c, elf64-sparc.c, elf64-x86-64.c, elfxx-ia64.c: Update
9434 RELOC_FOR_GLOBAL_SYMBOL invocation.
9436 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
9438 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if
9439 unresolved symbols in objects aren't allowed.
9441 * elf-hppa.h (elf_hppa_relocate_section): Properly handle
9443 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
9444 (elf_hppa_unmark_useless_dynamic_symbols):
9445 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
9446 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
9447 (elf32_hppa_relocate_section): Likewise.
9448 * elf32-i370.c (i370_elf_relocate_section): Likewise.
9449 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
9450 * elf32-sh.c (sh_elf_relocate_section): Likewise.
9451 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
9452 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
9454 * elf-m10200.c (mn10200_elf_relocate_section): Use
9455 RELOC_FOR_GLOBAL_SYMBOL.
9456 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
9457 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
9458 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
9459 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
9460 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
9461 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Likewise.
9462 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
9463 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
9464 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
9465 * elf32-v850.c (v850_elf_relocate_section): Likewise.
9466 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
9467 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
9469 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9471 * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
9472 (final_link_relocate): Likewise.
9473 * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
9474 R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
9476 2004-03-19 Alan Modra <amodra@bigpond.net.au>
9478 * Makefile.am: Run "make dep-am".
9479 * Makefile.in: Regenerate.
9480 * aclocal.m4: Regenerate.
9481 * config.in: Regenerate.
9482 * po/bfd.pot: Regenerate.
9484 2004-03-19 Alan Modra <amodra@bigpond.net.au>
9485 H.J. Lu <hongjiu.lu@intel.com>
9487 * elflink.c (_bfd_elf_merge_symbol): Revert last change. Move
9488 type and size change code to where it was previously. Remove
9489 dt_needed param. Treat old weak syms as strong if new sym is
9490 from a shared lib, even when old sym is from another shared
9491 lib. Remove unnecessary tests of oldweak and newweak. Correct
9493 (_bfd_elf_add_default_symbol): Remove dt_needed param. Update
9494 _bfd_elf_merge_symbol calls.
9495 * elflink.h (elf_link_add_object_symbols): Update calls. Remove
9496 dt_needed local var. Update comments.
9497 * elf-bfd.h (_bfd_elf_merge_symbol): Update prototype.
9498 (_bfd_elf_add_default_symbol): Likewise.
9500 * elflink.c (_bfd_elf_merge_symbol): Reinstate code to handle
9501 strong syms in one shared object overriding weak syms in another.
9503 2004-03-18 Alan Modra <amodra@bigpond.net.au>
9505 * elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field. Add
9506 dyn_lib_class field. Rearrange for better packing.
9507 (elf_dt_soname): Delete.
9508 (elf_dyn_lib_class): Define.
9509 * elf.c (bfd_elf_set_dt_needed_name): Update comment.
9510 (bfd_elf_set_dt_needed_soname): Delete.
9511 (bfd_elf_set_dyn_lib_class): New function.
9512 * elflink.h (add_dt_needed_tag): New function. Split out from..
9513 (elf_link_add_object_symbols): ..here. Rename "name" to "soname".
9514 Use elf_dyn_lib_class to set dt_needed and add_needed. Move fallback
9515 initialization of soname.
9516 (elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of
9518 * bfd-in.h (enum dynamic_lib_link_class): New.
9519 (bfd_elf_set_dt_needed_soname): Delete.
9520 (bfd_elf_set_dyn_lib_class): Declare.
9521 * bfd-in2.h: Regenerate.
9523 * elflink.c (_bfd_elf_merge_symbol): Rewrite weak symbol handling.
9524 (_bfd_elf_add_default_symbol): Remove indirect BFD_ASSERTs.
9525 * elflink.h (elf_link_add_object_symbols): Don't clear dt_needed in
9526 symbol loop. Instead use add_needed to flag tag as written.
9528 2004-03-17 Nathan Sidwell <nathan@codesourcery.com>
9530 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
9531 logic for null_input_bfd detection.
9533 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9535 * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
9537 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9539 * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
9542 2004-03-16 Alan Modra <amodra@bigpond.net.au>
9544 * elflink.c (elf_link_read_relocs_from_section): Don't use
9545 NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check..
9546 (_bfd_elf_link_read_relocs): ..to here.
9547 * elf32-ppc.c (ppc_elf_relax_section): Formatting.
9549 2004-03-16 Alan Modra <amodra@bigpond.net.au>
9551 * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override
9552 values selected in configure.host. Require both to be defined
9553 before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to
9554 corresponding BFD_HOST vars with quotes.
9555 <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc;
9556 Always require BFD_HOST_64_BIT_DEFINED.
9557 <file_ptr type>: Find off_t size before emitting message. Combine
9558 off_t and ftello64 conditional.
9559 * configure: Regenerate.
9561 2004-03-16 Alan Modra <amodra@bigpond.net.au>
9563 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
9564 aliasing warning. Remove trailing whitespace throughout file.
9566 2004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9568 * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of
9569 input_section in calls to get_dyn_name.
9570 * 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
9572 (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
9574 2004-03-15 Alan Modra <amodra@bigpond.net.au>
9576 * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types.
9577 (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here.
9578 (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t.
9579 (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t.
9580 (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t.
9581 * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8.
9582 (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set
9584 * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t.
9585 (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT.
9586 (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
9587 (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT.
9588 (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise.
9589 * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t.
9590 (read_8_bytes, read_indirect_string, read_address): Likewise.
9591 (read_abbrevs, parse_comp_unit): Likewise.
9592 * targets.c (struct bfd_target): Likewise.
9593 * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use.
9594 * hppabsd-core.c: Likewise. Formatting.
9595 * hpux-core.c: Likewise.
9596 * irix-core.c: Likewise.
9597 * netbsd-core.c: Likewise.
9598 * osf-core.c: Likewise.
9599 * ptrace-core.c: Likewise.
9600 * sco5-core.c: Likewise.
9601 * trad-core.c: Likewise.
9602 * configure: Regenerate.
9603 * bfd-in2.h: Regenerate.
9605 2004-03-15 Alan Modra <amodra@bigpond.net.au>
9607 * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
9608 (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
9609 (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
9610 (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
9611 (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
9612 (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
9613 (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
9614 * libbfd.c: Likewise in function definitions.
9615 (bfd_put_8): Mask with 0xff rather than casting to char.
9616 (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
9617 (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
9618 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
9619 (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
9620 (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
9621 (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
9622 * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
9623 (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
9624 (H_GET_64, H_GET_32, H_GET_16): Likewise.
9625 (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
9626 * archive.c (do_slurp_coff_armap): Update swap prototype.
9627 * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
9628 (tic54x_getl_signed_32): Likewise.
9629 (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
9630 * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
9631 * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
9632 (bfd_getp_signed_32, bfd_putp32): Likewise.
9633 * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
9634 bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
9635 bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
9636 bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
9637 bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
9638 bfd_h_getx_signed_16, bfd_h_putx16.
9639 * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
9640 * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
9641 * hpux-core.c: Likewise.
9642 * irix-core.c: Likewise.
9643 * netbsd-core.c: Likewise.
9644 * osf-core.c: Likewise.
9645 * ptrace-core.c: Likewise.
9646 * sco5-core.c: Likewise.
9647 * trad-core.c: Likewise.
9648 * bfd-in2.h: Regenerate.
9650 2004-03-15 Matt Thomas <matt@3am-software.com>
9652 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
9655 2004-03-13 Mark Kettenis <kettenis@gnu.org>
9657 * config.bfd: Add x86_64-*-openbsd*.
9658 * configure.in (x86_64-*-openbsd*): Set COREFILE to
9660 * configure: Regenerate.
9662 2004-03-12 Nick Clifton <nickc@redhat.com>
9663 Dave Murphy <wintermute2k4@ntlworld.com>
9665 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
9666 if the input bfd does not contain any code.
9668 2004-03-09 Steve Ellcey <sje@cup.hp.com>
9670 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
9672 2004-03-05 Fred Fish <fnf@redhat.com>
9674 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
9675 mips16 symbols to be even rather than testing first for even/odd.
9676 (_bfd_mips_elf_link_output_symbol_hook): Ditto.
9678 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
9680 * elf.c (map_sections_to_segments): Ignore .tbss sections for
9683 2004-03-03 Alexandre Oliva <aoliva@redhat.com>
9685 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
9686 undefined symbols as hash_new.
9688 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
9690 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
9692 * elf32-sh.c: Ditto.
9693 * bfd-in2.h: Regenerate.
9695 2004-03-02 Alexandre Oliva <aoliva@redhat.com>
9697 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
9699 (_frv_count_got_plt_entries): Initialize them.
9700 (frv_pic_relocs_info_find): Add insert argument. Adjust all
9702 (frv_pic_relocs_info_for_global): Likewise.
9703 (frv_pic_relocs_info_for_local): Likewise.
9704 (frv_pic_merge_early_relocs_info): New.
9705 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
9707 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
9708 Check that we don't exceed the allocated count for entry.
9709 (_frv_add_rofixup): Likewise.
9710 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
9711 (elf32_frv_finish_dynamic_sections): Improve error message in case
9712 we emit too few rofixup entries.
9714 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
9716 * archures.c (bfd_mach_fr450): New.
9717 * bfd-in2.h: Regenerate.
9718 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
9719 (arch_info_500): Link to it.
9720 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
9721 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
9722 (frv_elf_arch_extension_p): New function.
9723 (frv_elf_merge_private_bfd_data): Use it.
9725 2004-02-28 H.J. Lu <hongjiu.lu@intel.com>
9727 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
9729 * elflink.h (is_global_data_symbol_definition): Moved to
9731 (elf_link_is_defined_archive_symbol): Likewise.
9732 (elf_link_add_archive_symbols): Likewise. Renamed to
9733 _bfd_elf_link_add_archive_symbols.
9735 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
9736 of ELF symbol table entry from backend.
9737 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
9738 instead of elf_link_add_object_symbols.
9740 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
9742 * elf-bfd.h (struct elf_backend_data): Added
9743 elf_backend_can_make_relative_eh_frame,
9744 elf_backend_can_make_lsda_relative_eh_frame and
9745 elf_backend_encode_eh_address.
9746 (_bfd_elf_encode_eh_address): Declare.
9747 (_bfd_elf_can_make_relative): Declare.
9748 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
9749 hooks to decide whether to attempt to make_relative and
9751 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
9752 (_bfd_elf_can_make_relative): New.
9753 (_bfd_elf_encode_eh_address): New.
9754 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
9755 (frv_elf_encode_eh_address): New.
9756 (elf_backend_can_make_relative_eh_frame): Define.
9757 (elf_backend_can_make_lsda_relative_eh_frame): Define.
9758 (elf_backend_encode_eh_address): Define.
9760 (elf_backend_can_make_relative_eh_frame): Define.
9761 (elf_backend_can_make_lsda_relative_eh_frame): Define.
9762 (elf_backend_encode_eh_address): Define.
9763 (elfNN_bed): Add them.
9765 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
9767 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
9768 complain_on_overflow to signed.
9770 2004-02-27 H.J. Lu <hongjiu.lu@intel.com>
9772 * elflink.h (sort_symbol): New.
9773 (elf_link_add_object_symbols): Use a sorted symbol array for
9776 2004-02-27 Jakub Jelinek <jakub@redhat.com>
9778 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
9779 for pc relative relocs.
9780 (elf_s390_relocate_section): Likewise.
9781 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
9782 for pc relative relocs.
9783 (elf_s390_relocate_section): Likewise.
9785 2004-02-26 H.J. Lu <hongjiu.lu@intel.com>
9787 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
9790 2004-02-25 H.J. Lu <hongjiu.lu@intel.com>
9792 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
9793 field to track if a relocation is against readonly section.
9794 (count_dyn_reloc): Take a new argument for rent->reltext.
9795 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
9796 (get_reloc_section): Don't set ia64_info->reltext here.
9797 (allocate_dynrel_entries): Set ia64_info->reltext here.
9799 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
9801 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
9802 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
9803 function's descriptor to symbol+offset, and map local undefweak
9804 symbol to NULL function descriptor.
9805 (elf32_frv_relocate_section): Likewise.
9807 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9809 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
9811 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
9812 (netbsd_core_file_p): Set architecture from machine ID for
9815 2004-02-23 Jakub Jelinek <jakub@redhat.com>
9817 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
9818 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
9820 2004-02-21 H.J. Lu <hongjiu.lu@intel.com>
9822 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
9823 symbols with non-default visibility.
9825 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
9827 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
9828 IMAGE_SCN_MEM_WRITE on known sections only.
9830 2004-02-20 Jakub Jelinek <jakub@redhat.com>
9832 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
9833 symbols used in PIE relocs.
9835 2004-02-19 Jakub Jelinek <jakub@redhat.com>
9837 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
9840 2004-02-18 Daniel Jacobowitz <drow@mvista.com>
9842 * configure.in: Update version to 2.15.90.
9843 * configure: Regenerate.
9845 2004-02-17 Daniel Jacobowitz <drow@mvista.com>
9846 Richard Sandiford <rsandifo@redhat.com>
9848 * elfxx-mips.c (mips_elf_calculate_relocation): Use
9849 _bfd_elf_symbol_refs_local_p to decide whether to decay
9850 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
9851 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
9852 relocs if the symbol wasn't defined by a regular object file.
9853 Don't check the symbol's dynindx.
9855 2004-02-16 Andrew Cagney <cagney@redhat.com>
9857 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
9859 * bfd-in2.h: Re-generate.
9861 2004-02-14 Andrew Cagney <cagney@redhat.com>
9863 * configure.host (HDEFINES): When hppa*-*-hpux*, define
9864 _LARGEFILE64_SOURCE.
9866 2004-02-13 Andrew Cagney <cagney@redhat.com>
9868 * elf.c (vma_page_aligned_bias): New function.
9869 (assign_file_positions_except_relocs)
9870 (assign_file_positions_for_segments): Replace broken modulo
9871 arithmetic with call to vma_page_aligned_bias.
9873 2004-02-11 Andrew Cagney <cagney@redhat.com>
9875 * bfd-in.h: Update copyright.
9876 (bfd_tell): Change return type to file_ptr.
9877 * bfd-in2.h: Re-generate.
9878 * cache.c: Update copyright.
9879 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
9881 (close_one): Use real_ftell.
9882 * bfdio.c: Update copyright.
9883 (real_ftell, real_fseek): New functions.
9884 (bfd_tell): Use real_fseek and real_ftell, change return type to
9886 (bfd_seek): Use real_ftell and real_fseek, change type of
9887 file_position to a file_ptr.
9888 * libbfd-in.h: Update copyright.
9889 (real_ftell, real_fseek): Declare.
9890 * libbfd.h: Re-generate.
9892 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
9893 fseeko and fseeko64. Determine bfd_file_ptr.
9894 * configure: Re-generate.
9895 * config.in: Re-generate.
9897 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
9899 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
9900 * elf32-h8300.c: Likewise.
9902 2004-02-09 Christian Vogel <vogelchr@vogel.cx>
9903 Nick Clifton <nickc@redhat.com>
9905 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
9906 GOT entries with no associated GOT subsection.
9908 2004-02-09 Richard Sandiford <rsandifo@redhat.com>
9910 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
9911 * elf.c (swap_out_syms): Use it to decide whether local section
9912 symbols should be named.
9913 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
9914 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
9915 (elf_backend_name_local_section_symbols): Define.
9916 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
9918 2004-01-30 H.J. Lu <hongjiu.lu@intel.com>
9920 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
9921 (elfNN_ia64_relax_section): Optimize brl to br during the relax
9924 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
9926 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
9927 to bfd_link_hash_entry passed by reference to
9928 _bfd_generic_link_add_one_symbol.
9930 2004-01-25 H.J. Lu <hongjiu.lu@intel.com>
9932 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
9933 relocations against dynamic symbols.
9935 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
9937 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
9940 2004-01-21 Tom Rix <tcrix@worldnet.att.net>
9942 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
9943 * bfd-in2.h, libbfd.h: Rebuilt.
9945 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
9947 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
9948 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
9949 flag has been cleared.
9951 2004-01-19 Kazu Hirata <kazu@cs.umass.edu>
9953 * coff-h8300.c: Add and adjust comments about relaxation.
9954 * elf32-h8300.c: Likewise.
9956 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
9958 * coff-h8300.c: Fix comment typos.
9959 * elf32-h8300.c: Likewise.
9961 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
9963 * coff-h8300.c: Add comments about relaxation.
9964 * elf32-h8300.c: Likewise.
9966 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9968 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
9970 * aclocal.m4: Regenerate.
9971 * configure: Regenerate.
9973 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
9975 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
9976 mips_elf64_rtype_to_howto instead of using howto_table.
9978 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
9980 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
9982 (elf32_arm_check_relocs): Don't increment the PLT refcount for
9983 relocs which would not use the PLT.
9985 2004-01-13 Alan Modra <amodra@bigpond.net.au>
9987 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
9988 (ppc64_elf_gc_sweep_hook): Likewise.
9989 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
9991 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
9993 Adds linker relaxation support for bit manipulation insns like
9994 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
9996 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
9997 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
9998 * coff-h8300.c: Opcode for bit manipulation insn is checked in
9999 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
10001 2004-01-12 Alan Modra <amodra@bigpond.net.au>
10003 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
10005 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
10007 * elf32-h8300.c: Fix formatting.
10009 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
10011 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
10012 dynamic object is present. Declare r_symndx and h in an inner
10014 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
10016 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
10018 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
10019 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
10020 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
10021 identically. Do not emit PC24 relocations for shared libraries.
10022 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
10023 identically. Don't adjust pc_count.
10024 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
10025 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
10026 adjust count for branch relocations.
10027 (allocate_dynrelocs): Correct typo in call to
10028 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
10029 PC24 or PLT32 relocs when linking.
10031 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
10033 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
10034 relocation howto with ARM_26 one for consistency.
10035 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
10036 that will be converted to ARM_26D ones, since we always want 'done'
10037 relocations to be reflected in section's data.
10038 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
10040 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
10043 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
10045 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
10046 are not partial_inplace during a relocatable link.
10048 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
10050 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
10051 if no dynamic object is present. Declare r_symndx and h in an
10054 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
10056 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
10057 trampoline if it is known out of range.
10059 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
10061 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
10062 * elf32-frv.c (_frv_osec_readonly_p): New.
10063 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
10065 (_frv_count_got_plt_entries): Adjust expected count accordingly.
10066 (elf32_frv_relocate_section): Likewise. Error out if attempting
10067 to emit rofixups or dynamic relocs in read-only segments. Use
10068 _bfd_elf_section_offset to adjust r_offsets in rofixups and
10069 dynamic relocations.
10070 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
10071 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
10072 relocations or fixups involving merged sections correctly. Avoid
10073 crash when undefined symbol is referenced by R_FRV_32 or
10074 R_FRV_FUNCDESC_VALUE.
10075 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
10076 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
10077 input section holding local symbol to addend of R_FRV_32 or
10078 R_FRV_FUNCDESC_VALUE dynamic relocation.
10079 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
10080 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
10081 (elf32_frv_always_size_sections): Don't store pointer to
10082 __stacksize symbol in sec_info.
10083 (elf32_frv_modify_segment_map): Look it up here.
10084 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
10085 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
10086 of the lazy PLT entry, not only its offset, as the low word of a
10087 function descriptor.
10088 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
10089 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
10090 if a hash table entry already exists but is not a definition.
10091 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
10092 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
10093 (_frv_add_rofixup): Don't inline.
10094 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
10095 for undefweak symbols.
10096 (elf32_frv_relocate_section): Avoid crash while computing
10097 relocation when linking with shared library. Only emit rofixups
10098 and dynamic relocations for alloc&load sections. Mark binaries
10099 with inter-segment relocations for relocation as a unit.
10100 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
10101 (DEFAULT_STACK_SIZE): New.
10102 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
10103 emit rofixups or dynamic relocs when linking dynamic non-PIE
10105 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
10106 shared libs too. Reserve the last entry for the GOT pointer.
10107 (elf32_frv_finish_dynamic_sections): Emit it.
10108 (elf32_frv_always_size_sections): New.
10109 (elf32_frv_modify_segment_map): New.
10110 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
10112 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
10113 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
10114 (elf_backend_always_size_sections): New.
10115 (elf_backend_modify_segment_map): New.
10116 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
10117 * config.bfd: Added frv-*-*linux*.
10118 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
10119 ABS section, instead of crashing.
10120 (elf32_frv_relocate_section): Don't crash before warning about
10121 different segments in non-PIC relocation.
10122 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
10123 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
10124 relocs to undefweak symbols.
10125 (elf32_frv_relocate_section): Ditto for undefined symbols.
10126 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
10127 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
10128 gotfixup section was created.
10129 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
10130 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
10131 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
10132 complain_overflow_signed.
10133 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
10134 have not been allocated.
10135 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
10136 privfd only if dynamic sections were created.
10137 (elf32_frv_relocate_section): Compute gprel_segment, and use it
10138 for GPREL relocs. When linking relocatable FDPIC executables,
10139 emit warnings for relocations that would be illegal on PIE or
10140 shared libraries. Emit rofixup for R_FRV_32 only if input object
10142 (_frv_create_got_section): Define _gp symbol in the rofixup
10144 (elf32_frv_finish_dynamic_sections): If rofixups needed but
10145 dynamic sections missing, error out requesting -melf32frvfd.
10146 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
10147 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
10148 computation of addends from section and global or local symbol
10149 value. Change return type to bfd_boolean, and return a failure if
10150 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
10151 nonzero addend is required.
10152 (elf32_frv_relocate_section): Likewise. Print error for
10153 unsupported nonzero addends.
10154 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
10155 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
10156 force everything local.
10157 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
10158 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
10159 (frv_gotfixup_section): New.
10160 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
10161 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
10163 (_frv_add_rofixup): New.
10164 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
10165 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
10166 improve some ugly conditions.
10167 (elf32_frv_relocate_section): Likewise. Reject inter-segment
10168 relocations in fdpic.
10169 (_frv_create_got_section): Create .rofixup.got section.
10170 (struct _frv_dynamic_got_info): Added fixups.
10171 (_frv_count_got_plt_entries): Account in-GOT relocations into
10172 relocs32, relocsfd and relocsfdv. Account them into relocs or
10173 fixups, as appropriate.
10174 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
10176 (elf32_frv_finish_dynamic_sections): Verify that the right number
10177 of relocations and fixups was generated.
10178 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
10180 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
10181 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
10182 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
10183 descriptor of a (formerly-)global symbol is local.
10184 (struct frv_pic_relocs_info): Adjust comments.
10185 (_frv_emit_got_relocs_plt_entries): Adjust.
10186 (elf32_frv_relocate_section): Likewise.
10187 (_frv_count_got_plt_entries): Likewise.
10188 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
10189 symbol's value to addend in the common preamble. Decay dynamic
10190 symbols to section+offset if they bind or call locally, for GOT
10191 and FUNCDESC_VALUE, respectively.
10192 (elf32_frv_relocate_section): Likewise.
10193 (elf32_frv_check_relocs): Don't register as dynamic symbols of
10194 internal or hidden visibility.
10195 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
10196 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
10197 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
10198 (elf32_frv_relocate_section): Pass relocation addend in. Use
10199 original relocation addend to look up the got relocs/plt entries
10200 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
10201 processing relocations that reference .scommon symbols.
10202 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
10203 Introduce support for dynamic linking.
10204 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
10205 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
10206 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
10207 (frv_reloc_type_lookup): Return REL howtos for executables and
10209 (frv_info_to_howto_rel): New.
10210 (struct frv_elf_link_hash_table): New.
10211 (frv_hash_table, frv_got_section, frv_gotrel_section,
10212 frv_plt_section, frv_pltrel_section, frv_relocs_info,
10213 frv_got_initial_offset, frv_plt_initial_offset): New macros.
10214 (frv_elf_link_hash_table_create): New.
10215 (struct frv_pic_relocs_info): New.
10216 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
10217 (frv_pic_relocs_info_find): New.
10218 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
10220 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
10221 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
10222 (_frv_emit_got_relocs_plt_entries): New.
10223 (elf32_frv_relocate_section): Add support for dynamic linking.
10224 Handle new relocations.
10225 (_frv_create_got_section): New.
10226 (elf32_frv_create_dynamic_sections): New.
10227 (ELF_DYNAMIC_INTERPRETER): New.
10228 (struct _frv_dynamic_got_info): New.
10229 (_frv_count_got_plt_entries): New.
10230 (struct _frv_dynamic_got_plt_info): New.
10231 (_frv_compute_got_alloc_data): New.
10232 (_frv_get_got_entry, _frv_get_fd_entry): New.
10233 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
10234 (_frv_resolve_final_relocs_info): New.
10235 (elf32_frv_size_dynamic_sections): New.
10236 (elf32_frv_finish_dynamic_sections): New.
10237 (elf32_frv_adjust_dynamic_symbol): New.
10238 (elf32_frv_finish_dynamic_symbol): New.
10239 (elf32_frv_check_relocs): Handle new relocs. Explain how the
10241 (elf_info_to_howto_rel): Define.
10242 (bfd_elf32_bfd_link_hash_table_create): Define.
10243 (elf_backend_create_dynamic_sections): Define.
10244 (elf_backend_adjust_dynamic_symbol): Define.
10245 (elf_backend_size_dynamic_sections): Define.
10246 (elf_backend_finish_dynamic_symbol): Define.
10247 (elf_backend_finish_dynamic_sections): Define.
10248 (elf_backend_want_got_sym): Define.
10249 (elf_backend_got_header_size): Define.
10250 (elf_backend_want_got_plt): Define.
10251 (elf_backend_plt_readonly): Define.
10252 (elf_backend_want_plt_sym): Define.
10253 (elf_backend_plt_header_size): Define.
10254 (elf_backend_may_use_rel_p): Define.
10255 (elf_backend_may_use_rela_p): Define.
10256 (elf_backend_default_use_rela_p): Define.
10257 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
10258 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
10259 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
10260 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
10261 (frv_reloc_map): Map the corresponding BFD relocs to them.
10262 (frv_reloc_type_lookup): ... and back to BFD relocs.
10263 * reloc.c: New relocs.
10264 * bfd-in2.h, libbfd.h: Rebuilt.
10265 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
10266 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
10267 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
10268 R_FRV_FUNCDESC_GOTLO): New.
10269 (frv_reloc_map): Map the corresponding BFD relocs to them.
10270 (frv_reloc_type_lookup): ... and back to BFD relocs.
10271 * reloc.c: New relocs.
10272 * bfd-in2.h, libbfd.h: Rebuilt.
10274 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10276 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
10277 targets to support pages of up to 64kB.
10278 (elf32_bed): Redefine to get a separate backend data structure for
10279 traditional targets.
10280 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
10281 targets to support pages of up to 64kB.
10282 (elf64_bed): Redefine to get a separate backend data structure for
10283 traditional targets.
10284 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
10285 targets to support pages of up to 64kB.
10286 (elf32_bed): Redefine to get a separate backend data structure for
10287 traditional targets.
10289 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10291 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
10293 2004-01-02 Mark Kettenis <kettenis@gnu.org>
10295 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
10296 (elf_i386_grok_psinfo): Likewise.
10298 2004-01-02 Bernardo Innocenti <bernie@develer.com>
10300 * config.bfd: Add m68k-uClinux target.
10302 2004-01-01 Grant Edwards <grante@visi.com>
10304 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
10305 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
10306 (elf32_h8_gc_sweep_hook): New function.
10307 (elf_backend_gc_mark_hook): Define.
10308 (elf_backend_gc_sweep_hook): Define.
10309 (elf_backend_can_gc_sections): Define.
10311 For older changes see ChangeLog-0203
10317 version-control: never