1 2005-12-27 Alan Modra <amodra@bigpond.net.au>
3 * coff-h8300.c (h8300_reloc16_extra_cases): Use input section
4 "output_offset" instead of link order "offset".
5 * coff-h8500.c (extra_case): Likewise.
6 * coff-w65.c (w65_reloc16_extra_cases): Likewise.
7 * coff-z80.c (extra_case): Likewise.
8 * coff-z8k.c (extra_case): Likewise.
9 * linker.c (default_indirect_link_order): Likewise, "size" too.
10 * ecoff.c (ecoff_indirect_link_order): Likewise.
12 2005-12-27 Alan Modra <amodra@bigpond.net.au>
14 * Makefile.am: Run "make dep-am".
15 * Makefile.in: Regenerate.
16 * po/SRC-POTFILES.in: Regenerate.
18 2005-12-24 Alan Modra <amodra@bigpond.net.au>
20 * aix5ppc-core.c: Remove duplicate prototypes.
21 (xcoff64_core_file_matches_executable_p): Provide implementation
23 * corefile.c (generic_core_file_matches_executable_p): Correct
24 syntax error in prototype.
25 * libbfd-in.h (generic_core_file_matches_executable_p): Delete.
26 * libbfd.h: Regenerate.
27 * bfd-in2.h: Regenerate.
29 2005-12-23 Michael Weiser <michael@weiser.dinsnail.net>
32 * elf-bfd.h (struct elf_backend_data): New field
33 'elf_backend_ignore_undef_symbol'.
34 * elfxx-target.h (elf_backend_ignore_undef_symbol): Define to NULL
35 if not already defined.
36 (elfNN_bed): Initialise the elf_backend_ignore_undef_symbol field.
37 * elfxx-mips.c (_bfd_mips_elf_ignore_undef_symbol): New function.
38 * elfxx-mips.h (elf_backend_ignore_undef_symbol): Define and
40 * elflink.c (elf_link_output_extsym): Check
41 elf_backend_ignore_undef_symbol before reporting an undefined
42 symbol in a shared library.
44 2005-12-23 Joel Brobecker <brobecker@adacore.com>
46 * corefile.c (generic_core_file_matches_executable_p): New function.
47 * libbfd-in.h (generic_core_file_matches_executable_p): Add
49 * libbfd.h: Regenerate.
50 * hpux-core.c: ANSIfy function declarations and prototypes.
51 (thread_section_p): Manually expand bfd_section_name macro
52 to make it clear that parameter ABFD is not used.
53 (hpux_core_core_file_matches_executable_p): Delete, replaced
54 by macro pointing to generic_core_file_matches_executable_p.
56 * aix386-core.c: Replace core_file_matches_executable_p null
57 implementation by generic_core_file_matches_executable_p by
59 * aix5ppc-core.c: Likewise.
60 * cisco-core.c: Likewise.
61 * hppabsd-core.c: Likewise.
62 * irix-core.c: Likewise.
63 * lynx-core.c: Likewise.
65 * netbsd-core.c: Likewise.
66 * osf-core.c: Likewise.
67 * ptrace-core.c: Likewise.
68 * sco5-core.c: Likewise.
69 * trad-core.c: Likewise.
71 2005-12-19 David Heine <dlheine@tensilica.com>
73 * elf32-xtensa.c (action_list_count, xlate_map_entry, xlate_map,
74 xlate_offset_with_removed_text, build_xlate_map, free_xlate_map): New.
75 (check_section_ebb_pcrels_fit): Build new xlate_map, use it and free it
78 2005-12-16 Nathan Sidwell <nathan@codesourcery.com>
80 Second part of ms1 to mt renaming.
81 * archures.c (bfd_arch_mt): Renamed.
82 (bfd_mt_arch): Renamed.
83 (bfd_archures_list): Adjusted.
85 * config.bfd (mt): Remove special case targ_archs.
86 (mt-*-elf): Rename bfd_elf32_mt_vec.
88 * configure.in (bfd_elf32_mt_vec): Renamed.
89 (selarchs) Remove mt special case.
90 * cpu-mt.c (arch_info_struct): Adjust.
91 (bfd_mt_arch): Renamed, adjust.
92 * elf32-mt.c (mt_reloc_type_lookup, mt_info_to_howto_rela,
93 mt_elf_relocate_hi16, mt_final_link_relocate, mt_relocate_section,
94 mt_elf_howto_table): Renamed, adjusted.
95 (mt_elf_gc_mark_hook, mt_elf_gc_sweep_hook, mt_elf_check_relocs,
96 elf32_mt_machine, mt_elf_object_p, mt_elf_set_private_flags,
97 mt_elf_copy_private_bfd_data, mt_elf_merge_private_bfd_data,
98 mt_elf_print_private_bfd_data): Renamed, adjusted.
99 (TARGET_BIG_SYM, TARGET_BIG_NAME, ELF_ARCH, ELF_MACHINE_CODE,
100 ELF_MAXPAGESIZE, elf_info_to_howto, elf_backend_relocate_section,
101 bfd_elf32_bfd_reloc_type_lookup, elf_backend_gc_mark_hook,
102 elf_backend_gc_sweep_hook, elf_backend_check_relocs,
103 eld_backend_object_p, bfd_elf32_bfd_set_private_flags,
104 bfd_elf32_bfd_copy_private_bfd_data,
105 bfd_elf32_bfd_merge_private_bfd_data,
106 bfd_elf32_bfd_print_private_bfd_data): Adjusted.
107 * libbfd.h: Regenerated.
108 * reloc.c (BFD_RELOC_MT_PC16, BFD_RELOC_MT_HI16,
109 BFD_RELOC_MT_LO16, BFD_RELOC_MT_GNU_VTINHERIT,
110 BFD_RELOC_MT_GNU_VTENTRY, BFD_RELOC_MT_PCINSN8): Renamed.
111 * targets.c (bfd_elf32_mt_vec): Renamed.
112 (_bfd_target_vector): Adjusted.
114 2005-12-13 H.J. Lu <hongjiu.lu@intel.com>
117 * elf.c (_bfd_elf_setup_sections): Return FALSE if
118 elf_linked_to_section will be set to NULL.
120 * format.c (bfd_check_format_matches): Don't check the default
123 2005-12-13 Alan Modra <amodra@bigpond.net.au>
125 * elf64-ppc.c (ppc64_elf_relocate_section): Force tail calls in
126 shared libs to resolve locally.
128 2005-12-12 Paul Brook <paul@codesourcery.com>
130 * bfd-in2.h: Regenerate.
131 * elf32-arm.c (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PCREL_CALL and
132 BFD_RELOC_ARM_PCREL_JUMP.
133 (check_use_blx): New function.
134 (bfd_elf32_arm_process_before_allocation): Don't allocate glue if
136 (elf32_arm_final_link_relocate): Perform bl<->blx conversion for
137 R_ARM_CALL and R_ARM_THM.
138 (elf32_arm_get_eabi_attr_int): New function.
139 (elf32_arm_size_dynamic_sections): Call check_use_blx.
140 * libbfd.h: Regenerate.
141 * reloc.c: Add BFD_RELOC_ARM_PCREL_CALL and BFD_RELOC_ARM_PCREL_JUMP.
143 2005-12-12 Nathan Sidwell <nathan@codesourcery.com>
145 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES,
146 BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace ms1 with mt.
147 (cpu_mt.lo, elf32-mt.lo): Update target and dependency names.
148 * Makefile.in: Rebuilt.
149 * config.bfd: Replace ms1 arch with mt.
150 * configure.in: Replace ms1 files with mt files.
151 * configure: Rebuilt.
152 * elf32-mt.c: Renamed from elf32-ms1.c. Update include files.
153 * cpu-mt.c: Renamed from cpu-ms1.c.
155 2005-12-12 Alan Modra <amodra@bigpond.net.au>
157 * elf64-ppc.c (ppc64_elf_size_stubs): Don't consider non-ppc64 input.
159 2005-12-10 Alan Modra <amodra@bigpond.net.au>
161 * elflink.c (elf_gc_mark_dynamic_ref_symbol): Use !info-executable
162 to test for linking shared libs, not info->shared.
164 2005-12-08 Alan Modra <amodra@bigpond.net.au>
166 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add emit_stub_syms.
167 (ppc_elf_select_plt_layout): Add emit_stub_syms param, save to htab.
168 (add_stub_sym): New function.
169 (allocate_dynrelocs): Call add_stub_sym.
170 (ppc_elf_size_dynamic_sections): Emit __glink and __glink_PLTresolve
172 * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
174 2005-12-08 Alan Modra <amodra@bigpond.net.au>
176 * reloc.c (enum complain_overflow): Correct comments.
177 (bfd_check_overflow): Combine complain_overflow_bitfield and
178 complain_overflow_signed code.
179 (_bfd_relocate_contents): Likewise.
180 (bfd_howto_32): Use complain_overflow_dont.
181 * elf32-d10v.c (elf_d10v_howto_table): Revert 2002-06-17 change.
182 * bfd-in2.h: Regenerate.
184 2005-12-07 H.J. Lu <hongjiu.lu@intel.com>
186 * elf.c (assign_section_numbers): Remove extra code in the last
189 2005-12-07 H.J. Lu <hongjiu.lu@intel.com>
190 Andreas Schwab <schwab@suse.de>
193 * elf.c (assign_section_numbers): Always use the output section
194 when setting up sh_link for SHF_LINK_ORDER.
196 2005-12-07 Thiemo Seufer <ths@networkno.de>
197 H.J. Lu <hongjiu.lu@intel.com>
200 * bfd-in.h (bfd_elf_record_link_assignment): Add output_bfd
201 and hidden arguments.
203 * bfd.c (bfd_hide_symbol): Removed.
205 * bfd-in2.h: Regenerated.
207 * elflink.c (bfd_elf_record_link_assignment): Handle hidden
208 symbols which were provided by a linker script.
210 2005-12-06 Paul Gilliam <pgilliam@us.ibm.com>
212 * cpu-powerpc.c (bfd_powerpc_archs): Add ppc 750.
214 2005-11-18 Mark Kettenis <kettenis@gnu.org>
216 * elf64-hppa.c (elf64_hppa_section_from_phdr): Create .kernel
217 pseudo-section. Make sure .reg section comes after the proc
218 section it's generated from.
220 2005-12-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
222 * elf32-m32r.c (m32r_elf_sweep_hook): Fix an illegal duplicate check.
223 (m32r_elf_relocate_section): Fix R_M32R_10_PCREL_RELA linkage bug.
224 (m32r_elf_gc_sweep_hook): Likewise.
225 (m32r_elf_check_relocs): Likewise.
227 2005-11-24 Alan Modra <amodra@bigpond.net.au>
229 * elf-bfd.h (_bfd_generic_match_sections_by_type): Don't define.
230 * libbfd-in.h (_bfd_generic_match_sections_by_type): Delete.
231 * libbfd.c (_bfd_generic_match_sections_by_type): Delete.
232 * targets.c (bfd_match_sections_by_type): Don't define.
233 (BFD_JUMP_TABLE_LINK): Remove _bfd_generic_match_sections_by_type.
234 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Likewise.
235 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
236 * bfd-in2.h: Regenerate.
237 * libbfd.h: Regenerate.
239 2005-11-23 Daniel Jacobowitz <dan@codesourcery.com>
240 Thiemo Seufer <ths@networkno.de>
242 * elf32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for
244 (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
245 (bfd_elf32_bfd_reloc_type_lookup): Don't handle
246 BFD_RELOC_16_PCREL_S2.
247 * elf64-mips.c (mips_elf64_howto_table_rel): Use rightshift 2 for
249 (mips_elf64_howto_table_rela): Likewise.
250 (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
251 (bfd_elf64_bfd_reloc_type_lookup): Don't handle
252 BFD_RELOC_16_PCREL_S2.
253 * elfn32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for
255 (elf_mips_howto_table_rela): Likewise.
256 (mips_reloc_map): Map BFD_RELOC_16_PCREL_S2 to R_MIPS_PC16.
257 (bfd_elf32_bfd_reloc_type_lookup): Don't handle
258 BFD_RELOC_16_PCREL_S2.
259 * elfxx-mips.c: Formatting fixes.
260 (mips_elf_calculate_relocation): Handle R_MIPS_GNU_REL16_S2
261 and R_MIPS_PC16 identically.
263 2005-11-23 Frederic Riss <frederic.riss@st.com>
265 * elfcode.h (elf_object_p): Delay the setting of start_address
266 until we're sure the backend matches the binary.
268 2005-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
270 * som.c (som_decode_symclass): Decode BSF_WEAK symbols in the same
271 manner as bfd_decode_symclass.
273 2005-11-18 Alan Modra <amodra@bigpond.net.au>
275 * elf64-ppc.c (ppc64_elf_check_relocs): Don't set has_14bit_branch
276 on branches to same section.
278 2005-11-17 Randolph Chung <tausq@debian.org>
280 * elf64-hppa.c (elf64_hppa_object_p): Recognize corefiles under
282 (elf64_hppa_section_from_phdr): New function.
283 (elf_backend_section_from_phdr): Define.
285 2005-11-11 Nick Clifton <nickc@redhat.com>
288 * elfxx-mips.c (mips_elf_calculate_relocation): Ignore an
289 undefined symbol if it is optional.
290 (_bfd_mips_elf_merge_symbol_attribute): Make sure that the
291 optional flag is merged as well as the visibility.
292 * elfxx-mips.h (_bfd_mips_elf_merge_symbol_attribute): Prototype.
293 (elf_backend_merge_symbol_attribute): Define.
295 2005-11-08 Nathan Sidwell <nathan@codesourcery.com>
298 * archures.c (bfd_mach_ms2): Define.
299 * cpu-ms1.c (arch_info_struct): Add ms2 stanza.
300 * elf32-ms1.c (elf32_ms1_machine): Add ms2 case.
301 (ms1_elf_merge_private_bfd_data): Remove unused variables. Add
302 correct merging logic, with workaround.
303 (ms1_elf_print_private_bfd_data): Add ms2 case.
304 * reloc.c (BFD_RELOC_MS1_PCINSN8): Add ms2 specific reloc.
305 * libbfd.h: Regenerated.
306 * bfd-in2.h: Regenerated.
308 2005-11-07 Steve Ellcey <sje@cup.hp.com>
310 * warning.m4 (AM_BINUTILS_WARNINGS): Default to empty string
311 if compiler is not GCC.
312 * configure: Regenerate
314 2005-11-07 Steve Ellcey <sje@cup.hp.com>
316 * configure: Regenerate after modifying bfd/warning.m4.
318 2005-11-07 Steve Ellcey <sje@cup.hp.com>
320 * configure.host (ia64-*-hpux*): Set _LARGEFILE64_SOURCE.
322 2005-11-03 Daniel Jacobowitz <dan@codesourcery.com>
324 * configure.in: Check for fopen64.
325 * libbfd-in.h (real_fopen): New prototype.
326 * configure, config.in, libbfd.h: Regenerated.
327 * bfdio.c (real_fopen): New function.
328 * opncls.c (bfd_fopen, bfd_fill_in_gnu_debuglink_section): Use it.
329 * cache.c (bfd_open_file): Likewise.
331 2005-11-03 Thiemo Seufer <ths@networkno.de>
333 * elfxx-mips.c (mips_elf_calculate_relocation): Handle only
334 forced local symbols here.
335 (mips_elf_create_dynamic_relocation): Likewise.
336 (_bfd_mips_elf_finish_dynamic_symbol): Fix typo in comment.
338 2005-11-03 Alan Modra <amodra@bigpond.net.au>
340 * elf.c (elf_fake_sections): When calculating tbss size, just use
342 (assign_file_positions_for_segments): Likewise.
343 * elflink.c (bfd_elf_final_link): Likewise.
344 (elf_reloc_link_order): Correct comment.
346 2005-11-02 Alan Modra <amodra@bigpond.net.au>
349 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Add required
352 2005-10-29 H.J. Lu <hongjiu.lu@intel.com>
354 * Makefile.am: Run "make dep-am".
355 * Makefile.in: Regenerated.
357 * dep-in.sed: Replace " ./" with " ".
359 2005-10-29 H.J. Lu <hongjiu.lu@intel.com>
361 * hpux-core.c: Include <machine/reg.h> only if HPUX_CORE is
363 * osf-core.c: Include <sys/core.h> only if OSF_CORE is defined.
364 * sco5-core.c: Include <sys/paccess.h> and <sys/region.h> only
365 if SCO5_CORE is defined.
367 2005-10-29 Mark Kettenis <kettenis@gnu.org>
369 * Makefile.am: Run "make dep-am".
370 * Makefile.in: Regenerate.
372 2005-10-28 Joel Brobecker <brobecker@adacore.com>
374 From Eric Botcazou <botcazou@adacore.com>
375 * coffcode.h (coff_compute_section_file_positions): Fix small
376 error in preprocessor directives.
378 2005-10-28 Joel Brobecker <brobecker@adacore.com>
380 Mostly from Eric Botcazou <botcazou@adacore.com>
381 * rs6000-core.c: ANSIfy all function definitions.
382 Add missing function prototypes.
383 (ptr_to_uint): New type.
384 (rs6000coff_core_p): Use it as intermediate step in casts.
385 (rs6000coff_core_file_matches_executable_p): Likewise.
386 * xcoff-target.h (rs6000coff_core_p): Fix prototype.
387 (rs6000coff_core_file_matches_executable_p): Likewise.
389 2005-10-28 H.J. Lu <hongjiu.lu@intel.com>
392 * aoutx.h (NAME (aout, machine_type)): Handle
393 bfd_mach_sparc_v8plus, bfd_mach_sparc_v8plusa,
394 bfd_mach_sparc_v8plusb, bfd_mach_sparc_v9, bfd_mach_sparc_v9a
395 and bfd_mach_sparc_v9b.
397 2005-10-28 Hans-Peter Nilsson <hp@axis.com>
400 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_32>: Set
401 complain_on_overflow field to complain_overflow_dont.
403 2005-10-27 Alan Modra <amodra@bigpond.net.au>
406 * cache.c (enum cache_flag): New.
407 (close_one): Save file mtime.
408 (bfd_cache_lookup): Add flag arg, adjust all users.
409 (bfd_cache_lookup_worker): Likewise.
410 (cache_btell): Use CACHE_NO_OPEN and return abfd->where if file
412 (cache_bflush): Similarly, and return success of file not open.
413 (cache_bseek): Use CACHE_NO_SEEK if SEEK_SET or SEEK_END.
414 (cache_bstat): Use CACHE_NO_SEEK_ERROR.
416 * bfdwin.c (bfd_get_file_window): Seek into file in place of
417 using bfd_cache_lookup.
419 * cache.c (BFD_CACHE_MAX_OPEN): Make private to this file.
420 (bfd_last_cache, bfd_cache_lookup, bfd_cache_lookup_worker): Likewise.
421 * libbfd-in.h (bfd_cache_lookup_worker, bfd_last_cache): Delete.
422 * libbfd.h: Regenerate.
424 * hppabsd-core.c (hppabsd_core_core_file_p): Use bfd_stat, not fstat.
425 * sco5-core.c (sco5_core_file_p): Likewise.
426 * trad-core.c (trad_unix_core_file_p): Likewise.
428 * cache.c: Reorganize file to avoid forward reference.
430 2005-10-26 Alan Modra <amodra@bigpond.net.au>
432 * cache.c (bfd_cache_lookup_worker): Don't abort on failing to
434 (cache_btell, cache_bseek, cache_bflush, cache_bstat): Return -1 on
435 bfd_cache_lookup failure.
436 (cache_bread, cache_bwrite): Return 0 on the same.
437 * bfdwin.c (bfd_get_file_window): Likewise.
438 * hppabsd-core.c (hppabsd_core_core_file_p): Likewise.
439 * sco5-core.c (sco5_core_file_p): Likewise.
440 * trad-core.c (trad_unix_core_file_p): Likewise.
442 2005-10-26 Alan Modra <amodra@bigpond.net.au>
444 * cache.c (bfd_cache_lookup_worker): Use bfd_error_handler
445 rather than bfd_perror. Print file name. Internationalise.
447 2005-10-26 Alan Modra <amodra@bigpond.net.au>
449 * cache.c (bfd_open_file): Set bfd_error_system_call on failure
451 (bfd_cache_lookup_worker): Remove check that file pos is in
452 unsigned long range. Print system error before aborting.
454 2005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
456 * Makefile.am: Add rules for coff-z80 and cpu-z80.
457 * Makefile.in: Regenerated.
458 * archures.c: Add bfd_arch_z80 and support for it.
459 * coffcode.h(coff_set_arch_mach_hook): Add case Z80MAGIC.
460 (coff_set_flags): Add case bfd_arch_z80.
461 * config.bfd: Add z80coff_vec.
462 * configure.in: Add z80coff_vec.
463 * reloc.c: Add BFD_RELOC_Z80_DISP8
464 * targets.c: Add z80coff_vec.
465 * coff-z80.c: New file
466 * cpu-z80.c: New file
467 * configure: Regenerated.
468 * libbfd.h: Regenerated.
469 * bfd-in2.h: Regenerated.
471 2005-10-26 Alan Modra <amodra@bigpond.net.au>
474 * elf-bfd.h (elf_backend_copy_indirect_symbol): Replace pointer to
475 elf_backend_data with pointer to bfd_link_info.
476 (_bfd_elf_link_hash_copy_indirect): Likewise.
477 * elf.c (_bfd_elf_link_hash_copy_indirect): Likewise. Handle
478 direct and indirect symbols both having dynamic link info.
479 * elf32-arm.c (elf32_arm_copy_indirect_symbol): Likewise.
480 * elf32-hppa.c (elf32_hppa_copy_indirect_symbol): Likewise.
481 * elf32-i386.c (elf_i386_copy_indirect_symbol): Likewise.
482 * elf32-m32r.c (m32r_elf_copy_indirect_symbol): Likewise.
483 * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Likewise.
484 * elf32-s390.c (elf_s390_copy_indirect_symbol): Likewise.
485 * elf32-sh.c (sh_elf_copy_indirect_symbol): Likewise.
486 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
487 * elf64-s390.c (elf_s390_copy_indirect_symbol): Likewise.
488 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Likewise.
489 * elfxx-ia64.c (elfNN_ia64_hash_copy_indirect): Likewise.
490 * elfxx-mips.c (_bfd_mips_elf_copy_indirect_symbol): Likewise.
491 * elfxx-sparc.c (_bfd_sparc_elf_copy_indirect_symbol): Likewise.
492 * elflink.c: Adjust all calls to bed->elf_backend_copy_indirect_symbol.
493 * elfxx-mips.h (_bfd_mips_elf_copy_indirect_symbol): Update prototype.
494 * elfxx-sparc.h (_bfd_sparc_elf_copy_indirect_symbol): Likewise.
496 2005-10-25 Alan Modra <amodra@bigpond.net.au>
498 * po/SRC-POTFILES.in: Regenerate.
499 * po/bfd.pot: Regenerate.
501 2005-10-24 Jie Zhang <jie.zhang@analog.com>
503 * elf32-bfin.c (bfd_bfin_elf32_create_embedded_relocs): Fix signedness
506 2005-10-24 Bernd Schmidt <bernd.schmidt@analog.com>
508 * elf32-bfin.c (bfin_howto_table): Set src_mask to 0 for all relocs.
509 (bfin_imm16_reloc): Always add in the addend. Don't fetch existing
510 contents from section.
511 (bfin_relocate_section): Rework so as to not call special_functions.
512 Handle the relocation stack here. Treat pcrel24 relocs specially.
514 2005-10-24 Alan Modra <amodra@bigpond.net.au>
516 * elflink.c (elf_link_input_bfd): Don't use linker_mark and
517 SEC_EXCLUDE to test for sections dropped from output. Instead,
518 use bfd_section_removed_from_list on normal sections. Don't
519 attempt to handle symbols with unknown reserved section indices.
520 * linker.c (_bfd_generic_link_output_symbols): Don't use
521 linker_mark to test for symbols belonging to dropped sections.
522 Do allow absolute symbols.
524 2005-10-24 Alan Modra <amodra@bigpond.net.au>
526 * elf32-i370.c (i370_elf_fake_sections): Don't set SHF_EXCLUDE on
529 2005-10-24 Jan Beulich <jbeulich@novell.com>
531 * cpu-ia64-opc.c (elf64_ia64_operands): Move memory operand out of
532 set of indirect operands.
534 2005-10-24 Alan Modra <amodra@bigpond.net.au>
536 * elf32-ppc.c (ppc_elf_fake_sections): Don't set SHF_EXCLUDE on
539 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
541 * coff-rs6000.c (rs6000coff_vec): Initialize
542 _bfd_init_private_section_data with
543 _bfd_generic_init_private_section_data.
544 (pmac_xcoff_vec): Likewise.
545 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
546 (aix5coff64_vec): Likewise.
548 2005-10-23 H.J. Lu <hongjiu.lu@intel.com>
551 * elf-bfd.h (_bfd_generic_init_private_section_data): New.
552 (_bfd_elf_init_private_section_data): New.
554 * elf.c (elf_fake_sections): Don't set SHF_GROUP for
556 (bfd_elf_set_group_contents): Don't handle relocatable link
558 (assign_section_numbers): If it isn't called by assembler,
559 use the output section of elf_linked_to_section for
561 (_bfd_elf_init_private_section_data): New.
562 (_bfd_elf_copy_private_section_data): Call it.
564 * libbfd-in.h (_bfd_generic_init_private_section_data): New.
566 * libbfd.c (_bfd_generic_init_private_section_data): New.
568 * targets.c (BFD_JUMP_TABLE_COPY): Add
569 _bfd_generic_init_private_section_data.
570 (bfd_init_private_section_data): Likewise.
572 * bfd-in2.h: Regenerated.
573 * libbfd.h: Likewise.
575 2005-10-23 Alan Modra <amodra@bigpond.net.au>
577 * elf64-ppc.c (dec_dynrel_count): Don't report errors for local
578 syms in gc'd sections.
579 (ppc64_elf_edit_opd): Don't adjust reloc counts when NO_OPD_RELOCS.
580 (elf_backend_action_discarded): Define.
581 (ppc64_elf_action_discarded): New function.
583 2005-10-19 Paul Brook <paul@codesourcery.com>
585 * elf32-arm.c (find_arm_elf_section_entry): New function.
586 (get_arm_elf_section_data): Use it.
587 (unrecord_section_with_arm_elf_section_data): Use it.
589 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
591 * coff-rs6000.c (rs6000coff_vec): Initialize
592 _bfd_match_sections_by_type with
593 _bfd_generic_match_sections_by_type.
594 (pmac_xcoff_vec): Likewise.
595 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
596 (aix5coff64_vec): Likewise.
598 2005-10-15 H.J. Lu <hongjiu.lu@intel.com>
601 * elf-bfd.h (_bfd_elf_match_sections_by_type): New.
602 (_bfd_generic_match_sections_by_type): New. Defined.
604 * elf.c (_bfd_elf_match_sections_by_type): New.
606 * libbfd-in.h (_bfd_generic_match_sections_by_type): New.
608 * bfd-in2.h: Regenerated.
609 * libbfd.h: Likewise.
611 * libbfd.c (_bfd_generic_match_sections_by_type): New.
613 * targets.c (BFD_JUMP_TABLE_LINK): Initialize
614 _bfd_match_sections_by_type with
615 _bfd_generic_match_sections_by_type.
616 (bfd_target): Add _bfd_match_sections_by_type.
618 2005-10-08 Paul Brook <paul@codesourcery.com>
620 * elf32-arm.c: Move #include "elf/arm.h" after libbfd.h.
621 (NUM_KNOWN_ATTRIBUTES): Define.
622 (aeabi_attribute, aeabi_attribute_list): Define.
623 (elf32_arm_obj_tdata): Add known_eabi_attributes and
624 other_eabi_attributes.
625 (uleb128_size, is_default_attr, eabi_attr_size,
626 elf32_arm_eabi_attr_size, write_uleb128, write_eabi_attribute,
627 elf32_arm_set_eabi_attr_contents, elf32_arm_bfd_final_link,
628 elf32_arm_new_eabi_attr, attr_strdup, elf32_arm_add_eabi_attr_int,
629 elf32_arm_add_eabi_attr_compat, copy_eabi_attributes,
630 elf32_arm_merge_eabi_attributes): New functions.
631 (elf32_arm_copy_private_bfd_data): Copy EABI object attributes.
632 (elf32_arm_fake_sections): Handle .ARM.attributes.
633 (elf32_arm_parse_attributes): New function.
634 (elf32_arm_section_from_shdr): Use it.
635 (bfd_elf32_bfd_final_link): Define.
637 2005-10-06 Daniel Jacobowitz <dan@codesourcery.com>
639 * elf32-arm.c (elf32_arm_check_relocs): Avoid aliasing warnings from
641 (elf32_arm_size_dynamic_sections): Likewise.
642 * ecofflink.c (bfd_ecoff_debug_one_external): Likewise.
643 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
644 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
645 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
646 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
647 * elf32-s390.c (elf_s390_check_relocs): Likewise.
648 (elf_s390_size_dynamic_sections): Likewise.
649 * elf32-sh.c (sh_elf_check_relocs): Likewise.
650 * elf64-ppc.c (ppc64_elf_check_relocs, dec_dynrel_count)
651 (ppc64_elf_size_dynamic_sections): Likewise.
652 * elf64-s390.c (elf_s390_check_relocs): Likewise.
653 (elf_s390_size_dynamic_sections): Likewise.
654 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Likewise.
655 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
656 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
657 * ieee.c (ieee_slurp_section_data): Likewise.
658 * oasys.c (oasys_slurp_section_data): Likewise.
660 2005-10-04 Bob Wilson <bob.wilson@acm.org>
662 * archive.c: Add missing SUBSECTION for documentation.
665 * corefile.c: Likewise.
666 * format.c: Likewise.
668 * libbfd.c: Likewise.
669 * opncls.c: Likewise.
670 * elf.c: Remove blank line after SECTION heading.
671 * reloc.c: Change "howto manager" SECTION to a SUBSECTION.
673 2005-10-04 Nick Clifton <nickc@redhat.com>
675 * elf32-arm.c (get_arm_elf_section_data): Cache the last pointer
676 matched so that the typical case of scanning for the previous
677 section to last one can be handled quickly.
679 2005-10-03 David Heine <dlheine@tensilica.com>
681 * elf32-xtensa.c (relocations_reach): Skip range check for
684 2005-10-03 Alan Modra <amodra@bigpond.net.au>
686 * elf.c (_bfd_elf_get_synthetic_symtab): Set BSF_GLOBAL on
689 2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
691 * Makefile.am: Run "make dep-am".
692 * Makefile.in: Regenerated.
693 * aclocal.m4: Likewise.
695 2005-09-30 Catherine Moore <clm@cm00re.com>
697 * Makefile.am: Bfin support.
698 * Makefile.in: Regenerated.
699 * aclocal.m4: Regenerated.
700 * archures.c (bfd_mach_bfin): New.
701 (bfd_arch_bfin): New.
702 bfd-in.h (bfd_bfin_elf32_create_embedded_relocs): New.
703 * bfd-in2.h: Regenerated.
704 * config.bfd: Bfin support.
705 * configure: Regenerated.
706 * configure.in: Bfin support.
707 * libbfd.h: Regenerated.
708 * reloc.c: Add BFD relocations for Bfin.
709 * targets.c (bfd_elf32_bfin_vec): New.
710 * cpu-bfin.c: New file.
711 * elf32-bfin.c: New file.
713 2005-09-30 Alan Modra <amodra@bigpond.net.au>
715 * elf64-ppc.c (ppc_type_of_stub): Check both func desc and func
716 entry sym before deciding no stub is needed.
717 (ppc64_elf_size_stubs): When calculating branch destination,
718 don't use func desc sym for old ABI objects unless func entry
721 2005-09-28 H.J. Lu <hongjiu.lu@intel.com>
724 * elf-bfd.h (_bfd_elf_setup_group_pointers): Renamed to ...
725 (_bfd_elf_setup_sections): This.
727 * elfcode.h (elf_object_p): Likewise.
729 * elf.c (_bfd_elf_setup_sections): Process SHF_LINK_ORDER.
730 (_bfd_elf_copy_private_section_data): Likewise.
732 2005-09-28 H.J. Lu <hongjiu.lu@intel.com>
734 * elflink.c (elf_fixup_link_order): Report locations for mixed
735 ordered and unordered input sections.
737 2005-09-22 James E. Wilson <wilson@specifix.com>
739 * dwarf2.c (struct funcinfo): Delete nesting_level field.
740 (lookup_address_in_function_table): Delete code to set funcinfo
741 caller_func field. Delete local curr_func.
742 (scan_unit_for_symbols): New locals nested_funcs, nested_funcs_size.
743 Delete code setting funcinfo nesting_level field. Add code to set
744 funcinfo caller_func field.
746 2005-09-20 James E. Wilson <wilson@specifix.com>
748 * dwarf2.c (find_abstract_instance_name): Don't early exit when name
749 set. For DW_AT_name case, only set name if not already set. Handle
750 DW_AT_MIPS_linkage_name.
752 2005-09-20 Alan Modra <amodra@bigpond.net.au>
754 * elflink.c (_bfd_elf_merge_symbol): Simplify.
756 2005-09-19 Alan Modra <amodra@bigpond.net.au>
758 * elf64-ppc.c (ppc_build_one_stub): Replace assertion that long
759 branch offset is in range with an error. Print full stub name on
761 (ppc_size_one_stub): Print full stub name on errors.
762 (group_sections): Warn if section size exceeds group size.
763 (ppc64_elf_size_stubs): Continue relaxing when stub types change.
765 2005-09-09 Kevin Buettner <kevinb@redhat.com>
767 * elf32-am33lin.c (bfd.h, sysdep.h, elf-bfd.h, elf/mn10300.h):
769 (elf32_am33lin_grok_prstatus, elf32_am33lin_grok_psinfo): New
771 (elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
773 2005-09-09 Richard Earnshaw <richard.earnshaw@arm.com>
775 * elf32-arm.c (elf32_arm_section_from_shdr): Accept SHT_ARM_PREEMPTMAP
776 and SHT_ARM_ATTRIBUTES.
778 2005-09-08 H.J. Lu <hongjiu.lu@intel.com>
780 * elflink.c (elf_get_linked_section_vma): Fix a typo in comment.
781 * elfxx-ia64.c (elf_backend_link_order_error_handler): Likewise.
783 2005-09-08 H.J. Lu <hongjiu.lu@intel.com>
786 * elflink.c (elf_link_add_object_symbols): Abort for
787 --just-symbols on DSO.
789 2005-09-08 Paul Brook <paul@codesourcery.com>
791 * reloc.c: Rename BFD_RELOC_ARM_SMI to BFD_RELOC_ARM_SMC.
792 * bfd-in2.h: Regenerate.
793 * libbfd.h: Regenerate.
795 2005-09-06 H.J. Lu <hongjiu.lu@intel.com>
798 * elflink.c (_bfd_elf_merge_symbol): Don't check undefined
799 symbol introduced by "ld -u" for TLS.
801 2005-09-02 Paul Brook <paul@codesourcery.com>
803 * libbdf.h: Regenerate.
804 * bfd-in2.h: Regenerate.
805 * reloc.c: Add BFD_RELOC_ARM_T32_CP_OFF_IMM and
806 BFD_RELOC_ARM_T32_CP_OFF_IMM_S2.
808 2005-09-01 Dmitry Diky <diwil@spec.ru>
810 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Do not adjust
811 local symbols and move it to
812 (msp430_elf_relax_adjust_locals): New function - walk over the
813 sections in the bfd and adjust relocations as necessary.
815 2005-08-31 DJ Delorie <dj@redhat.com>
817 * elf32-i386.c (elf_i386_check_relocs): Don't cast a unary &
818 address operator, as that breaks GCC's strict aliasing rules.
819 (elf_i386_size_dynamic_sections): Avoid the need for type
821 * elf64-x86-64.c (elf_x86_64_check_relocs): Don't cast a unary
822 & address operator, as that breaks GCC's strict aliasing
824 (elf_x86_64_size_dynamic_sections): Avoid the need for type
827 2005-08-30 Phil Edwards <phil@codesourcery.com>
829 * config.bfd (i[3-7]86-*-vxworks): Match vxworks* instead.
831 2005-08-29 H.J. Lu <hongjiu.lu@intel.com>
834 * elfxx-ia64.c (allocate_fptr): Check undefined symbol.
836 2005-08-29 Steven J. Hill <sjhill@realitydiluted.com>
838 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Initialise
839 'value' to avoid compile time warning message.
841 2005-08-26 Christian Groessler <chris@groessler.org>
843 * coff-z8k.c: (r_jr, r_disp7, r_callr): Fix src_mask and dst_mask
845 (coff_z8k_select_reloc): Remove.
846 (SELECT_RELOC): Remove.
847 (coff_z8k_reloc_type_lookup): New function.
848 (coff_bfd_reloc_type_lookup): Define.
849 * configure.in: Add cofflink.lo to z8kcoff_vec.
850 * configure: Regenerate.
851 * reloc.c: (bfd_reloc_code_type): Add z8k relocations.
852 (bfd_install_relocation): Don't clear reloc_entry->addend for
854 * bfd-in2.h: Regenerate.
855 * libbfd.h: Regenerate.
857 2005-08-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
859 * elf32-sh.c (sh_elf_get_flags_from_mach): Fix off-by-one error.
861 2005-08-24 H.J. Lu <hongjiu.lu@intel.com>
864 * elf-hppa.h (elf_hppa_relocate_section): Print out the name
865 of unresolvable relocation.
866 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
867 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
868 * elf32-i386.c (elf_i386_relocate_section): Likewise.
869 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
870 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
871 * elf32-s390.c (elf_s390_relocate_section): Likewise.
872 * elf32-sh.c (sh_elf_relocate_section): Likewise.
873 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
874 * elf64-s390.c (elf_s390_relocate_section): Likewise.
875 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
876 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
877 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
879 2005-08-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
881 * config.bfd: Add bfd_elf32_shnbsd_vec and bfd_elf32_shlnbsd_vec
882 to targ_selvecs for sh5*-*-netbsd* and sh64*-*-netbsd*.
884 2005-08-18 Alan Modra <amodra@bigpond.net.au>
886 * coff-a29k.c: Delete.
887 * cpu-a29k.c: Delete.
888 * Makefile.am: Remove mention of a29k files.
889 * aoutf1.h: Remove a29k support.
891 * archures.c: Likewise.
892 * coffcode.h: Likewise.
893 * config.bfd: Likewise.
894 * configure.in: Likewise.
896 * mipsbsd.c: Likewise.
898 * sparclynx.c: Likewise.
899 * targets.c: Likewise.
900 * Makefile.in: Regenerate.
901 * configure: Regenerate.
902 * bfd-in2.h: Regenerate.
903 * po/SRC-POTFILES.in: Regenerate.
905 2005-08-18 Alan Modra <amodra@bigpond.net.au>
907 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Warn on
908 zero size dynamic variables.
909 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
910 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
911 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
912 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
913 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
914 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
915 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
916 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
917 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
918 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
919 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
920 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
921 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
922 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
923 * elf64-x86-64.c (elf64_x86_64_adjust_dynamic_symbol): Likewise.
924 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
926 2005-08-17 H.J. Lu <hongjiu.lu@intel.com>
929 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Use section lma
931 (_bfd_dwarf2_find_line): Likewise.
933 2005-08-17 Alan Modra <amodra@bigpond.net.au>
935 * elf64-mmix.c (mmix_elf_add_symbol_hook): Mark reg section
937 (mmix_elf_final_link): Check that section hasn't already been
938 removed before removing.
939 * mmo.c (mmo_scan): Mark reg contents section SEC_LINKER_CREATED.
940 (mmo_canonicalize_symtab): Likewise for reg section.
942 2005-08-17 Alan Modra <amodra@bigpond.net.au>
944 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Move assert later.
945 * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Cope with being called
946 without any got section.
948 2005-08-17 Danny Smith <dannysmith@users.sourceforge.net>
950 * cofflink.c (_bfd_coff_generic_relocate_section): Correct
953 2005-08-17 Alan Modra <amodra@bigpond.net.au>
955 * elflink.c (_bfd_elf_define_linkage_sym): Don't call
956 bfd_elf_link_record_dynamic_symbol. Call elf_backend_hide_symbol.
957 (_bfd_elf_link_renumber_dynsyms): Formatting.
958 (struct elf_gc_sweep_symbol_info): New.
959 (elf_gc_sweep_symbol): Rewrite.
960 (elf_gc_sweep): Adjust params and elf_gc_sweep_symbol call.
961 Call _bfd_elf_link_renumber_dynsyms.
962 (bfd_elf_gc_sections): Adjust elf_gc_sweep call.
964 2005-08-16 Alan Modra <amodra@bigpond.net.au>
966 * elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count
969 2005-08-15 Bob Wilson <bob.wilson@acm.org>
971 * elf32-xtensa.c (ELF_MACHINE_CODE, ELF_MACHINE_ALT1): Swap values
972 of EM_XTENSA and EM_XTENSA_OLD.
974 2005-08-16 Alan Modra <amodra@bigpond.net.au>
976 * elf-bfd.h (_bfd_elf_define_linkage_sym): Declare.
977 * elflink.c (_bfd_elf_define_linkage_sym): New function, extracted
979 (_bfd_elf_create_got_section): ..here.
980 (_bfd_elf_link_create_dynamic_sections): Call it for _DYNAMIC.
981 (_bfd_elf_create_dynamic_sections): ..and _PROCEDURE_LINKAGE_TABLE_.
982 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Use
983 _bfd_elf_define_linkage_sym.
984 * elf32-frv.c (_frv_create_got_section): Likewise.
985 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
987 2005-08-15 Paul Brook <paul@codesourcery.com>
989 * elf32-arm.c (elf32_arm_howto_table_1): Make R_ARM_PLT32 the same as
992 2005-08-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
995 * elf64-hppa.c (elf64_hppa_special_sections): Add flag definitions for
996 .plt, .dlt, .sdata, .sbss and .tbss.
998 2005-08-12 Dmitry Diky <diwil@spec.ru>
1000 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust relocations
1001 referenced by .section + DISPLACEMENT.
1003 2005-08-10 James E. Wilson <wilson@specifix.com>
1005 * dwarf2.c (scan_unit_for_symbols, case DT_AT_location): Verify that
1006 DW_OP_addr is only opcode in location before using it.
1008 2005-08-09 H.J. Lu <hongjiu.lu@intel.com>
1010 * elfxx-ia64.c (elfNN_ia64_final_link): Reset gp.
1012 2005-08-09 Rodney Brown <rbrown@bravurasolutions.com.au>
1013 Nick Clifton <nickc@redhat.com>
1015 * aix5ppc-core.c (xcoff64_core_p): Constify return_value
1016 variable. Also, do not use core_hdr macro as it evaluates to a
1017 cast of an lvalue which is no longer supported by GCC 4.0.
1019 2005-08-08 Eric Dönges <Eric.Doenges@betty-tv.com>
1021 * archures.c (bfd_mach_msp21): New MSP430 machine number.
1022 * bfd-in2.h: Regenerate.
1023 * cpu-msp430.c (arch_info_struct): Add support for msp430x21xx
1026 2005-08-07 Nick Clifton <nickc@redhat.com>
1027 Paul Brook <paul@codesourcery.com>
1030 * elf32-arm.c (bfd_elf32_close_and_cleanup): Define.
1031 (elf32_arm_close_and_cleanup): New function - walk over the
1032 sections in the bfd that is being closed removing them from the
1033 list of recorded sections.
1034 (unrecord_section_via_map_over_sections): New helper function.
1035 (record_section_with_arm_elf_section_data): Call bfd_malloc
1036 instead of bfd_alloc. Remove unneeded abfd parameter.
1037 (elf32_arm_new_section_hook): Do not pass bfd to
1038 record_section_with_arm_elf_section_data.
1040 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Only define if not
1041 already defined by the target.
1043 2005-08-05 Fred Fish <fnf@specifix.com>
1045 * dwarf2.c (read_rangelist): Use addr_size instead of offset_size
1046 to determine how many bytes to read from each rangelist entry.
1048 2005-08-05 H.J. Lu <hongjiu.lu@intel.com>
1050 * bfd.c (bfd_hide_symbol): New.
1051 * bfd-in2.h: Regenerated.
1053 2005-08-04 H.J. Lu <hongjiu.lu@intel.com>
1055 * elf64-x86-64.c (elf64_x86_64_merge_symbol): When mixing a
1056 large common symbol and a normal common symbol, always turn
1057 the large common symbol into a normal one.
1059 2005-08-04 Alan Modra <amodra@bigpond.net.au>
1061 * elf32-ppc.c (struct elf_linker_section): Replace sym_val field
1063 (ppc_elf_relocate_section): Adjust for above.
1064 (create_sdata_sym): New function.
1065 (ppc_elf_create_linker_section): Call it.
1066 (ppc_elf_check_relocs): Correct has_sda_refs and non_got_refs.
1067 Create sdata syms for all SDA relocs.
1068 (ppc_elf_adjust_dynamic_symbol): Don't special case _SDA_BASE_
1070 (ppc_elf_set_sdata_syms): Delete.
1071 * elflink.c (bfd_elf_size_dynamic_sections): Don't create DT_INIT
1072 and DT_FINI tags unless associated section has input.
1073 (bfd_elf_set_symbol, _bfd_elf_provide_symbol): Delete.
1074 (_bfd_elf_provide_section_bound_symbols): Delete.
1075 * bfd-in.h (_bfd_elf_provide_symbol): Delete.
1076 (_bfd_elf_provide_section_bound_symbols): Delete.
1077 * bfd-in2.h: Regenerate.
1079 2005-08-04 Alan Modra <amodra@bigpond.net.au>
1081 * elflink.c (fix_syms, _bfd_elf_fix_excluded_sec_syms): Move to..
1082 * linker.c (fix_syms, _bfd_fix_excluded_sec_syms): ..here.
1083 * bfd-in.h (_bfd_fix_excluded_sec_syms): Rename.
1084 * bfd-in2.h: Regenerate.
1086 2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
1088 * elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got
1089 only if it isn't NULL.
1091 2005-08-03 H.J. Lu <hongjiu.lu@intel.com>
1093 * elf32-i386.c (elf_howto_table): Undo the overflow change for
1094 R_386_PC16 made on 2005-07-18.
1096 * elf64-x86-64.c (x86_64_elf_howto_table): Undo the overflow
1097 change for R_X86_64_PC16 made on 2005-07-18.
1099 2005-08-03 Alan Modra <amodra@bigpond.net.au>
1101 * elf32-ppc.c (struct ppc_elf_link_hash_table): Remove hgot. Use
1102 elf.hgot throughout file.
1104 2005-08-03 Alan Modra <amodra@bigpond.net.au>
1106 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Correct value of
1107 _GLOBAL_OFFSET_TABLE_ for > 32k GOT.
1109 2005-08-02 Andreas Schwab <schwab@suse.de>
1111 * elfxx-ia64.c (struct elfNN_ia64_allocate_data): Add only_got.
1112 (elfNN_ia64_relax_section): Reallocate .rela.got when .got has
1114 (allocate_dynrel_entries): Look only at GOT relocations when
1116 (elfNN_ia64_size_dynamic_sections): Set only_got to false before
1117 calling allocate_dynrel_entries.
1119 2005-08-02 Nick Clifton <nickc@redhat.com>
1122 * elf32-arm.c (struct _arm_elf_section_data): Turn into a typedef
1123 and make the mapcount field unsigned.
1124 (struct section_list): New: Used to keep track of which sections
1125 have an _arm_elf_section_data structure.
1126 (record_section_with_arm_elf_section_data): New function.
1127 (get_arm_elf_section_data): New function.
1128 (unrecord_section_with_arm_elf_section_data): New function.
1129 (elf32_arm_output_symbol_hook): Use get_arm_elf_section_data.
1130 (elf32_arm_new_section_hook): Call
1131 record_section_with_arm_elf_section_data.
1132 (elf32_arm_write_section): Use get_arm_elf_section_data and
1133 unrecord_section_with_arm_elf_section_data.
1135 2005-08-01 Richard Sandiford <richard@codesourcery.com>
1137 * elfxx-mips.c (mips_mach_extends_p): Treat MIPS64 as an extension
1138 of MIPS32 and MIPS64r2 as an extension of MIPS32r2.
1140 2005-07-30 David Daney <ddaney@avtrex.com>
1142 * elflink.c (elf_gc_sweep): Set dynsymcount to correct value.
1144 2005-07-29 David Daney <ddaney@avtrex.com>
1146 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Ignore _gp_disp
1147 if it is in the *ABS* section.
1149 2005-07-29 Paul Brook <paul@codesourcery.com>
1151 * reloc.c: Add BFD_RELOC_ARM_T32_ADD_PC12.
1152 * bfd-in2.h: Regenerate.
1153 * libbfd.h: Regenerate.
1155 2005-07-29 Paul Brook <paul@codesourcery.com>
1157 * reloc.c (BFD_RELOC_ARM_T32_IMM12): Add.
1158 * bfd-in2.h: Regeenrate.
1159 * libbfd.h: Regenerate.
1161 2005-07-29 Pavel Kankovsky <peak@argo.troja.mff.cuni.cz>
1163 * peXXigen.c (pe_print_edata): Compute the size of the export
1164 table from the size field in the DataDictionary and not the size
1165 of the section. Some linkers embed the export table inside a
1168 2005-07-29 Alan Modra <amodra@bigpond.net.au>
1170 * elf-bfd.h (struct elf_backend_data): Add action_discarded.
1171 (enum action_discarded): Move from..
1172 * elflink.c (enum action_discarded): ..here.
1173 (_bfd_elf_default_action_discarded): Rename from elf_action_discarded.
1174 Remove target specific section checks.
1175 (elf_link_input_bfd): Adjust.
1176 * elfxx-target.h (elf_backend_action_discarded): Define.
1177 (elfNN_bed): Init new field.
1178 * bfd-in.h (_bfd_elf_default_action_discarded): Declare.
1179 * bfd-in2.h: Regenerate.
1180 * elf-hppa.h (elf_hppa_action_discarded): New function.
1181 * elf32-hppa.c (elf_backend_action_discarded): Define.
1182 * elf64-hppa.c (elf_backend_action_discarded): Define.
1183 * elf32-ppc.c (ppc_elf_action_discarded): New function.
1184 (elf_backend_action_discarded): Define.
1186 2005-07-27 Alan Modra <amodra@bigpond.net.au>
1188 * elflink.c (fix_syms): Handle symbols defined in input sections.
1190 2005-07-27 Jan Beulich <jbeulich@novell.com>
1192 * elf64-x86-64.c (R_X86_64_standard, R_X86_64_vt_offset): New.
1193 (elf64_x86_64_info_to_howto): Use them.
1195 2005-07-27 Alan Modra <amodra@bigpond.net.au>
1197 * elflink.c (_bfd_elf_merge_symbol): Skip weak redefinition
1198 regardless of strength of previous definition.
1200 2005-07-26 Alan Modra <amodra@bigpond.net.au>
1202 * elflink.c (elf_gc_mark_dynamic_ref_symbol): Handle -shared.
1203 (bfd_elf_gc_sections): Allow -gc-sections when -shared.
1204 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Correct for -shared.
1206 2005-07-26 Alan Modra <amodra@bigpond.net.au>
1208 * elflink.c (elf_gc_sweep): Move gcc_except_table code..
1209 (bfd_elf_gc_sections): ..to here.
1211 2005-07-25 DJ Delorie <dj@redhat.com>
1213 * reloc.c: Remove unused M32C relocs, add BFD_RELOC_M32C_HI8.
1214 * libbfd.h: Regenerate.
1215 * bfd-in2.h: Regenerate.
1217 * elf32-m32c.c (m32c_elf_howto_table): Add R_M32C_8, R_M32C_LO16,
1218 R_M32C_HI8, R_M32C_HI16.
1219 (m32c_reloc_map): Likewise.
1220 (m32c_elf_relocate_section): Add R_M32C_HI8 and R_M32C_HI16.
1222 2005-07-25 Jan Hubicka <jh@suse.cz>
1223 H.J. Lu <hongjiu.lu@intel.com>
1225 * elf-bfd.h (_bfd_elf_large_com_section): New.
1226 * elf.c (_bfd_elf_large_com_section): New. Defined.
1228 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): New.
1229 (elf64_x86_64_elf_section_from_bfd_section): New.
1230 (elf64_x86_64_symbol_processing): New.
1231 (elf64_x86_64_common_definition): New.
1232 (elf64_x86_64_common_section_index): New.
1233 (elf64_x86_64_common_section): New.
1234 (elf64_x86_64_merge_symbol): New.
1235 (elf64_x86_64_additional_program_headers): New.
1236 (elf64_x86_64_special_sections): New.
1237 (elf_backend_section_from_bfd_section): New. Defined.
1238 (elf_backend_add_symbol_hook): Likewise.
1239 (elf_backend_common_section_index): Likewise.
1240 (elf_backend_common_section): Likewise.
1241 (elf_backend_common_definition): Likewise.
1242 (elf_backend_merge_symbol): Likewise.
1243 (elf_backend_special_sections): Likewise.
1244 (elf_backend_additional_program_headers): Likewise.
1246 2005-07-25 H.J. Lu <hongjiu.lu@intel.com>
1248 * elf-bfd.h (elf_backend_data): Add common_definition,
1249 common_section_index, common_section, and merge_symbol.
1250 (_bfd_elf_common_definition): New.
1251 (_bfd_elf_common_section_index): New.
1252 (_bfd_elf_common_section): New.
1254 * elf.c (elf_fake_sections): Don't clear sh_flags.
1256 * elflink.c (_bfd_elf_merge_symbol): Call backend merge_symbol
1258 (is_global_data_symbol_definition): Call backend
1259 common_definition instead of checking SHN_COMMON.
1260 (elf_link_add_object_symbols): Likewise.
1261 (elf_link_output_extsym): Call backend common_section_index
1262 for common section index.
1263 (_bfd_elf_common_definition): New.
1264 (_bfd_elf_common_section_index): New.
1265 (_bfd_elf_common_section): New.
1267 * elfxx-target.h (elf_backend_common_definition): New.
1268 (elf_backend_common_section_index): New.
1269 (elf_backend_common_section): New.
1270 (elf_backend_merge_symbol): New.
1271 (elfNN_bed): Initialize common_definition, common_section_index,
1272 common_section, and merge_symbol.
1274 * section.c (BFD_FAKE_SECTION): New.
1275 (STD_SECTION): Use it.
1276 * bfd-in2.h: Regenerated.
1278 2005-07-23 Olaf Hering <olh@suse.de>
1280 * elflink.c (elf_link_input_bfd): Add '\n' for linker einfo
1283 2005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
1285 * config.bfd: Remove i[3-7]86-*-rtemself*.
1286 Remove sparc-*-rtemself*.
1288 2005-07-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1290 * elf32-m32r.c (m32r_elf_check_relocs): Fix pc count for
1293 2005-07-21 Ben Elliston <bje@gnu.org>
1295 * Makefile.am (BFD32_BACKENDS): Remove cf-m68klynx.lo.
1296 (BFD32_BACKENDS): Likewise, remove m68klynx.lo.
1297 (BFD32_BACKENDS_CFILES): Remove cf-m68klynx.c, m68klynx.c.
1298 (cf-m68klynx.lo, m68klynx.lo): Remove targets.
1299 * Makefile.in: Regenerate.
1300 * cf-m68klynx.c: Remove.
1301 * m68klynx.c: Likewise.
1302 * configure.in (m68klynx_aout_vec): Remove vector.
1303 (m68klynx_coff_vec): Likewise.
1304 * configure: Regenerate.
1305 * targets.c (m68klynx_aout_vec): Remove extern.
1306 (m68klynx_coff_vec): Likewise.
1307 (_bfd_target_vector): Remove m68klynx_{aout,coff}_vec.
1308 * po/SRC-POTFILES.in: Remove cf-m68klynx.c, m68klynx.c.
1310 2005-07-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1312 * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_REL32.
1313 (m32r_reloc_map): Likewise.
1314 (m32r_elf_relocate_section): Likewise.
1315 (m32r_elf_gc_sweep_hook): Likewise.
1316 (m32r_elf_check_relocs): Likewise.
1318 2005-07-18 Nick Clifton <nickc@redhat.com>
1320 * reloc.c: Add M32C and MS1 relocs.
1321 * bfd-in2.h: Regenerate.
1322 * libbfd.h: Regenerate.
1324 2005-07-18 Nick Clifton <nickc@redhat.com>
1326 * config.bfd: Move m32c entry to correct location.
1327 * archures.c: Likewise.
1328 * configure.in: Likewise.
1329 * configure: Regenerate.
1330 * targets.c: Move ms1 vector to correct location.
1332 2005-07-18 Jan Beulich <jbeulich@novell.com>
1334 * elf32-i386.c (elf_howto_table): Adjust overflow complaint handler
1336 * elf64-x86-64.c (x86_64_elf_howto_table): Adjust overflow complaint
1337 handler for R_X86_64_PC16, R_X86_64_8, and R_X86_64_DTPOFF.
1339 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
1343 * elflink.c (elf_link_add_object_symbols): Also append the version
1344 name to non-hidden absolute symbols that are functions.
1346 2005-07-16 Alan Modra <amodra@bigpond.net.au>
1348 * elf32-ppc.c (ppc_elf_set_sdata_syms): Return void. Remove hack
1349 for zero size sections. Don't set .sbss syms here.
1350 * elf32-ppc.h (ppc_elf_set_sdata_syms): Adjust prototype.
1352 2005-07-16 Alan Modra <amodra@bigpond.net.au>
1354 * Makefile.am: Run "make dep-am".
1355 * Makefile.in: Regenerate.
1357 2005-07-15 Bob Wilson <bob.wilson@acm.org>
1359 * elf32-xtensa.c (vsprint_msg): Add prototype.
1360 (build_encoding_error_message): Delete. Code moved into....
1361 (elf_xtensa_do_reloc): ....here, and changed to give better
1362 error messages for out of range literals.
1364 2005-07-15 Alan Modra <amodra@bigpond.net.au>
1366 * elflink.c (bfd_elf_record_link_assignment): Remove output_bfd param.
1367 (_bfd_elf_provide_symbol): Allow redefinition of weak syms and those
1368 defined in output sections. Call bfd_elf_record_link_assignment.
1369 * bfd-in.h (bfd_elf_record_link_assignment): Update prototype.
1370 * bfd-in2.h: Regenerate.
1372 2005-07-14 Jim Blandy <jimb@redhat.com>
1374 Add support for m32c-*-elf (Renesas m32c and m16c).
1375 * Makefile.am (ALL_MACHINES): Add cpu-m32c.lo.
1376 (ALL_MACHINES_CFILES): Add cpu-m32c.c.
1377 (BFD32_BACKENDS): Add elf32-m32c.lo.
1378 (BFD32_BACKENDS_CFILES): Add elf32-m32c.c.
1379 (cpu-m32c.lo, elf32-m32c.lo): New rules, generated by 'make dep-am'.
1380 * Makefile.in: Regenerated.
1381 * archures.c (bfd_arch_m32c, bfd_mach_m16c, bfd_mach_m32c): New
1382 arch and mach codes.
1383 (bfd_m32c_arch): New arch info object.
1384 (bfd_archures_list): List bfd_m32c_arch.
1385 * bfd-in2.h: Regenerated.
1386 * config.bfd: Add case for the m32c.
1387 * configure.in: Add case for the m32c.
1388 * configure: Regenerated.
1389 * cpu-m32c.c, elf32-m32c.c: New files.
1390 * libbfd.h: Regenerated.
1391 * targets.c (bfd_elf32_m32c_vec): Declare.
1392 (_bfd_target_vector): List bfd_elf32_m32c_vec.
1394 2005-07-14 Alan Modra <amodra@bigpond.net.au>
1396 * bfd-in.h (_bfd_elf_fix_excluded_sec_syms): Declare.
1397 (_bfd_elf_provide_section_bound_symbols): Remove param name.
1399 * bfd-in2.h: Regenerate.
1400 * elflink.c (bfd_elf_gc_sections): Don't call generic function.
1401 (_bfd_elf_provide_symbol): Formatting.
1402 (_bfd_elf_provide_section_bound_symbols): Remove all hacks, just
1403 create section relative syms.
1404 (fix_syms, _bfd_elf_fix_excluded_sec_syms): New functions.
1405 * elf32-ppc.c (ppc_elf_set_sdata_syms): Use
1406 _bfd_elf_provide_section_bound_symbols.
1407 * reloc.c (bfd_mark_used_section): Delete.
1408 (bfd_generic_gc_sections): Don't call the above.
1410 2005-07-14 Paul Woegerer <paul.woegerer@nsc.com>
1413 * cache.c (bfd_last_cache): Initialise to NULL.
1415 2005-07-14 Daniel Marques <marques@cs.cornell.edu>
1416 Nick Clifton <nickc@redhat.com>
1418 * coff-alpha.c (alpha_ecoff_bad_format_hook): Detect compressed
1419 Alpha binaries and issue a helpful error message.
1420 (alpha_ecoff_swap_reloc_out): Increase maximum allowed internal
1421 symbol index to 15 to allow for binaries produced by DEC
1424 2005-07-13 Steve Ellcey <sje@cup.hp.com>
1426 * bfd.m4 (BFD_NEED_DECLARATION): Remove.
1428 2005-07-12 Alan Modra <amodra@bigpond.net.au>
1430 * elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub
1433 2005-07-12 Alan Modra <amodra@bigpond.net.au>
1435 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Warning fix.
1437 2005-07-12 Alan Modra <amodra@bigpond.net.au>
1439 * elf32-ppc.c (ppc_elf_set_sdata_syms): Correct __sbss_start value.
1441 2005-07-11 H.J. Lu <hongjiu.lu@intel.com>
1443 * elflink.c (_bfd_elf_symbol_refs_local_p): Revert the last
1446 2005-07-08 Paul Koning <pkoning@equallogic.com>
1448 * dwarf2.c (read_address): Check sign_extend_vma to handle targets
1449 where addresses are sign extended.
1451 2005-07-08 Ralf Corsepius <ralf.corsepius@rtems.org>
1453 * config.bfd: Mark i960-*-rtems*, or32-*-rtems* as obsolete.
1454 Mark a29k-*rtems*, hppa*-*-rtems*, *-go32-rtems*,
1455 i[3-7]86*-*-rtemscoff*, mips*el-*-rtems*, powerpcle-*-rtems*,
1456 sparc*-*-rtemsaout* as removed
1458 2005-07-08 Alan Modra <amodra@bigpond.net.au>
1460 * elf-hppa.h (elf_hppa_final_link): Use gp val of zero when none
1461 of the usual sections are found.
1462 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Tidy.
1463 Strip .dynbss if it is zero size.
1464 * elf32-arm.c (elf32_arm_size_dynamic_sections): Likewise.
1465 * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
1466 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
1467 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise, and
1469 (i370_elf_finish_dynamic_sections): Don't attempt to write .got
1470 when it is zero size.
1471 * elf32-i386.c (elf_i386_size_dynamic_sections): Correct handling
1472 of .dynbss and zero size sections.
1473 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Strip .dynbss if
1475 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Tidy. Strip
1476 .dynbss if zero size.
1477 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise, .dynsbss
1479 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
1480 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
1481 * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
1482 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Tidy. Strip
1483 .plt.* and .got.plt.* if zero size.
1484 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Tidy. Strip
1485 .got* and .dynbss if zero size.
1486 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Tidy. Strip
1487 * elf64-ppc.c (create_linkage_sections): Create branch lookup table
1488 in .data.rel.ro.brlt or .rodata.brlt, and similarly for associated
1490 (create_got_section): Always create new .got and .rela.got sections.
1491 (ppc64_elf_size_dynamic_sections): Tidy. Strip .dynbss if zero size.
1492 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
1493 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
1494 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Handle
1495 dynamic bss sections correctly.
1496 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Tidy.
1497 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Tidy. Strip
1498 .dynbss if zero size.
1500 2005-07-08 Ben Elliston <bje@au.ibm.com>
1502 * elf32-xtensa.c: Include <stdarg.h> unconditionally, not only
1503 when ANSI_PROTOTYPES is defined. Remove #ifdef logic.
1505 2005-07-07 H.J. Lu <hongjiu.lu@intel.com>
1507 * elf-bfd.h (elf_backend_data): Add special_sections.
1509 * elf.c (_bfd_elf_get_sec_type_attr): Check special_sections
1512 * elf32-arm.c (elf_backend_get_sec_type_attr): Removed.
1513 (elf_backend_special_sections): New. Defined.
1514 * elf32-m32r.c: Likewise.
1515 * elf32-m68hc11.c: Likewise.
1516 * elf32-m68hc12.c: Likewise.
1517 * elf32-mcore.c: Likewise.
1518 * elf32-sh64.c: Likewise.
1519 * elf32-v850.c: Likewise.
1520 * elf32-xtensa.c: Likewise.
1521 * elf64-alpha.c: Likewise.
1522 * elf64-hppa.c: Likewise.
1523 * elf64-ppc.c: Likewise.
1524 * elf64-sh64.c: Likewise.
1525 * elfxx-ia64.c: Likewise.
1526 * elfxx-mips.c: Likewise.
1527 * elfxx-mips.h: Likewise.
1529 * elfxx-target.h (elf_backend_special_sections): New.
1530 (elfNN_bed): Initialize special_sections.
1532 2005-07-07 Bob Wilson <bob.wilson@acm.org>
1534 * xtensa-modules.c: Update tables with Xtensa MMU features.
1536 2005-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1538 * elf32-xtensa.c (vsprint_msg): Add format attribute. Fix
1540 * vms.h (_bfd_vms_debug): Add format attribute.
1541 (_bfd_vms_debug, _bfd_hexdump): Fix typos.
1543 2005-07-07 H.J. Lu <hongjiu.lu@intel.com>
1546 * elflink.c (_bfd_elf_symbol_refs_local_p): Only undefined
1547 symbol with default visibility is local.
1549 2005-07-07 Ben Elliston <bje@gnu.org>
1551 * config.bfd: Mark m68*-*-rtemscoff as obsolete.
1553 2005-07-06 H.J. Lu <hongjiu.lu@intel.com>
1555 * dwarf2.c (varinfo): Add addr.
1556 (lookup_symbol_in_variable_table): Also check addr.
1557 (scan_unit_for_symbols): Set addr for variable.
1558 (comp_unit_find_line): Updated.
1560 2005-07-06 Nick Clifton <nickc@redhat.com>
1562 * coff-alpha.c (alpha_adjust_reloc_in): Issue an informative error
1563 message if an unknown reloc is encountered.
1564 (alpha_relocate_section): Likewise.
1566 * ecoff.c (_bfd_ecoff_write_object_contents): Cope with a reloc
1567 with a missing howto field.
1569 2005-07-06 Alan Modra <amodra@bigpond.net.au>
1571 * po/SRC-POTFILES.in: Add cpu-ms1.c, elf32-ms1.c, elf-vxworks.c,
1574 2005-07-05 Paul Brook <paul@codesourcery.com>
1576 * elf32-ppc.c (ppc_elf_vxworks_special_sections): Remove.
1577 (ppc_elf_vxworks_get_sec_type_attr): New function.
1578 (elf_backend_special_sections): Remove vxwords definition.
1579 (elf_backend_get_sec_type_attr): Define for vxworks.
1581 2005-07-05 Nick Clifton <nickc@redhat.com>
1583 * elf64-ppc.c (ppc64_elf_info_to_howto): Fix typo.
1585 2005-07-05 Paul Brook <paul@codesourcery.com>
1587 * config.bfd: Add separate case for ppc-vxworks.
1588 * configure: Regenerate.
1589 * configure.in: Include elf-vxworks.lo on ppc targets.
1590 * elf-vxworks.c (elf_vxworks_final_write_processing): Handle
1592 * elf32-ppc.c: Add VxWorks target vec. Include elf-vxworks.h.
1593 (PLT_ENTRY_SIZE, PLT_INITIAL_ENTRY_SIZE, PLT_SLOT_SIZE): Remove.
1594 (VXWORKS_PLT_ENTRY_SIZE, ppc_elf_vxworks_plt_entry,
1595 ppc_elf_vxworks_pic_plt_entry, VXWORKS_PLT_INITIAL_ENTRY_SIZE,
1596 ppc_elf_vxworks_plt0_entry, ppc_elf_vxworks_pic_plt0_entry,
1597 VXWORKS_PLT_NON_JMP_SLOT_RELOCS, VXWORKS_PLTRESOLVE_RELOCS,
1598 VXWORKS_PLTRESOLVE_RELOCS_SHLIB): New.
1599 (ppc_elf_link_hash_table): Add srelplt2, sgotplt, hgot, hplt,
1600 is_vxworks, plt_entry_size, plt_slot_size, plt_initial_entry_size.
1601 (ppc_elf_link_hash_table_create): Initialize hadtab plt fields.
1602 (ppc_elf_create_got): Create .got.plt for VxWorks.
1603 (ppc_elf_create_dynamic_sections): Create unloaded plt relocation
1604 section for VxWorks.
1605 (ppc_elf_select_plt_layout): Handle VxWorks plt format.
1606 (allocate_got): VxWorks does not need a got header.
1607 (allocate_dynrelocs): Handle VxWorks plt format.
1608 (ppc_elf_size_dynamic_sections): Save _G_O_T_ and _P_L_T_ symbols for
1609 VxWorks. Handle VxWorks plt/got.
1610 (ppc_elf_finish_dynamic_sections): Fill in VxWorks plt.
1611 (ppc_elf_vxworks_special_sections): New.
1612 (ppc_elf_vxworks_link_hash_table_create,
1613 ppc_elf_vxworks_add_symbol_hook,
1614 elf_i386_vxworks_link_output_symbol_hook,
1615 ppc_elf_vxworks_final_write_processing): New functions.
1616 * targets.c (bfd_elf32_powerpc_vxworks_vec): Declare.
1617 (_bfd_target_vector): Use it.
1619 2005-07-05 Jakub Jelinek <jakub@redhat.com>
1621 * libbfd-in.h (struct artdata): Add extended_names_size field.
1622 * libbfd.h: Rebuilt.
1623 * coff-rs600.c (_bfd_xcoff_archive_p): Don't clear fields in freshly
1624 allocated object by bfd_zalloc.
1625 * coff64-rs6000.c (xcoff64_archive_p): Likewise.
1626 * ecoff.c (_bfd_ecoff_archive_p): Likewise.
1627 * archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p): Likewise.
1628 (get_extended_arelt_filename): Fail if index is bigger or equal to
1629 extended_names_size.
1630 (_bfd_generic_read_ar_hdr_mag): Don't set bfd_error_malformed_archive,
1631 get_extended_arelt_filename already did that.
1632 (_bfd_slurp_extended_name_table): Initialize extended_names_size field.
1633 Allocate one extra byte and clear it, in case extended names table
1636 * libbfd-in.h (bfd_malloc2, bfd_realloc2, bfd_zmalloc2, bfd_alloc2,
1637 bfd_zalloc2): New prototypes.
1638 * bfd-in.h (HALF_BFD_SIZE_TYPE): Define.
1639 * libbfd.c (bfd_malloc2, bfd_realloc2, bfd_zmalloc2): New functions.
1640 * opncls.c (bfd_alloc2, bfd_zalloc2): New functions.
1641 * elf.c (bfd_elf_get_elf_syms, setup_group, assign_section_numbers,
1642 elf_map_symbols, map_sections_to_segments,
1643 assign_file_positions_for_segments, copy_private_bfd_data,
1644 swap_out_syms, _bfd_elf_slurp_version_tables): Use bfd_*alloc2
1646 * bfd-in2.h: Rebuilt.
1647 * libbfd.h: Rebuilt.
1649 * elf.c (_bfd_elf_print_private_bfd_data): Don't crash on bogus
1650 verdef or verneed section.
1651 (_bfd_elf_slurp_version_tables): Handle corrupt verdef and/or
1652 verneed sections gracefully.
1653 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto_ptr): Don't crash on
1654 bogus relocation values.
1655 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
1656 * elf64-s390.c (elf_s390_info_to_howto): Likewise.
1657 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
1658 * elf64-x86-64.c (elf64_x86_64_info_to_howto): Likewise.
1659 * elfxx-ia64.c (lookup_howto): Likewise.
1661 * elf.c (bfd_elf_get_str_section): Allocate an extra byte after
1662 the end of strtab and clear it.
1665 2005-07-05 Nick Clifton <nickc@redhat.com>
1667 * po/vi.po: New Vietnamese translation.
1668 * configure.in (ALL_LINGUAS): Add vi.
1669 * configure: Regenerate.
1671 2005-07-05 Peter S. Mazinger <ps.m@gmx.net>
1673 * elf32-arm.c (elf32_arm_size_dynamic_sections): Fix a typo and
1674 touchup logic like i386/ppc.
1676 2005-07-05 Alan Modra <amodra@bigpond.net.au>
1678 * elf.c (special_sections): Move const qualifier.
1679 (special_sections_b..special_sections_t): Likewise.
1680 * elf32-arm.c (elf32_arm_symbian_get_sec_type_attr): Remove duplicate
1682 (elf32_arm_symbian_special_sections): Move const qualifier.
1683 * elf32-m32r.c: Similarly.
1684 * elf32-m68hc11.c: Similarly.
1685 * elf32-m68hc12.c: Similarly.
1686 * elf32-mcore.c: Similarly.
1687 * elf32-ppc.c: Similarly.
1688 * elf32-sh64.c: Similarly.
1689 * elf32-v850.c: Similarly.
1690 * elf32-xtensa.c: Similarly.
1691 * elf64-alpha.c: Similarly.
1692 * elf64-hppa.c: Similarly.
1693 * elf64-ppc.c: Similarly.
1694 * elf64-sh64.c: Similarly.
1695 * elfxx-ia64.c: Similarly.
1696 * elfxx-mips.c: Similarly.
1698 2005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1700 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Use
1701 info->executable instead of !info->shared where appropriate.
1703 2005-07-04 Alan Modra <amodra@bigpond.net.au>
1706 * elf.c (assign_file_positions_for_segments): Remove excluded
1707 sections from the segment map.
1709 2005-07-04 Alan Modra <amodra@bigpond.net.au>
1712 * elf-bfd.h (struct elf_backend_data): Add get_sec_type_attr. Delete
1714 (_bfd_elf_get_special_section): Declare.
1715 (bfd_elf_special_section): Update prototype.
1716 * elf.c (special_sections): Remove unused outer entries.
1717 (get_special_section): Delete.
1718 (_bfd_elf_get_special_section): New function.
1719 (_bfd_elf_get_sec_type_attr): Replace "name" arg with "sec". Update
1720 special_sections indexing.
1721 (_bfd_elf_new_section_hook): Call backend get_sec_type_attr.
1722 * elf32-arm.c (symbian_special_sections_d): Delete.
1723 (symbian_special_sections_g, symbian_special_sections_h): Delete.
1724 (symbian_special_sections_i, symbian_special_sections_f): Delete.
1725 (symbian_special_sections_p): Delete.
1726 (elf32_arm_symbian_special_sections): Merge above to here.
1727 (elf32_arm_symbian_get_sec_type_attr): New function.
1728 (elf_backend_special_sections): Don't define.
1729 (elf_backend_get_sec_type_attr): Define.
1730 * elf32-m32r.c: Similarly to elf32-arm.c.
1731 * elf32-m68hc11.c: Likewise.
1732 * elf32-m68hc12.c: Likewise.
1733 * elf32-mcore.c: Likewise.
1734 * elf32-sh64.c: Likewise.
1735 * elf32-v850.c: Likewise.
1736 * elf32-xtensa.c: Likewise.
1737 * elf64-alpha.c: Likewise.
1738 * elf64-hppa.c: Likewise.
1739 * elf64-ppc.c: Likewise.
1740 * elf64-sh64.c: Likewise.
1741 * elfxx-ia64.c: Likewise.
1742 * elfxx-mips.c: Likewise.
1743 * elf32-ppc.c: Likewise.
1744 (bfd_elf_special_section ppc_alt_plt): New. Use it if .plt loadable.
1745 * elfxx-mips.h (_bfd_mips_elf_get_sec_type_attr): Declare.
1746 (_bfd_mips_elf_special_sections, elf_backend_special_sections): Delete.
1747 (elf_backend_get_sec_type_attr): Define.
1748 * elfxx-target.h (elf_backend_get_sec_type_attr): Define.
1749 (elf_backend_special_sections): Don't define.
1750 (elfNN_bed): Update.
1752 2005-07-01 Nick Clifton <nickc@redhat.com>
1754 * cpu-d10v.c: Update to ISO C90 style function declarations and
1756 * cpu-d30v.c: Likewsie.
1757 * cpu-i370.c: Likewsie.
1758 * cpu-xstormy16.c: Likewsie.
1759 * elf32-arc.c: Likewsie.
1760 * elf32-d10v.c: Likewsie.
1761 * elf32-d30v.c: Likewsie.
1762 * elf32-dlx.c: Likewsie.
1763 * elf32-i370.c: Likewsie.
1764 * elf32-i960.c: Likewsie.
1765 * elf32-ip2k.c: Likewsie.
1766 * elf32-m32r.c: Likewsie.
1767 * elf32-mcore.c: Likewsie.
1768 * elf32-openrisc.c: Likewsie.
1769 * elf32-or32.c: Likewsie.
1770 * elf32-pj.c: Likewsie.
1771 * elf32-v850.c: Likewsie.
1772 * elf32-xstormy16.c: Likewsie.
1774 2005-07-01 Alan Modra <amodra@bigpond.net.au>
1776 * elf64-alpha.c (elf64_alpha_create_got_section): Always create
1778 (elf64_alpha_create_dynamic_sections): Always make new sections
1779 by using bfd_make_section_anyway_with_flags. Check that .got not
1781 (elf64_alpha_check_relocs): Delete "got_created". Use tdata->gotobj
1784 2005-06-30 Alan Modra <amodra@bigpond.net.au>
1786 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Ignore dynamic
1787 _SDA_BASE_ and _SDA2_BASE_ symbols.
1788 * elflink.c (_bfd_elf_provide_symbol): Correct comment. Define
1789 sym if not def_regular.
1790 (_bfd_elf_provide_section_bound_symbols): Similarly.
1792 2005-06-30 Ben Elliston <bje@gnu.org>
1794 * config.bfd: Mark as obsolete:
1799 2005-06-29 Alan Modra <amodra@bigpond.net.au>
1801 * elflink.c (_bfd_elf_gc_mark): Mark sections referenced by
1802 .eh_frame specially..
1803 (bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame.
1804 Don't recheck sections we have already marked.
1805 (elf_gc_sweep): Keep non-code sections referenced from .eh_frame.
1806 * section.c (struct bfd_section): Add gc_mark_from_eh.
1807 (STD_SECTION): Adjust.
1808 * ecoff.c (bfd_debug_section): Adjust.
1809 * bfd-in2.h: Regenerate.
1811 2005-06-29 Alan Modra <amodra@bigpond.net.au>
1813 * elflink.c (elf_gc_sweep): Do not refcount on sections that have
1814 not been processed by check_relocs.
1816 2005-06-29 Paul Brook <paul@codesourcery.com>
1818 * bfd-in.h (_bfd_elf_provide_symbol): Update prototype.
1819 * bfd-in2.h: Regenerate.
1820 * elf32-ppc.c (ppc_elf_set_sdata_syms): Make sdata symbols section
1822 * elflink.c (bfd_elf_set_symbol): Add section argument.
1823 (_bfd_elf_provide_symbol): Ditto.
1824 (_bfd_elf_provide_section_bound_symbols): Pass NULL section argument.
1826 2005-06-27 Carlos O'Donell <carlos@systemhalted.org>
1828 * bfd/elf32-hppa.c (struct elf32_hppa_stub_hash_entry):
1829 Use bh_root, and hh.
1830 (struct elf32_hppa_link_hash_entry): Use eh, and hsh_cache.
1831 (struct elf32_hppa_dyn_reloc_entry): Use hdh_next.
1832 (struct elf32_hppa_link_hash_table): Use etab and bstab.
1833 (stub_hash_newfunc): Use hh.
1834 (hppa_link_hash_newfunc): Use hsh_cache.
1835 (elf32_hppa_link_hash_table_create): Use etab, and bstab.
1836 (elf32_hppa_link_hash_table_free): Use bstab.
1837 (hppa_stub_name): Use eh.
1838 (hppa_get_stub_entry): Use hh, hsh_entry, and hsh_cache.
1839 (hppa_add_stub): Use bstab.
1840 (hppa_type_of_stub): Use eh.
1841 (hppa_build_one_stub): Use hh and bh_root.
1842 (elf32_hppa_copy_indirect_symbol): Use hdh_next.
1843 (elf32_hppa_check_relocs): Use eh, etab, and hdh_next.
1844 (elf32_hppa_gc_sweep_hook): Use hdh_next.
1845 (elf32_hppa_adjust_dynamic_symbol): Use hdh_next, and etab.
1846 (allocate_plt_static): Use etab.
1847 (allocate_dynrelocs): Use etab, and hdh_next.
1848 (readonly_dynrelocs): Use hdh_next.
1849 (elf32_hppa_size_dynamic_sections): Use etab, and hdh_next.
1850 (get_local_syms): Use eh, bstab, and hh.
1851 (elf32_hppa_size_stubs): Use eh, bstab, and hh.
1852 (elf32_hppa_set_gp): Use etab.
1853 (elf32_hppa_build_stubs): Use bstab.
1854 (final_link_relocate): Use eh, bh_root.
1855 (elf32_hppa_relocate_section): Use elf, etab.
1856 (elf32_hppa_finish_dynamic_sections): Use etab.
1858 2005-06-27 H.J. Lu <hongjiu.lu@intel.com>
1860 * elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): Remove
1863 2005-06-21 Carlos O'Donell <carlos@systemhalted.org>
1865 * bfd/elf32-hppa.c (hppa_elf_hash_entry): Define.
1866 (hppa_stub_hash_entry): Define.
1867 (stub_hash_newfunc): Rename variables.
1868 (hppa_link_hash_newfunc): Likewise.
1869 (elf32_hppa_link_hash_table_free): Likewise.
1870 (hppa_stub_name): Likewise.
1871 (hppa_get_stub_entry): Likewise.
1872 (hppa_add_stub): Likewise.
1873 (hppa_type_of_stub): Likewise.
1874 (hppa_build_one_stub): Likewise.
1875 (hppa_size_one_stub): Likewise.
1876 (elf32_hppa_create_dynamic_sections): Likewise.
1877 (elf32_hppa_copy_indirect_symbol): Likewise.
1878 (elf32_hppa_check_relocs): Likewise.
1879 (elf32_hppa_gc_mark_hook): Likewise.
1880 (elf32_hppa_gc_sweep_hook): Likewise.
1881 (elf32_hppa_grok_psinfo): Likewise.
1882 (elf32_hppa_hide_symbol): Likewise.
1883 (elf32_hppa_adjust_dynamic_symbol): Likewise.
1884 (allocate_dynrelocs): Likewise.
1885 (clobber_millicode_symbols): Likewise.
1886 (readonly_dynrelocs): Likewise.
1887 (elf32_hppa_size_dynamic_sections): Likewise.
1888 (get_local_syms): Likewise.
1889 (elf32_hppa_size_stubs): Likewise.
1890 (hppa_record_segment_addr): Likewise.
1891 (final_link_relocate): Likewise.
1892 (elf32_hppa_relocate_section): Likewise.
1893 (elf32_hppa_finish_dynamic_symbol): Likewise.
1895 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
1898 * elf-m10300.c (mn10300_elf_check_relocs): Handle indirect
1900 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
1901 * elf32-avr.c (elf32_avr_check_relocs): Likewise.
1902 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1903 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
1904 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
1905 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
1906 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
1907 * elf32-i370.c (i370_elf_check_relocs): Likewise.
1908 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
1909 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
1910 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
1911 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1912 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
1913 * elf32-ms1.c (ms1_elf_check_relocs): Likewise.
1914 * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
1915 * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
1916 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
1917 * elf32-s390.c (elf_s390_check_relocs): Likewise.
1918 * elf32-sh.c (sh_elf_check_relocs): Likewise.
1919 * elf32-v850.c (v850_elf_check_relocs): Likewise.
1920 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1921 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
1922 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1923 * elf64-s390.c (elf_s390_check_relocs): Likewise.
1924 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
1925 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
1926 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
1928 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
1931 * elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect
1934 2005-06-20 H.J. Lu <hongjiu.lu@intel.com>
1937 * elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol.
1938 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
1940 2005-06-18 H.J. Lu <hongjiu.lu@intel.com>
1942 * reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and
1943 BFD_RELOC_X86_64_GOTPC32.
1944 * bfd-in2.h: Regenerated.
1946 2005-06-17 Jakub Jelinek <jakub@redhat.com>
1948 * elf.c (bfd_section_from_shdr): Kill bogus warning.
1950 * elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for
1951 symbol, relocation, group or versym sections.
1953 * coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs
1955 * peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address
1956 doesn't point into the section.
1958 2005-06-17 Jan Beulich <jbeulich@novell.com>
1960 * bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64
1961 and BFD_RELOC_X86_64_GOTPC32.
1962 * libbfd.h (bfd_reloc_code_real_names): Likewise.
1963 * elf64-x86-64.c (x86_64_elf_howto_table): Add entries for
1964 R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
1965 (x86_64_reloc_map): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64,
1966 and R_X86_64_GOTPC32.
1967 (elf64_x86_64_info_to_howto): Adjust bounding relocation type.
1968 (elf64_x86_64_check_relocs): Also handle R_X86_64_PC64,
1969 R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
1970 (elf64_x86_64_relocate_section): Likewise.
1971 (elf64_x86_64_gc_sweep_hook): Also handle R_X86_64_PC64.
1973 2005-06-15 Mark Kettenis <kettenis@gnu.org>
1975 * archive.c: Include "libiberty.h".
1977 2005-06-15 Nick Clifton <nickc@redhat.com>
1979 * elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries
1980 produced by the GreenHills toolchain can be assimilated.
1982 2005-06-14 Steve Ellcey <sje@cup.hp.com>
1984 * som.c (som_find_inliner_info): New.
1986 2005-06-14 H.J. Lu <hongjiu.lu@intel.com>
1988 * elflink.c (_bfd_elf_merge_symbol): Fix a typo in comment.
1990 2005-06-14 Jakub Jelinek <jakub@redhat.com>
1992 * elf.c (bfd_section_from_shdr): Fail if name is NULL.
1993 Prevent endless recursion on broken objects.
1995 * archive.c (do_slurp_coff_armap): Check for overflows.
1997 2005-06-10 Daniel Jacobowitz <dan@codesourcery.com>
1999 * elfcode.h (elf_write_relocs): Do nothing if there are no
2002 2005-06-10 Alan Modra <amodra@bigpond.net.au>
2004 * dwarf2.c (decode_line_info): Revert last change. Instead set
2005 initial low_pc to -1 to avoid need to test whether loc_pc has
2008 2005-06-09 Christopher Faylor <cgf@timesys.com>
2010 * coffcode.h (sec_to_styp_flags): Set appropriate section flags when
2011 either SEC_ALLOC OR SEC_LOAD.
2013 2005-06-09 Christopher Faylor <cgf@timesys.com>
2015 * coffcode.h (sec_to_styp_flags): Remove read/write flags from noload
2016 section header. Do not add STYP_NOLOAD since it does not appear to be
2019 2005-06-09 H.J. Lu <hongjiu.lu@intel.com>
2022 * dwarf2.c (lookup_address_in_line_info_table): Restore code
2023 handling NULL function info, removed with 2005-04-03 change.
2025 2005-06-08 Mark Mitchell <mark@codesourcery.com>
2027 * opncls.c (bfd_fopen): Mark returned BFD as cacheable if FD == -1.
2029 2005-06-09 Alan Modra <amodra@bigpond.net.au>
2031 * elflink.c (elf_mark_used_section): Delete.
2032 (bfd_elf_gc_sections): Call bfd_generic_gc_sections.
2033 * reloc.c (bfd_mark_used_section): New function.
2034 (bfd_generic_gc_sections): Call bfd_mark_used_section.
2036 2005-06-08 Alan Modra <amodra@bigpond.net.au>
2038 * opncls.c (bfd_fopen): Don't set bfd_error unconditionally.
2039 (bfd_fdopenr): Same.
2041 2005-06-07 Mark Mitchell <mark@codesourcery.com>
2043 * opncls.c (bfd_fdopenr): Add missing break statements.
2045 2005-06-07 Mark Mitchell <mark@codesourcery.com>
2047 * opncls.c (bfd_fopen): New API.
2048 (bfd_openr): Use it.
2049 (bfd_fdopenr): Likewise.
2050 * bfd-in2.h: Regenerated.
2052 2005-06-07 Aldy Hernandez <aldyh@redhat.com>
2053 Michael Snyder <msnyder@redhat.com>
2054 Stan Cox <scox@redhat.com>
2056 * Makefile.am (ALL_MACHINES): Add ms1 support.
2057 (ALL_MACHINES_CFILES): Same.
2058 (BFD32_BACKENDS): Same.
2059 (BFD32_BACKENDS_CFILES): Same.
2061 * Makefile.in: Regenerate.
2063 * archures.c (bfd_architecture): Add ms1 entries.
2064 Externalize bfd_ms1_arch.
2065 (bfd_archures_list): Add bfd_ms1_arch.
2067 * bfd-in2.h: Regenerate.
2069 * cpu-ms1.c: New file.
2071 * elf32-ms1.c: New file.
2073 * targets.c: Define extern of bfd_elf32_ms1_vec.
2074 Add bfd_elf32_ms1_vec to _bfd_target_vector.
2076 * configure.in: Add bfd_elf32_ms1_vec case.
2078 * configure: Regenerate.
2080 * config.bfd: Add ms1-*-elf to table.
2082 2005-06-07 Zack Weinberg <zack@codesourcery.com>
2084 * coff-i386.c: Change md_apply_fix3 to md_apply_fix in comment.
2086 2005-06-07 Alan Modra <amodra@bigpond.net.au>
2088 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Init _bfd_find_line.
2089 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
2091 2005-06-06 H.J. Lu <hongjiu.lu@intel.com>
2094 * bfd.c (bfd_find_line): New.
2096 * dwarf2.c (comp_unit): Add variable_table.
2097 (funcinfo): Add file, line, and sec.
2099 (lookup_symbol_in_function_table): New.
2100 (lookup_symbol_in_variable_table): New.
2101 (scan_unit_for_functions): Renamed to ...
2102 (scan_unit_for_symbols): This. Handle DW_TAG_entry_point and
2104 (comp_unit_find_nearest_line): Updated.
2105 (comp_unit_find_line): New.
2106 (_bfd_dwarf2_find_line): New.
2108 * elf-bfd.h (_bfd_elf_find_line): New.
2109 (_bfd_generic_find_line): New. Defined.
2111 * elf.c (_bfd_elf_find_line): New.
2113 * libbfd-in.h (_bfd_dwarf2_find_line): New.
2114 (_bfd_generic_find_line): New.
2116 * bfd-in2.h: Regenerated.
2117 * libbfd.h: Likewise.
2119 * libbfd.c (_bfd_generic_find_line): New.
2121 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize _bfd_find_line
2122 with _bfd_generic_find_line.
2123 (bfd_target): Add _bfd_find_line.
2125 2005-06-06 H.J. Lu <hongjiu.lu@intel.com>
2127 * dwarf2.c (decode_line_info): Properly set low_pc.
2129 2005-06-06 Alan Modra <amodra@bigpond.net.au>
2131 * elf64-pcc.c (ppc64_elf_gc_mark_hook): For the local sym in .opd
2132 case, include addend when indexing .opd section map.
2133 (ppc64_elf_edit_opd): Add no_opd_opt param. Do nothing besides
2134 clear opd_adjust array if no_opd_opt set. Tidy code.
2135 Ignore zero size .opd. Check bfd_alloc return value.
2136 (ppc_stub_name): Return immediately on bfd_malloc fail.
2137 * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
2139 2005-06-04 H.J. Lu <hongjiu.lu@intel.com>
2141 * dwarf2.c (comp_unit): Fix a typo in comment.
2143 2005-06-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2145 * elf32-vax.c (rtype_to_howto): Remove PARAMS.
2146 (reloc_type_lookup): Dito.
2147 (elf_vax_discard_copies): Dito.
2148 (elf_vax_instantiate_got_entries): Dito.
2149 (elf_vax_link_hash_traverse): Dito.
2150 (elf_vax_link_hash_newfunc): Dito.
2151 (elf_vax_link_hash_table_create): Dito.
2152 (elf32_vax_set_private_flags): Dito.
2153 (elf32_vax_merge_private_bfd_data): Dito.
2154 (elf32_vax_print_private_bfd_data): Dito.
2155 (elf_vax_check_relocs): Dito.
2156 (elf_vax_gc_mark_hook): Dito.
2157 (elf_vax_gc_sweep_hook): Dito.
2158 (elf_vax_size_dynamic_sections): Dito.
2159 (elf_vax_discard_copies): Dito.
2160 (elf_vax_instantiate_got_entries): Dito.
2161 (elf_vax_relocate_section): Dito.
2162 (elf_vax_finish_dynamic_symbol): Dito.
2163 (elf_vax_finish_dynamic_sections): Dito.
2164 (elf_vax_hash_table): Break-up of line isn't needed.
2165 (elf_vax_check_relocs): Remove leading whitespace
2166 (elf_vax_relocate_section): Remove redundant whitespace
2167 (elf_vax_link_hash_newfunc): Don't cast NULL.
2168 (elf_vax_link_hash_table_create): Dito.
2169 * cpu-vax.c (bfd_vax_arch) Remove a trailing space.
2171 2005-06-03 Alan Modra <amodra@bigpond.net.au>
2174 * configure.in: Bump version
2175 * configure: Regenerate.
2176 * elflink.c (elf_link_input_bfd): Use einfo linker callback to print
2177 discarded section sym refs and kill linker output.
2178 * simple.c (simple_dummy_einfo): New function.
2179 (bfd_simple_get_relocated_section_contents): Init callbacks.einfo.
2181 * elf32-i386.c (elf_i386_relocate_section): Handle zero symndx
2182 for all reloc types.
2184 2005-06-02 Alan Modra <amodra@bigpond.net.au>
2186 * elf64-ppc.c (add_symbol_adjust): Set sym visibility to most
2187 restrictive of func code and func descr for undefined syms as well
2190 2005-05-31 Jim Blandy <jimb@redhat.com>
2192 * Makefile.am: Regenerate dependencies with 'make dep-am'.
2193 * Makefile.in: Regenerate.
2195 2005-05-31 Richard Henderson <rth@redhat.com>
2197 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_JSRDIRECT): New.
2198 (ALPHA_ELF_LINK_HASH_TLS_IE): Renumber to 0x80.
2199 (ALPHA_ELF_LINK_HASH_LU_PLT): Rename from ALPHA_ELF_LINK_HASH_LU_FUNC.
2200 (elf64_alpha_want_plt): Update to match.
2201 (elf64_alpha_check_relocs): Collect JSRDIRECT in gotent_flags.
2202 (elf64_alpha_relax_with_lituse): Likewise. Handle JSRDIRECT.
2204 2005-05-31 Zack Weinberg <zack@codesourcery.com>
2206 * elf32-arm.c (elf32_arm_reloc_type_lookup)
2207 (elf32_arm_nabi_grok_prstatus, elf32_arm_nabi_grok_psinfo):
2208 Use ISO C90 function declaration style.
2210 2005-05-31 James E Wilson <wilson@specifixinc.com>
2212 * elfcode.h (NAME(bfd_elf,bfd_from_remote_memory)): Check for program
2213 header PF_R flag on PT_LOAD segments.
2215 2005-05-30 Richard Henderson <rth@redhat.com>
2217 * elf64-alpha.c (elf64_alpha_relocate_section): Use dtp_base for
2218 the zero index relocs produced by elf64_alpha_relax_tls_get_addr.
2220 2005-05-29 Richard Henderson <rth@redhat.com>
2222 * configure.in (--enable-secureplt): New.
2223 * elf64-alpha.c (INSN_LDA, INSN_LDAH, INSN_LDQ, INSN_BR): New.
2224 (INSN_SUBQ, INSN_S4SUBQ, INSN_JMP): New.
2225 (INSN_A, INSN_AB, INSN_ABC, INSN_ABO, INSN_AD): New.
2226 (elf64_alpha_use_secureplt): New.
2227 (OLD_PLT_HEADER_SIZE, OLD_PLT_ENTRY_SIZE): New.
2228 (NEW_PLT_HEADER_SIZE, NEW_PLT_ENTRY_SIZE): New.
2229 (PLT_HEADER_SIZE, PLT_ENTRY_SIZE): Conditionalize on secureplt.
2230 (ALPHA_ELF_LINK_HASH_PLT_LOC): Remove.
2231 (struct alpha_elf_link_hash_entry): Add plt_offset.
2232 (PLT_HEADER_WORD1, PLT_HEADER_WORD2, PLT_HEADER_WORD3): Remove.
2233 (PLT_HEADER_WORD4, PLT_ENTRY_WORD1, PLT_ENTRY_WORD2): Remove.
2234 (PLT_ENTRY_WORD3): Remove.
2235 (elf64_alpha_create_dynamic_sections): If secureplt, set SEC_READONLY
2236 on .plt and create .got.plt.
2237 (elf64_alpha_output_extsym): Remove .plt frobbing for symbol values.
2238 (get_got_entry): Initialize plt_offset.
2239 (elf64_alpha_want_plt): New.
2240 (elf64_alpha_check_relocs): Use it.
2241 (elf64_alpha_adjust_dynamic_symbol): Likewise. Don't allocate
2243 (elf64_alpha_calc_got_offsets_for_symbol): Don't report internal
2244 error as user error.
2245 (elf64_alpha_size_plt_section_1): Allocate one plt entry per
2247 (elf64_alpha_size_plt_section): Size .got.plt section.
2248 (elf64_alpha_size_rela_got_1): Don't allocate relocations if
2250 (elf64_alpha_size_dynamic_sections): Call elf64_alpha_size_plt_section.
2251 Add PLTRO DYNAMIC entry.
2252 (elf64_alpha_finish_dynamic_symbol): Generate secureplt format.
2253 (elf64_alpha_finish_dynamic_sections): Likewise.
2255 2005-05-28 David Daney <ddaney@avtrex.com>
2257 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Move
2258 calculation of DT_RELSZ to occur after all dynamic relocations
2261 2005-05-28 Eli Zaretskii <eliz@gnu.org>
2263 * configure.in: Add snprintf and vsnprintf to AC_CHECK_DECLS.
2264 * config.in, configure: Regenerate.
2266 2005-05-26 Mark Kettenis <kettenis@gnu.org>
2267 Maciej W. Rozycki <macro@linux-mips.org>
2269 * elfxx-mips.c (_bfd_mips_elf_section_processing): Warn and
2270 stop processing of options if one of invalid size is
2272 (_bfd_mips_elf_section_from_shdr): Likewise.
2273 (_bfd_mips_elf_fake_sections): Reset the type of empty special
2276 2005-05-26 Richard Henderson <rth@redhat.com>
2278 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Remove
2279 plt_old_section, plt_old_value.
2280 (elf64_alpha_adjust_dynamic_symbol): Don't set it.
2281 (elf64_alpha_size_plt_section_1): Don't use it.
2283 2005-05-26 Jakub Jelinek <jakub@redhat.com>
2285 * elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and
2286 first shdr has sh_size == 0. Fail if e_shnum is large to cause
2287 arithmetic overflow when allocating the i_shdr array.
2288 Sanity check sh_link and sh_info fields. Fix e_shstrndx sanity check.
2290 2005-05-25 Richard Henderson <rth@redhat.com>
2292 * elf64-alpha.c: Update all function definitions to ISO C. Remove
2293 all function prototypes; rearrange functions into def-use order.
2295 2005-05-25 Richard Henderson <rth@redhat.com>
2297 * elf64-alpha.c (elf64_alpha_merge_gots): Fix gotent iteration
2298 in the presence of deleting elements.
2299 (elf64_alpha_size_got_sections): Zero dead got section size.
2301 2005-05-23 Fred Fish <fnf@specifixinc.com>
2303 * dwarf2.c (struct dwarf2_debug): Add inliner_chain member.
2304 (struct funcinfo): Add caller_func, caller_file, caller_line.
2305 tag, and nesting_level members.
2306 (lookup_address_in_function_table): Change first passed parameter
2307 from "struct funcinfo *" to "struct comp_unit *".
2308 (lookup_address_in_function_table): Dereference unit to find function
2310 (lookup_address_in_function_table): Traverse the function list to
2311 create a chain of inlined functions back to the first non inlined
2313 (scan_unit_for_functions): Remember tag and nesting level. Handle
2314 DW_AT_call_file and DW_AT_call_line.
2315 (comp_unit_find_nearest_line): Adjust lookup_address_in_function_table
2316 call to pass unit pointer instead of function table pointer. For
2317 inlined functions, save pointer to the inliner chain.
2318 (_bfd_dwarf2_find_nearest_line): Initialize inliner_chain to NULL.
2319 (_bfd_dwarf2_find_inliner_info): New function that returns information
2320 from the inliner chain after a call to bfd_find_nearest_line.
2322 * bfd.c (bfd_find_inliner_info): Define using BFD_SEND.
2323 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Add entry for
2324 NAME##_find_inliner_info.
2325 (bfd_target): Add _bfd_find_inliner_info.
2326 * bfd-in2.h: Regenerate.
2328 * libbfd-in.h (_bfd_nosymbols_find_inliner_info): Define as
2329 macro that always returns bfd_false.
2330 (_bfd_dwarf2_find_inliner_info): Declare.
2331 * libbfd.h: Regenerate.
2333 * elf32-arm.c (elf32_arm_find_inliner_info): New function
2334 that calls _bfd_dwarf2_find_inliner_info.
2335 (bfd_elf32_find_inliner_info): Define to elf32_arm_find_inliner_info.
2337 * elfxx-mips.c (_bfd_mips_elf_find_inliner_info): New function
2338 that calls _bfd_dwarf2_find_inliner_info.
2339 * elfxx-mips.h (_bfd_mips_elf_find_inliner_info): Declare.
2340 * elfn32-mips.c (bfd_elf32_find_inliner_info): Define to
2341 _bfd_mips_elf_find_inliner_info.
2342 * elf64-mips.c (bfd_elf64_find_inliner_info): Ditto.
2343 * elf32-mips.c (bfd_elf32_find_inliner_info): Ditto.
2345 * elf.c (_bfd_elf_find_inliner_info): New function that calls
2346 _bfd_dwarf2_find_inliner_info.
2347 * elf-bfd.h (_bfd_elf_find_inliner_info): Declare.
2348 * elfxx-target.h (bfd_elfNN_find_inliner_info): Define to
2349 _bfd_elf_find_inliner_info.
2351 * coffgen.c (coff_find_inliner_info): New function that
2352 calls _bfd_dwarf2_find_inliner_info.
2353 * libcoff-in.h (coff_find_inliner_info): Declare.
2354 * libcoff.h: Regenerate.
2355 * coff-rs6000.c (rs6000coff_vec): Add coff_find_inliner_info.
2356 (pmac_xcoff_vec) Ditto.
2357 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
2358 (aix5coff64_vec): Ditto.
2360 * aout-target.h (MY_find_inliner_info): Define as
2361 _bfd_nosymbols_find_inliner_info.
2362 * aout-tic30.c (MY_find_inliner_info): Ditto.
2363 * binary.c (binary_find_inliner_info): Ditto.
2364 * i386msdos.c (msdos_find_inliner_info): Ditto.
2365 * ihex.c (ihex_find_inliner_info): Ditto.
2366 * libaout.h (aout_32_find_inliner_info): Ditto.
2367 * libecoff.h (_bfd_ecoff_find_inliner_info): Ditto.
2368 * mach-o.c (bfd_mach_o_find_inliner_info): Ditto.
2369 * mmo.c (mmo_find_inliner_info): Ditto.
2370 * nlm-target.h (nlm_find_inliner_info): Ditto.
2371 * pef.c (bfd_pef_find_inliner_info): Ditto.
2372 * ppcboot.c (ppcboot_find_inliner_info): Ditto.
2373 * srec.c (srec_find_inliner_info): Ditto.
2374 * tekhex.c (tekhex_find_inliner_info): Ditto.
2375 * versados.c (versados_find_inliner_info): Ditto.
2376 * xsym.c (bfd_sym_find_inliner_info): Ditto.
2378 * ieee.c (ieee_find_inliner_info): New function that always
2380 * oasys.c (oasys_find_inliner_info): Ditto.
2381 * vms.c (vms_find_inliner_info): Ditto.
2383 2005-05-24 Alan Modra <amodra@bigpond.net.au>
2385 * elf32-ppc.c (ppc_elf_check_relocs): For old gcc -fPIC code
2386 force old plt layout.
2388 2005-05-22 Richard Henderson <rth@redhat.com>
2390 * elf64-alpha.c (elf64_alpha_relax_section): Ignore non-allocated
2392 (elf64_alpha_check_relocs): Likewise.
2393 (elf64_alpha_relocate_section): Don't emit dynamic relocations to
2394 non-allocated sections.
2396 2005-05-22 Richard Henderson <rth@redhat.com>
2398 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr to
2399 undefweak to use zero register. Call elf64_alpha_relax_got_load
2400 if not all uses removed.
2401 (elf64_alpha_relax_got_load): Relax undefweak to lda zero.
2402 (elf64_alpha_relax_section): Handle undefweak symbols.
2403 (elf64_alpha_calc_dynrel_sizes): Don't add relocs for undefweak.
2404 (elf64_alpha_size_rela_got_1): Likewise.
2405 (elf64_alpha_relocate_section): Likewise.
2407 2005-05-22 Richard Henderson <rth@redhat.com>
2409 * elf64-alpha.c (elf64_alpha_relax_section): Only operate
2410 on SEC_CODE sections.
2412 2005-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2414 * som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to
2416 (som_write_space_strings): Change type of tmp_space and p to char *.
2417 (som_write_symbol_strings): Likewise. Also change type of comp to
2419 (som_begin_writing): Change type of strings_size to unsigned int.
2420 (som_finish_writing): Likewise.
2421 (som_slurp_reloc_table): Change type of external_relocs to unsigned
2423 * som.h (struct som_section_data_struct): Change type of reloc_stream
2424 field to unsigned char *.
2426 2005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
2428 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
2429 copy relocations for VxWorks.
2431 2005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
2433 * bfd/elf32-ppc.c (struct ppc_elf_link_hash_entry): Add new field
2435 (ppc_elf_copy_indirect_symbol): Copy has_sda_refs.
2436 (ppc_elf_check_relocs): Set has_sda_refs.
2437 (ppc_elf_adjust_dynamic_symbol): Check has_sda_refs before eliminating
2438 copy relocations. Use has_sda_refs to place variables in .sbss.
2439 (ppc_elf_finish_dynamic_symbol): Use has_sda_refs to place variables in
2442 2005-05-20 Bob Wilson <bob.wilson@acm.org>
2444 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
2445 xtensa_default_isa is initialized.
2447 2005-05-20 Alan Modra <amodra@bigpond.net.au>
2449 * elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned
2450 for second and subsequent list entries. Only allocate multiple
2451 glink stubs when shared or pie.
2452 (ppc_elf_finish_dynamic_symbol): Break out early when only one
2453 glink stub is needed.
2455 2005-05-19 Zack Weinberg <zack@codesourcery.com>
2457 * Makefile.am: Have 'all' depend on 'info'.
2458 * Makefile.in: Regenerate.
2460 2005-05-19 Alan Modra <amodra@bigpond.net.au>
2462 * elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and
2463 init_offset. Add init_got_refcount, init_plt_refcount,
2464 init_got_offset and init_plt_offset.
2465 * elf.c (_bfd_elf_link_hash_newfunc): Adjust for above change.
2466 (_bfd_elf_link_hash_hide_symbol): Likewise.
2467 (_bfd_elf_link_hash_table_init): Likewise.
2468 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2469 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
2470 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Likewise.
2471 (bfd_elf_size_dynamic_sections): Likewise.
2472 * elf32-ppc.c (GLINK_PLTRESOLVE): Now 16 insns.
2473 (LWZU_0_X_12, LWZ_0_4_30, LWZ_0_X_12, LWZ_11_X_11, LWZ_11_X_30,
2474 LWZ_12_4_12, LWZ_12_8_30, LWZ_12_X_12, SUB_11_11_30): Delete.
2475 (ADDIS_12_12, BCL_20_31, LWZU_0_12, LWZ_0_12, LWZ_11_11, LWZ_11_30,
2476 LWZ_12_12, MFLR_0, MFLR_12, MTLR_0, SUB_11_11_12): Define.
2477 (struct plt_entry): New.
2478 (ppc_elf_link_hash_table_create): Set new init_plt fields.
2479 (ppc_elf_copy_indirect_symbol): Handle merge of plt plist. Don't
2480 use _bfd_elf_link_hash_copy_indirect.
2481 (update_plt_info, find_plt_ent): New functions.
2482 (ppc_elf_check_relocs): Handle R_PPC_PLTREL24 with non-zero addend
2483 and adjust for use of plt list rather than refcount.
2484 (ppc_elf_gc_sweep_hook): Likewise.
2485 (ppc_elf_tls_optimize): Likewise.
2486 (ppc_elf_adjust_dynamic_symbol): Likewise.
2487 (allocate_dynrelocs): Likewise.
2488 (ppc_elf_relax_section): Likewise.
2489 (ppc_elf_relocate_section): Likewise. Adjust R_PPC_PLTREL24 addends
2490 when performing a relocatable link.
2491 (ppc_elf_finish_dynamic_symbol): Likewise. Write .glink stubs here..
2492 (ppc_elf_finish_dynamic_sections): ..rather than here. Use new
2495 2005-05-19 Alan Modra <amodra@bigpond.net.au>
2497 * elf.c (assign_file_positions_for_segments): Use maximum of
2498 maxpagesize and section alignment when adjusting initial
2499 segment offset and section offsets.
2501 2005-05-18 Zack Weinberg <zack@codesourcery.com>
2503 * elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks
2506 2005-05-18 H.J. Lu <hongjiu.lu@intel.com>
2508 * elf.c (group_signature): Undo the last change. Check if the
2509 symbol table section is correct.
2511 2005-05-17 Zack Weinberg <zack@codesourcery.com>
2513 * elf32-arm.c: Wherever possible, use official reloc names
2515 (elf32_arm_howto_table, elf32_arm_tls_gd32_howto)
2516 (elf32_arm_tls_ldo32_howto, elf32_arm_tls_ldm32_howto)
2517 (elf32_arm_tls_le32_howto, elf32_arm_tls_ie32_howto)
2518 (elf32_arm_vtinherit_howto, elf32_arm_vtentry_howto)
2519 (elf32_arm_pc11_howto, elf32_arm_thm_pc9_howto, elf32_arm_got_prel)
2520 (elf32_arm_r_howto): Replace with elf32_arm_howto_table_1,
2521 elf32_arm_howto_table_2, and elf32_arm_howto_table_3.
2522 Add many new relocations from AAELF.
2523 (elf32_arm_howto_from_type): Update to match.
2524 (elf32_arm_reloc_map): Add entries for R_ARM_THM_JUMP24,
2525 R_ARM_THM_JUMP11, R_ARM_THM_JUMP19, R_ARM_THM_JUMP8,
2526 R_ARM_THM_JUMP6, R_ARM_GNU_VTINHERIT, and R_ARM_GNU_VTENTRY.
2527 (elf32_arm_reloc_type_lookup): Use elf32_arm_howto_from_type.
2528 (elf32_arm_final_link_relocate): Add support for
2529 R_ARM_THM_JUMP24, R_ARM_THM_JUMP19, R_ARM_THM_JUMP6. Remove
2530 case entries redundant with default.
2532 * reloc.c: Reorganize ARM relocations. Add Thumb
2533 assembler-internal relocations BFD_RELOC_ARM_T32_OFFSET_U8,
2534 BFD_RELOC_ARM_T32_OFFSET_IMM, BFD_RELOC_ARM_T32_IMMEDIATE.
2535 Add visible relocations BFD_RELOC_THUMB_PCREL_BRANCH7,
2536 BFD_RELOC_THUMB_BRANCH20, BFD_RELOC_THUMB_BRANCH25.
2537 Delete unused relocations BFD_RELOC_ARM_GOT12, BFD_RELOC_ARM_COPY.
2538 * bfd-in2.h, libbfd.h: Regenerate.
2540 2005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
2542 * elf.c (_bfd_elf_write_object_contents): Check for non-NULL
2544 * format.c (bfd_check_format_matches): Set output_has_begun
2546 * section.c (bfd_set_section_contents): Use bfd_write_p. Remove
2547 special case for both_direction.
2549 2005-05-17 Nick Clifton <nickc@redhat.com>
2551 * elf.c (group_signature): Check for a group section which is
2552 actually a (corrupt) symbol table section in disguise and prevent
2553 an infinite loop from occurring.
2555 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
2557 * elfxx-ia64.c (elfNN_ia64_relax_brl): Undo the change made on
2560 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
2562 * elfxx-ia64.c (elfNN_ia64_relax_br): Keep the original
2563 predicate on slot 0 only if slot 0 isn't br.
2565 2005-05-17 H.J. Lu <hongjiu.lu@intel.com>
2568 * elf32-i386.c (elf_i386_size_dynamic_sections): Also remove
2569 empty sdynbss section.
2570 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
2572 2005-05-17 Tavis Ormandy <taviso@gentoo.org>
2574 * elf.c (bfd_section_from_shdr): Add sanity check when parsing
2577 2005-05-17 Alan Modra <amodra@bigpond.net.au>
2579 * elf32-ppc.c (LIS_11. LIS_12): Define.
2580 (LWZU_0_X_12, LWZ_0_X_12, LWZ_12_4_12, LWZ_12_X_12): Define.
2581 (ppc_elf_finish_dynamic_sections): Provide non-pic plt call stub
2582 for --data-plt when building non-pie executables.
2584 2005-05-17 Nick Clifton <nickc@redhat.com>
2586 * elf32-arm.c (elf32_arm_final_link_relocate): Gracefully handle
2587 the situation where a symbols's section is not known but a section
2588 relative R_ARM_RELATIVE reloc has to be generated for the Symbian
2591 * elf32-v850.c (v850_elf_relocate_section): Move code to test for
2592 the presence of a symbol table to just before the symbol table is
2595 2005-05-16 H.J. Lu <hongjiu.lu@intel.com>
2598 * elfxx-ia64.c (elfNN_ia64_relax_br): New.
2599 (elfNN_ia64_relax_section): Use it.
2601 2005-05-14 Mark Kettenis <kettenis@gnu.org>
2603 * elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead
2606 2005-05-14 Alan Modra <amodra@bigpond.net.au>
2608 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set DT_PPC_GOT,
2610 (ppc_elf_finish_dynamic_sections): Likewise.
2612 2005-05-13 Fred Fish <fnf@specifixinc.com>
2614 * libbfd-in.h: Fix a comment typo, 'neaderst' -> 'nearest'
2615 * libbfd.h: Rebuilt.
2617 2005-05-13 Bob Wilson <bob.wilson@acm.org>
2619 * elf32-xtensa.c (xtensa_get_property_section_name): Add missing
2620 periods in linkonce_kind values.
2622 2005-05-12 H.J. Lu <hongjiu.lu@intel.com>
2624 * elf32-i386.c (elf_i386_relocate_section): Allow R_386_GOTOFF
2625 against protected function when building executable.
2627 2005-05-12 Alan Modra <amodra@bigpond.net.au>
2629 * elf32-ppc.c (LWZU_0_X_11): Delete.
2630 (B, LWZ_11_X_11, LWZ_11_X_30, MTCTR_11): Define.
2631 (ppc_elf_select_plt_layout): Set .got flags too. Formatting.
2632 (ppc_elf_size_dynamic_sections): Allocate space for .glink branch
2634 (ppc_elf_finish_dynamic_symbol): Point .plt entries into the branch
2636 (ppc_elf_finish_dynamic_sections): Adjust DT_PPC_GLINK value.
2637 Generate .glink branch table and updated stubs.
2639 2005-05-11 Alan Modra <amodra@bigpond.net.au>
2641 * reloc.c (BFD_RELOC_HI16_PCREL): Define.
2642 (BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL): Define.
2643 * elf32-ppc.c (GLINK_PLTRESOLVE, GLINK_ENTRY_SIZE): Define.
2644 (CROR_151515, CROR_313131): Delete.
2645 (ADDIS_11_11, ADDI_11_11, SUB_11_11_30, ADD_0_11_11, ADD_11_0_11,
2646 LWZ_0_4_30, MTCTR_0, LWZ_12_8_30, BCTR, ADDIS_11_30,
2647 LWZU_0_X_11): Define.
2648 (ppc_elf_howto_raw): Add R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI
2649 and R_PPC_REL16_HA entries.
2650 (ppc_elf_reloc_type_lookup): Convert new bfd reloc types.
2651 (ppc_elf_addr16_ha_reloc): Also handle R_PPC_REL16_HA.
2652 (struct ppc_elf_link_hash_table): Add glink, glink_pltresolve,
2653 new_plt, and old_plt.
2654 (ppc_elf_create_dynamic_sections): Create .glink section.
2655 (ppc_elf_check_relocs): Set new_plt and old_plt.
2656 (ppc_elf_select_plt_layout): New function.
2657 (ppc_elf_tls_setup): Set plt output section elf type and flags.
2658 (allocate_got): Handle differences between old and new got layout.
2659 (allocate_dynrelocs): Likewise for plt.
2660 (ppc_elf_size_dynamic_sections): Likewise. Allocate memory for
2661 .glink. Don't allocate memory for old bss .plt. Emit DT_PPC_GLINK.
2662 (ppc_elf_relax_section): Rename ppc_info to htab. Handle .glink
2663 destination of R_PPC_PLTREL24 relocs.
2664 (ppc_elf_relocate_section): Handle new relocs and changed destination
2666 (ppc_elf_finish_dynamic_symbol): Init new style plt and handle
2667 differences in layout.
2668 (ppc_elf_finish_dynamic_sections): Set DT_PPC_GLINK value. Don't
2669 put a blrl in new got. Write glink contents.
2670 * elf32-ppc.h (ppc_elf_select_plt_layout): Declare.
2671 * libbfd.h: Regenerate.
2672 * bfd-in2.h: Regenerate.
2674 2005-05-11 Andreas Schwab <schwab@suse.de>
2676 * elf32-i386.c (elf_i386_finish_dynamic_sections): Fix signedness
2679 2005-05-10 H.J. Lu <hongjiu.lu@intel.com>
2681 * elf.c (_bfd_elf_make_section_from_shdr): Only check debug
2682 section if SEC_ALLOC isn't set.
2684 2005-05-09 Kelley Cook <kcook@gcc.gnu.org>
2686 * configure.in: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
2687 * acinclude.m4: Don't sinclude accross.m4.
2688 * config.in, configure, Makefile.in, doc/Makefile.in: Regenerate.
2690 2005-05-09 Alan Modra <amodra@bigpond.net.au>
2692 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_dotsym.
2693 (ppc64_elf_add_symbol_hook): Set has_dotsym.
2694 (ppc64_elf_check_directives): Only process syms when has_dotsym.
2695 (func_desc_adjust): Hide fake function descriptors when function
2696 code entry is defined.
2697 (adjust_opd_syms): Adjust for deleted_section becoming union field.
2699 2005-05-09 Alan Modra <amodra@bigpond.net.au>
2701 * elfcode.h (elf_object_p): Add more sanity checks on elf header.
2703 2005-05-08 Dave Korn <dave.korn@artimi.com>
2705 * coff-tic80.c: Undefine _CONST after system headers to prevent
2706 clash with tic80-specific definition in include/coff/tic80.h
2708 2005-05-08 H.J. Lu <hongjiu.lu@intel.com>
2711 * elflink.c (elf_link_output_extsym): Use output_bfd if
2712 h->root.u.def.section is bfd_abs_section_ptr when reporting
2715 2005-05-07 H.J. Lu <hongjiu.lu@intel.com>
2717 * elf-bfd.h (elf_backend_data): Update special_sections to
2718 array of pointer to bfd_elf_special_section.
2719 * elf.c (special_sections): Likewise.
2720 * elf32-arm.c (elf32_arm_symbian_special_sections): Likewise.
2721 * elf32-m32r.c (m32r_elf_special_sections): Likewise.
2722 * elf32-m68hc11.c (elf32_m68hc11_special_sections): Likewise.
2723 * elf32-m68hc12.c (elf32_m68hc12_special_sections): Likewise.
2724 * elf32-mcore.c (mcore_elf_special_sections): Likewise.
2725 * elf32-ppc.c (ppc_elf_special_sections): Likewise.
2726 * elf32-sh64.c (sh64_elf_special_sections): Likewise.
2727 * elf32-v850.c (v850_elf_special_sections): Likewise.
2728 * elf32-xtensa.c (elf_xtensa_special_sections): Likewise.
2729 * elf64-alpha.c (elf64_alpha_special_sections): Likewise.
2730 * elf64-hppa.c (elf64_hppa_special_sections): Likewise.
2731 * elf64-ppc.c (ppc64_elf_special_sections): Likewise.
2732 * elf64-sh64.c (sh64_elf64_special_sections): Likewise.
2733 * elfxx-ia64.c (elfNN_ia64_special_sections): Likewise.
2734 * elfxx-mips.c (_bfd_mips_elf_special_sections): Likewise.
2735 * elfxx-mips.h (_bfd_mips_elf_special_sections): Likewise.
2737 * elf.c (get_special_section): Updated.
2739 2005-05-07 Alan Modra <amodra@bigpond.net.au>
2741 * elf-bfd.h (struct elf_backend_data): Remove got_symbol_offset.
2742 * elfxx-target.h (elf_backend_got_symbol_offset): Delete.
2743 * elflink.c (_bfd_elf_create_got_section): Use zero in place of
2745 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
2746 * elf32-frv.c (_frv_create_got_section): Likewise.
2747 * elf32-i370.c (i370_elf_finish_dynamic_sections): Delete ppc code.
2748 (elf_backend_got_symbol_offset): Don't define.
2749 * elf64-ppc.c (elf_backend_got_symbol_offset): Don't define.
2750 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add got_header_size
2752 (ppc_elf_create_got): Tidy.
2753 (ppc_elf_create_dynamic_sections): Don't set SEC_IN_MEMORY for .plt.
2754 (ppc_elf_check_relocs): Reduce string comparisons by using elf.hgot.
2755 (ppc_elf_gc_sweep_hook): Likewise.
2756 (ppc_elf_relocate_section): Likewise.
2757 (ppc_elf_finish_dynamic_symbol): Likewise.
2758 (allocate_got): New function.
2759 (allocate_dynrelocs): Use allocate_got.
2760 (ppc_elf_size_dynamic_sections): Likewise. Delay tlsld_got allocation
2761 so that local got can refcount it. Set got_header_size.
2762 (ppc_elf_relocate_section): Use value of elf.hgot rather than hard-
2764 (ppc_elf_finish_dynamic_sections): Likewise.
2765 (elf_backend_got_symbol_offset): Don't define.
2766 (elf_backend_got_header_size): Ditto.
2768 2005-05-05 Steve Ellcey <sje@cup.hp.com>
2770 * configure.in (ACX_HEADER_STRING): New.
2771 * configure: Regenerate.
2772 * config.in: Regenerate.
2773 * sysdep.h (STRING_WITH_STRINGS): Use.
2775 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2777 * elf.c (_bfd_elf_close_and_cleanup): Only call
2778 _bfd_dwarf2_cleanup_debug_info on bfd_object.
2780 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2782 * elflink.c (_bfd_elf_provide_section_bound_symbols): Use
2783 "__bss_start" instead of "_edata" as fallback.
2785 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2787 * bfd-in2.h: Regenerated.
2789 2005-05-05 Paul Brook <paul@codesourcery.com>
2791 * config.bfd: Use bfd_elf32_i386_vxworks_vec for i?86-*-vxworks.
2792 * configure.in: Add bfd_elf32_i386_vxworks_vec. i386 targets need
2794 * configure: Regenerate.
2795 * Makefile.am (BFD32_BACKENDS): Add elf-vxworks.lo.
2796 (BFD32_BACKENDS_CFILES): Add elf-vxworks.c.
2797 (elf32-i386.lo): Depend on elf-vxworks.h.
2798 (elf-vxworks.lo): New rule.
2799 * Makefile.in: Regenerate.
2800 * elf-bfd.h (elf_backend_data): Update type of
2801 elf_backend_emit_relocs.
2802 (_bfd_elf_link_output_relocs): Update prototype.
2803 * elflink.c (_bfd_elf_link_output_relocs): Always use
2804 bed->elf_backend_emit_relocs when outputting relocations.
2805 * elfxx-target.h (elf_backend_emit_relocs): Default to
2806 _bfd_elf_link_output_relocs.
2807 * targets.c (bfd_elf32_i386_vxworks_vec): Declare.
2808 (_bfd_target_vector): Add bfd_elf32_i386_vxworks_vec.
2809 * elf32-i386.c: Add elf32-i386-vxworks target BFD.
2810 (elf_i386_plt0_entry): Remove padding.
2811 (elf_i386_pic_plt0_entry): Ditto.
2812 (PLTRESOLVE_RELOCS_SHLIB, PLTRESOLVE_RELOCS): Define.
2813 (PLT_NON_JUMP_SLOT_RELOCS): Define.
2814 (elf_i386_link_hash_table): Add srelplt2, hgot, hplt, is_vxworks and
2815 plt0_pad_byte fields.
2816 (elf_i386_link_hash_table_create): Zero them.
2817 (elf_i386_create_dynamic_sections): Create static relocation section.
2818 (allocate_dynrelocs): Allocate space for static PLT relocations.
2819 (elf_i386_size_dynamic_sections): Save shortcuts to PLT and GOT
2820 symbols. Give PLT symbols function type. Don't strip PLT sections
2821 if we have exported symbols from them.
2822 (elf_i386_finish_dynamic_symbol): Fill in VxWorks PLT static
2823 relocation section. Don't mark _GLOBAL_OFFSET_TABLE_ as absolute on
2825 (elf_i386_finish_dynamic_sections): Allow different pad bytes.
2826 Add relocation for GOT location. Fill in PLT static relocations.
2827 (elf_i386_vxworks_link_hash_table_create): New function.
2828 (elf_i386_vxworks_link_output_symbol_hook): New function.
2829 * elf-vxworks.h: New file.
2831 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2833 * section.c (bfd_make_section_anyway_with_flags): New.
2834 (bfd_make_section_anyway): Call bfd_make_section_anyway_with_flags,
2835 (bfd_make_section_with_flags): New.
2836 (bfd_make_section): Call bfd_make_section_with_flags.
2838 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Call
2839 bfd_make_section_with_flags/bfd_make_section_anyway_with_flags
2840 instead of bfd_make_section/bfd_make_section and don't call
2841 bfd_set_section_flags.
2842 (mn10300_elf_check_relocs): Likewise.
2843 (_bfd_mn10300_elf_create_dynamic_sections): Likewise.
2844 * elf32-arm.c (create_got_section): Likewise.
2845 (bfd_elf32_arm_add_glue_sections_to_bfd): Likewise.
2846 (elf32_arm_check_relocs): Likewise.
2847 * elf32-cris.c (cris_elf_check_relocs): Likewise.
2848 * elf32-frv.c (elf32_frv_add_symbol_hook): Likewise.
2849 (_frv_create_got_section): Likewise.
2850 (elf32_frvfdpic_create_dynamic_sections): Likewise.
2851 * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise.
2852 (elf32_hppa_check_relocs): Likewise.
2853 * elf32-i370.c (i370_elf_create_dynamic_sections): Likewise.
2854 (i370_elf_check_relocs): Likewise.
2855 * elf32-i386.c (create_got_section): Likewise.
2856 (elf_i386_check_relocs): Likewise.
2857 * elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise.
2858 (create_got_section): Likewise.
2859 (m32r_elf_create_dynamic_sections): Likewise.
2860 (m32r_elf_check_relocs): Likewise.
2861 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
2862 * elf32-ppc.c (ppc_elf_create_got): Likewise.
2863 (ppc_elf_create_dynamic_sections): Likewise.
2864 (ppc_elf_add_symbol_hook): Likewise.
2865 (ppc_elf_check_relocs): Likewise.
2866 * elf32-s390.c (create_got_section): Likewise.
2867 (elf_s390_check_relocs): Likewise.
2868 * elf32-sh.c (create_got_section): Likewise.
2869 (sh_elf_create_dynamic_sections): Likewise.
2870 (sh_elf_check_relocs): Likewise.
2871 * elf32-vax.c (elf_vax_check_relocs): Likewise.
2872 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
2873 * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise.
2874 (add_extra_plt_sections): Likewise.
2875 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
2876 (elf64_alpha_create_got_section): Likewise.
2877 (elf64_alpha_create_dynamic_sections): Likewise.
2878 (elf64_alpha_check_relocs): Likewise.
2879 * elf64-hppa.c (get_reloc_section): Likewise.
2880 (get_opd): Likewise.
2881 (get_plt): Likewise.
2882 (get_dlt): Likewise.
2883 (get_stub): Likewise.
2884 (elf64_hppa_create_dynamic_sectionso): Likewise.
2885 * elf64-mmix.c (mmix_elf_check_common_relocs): Likewise.
2886 * elf64-ppc.c (create_linkage_sections): Likewise.
2887 (ppc64_elf_check_relocs): Likewise.
2888 * elf64-s390.c (create_got_section): Likewise.
2889 (elf_s390_check_relocs): Likewise.
2890 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
2891 (sh64_elf64_create_dynamic_sections): Likewise.
2892 * elf64-x86-64.c (create_got_section): Likewise.
2893 (elf64_x86_64_check_relocs): Likewise.
2894 * elflink.c (_bfd_elf_create_got_section): Likewise.
2895 (_bfd_elf_link_create_dynamic_sections): Likewise.
2896 (elf_link_add_object_symbols): Likewise.
2897 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
2898 (elfNN_ia64_create_dynamic_sections): Likewise.
2899 (get_fptr): Likewise.
2900 (get_pltoff): Likewise.
2901 (get_reloc_section): Likewise.
2902 (elfNN_ia64_object_p): Likewise.
2903 * elfxx-mips.c (mips_elf_rel_dyn_section): Likewise.
2904 (mips_elf_create_compact_rel_section): Likewise.
2905 (mips_elf_create_got_section): Likewise.
2906 (_bfd_mips_elf_create_dynamic_sections): Likewise.
2907 * elfxx-sparc.c (create_got_section): Likewise.
2908 (_bfd_sparc_elf_check_relocs): Likewise.
2910 * elf.c (_bfd_elf_new_section_hook): Call _bfd_elf_get_sec_type_attr
2911 on linker created sections.
2913 2005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2916 * elflink.c (_bfd_elf_link_assign_sym_version): Allow version
2917 script on executable.
2919 2005-05-05 John Levon <levon@movementarian.org>
2921 * dwarf2.c (read_abbrevs): If bfd_realloc fails, free currently
2922 allocated memory before returning.
2923 (decode_line_info): Likewise.
2924 (_bfd_dwarf2_cleanup_debug_info): New function: Frees memory
2925 allocated by functions in this file.
2926 * elf-bfd.h (_bfd_dwarf2_cleanup_debug_info): Prototype.
2927 * elf.c (_bfd_elf_close_and_cleanup): Call
2928 _bfd_dwarf2_cleanup_debug_info.
2930 2005-05-05 Hans-Peter Nilsson <hp@axis.com>
2932 * Makefile.am (INCLUDES): Don't -D_GNU_SOURCE here.
2933 * configure.in: Call AC_GNU_SOURCE here, after AC_PROG_CC.
2934 * configure, config.in, Makefile.in: Regenerate.
2935 * sysdep.h (stpcpy): Revert last change.
2937 2005-05-05 Hans-Peter Nilsson <hp@axis.com>
2939 * sysdep.h (stpcpy): Wrap declaration in parentheses.
2941 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
2943 * elfxx-ia64.c (ARCH_SIZE): New.
2944 (LOG_SECTION_ALIGN): Likewise.
2945 (elfNN_ia64_create_dynamic_sections): Use LOG_SECTION_ALIGN to
2946 align relocation sections.
2947 (get_fptr): Likewise.
2948 (get_reloc_section): Likewise.
2949 (elfNN_ia64_tprel_base): Likewise.
2950 (elfNN_ia64_check_relocs): Support 32bit relocations.
2951 (allocate_global_fptr_got): Likewise.
2952 (allocate_dynrel_entries): Likewise.
2953 (set_got_entry): Likewise.
2954 (set_pltoff_entry): Likewise.
2955 (elfNN_ia64_relocate_section): Likewise.
2957 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
2959 * configure.in: Add AC_CHECK_DECLS(stpcpy).
2960 * configure: Regenerate.
2961 * config.in: Likewise.
2963 * sysdep.h (stpcpy): New.
2965 2005-05-04 Nick Clifton <nickc@redhat.com>
2967 * Update the address and phone number of the FSF organization in
2968 the GPL notices in the following files:
2969 aix386-core.c, aix5ppc-core.c, aout-adobe.c, aout-arm.c,
2970 aout-cris.c, aout-ns32k.c, aout-sparcle.c, aout-target.h,
2971 aout-tic30.c, aout0.c, aout32.c, aout64.c, aoutf1.h, aoutx.h,
2972 archive.c, archive64.c, archures.c, armnetbsd.c, bfd-in.h,
2973 bfd-in2.h, bfd.c, bfdio.c, bfdwin.c, binary.c, bout.c, cache.c,
2974 cf-i386lynx.c, cf-m68klynx.c, cf-sparclynx.c, cisco-core.c,
2975 coff-a29k.c, coff-alpha.c, coff-apollo.c, coff-arm.c, coff-aux.c,
2976 coff-go32.c, coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i860.c,
2977 coff-i960.c, coff-ia64.c, coff-m68k.c, coff-m88k.c, coff-maxq.c,
2978 coff-mcore.c, coff-mips.c, coff-or32.c, coff-pmac.c, coff-ppc.c,
2979 coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c,
2980 coff-svm68k.c, coff-tic30.c, coff-tic4x.c, coff-tic54x.c,
2981 coff-tic80.c, coff-u68k.c, coff-w65.c, coff-we32k.c, coff-z8k.c,
2982 coff64-rs6000.c, coffcode.h, coffgen.c, cofflink.c, coffswap.h,
2983 corefile.c, cpu-a29k.c, cpu-alpha.c, cpu-arc.c, cpu-arm.c,
2984 cpu-avr.c, cpu-cr16c.c, cpu-cris.c, cpu-crx.c, cpu-d10v.c,
2985 cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, cpu-h8300.c,
2986 cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, cpu-i860.c,
2987 cpu-i960.c, cpu-ia64-opc.c, cpu-ia64.c, cpu-ip2k.c, cpu-iq2000.c,
2988 cpu-m10200.c, cpu-m10300.c, cpu-m32r.c, cpu-m68hc11.c,
2989 cpu-m68hc12.c, cpu-m68k.c, cpu-m88k.c, cpu-maxq.c, cpu-mcore.c,
2990 cpu-mips.c, cpu-mmix.c, cpu-msp430.c, cpu-ns32k.c, cpu-openrisc.c,
2991 cpu-or32.c, cpu-pdp11.c, cpu-pj.c, cpu-powerpc.c, cpu-rs6000.c,
2992 cpu-s390.c, cpu-sh.c, cpu-sparc.c, cpu-tic30.c, cpu-tic4x.c,
2993 cpu-tic54x.c, cpu-tic80.c, cpu-v850.c, cpu-vax.c, cpu-w65.c,
2994 cpu-we32k.c, cpu-xstormy16.c, cpu-xtensa.c, cpu-z8k.c, demo64.c,
2995 dwarf1.c, dwarf2.c, ecoff.c, ecofflink.c, ecoffswap.h,
2996 efi-app-ia32.c, efi-app-ia64.c, elf-bfd.h, elf-eh-frame.c,
2997 elf-hppa.h, elf-m10200.c, elf-m10300.c, elf-strtab.c, elf.c,
2998 elf32-am33lin.c, elf32-arc.c, elf32-arm.c, elf32-avr.c,
2999 elf32-cr16c.c, elf32-cris.c, elf32-crx.c, elf32-d10v.c,
3000 elf32-d30v.c, elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-gen.c,
3001 elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, elf32-i370.c,
3002 elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
3003 elf32-iq2000.c, elf32-m32r.c, elf32-m68hc11.c, elf32-m68hc12.c,
3004 elf32-m68hc1x.c, elf32-m68hc1x.h, elf32-m68k.c, elf32-m88k.c,
3005 elf32-mcore.c, elf32-mips.c, elf32-msp430.c, elf32-openrisc.c,
3006 elf32-or32.c, elf32-pj.c, elf32-ppc.c, elf32-ppc.h, elf32-s390.c,
3007 elf32-sh-symbian.c, elf32-sh.c, elf32-sh64-com.c, elf32-sh64.c,
3008 elf32-sh64.h, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
3009 elf32-xstormy16.c, elf32-xtensa.c, elf32.c, elf64-alpha.c,
3010 elf64-gen.c, elf64-hppa.c, elf64-hppa.h, elf64-mips.c,
3011 elf64-mmix.c, elf64-ppc.c, elf64-ppc.h, elf64-s390.c,
3012 elf64-sh64.c, elf64-sparc.c, elf64-x86-64.c, elf64.c, elfcode.h,
3013 elfcore.h, elflink.c, elfn32-mips.c, elfxx-ia64.c, elfxx-mips.c,
3014 elfxx-mips.h, elfxx-sparc.c, elfxx-sparc.h, elfxx-target.h,
3015 epoc-pe-arm.c, epoc-pei-arm.c, format.c, freebsd.h, gen-aout.c,
3016 genlink.h, hash.c, host-aout.c, hp300bsd.c, hp300hpux.c,
3017 hppabsd-core.c, hpux-core.c, i386aout.c, i386bsd.c, i386dynix.c,
3018 i386freebsd.c, i386linux.c, i386lynx.c, i386mach3.c, i386msdos.c,
3019 i386netbsd.c, i386os9k.c, ieee.c, ihex.c, init.c, irix-core.c,
3020 libaout.h, libbfd-in.h, libbfd.c, libbfd.h, libcoff-in.h,
3021 libcoff.h, libecoff.h, libhppa.h, libieee.h, libnlm.h, liboasys.h,
3022 libpei.h, libxcoff.h, linker.c, lynx-core.c, m68k4knetbsd.c,
3023 m68klinux.c, m68klynx.c, m68knetbsd.c, m88kmach3.c, m88kopenbsd.c,
3024 mach-o-target.c, mach-o.c, mach-o.h, merge.c, mipsbsd.c, mmo.c,
3025 netbsd-core.c, netbsd.h, newsos3.c, nlm-target.h, nlm.c,
3026 nlm32-alpha.c, nlm32-i386.c, nlm32-ppc.c, nlm32-sparc.c, nlm32.c,
3027 nlm64.c, nlmcode.h, nlmswap.h, ns32k.h, ns32knetbsd.c, oasys.c,
3028 opncls.c, osf-core.c, pc532-mach.c, pdp11.c, pe-arm.c, pe-i386.c,
3029 pe-mcore.c, pe-mips.c, pe-ppc.c, pe-sh.c, peXXigen.c,
3030 pef-traceback.h, pef.c, pef.h, pei-arm.c, pei-i386.c, pei-mcore.c,
3031 pei-mips.c, pei-ppc.c, pei-sh.c, peicode.h, ppcboot.c,
3032 ptrace-core.c, reloc.c, reloc16.c, riscix.c, rs6000-core.c,
3033 sco5-core.c, section.c, simple.c, som.c, som.h, sparclinux.c,
3034 sparclynx.c, sparcnetbsd.c, srec.c, stab-syms.c, stabs.c, sunos.c,
3035 syms.c, sysdep.h, targets.c, tekhex.c, ticoff.h, trad-core.c,
3036 vax1knetbsd.c, vaxbsd.c, vaxnetbsd.c, versados.c, vms-gsd.c,
3037 vms-hdr.c, vms-misc.c, vms-tir.c, vms.c, vms.h, xcoff-target.h,
3038 xcofflink.c, xsym.c, xsym.h, xtensa-isa.c, xtensa-modules.c,
3041 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
3043 * bfd-in.h (_bfd_elf_provide_section_bound_symbols): New.
3044 * bfd-in2.h: Regenerated.
3046 * elflink.c (bfd_elf_set_symbol): New.
3047 (_bfd_elf_provide_symbol): Call it.
3048 (_bfd_elf_provide_section_bound_symbols): New.
3050 2005-05-04 H.J. Lu <hongjiu.lu@intel.com>
3052 * elflink.c (_bfd_elf_merge_symbol): Only skip weak definitions
3053 at the end, if a strong definition has already been seen.
3055 2005-05-04 Alan Modra <amodra@bigpond.net.au>
3057 * section.c (struct bfd_section): Replace link_order_head and
3058 link_order_tail with map_head and map_tail union.
3059 (STD_SECTION): Update.
3060 (_bfd_strip_section_from_output): Delete.
3061 * aoutx.h: Update throughout for above changes.
3062 * coff-ppc.c: Likewise.
3063 * cofflink.c: Likewise.
3064 * ecoff.c: Likewise.
3065 * elf-eh-frame.c: Likewise.
3066 * elf-m10300.c: Likewise.
3068 * elf32-arm.c: Likewise.
3069 * elf32-cris.c: Likewise.
3070 * elf32-hppa.c: Likewise.
3071 * elf32-i386.c: Likewise.
3072 * elf32-m32r.c: Likewise.
3073 * elf32-m68hc1x.c: Likewise.
3074 * elf32-m68k.c: Likewise.
3075 * elf32-ppc.c: Likewise.
3076 * elf32-s390.c: Likewise.
3077 * elf32-sh.c: Likewise.
3078 * elf32-vax.c: Likewise.
3079 * elf32-xtensa.c: Likewise.
3080 * elf64-alpha.c: Likewise.
3081 * elf64-hppa.c: Likewise.
3082 * elf64-ppc.c: Likewise.
3083 * elf64-s390.c: Likewise.
3084 * elf64-sh64.c: Likewise.
3085 * elf64-x86-64.c: Likewise.
3086 * elflink.c: Likewise.
3087 * elfxx-ia64.c: Likewise.
3088 * elfxx-mips.c: Likewise.
3089 * elfxx-sparc.c: Likewise.
3090 * linker.c: Likewise.
3091 * merge.c: Likewise.
3092 * pdp11.c: Likewise.
3093 * xcofflink.c: Likewise.
3094 * elflink.c (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Split
3095 out from bfd_elf_size_dynamic_sections.
3096 * bfd-in.h (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Declare.
3097 * bfd-in2.h: Regenerate.
3099 2005-05-04 Alan Modra <amodra@bigpond.net.au>
3101 * section.c (bfd_section_list_remove): Don't clear s->next.
3102 (bfd_section_list_append): Always init s->prev.
3103 (bfd_section_list_prepend): Define.
3104 (bfd_section_list_insert_after): Minor optimization.
3105 (bfd_section_removed_from_list): Rewrite.
3106 * elf.c (assign_section_numbers): Simplify list traversal now that
3107 bfd_section_list_remove doesn't destroy removed section next ptr.
3108 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3109 * elfxx-ia64.c (elfNN_ia64_object_p): Use bfd_section_list_prepend.
3110 * xcofflink.c (_bfd_xcoff_bfd_final_link): Simplify list traversal.
3111 * bfd-in2.h: Regenerate.
3113 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
3115 * bfd.c (bfd): Remove section_tail and add section_last.
3116 (bfd_preserve): Likewise.
3117 (bfd_preserve_save): Likewise.
3118 (bfd_preserve_restore): Likewise.
3119 * opncls.c (_bfd_new_bfd): Likewise.
3121 * coffcode.h (coff_compute_section_file_positions): Updated.
3122 (coff_compute_section_file_positions): Likewise.
3123 * elf.c (assign_section_numbers): Likewise.
3124 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
3125 * elf64-mmix.c (mmix_elf_final_link): Likewise.
3126 * elfxx-ia64.c (elfNN_ia64_object_p): Likewise.
3127 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
3128 * sunos.c (sunos_add_dynamic_symbols): Likewise.
3129 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
3131 * ecoff.c (bfd_debug_section): Initialize prev.
3133 * section.c (bfd_section): Add prev.
3134 (bfd_section_list_remove): Updated.
3135 (bfd_section_list_append): New.
3136 (bfd_section_list_insert_after): New.
3137 (bfd_section_list_insert_before): New.
3138 (bfd_section_list_insert): Removed.
3139 (bfd_section_removed_from_list): Updated.
3140 (STD_SECTION): Initialize prev.
3141 (bfd_section_init): Updated.
3142 (bfd_section_list_clear): Updated.
3144 * bfd-in2.h: Regenerated.
3146 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
3148 * elf.c (_bfd_elf_new_section_hook): Don't call
3149 _bfd_elf_get_sec_type_attr on sections from input files.
3151 2005-05-02 H.J. Lu <hongjiu.lu@intel.com>
3153 * merge.c (sec_merge_init): Call bfd_hash_table_init_n with
3154 hash table size 16699 instead of bfd_hash_table_init.
3156 2005-05-01 Paul Brook <paul@codesourcery.com>
3158 * elflink.c (_bfd_elf_merge_symbol): Skip weak definitions if a strong
3159 definition has already been seen.
3161 2005-05-01 Paul Brook <paul@codesourcery.com>
3163 * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Treat
3164 R_ARM_PLT32 the same as R_ARM_PC24.
3165 (arm_add_to_rel): Ditto.
3167 2005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
3169 * config.bfd: Add h8300*-*-rtemscoff.
3170 Switch h8300*-*-rtems* to elf.
3172 2005-04-29 Daniel Jacobowitz <dan@codesourcery.com>
3174 * aclocal.m4, Makefile.in: Regnerated.
3176 2005-04-28 Paul Brook <paul@codesourcery.com>
3178 Merge changes only applied to Makefile.in.
3179 * Makefile.am (BFD32_BACKENDS): Add elfxx-sparc.lo
3180 (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c
3181 (elfxx-sparc.lo): New rule.
3182 (elf32-sparc.lo): Add elfxx-sparc.h dependency.
3183 (elf64-sparc.lo): Likewise.
3185 2005-04-28 Julian Brown <julian@codesourcery.com>
3187 * elflink.c (_bfd_elf_provide_symbol): Provide symbol for weak
3190 2005-04-27 H.J. Lu <hongjiu.lu@intel.com>
3192 * elf-bfd.h (bfd_elf_sym_name): Also take "asection *".
3194 * elf.c (bfd_elf_sym_name): Updated.
3195 (group_signature): Likewise.
3196 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
3197 * elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
3198 (ppc64_elf_edit_toc): Likewise.
3199 (ppc64_elf_relocate_section): Likewise.
3200 * elfcode.h (elf_slurp_symbol_table): Likewise.
3201 * elflink.c (elf_link_input_bfd): Likewise.
3203 * elfxx-ia64.c (elfNN_ia64_relocate_section): Call
3204 bfd_elf_sym_name to get local symbol name when reporting errors.
3206 2005-04-27 Nick Clifton <nickc@redhat.com>
3208 * elflink.c (elf_link_input_bfd): Handle the case where a badly
3209 formatted input file results in a reloc which has no associated
3212 2005-04-26 Jerome Guitton <guitton@gnat.com>
3214 * bfd.m4 (BFD_NEED_DECLARATION): Restore.
3216 2005-04-25 David S. Miller <davem@davemloft.net>
3218 * elfxx-sparc.c (sparc_elf_append_rela_64): Add BFD64 protection.
3219 (sparc_elf_r_info_64, _bfd_sparc_elf_finish_dynamic_symbol,
3220 sparc64_finish_dyn, _bfd_sparc_elf_finish_dynamic_sections):
3223 2005-04-25 H.J. Lu <hongjiu.lu@intel.com>
3226 * elflink.c (elf_link_input_bfd): Make non-debugging reference
3227 to discarded section an error.
3229 2005-04-21 Jerome Guitton <guitton@gnat.com>
3231 * configure.in: Replace BFD_NEED_DECLARATION checks by the
3232 corresponding AC_CHECK_DECLS.
3233 * sysdep.h: Replace NEED_DECLARATION_* checks by the corresponding
3235 * bfd.m4 (BFD_NEED_DECLARATION): Remove, obsolete.
3236 * configure: Regenerate.
3239 2005-04-21 Andreas Schwab <schwab@suse.de>
3241 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove
3242 unsigned from type of dynamic_interpreter.
3243 * elfxx-sparc.c (_bfd_sparc_elf_link_hash_table_create): Remove
3246 * elf.c (assign_section_numbers): Fix comment.
3248 2005-04-21 Jerome Guitton <guitton@gnat.com>
3250 * som.c (som_bfd_print_private_bfd_data): Add explicit cast to long
3251 for struct som_exec_auxhdr fields.
3253 2005-04-21 Nick Clifton <nickc@redhat.com>
3255 * aout-adobe.c: Convert to ISO C and fix formatting.
3256 * aout-arm.c: Convert to ISO C and fix formatting.
3257 * aout-cris.c: Convert to ISO C and fix formatting.
3258 * aout-ns32k.c: Convert to ISO C and fix formatting.
3259 * aout-tic30.c: Convert to ISO C and fix formatting.
3260 * coffcode.h: Convert to ISO C and fix formatting.
3261 * coffswap.h: Convert to ISO C and fix formatting.
3262 * i386aout.c: Convert to ISO C and fix formatting.
3263 * libaout.h: Convert to ISO C and fix formatting.
3264 * libcoff-in.h: Convert to ISO C and fix formatting.
3265 * libcoff.h: Convert to ISO C and fix formatting.
3266 * libecoff.h: Convert to ISO C and fix formatting.
3267 * libnlm.h: Convert to ISO C and fix formatting.
3268 * libpei.h: Convert to ISO C and fix formatting.
3269 * libxcoff.h: Convert to ISO C and fix formatting.
3270 * nlm-target.h: Convert to ISO C and fix formatting.
3271 * nlm.c: Convert to ISO C and fix formatting.
3272 * nlm32-alpha.c: Convert to ISO C and fix formatting.
3273 * nlm32-i386.c: Convert to ISO C and fix formatting.
3274 * nlm32-ppc.c: Convert to ISO C and fix formatting.
3275 * nlm32-sparc.c: Convert to ISO C and fix formatting.
3276 * nlmcode.h: Convert to ISO C and fix formatting.
3277 * nlmswap.h: Convert to ISO C and fix formatting.
3278 * pe-mips.c: Convert to ISO C and fix formatting.
3279 * peXXigen.c: Convert to ISO C and fix formatting.
3280 * peicode.h: Convert to ISO C and fix formatting.
3281 * vms-gsd.c: Convert to ISO C and fix formatting.
3282 * vms-hdr.c: Convert to ISO C and fix formatting.
3283 * vms-misc.c: Convert to ISO C and fix formatting.
3284 * vms-tir.c: Convert to ISO C and fix formatting.
3285 * vms.c: Convert to ISO C and fix formatting.
3286 * vms.h: Convert to ISO C and fix formatting.
3288 * coffgen.c (coff_print_symbol): Restore correct formatting of
3291 2005-04-20 David S. Miller <davem@davemloft.net>
3293 * elfxx-sparc.c (sparc_elf_r_symndx_64): Fix compiler warning.
3294 (_bfd_sparc_elf_link_hash_table_create): Likewise.
3295 (allocate_dynrelocs): Likewise.
3297 2005-04-20 Jerome Guitton <guitton@gnat.com>
3299 * configure.in: Fix the check for basename declaration. Add check
3300 for declarations of ftello, ftello64, fseeko, fseeko64.
3301 * configure: Regenerate.
3303 * sysdep.h: If needed, declare ftello, ftello64, fseeko, fseeko64.
3305 2005-04-19 David S. Miller <davem@davemloft.net>
3307 * elfxx-sparc.c: New file.
3308 * elfxx-sparc.h: New file.
3309 * Makefile.in (BFD32_BACKENDS): Add elfxx-sparc.lo
3310 (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c
3311 (elfxx-sparc.lo): New rule.
3312 (elf32-sparc.lo): Add elfxx-sparc.h dependency.
3313 (elf64-sparc.lo): Likewise.
3314 * configure.in (bfd_elf32_sparc_vec): Add elfxx-sparc.lo
3315 (bfd_elf64_sparc_vec): Likewise.
3316 * configure: Regenerate.
3317 * elf32-sparc.c: Remove common code now in elfxx-sparc.c
3318 * elf64-sparc.c: Likewise, also use elf64_sparc_*() naming
3319 which is more consistent with elf32-sparc.c
3321 2005-04-19 Daniel Jacobowitz <dan@codesourcery.com>
3323 * elfxx-mips.c (struct mips_elf_link_hash_entry): Update comment.
3324 (mips_elf_create_local_got_entry): Check h->root.forced_local.
3326 2005-04-19 Alan Modra <amodra@bigpond.net.au>
3328 * elf32-ppc.c (ppc_elf_check_relocs): Don't bother with
3329 dynamic relocs in non-SEC_ALLOC sections.
3330 (ppc_elf_gc_sweep_hook): Likewise.
3331 (ppc_elf_relax_section): Likewise.
3332 (ppc_elf_relocate_section): Likewise.
3334 2005-04-18 Nick Clifton <nickc@redhat.com>
3336 * aix5ppc-core.c (xcoff64_core_p): Fix compile time warning
3337 assigning a value to return_value.
3339 2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
3342 * elf.c (_bfd_elf_copy_private_section_data): Don't copy linker
3345 2005-04-17 H.J. Lu <hongjiu.lu@intel.com>
3348 * elf.c (setup_group): Properly handle zero group count.
3350 2005-04-17 Mark Kettenis <kettenis@gnu.org>
3352 * som.c (hppa_som_reloc, som_mkobject, som_is_space)
3353 (som_is_subspace, compare_subspaces, som_compute_checksum)
3354 (som_build_and_write_symbol_table, som_slurp_symbol_table): New
3356 (hppa_som_reloc, compare_syms, compare_subspaces)
3357 (som_print_symbol, som_get_section_contents)
3358 (som_set_section_contents): Remove space after 'void *'.
3359 (som_bfd_print_private_bfd_data): Use %lx to print longs.
3360 (som_bfd_merge_private_bfd_data)
3361 (som_bfd_copy_private_header_data, som_bfd_set_private_flags): New
3364 2004-04-15 Julian Brown <julian@codesourcery.com>
3366 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
3367 * bfd-in2.h: Regenerate.
3368 * elf32-arm.c (elf32_arm_link_hash_table): New field, 'use_blx'.
3369 (elf32_arm_link_hash_table_create): Initialise fix_v4bx, use_blx.
3370 (bfd_elf32_arm_set_target_relocs): Handle use_blx.
3371 (elf32_arm_final_link_relocate): Use Thumb BLX for R_ARM_THM_PC22
3372 relocations if requested to.
3373 (allocate_dynrelocs): Don't count size of omitted Thumb stubs based on
3374 use_blx rather than symbian_p.
3375 (elf32_arm_finish_dynamic_symbol): Don't output Thumb PLT stubs if
3376 use_blx is in effect.
3377 (elf32_arm_symbian_link_hash_table_create): Enable use_blx by default
3380 2005-04-15 Nick Clifton <nickc@redhat.com>
3382 * coffgen.c (coff_print_symbol): Use fprintf_vma to print vma
3385 2005-04-15 Alan Modra <amodra@bigpond.net.au>
3388 * elflink.c (elf_smash_syms): Clear undef.next if it's not being
3389 used as a list pointer.
3391 2005-04-14 Alan Modra <amodra@bigpond.net.au>
3393 * Makefile.am (NO_WERROR): Define.
3394 * warning.m4: New file
3395 * acinclude.m4: Include warning.m4.
3396 * configure.in: Invoke AM_BINUTILS_WARNINGS.
3397 * Makefile.in: Regenerate.
3398 * configure: Regenerate.
3400 2005-04-14 Alan Modra <amodra@bigpond.net.au>
3402 * merge.c (sec_merge_emit): Tidy. Check for bfd_zmalloc errors.
3403 Write trailing padding.
3405 * merge.c (merge_strings): Round up section size for alignment.
3407 2005-04-14 David S. Miller <davem@davemloft.net>
3409 Add TLS support for 64-bit Sparc ELF.
3410 * elf64-sparc.c (sparc64_elf_dyn_relocs,
3411 sparc64_elf_link_hash_entry, sparc64_elf_obj_tdata): New structs.
3412 (GOT_UNKNOWN, GOT_NORMAL, GOT_TLD_GD, GOT_TLD_IE,
3413 sparc64_elf_hash_entry, sparc64_elf_tdata,
3414 sparc64_elf_local_got_tls_type): New defines.
3415 (sparc64_elf_mkobject): New function.
3416 (sparc64_elf_link_hash_table): Add members for dynamic linker
3417 sections PLT, RELPLT, DYNBSS, and RELBSS. Add tls_ldm_got
3418 uion to track TLS GOT references. Add sym_sec to cache
3419 mappings from local sym to section.
3420 (link_hash_newfunc): New function.
3421 (sparc64_elf_bfd_link_hash_table_create): Rename to
3422 sparc64_elf_link_hash_table_create for consistency.
3423 Pass link_hash_newfunc to _bfd_elf_link_hash_table_init.
3424 (sparc64_elf_create_dynamic_sections): Initialize new section
3425 members of sparc64_elf_link_hash_table. Only init srelbss
3427 (sparc64_elf_copy_indirect_symbol, sparc64_elf_tls_transition):
3429 (SPARC_NOP): Define.
3430 (sparc64_elf_build_plt, sparc64_elf_plt_entry_offset,
3431 sparc64_elf_plt_ptr_offset): Delete.
3432 (sparc64_plt_entry_build): New function to build PLT entries
3433 gradually instread of all at once at the end of linking.
3434 (sparc64_elf_check_relocs): Delete dynobj, sgot, and srelgot
3435 local vars. Get them from sparc64_elf_hash_table instead.
3436 Check early on if r_symndx is in bounds. Handle TLS transitions.
3437 Account for TLS GOT references and DF_STATIC_TLS, as needed.
3438 For TLS relocs, record the tls_type in either
3439 sparc64_elf_local_got_tls_type or sparc64_elf_hash_entry as
3440 appropriate. For R_SPARC_TLS_{GD,LDM}_CALL, emit a reference
3441 to the __tls_get_addr symbol. For PLT relocs, track references
3442 via h->plt.refcount. When R_SPARC_{PC10,PC22,PC_HH22,PC_HM10,
3443 PC_LM22} and h not-NULL, set h->non_got_ref. For global data
3444 symbol references, count the number of relocations needed for
3445 that symbol. For default switch case, don't error, this lets
3446 the TLS relocs not explicitly handled by this function get
3448 (sparc64_elf_gc_mark_hook, sparc64_gc_sweep_hook): New functions.
3449 (sparc64_elf_adjust_dynamic_symbol): Remove dynobj local var, get
3450 it from sparc64_elf_hash_table. Store the real PLT offset
3451 in h->plt.offset, and build PLT entries one at a time. Also
3452 get .dynbss section pointer from htab.
3453 (allocate_dynrelocs, readonly_dynrelocs,
3454 sparc64_omit_section_dynsym): New functions.
3455 (sparc64_elf_omit_section_dynsym): Use these new functions as
3457 (dtpoff_base, tpoff): New functions.
3458 (sparc64_elf_relocate_section): Kill dynobj, sgot, and splt
3459 locals, get them from sparc64_elf_hash_table. Handle TLS
3460 relocations and refcounting in main relocation loop.
3461 (sparc64_elf_finish_dynamic_symbol): Use
3462 sparc64_elf_link_hash_table. Build PLT entries as we see
3463 them. Handle TLS GOT relocations.
3464 (sparc64_elf_finish_dynamic_sections): Get sgot and dynobj
3465 from sparc64_elf_hash_table. Initialize only PLT header
3466 not all entries since we not build PLT entries one by one.
3467 (elf_backend_copy_indirect_symbol, bfd_elf64_mkobject,
3468 elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook,
3469 elf_backend_can_gc_sections, elf_backend_can_refcount): Define.
3471 2005-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3473 * elflink.c (elf_link_input_bfd): Update check for removed
3476 2005-04-12 Alan Modra <amodra@bigpond.net.au>
3478 * Makefile.am: Run "make dep-am".
3479 * Makefile.in: Regenerate.
3480 * aclocal.m4: Regenerate.
3481 * libcoff.h: Regenerate.
3483 2005-04-11 H.J. Lu <hongjiu.lu@intel.com>
3485 * linker.c (_bfd_generic_link_output_symbols): Also check if
3486 the output section of an input section has been removed from
3489 * section.c (bfd_section_list_remove): Clear the next field
3490 of the removed section.
3491 (bfd_section_removed_from_list): New.
3492 * bfd-in2.h: Regenerated.
3494 2005-04-11 David S. Miller <davem@davemloft.net>
3496 * elf32-sparc.c (elf32_sparc_relocate_section,
3497 R_SPARC_TLS_LDO_{HIX22,LOX10}): When not shared, transition to
3498 R_SPARC_TLS_LE_{HIX22,LOX10}.
3499 (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_HIX22): Only
3500 xor relocation with 0xffffffff if R_SPARC_TLS_LE_HIX22.
3501 (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_LOX10): Only
3502 or 0x1c00 into relocation if R_SPARC_TLS_LE_HIX22.
3504 2005-04-11 H.J. Lu <hongjiu.lu@intel.com>
3506 * coffcode.h (STRING_SIZE_SIZE): Updated to match libcoff-in.h.
3508 2005-04-11 Nick Clifton <nickc@redhat.com>
3510 * aout-target.h: Convert to ISO C.
3511 * aoutf1.h: Convert to ISO C.
3512 * aoutx.h: Convert to ISO C.
3513 * bout.c: Convert to ISO C.
3514 * dwarf1.c: Convert to ISO C.
3515 * ecoffswap.h: Convert to ISO C.
3516 * freebsd.h: Convert to ISO C.
3517 * genlink.h: Convert to ISO C.
3518 * ieee.c: Convert to ISO C.
3519 * ihex.c: Convert to ISO C.
3520 * libcoff-in.h: Convert to ISO C.
3521 * mach-o.c: Convert to ISO C.
3522 * mach-o.h: Convert to ISO C.
3523 * netbsd.h: Convert to ISO C.
3524 * ns32k.h: Convert to ISO C.
3525 * ns32knetbsd.c: Convert to ISO C.
3526 * oasys.c: Convert to ISO C.
3527 * pdp11.c: Convert to ISO C.
3528 * pef-traceback.h: Convert to ISO C.
3529 * pef.c: Convert to ISO C.
3530 * pef.h: Convert to ISO C.
3531 * riscix.c: Convert to ISO C.
3532 * som.c: Convert to ISO C.
3533 * som.h: Convert to ISO C.
3534 * srec.c: Convert to ISO C.
3535 * stabs.c: Convert to ISO C.
3536 * sunos.c: Convert to ISO C.
3537 * tekhex.c: Convert to ISO C.
3538 * versados.c: Convert to ISO C.
3539 * version.h: Convert to ISO C.
3540 * xcoff-target.h: Convert to ISO C.
3541 * xcofflink.c: Convert to ISO C.
3542 * xsym.c: Convert to ISO C.
3543 * xsym.h: Convert to ISO C.
3545 2005-04-08 Paul Brook <paul@codesourcery.com>
3547 * elf32-arm.c (ARM2THUMB_GLUE_SIZE): Rename...
3548 (ARM2THUMB_STATIC_GLUE_SIZE): ... to this.
3549 (ARM2THUMB_PIC_GLUE_SIZE): Define.
3550 (a2t1p_ldr_insn, a2t2p_add_pc_insn, a2t3p_bx_r12_insn): Add.
3551 (elf32_arm_to_thumb_stub): Create PIC stubs.
3552 (record_arm_to_thumb_glue): Use different stub size for relocatable
3555 2005-04-05 Alan Modra <amodra@bigpond.net.au>
3557 * elf64-ppc.c (dec_dynrel_count): New function split out from
3558 ppc64_elf_edit_toc, with additional code from ppc64_elf_edit_opd.
3559 (ppc64_elf_edit_toc, ppc64_elf_edit_opd): Use it.
3560 (ppc64_elf_tls_optimize): Likewise.
3562 2005-04-05 Mark Kettenis <kettenis@gnu.org>
3564 * netbsd-core.c (SPARC_WCOOKIE_OFFSET): Renamed from
3565 CORE_WCOOKIE_OFFSET.
3566 (SPARC64_WCOOKIE_OFFSET): New.
3567 (netbsd_core_file_p): Provide .wcookie section for OpenBSD/sparc64.
3569 2005-04-05 Nick Clifton <nickc@redhat.com>
3571 * po/rw.po: New translation: Kinyarwanda
3572 * configure.in (ALL_LINGUAS): Add rw
3573 * configure: Regenerate.
3575 2005-04-05 Richard Sandiford <rsandifo@redhat.com>
3577 * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME_P): New macro.
3578 (_bfd_mips_elf_section_from_shdr): Use it to check for recognized
3579 SHT_MIPS_OPTIONS names. Allow all sections with unrecognised
3581 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_OPTIONS_SECTION_NAME_P
3582 to check for SHT_MIPS_OPTIONS sections.
3583 (_bfd_mips_elf_set_section_contents): Likewise.
3585 2005-04-04 Eric Christopher <echristo@redhat.com>
3587 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents):
3588 Clean up gp handling code.
3590 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
3592 * elf.c (bfd_elf_set_group_contents): Ignore linker created
3594 (assign_section_numbers): Accept link_info. Check SHT_GROUP
3595 sections for relocatable files only. Remove the linker created
3597 (_bfd_elf_compute_section_file_positions): Pass link_info to
3598 assign_section_numbers.
3600 * elfxx-ia64.c (elfNN_ia64_object_p): New.
3601 (elf_backend_object_p): Defined.
3603 2005-04-04 H.J. Lu <hongjiu.lu@intel.com>
3605 * elf-bfd.h (elf_section_data): Use (sec) instead of sec.
3607 2005-04-03 Fred Fish <fnf@specifixinc.com>
3609 * dwarf2.c (struct dwarf2_debug): Add dwarf_ranges_buffer and
3610 dwarf_ranges_size members.
3611 (struct comp_unit): Add base_address member.
3612 (struct funcinfo): Replace low/high members with an arange.
3613 (arange_add): Replace incoming "unit" parameter with "abfd" and
3614 "first_arange" pointers. Reorganize/rewrite function body.
3615 (decode_line_info): Change arange_add call to pass bfd and arange
3617 (lookup_address_in_line_info_table): Use arange list instead of
3618 individual low/high members. Walk function's arange list to find
3619 lowest PC in list, to test for overlapping functions.
3620 (read_debug_ranges): New function, reads the debug_ranges section.
3621 (lookup_address_in_function_table): Use arange list instead of
3622 individual low/high members. Rewrite to find smallest range that
3624 (read_rangelist): Read a given rangelist from debug_ranges.
3625 (scan_unit_for_functions): Use arange list instead of individual
3626 low/high members. Handle a DW_AT_ranges attribute.
3627 (parse_comp_unit): Use arange list instead of individual low/high
3628 members. Save comp unit base address. Handle a DW_AT_ranges
3631 2005-04-01 H.J. Lu <hongjiu.lu@intel.com>
3633 * elf.c (assign_section_numbers): Really use the kept section.
3635 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
3637 * elf-bfd.h (_bfd_elf_check_kept_section): New.
3639 * elf.c (assign_section_numbers): When sh_link points to a
3640 discarded section, call _bfd_elf_check_kept_section to see if
3641 the kept section can be used. Otherwise reject sh_link
3642 pointing to discarded section.
3644 * elflink.c (_bfd_elf_check_kept_section): New.
3645 (elf_link_input_bfd): Use it.
3647 2005-04-01 Alan Modra <amodra@bigpond.net.au>
3649 * elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocs
3650 that we no longer need.
3652 2005-04-01 Alan Modra <amodra@bigpond.net.au>
3654 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors
3656 (ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
3658 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
3660 * elf.c (assign_section_numbers): Fix a typo.
3662 2005-03-31 H.J. Lu <hongjiu.lu@intel.com>
3664 * elflink.c (elf_link_input_bfd): Remove the extra `\n' in
3666 (_bfd_elf_section_already_linked): Likewise.
3668 2005-03-31 Jerome Guitton <guitton@gnat.com>
3670 * config.in: Regenerate.
3672 2005-03-31 Jerome Guitton <guitton@gnat.com>
3674 * config.in (HAVE_DECL_BASENAME): New configure macro.
3675 * configure.in: Check for basename.
3676 * configure: Regenerate.
3678 2005-03-30 Julian Brown <julian@codesourcery.com>
3680 * bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename from
3681 bfd_elf32_is_arm_mapping_symbol_name.
3682 * bfd-in2.h: Regenerate.
3683 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from
3684 bfd_elf32_is_arm_mapping_symbol_name.
3685 * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename
3686 bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
3687 (arm_elf_find_function): Likewise.
3688 (elf32_arm_output_symbol_hook): Likewise.
3690 2005-03-30 Julian Brown <julian@codesourcery.com>
3692 * bfd-in.h (bfd_elf32_is_arm_mapping_symbol_name): Add prototype.
3693 * bfd-in2.h: Regenerate.
3694 * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename call to
3695 bfd_elf32_is_arm_mapping_symbol_name.
3696 (elf32_arm_output_symbol_hook): Likewise.
3697 (arm_elf_find_function): Likewise, and include STT_NOTYPE in test for
3699 (is_arm_mapping_symbol_name): Function moved from here...
3700 * cpu-arm.c (bfd_elf32_is_arm_mapping_symbol_name): ...to here, renamed
3703 2005-03-29 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3705 * configure.in: Check for ffs decl and alphabetize.
3706 * config.in: Regenerate.
3707 * configure: Regenerate.
3708 * sysdep.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
3710 2005-03-29 Fred Fish <fnf@specifixinc.com>
3712 * dwarf2.c (struct comp_unit): Fix typo.
3713 (scan_unit_for_functions): Remove unused local variable "name"
3714 and dead code that set it.
3716 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
3717 Phil Blundell <philb@gnu.org>
3719 * bfd-in2.h, libbfd.h: Regenerated.
3720 * reloc.c: Add ARM TLS relocations.
3721 * elf32-arm.c (elf32_arm_howto_table): Add dynamic TLS
3723 (elf32_arm_tls_gd32_howto, elf32_arm_tls_ldo32_howto)
3724 (elf32_arm_tls_ldm32_howto, elf32_arm_tls_le32_howto)
3725 (elf32_arm_tls_ie32_howto): New.
3726 (elf32_arm_howto_from_type): Support TLS relocations.
3727 (elf32_arm_reloc_map): Likewise.
3728 (elf32_arm_reloc_type_lookup): Likewise.
3730 (struct elf32_arm_obj_tdata): New.
3731 (elf32_arm_tdata, elf32_arm_local_got_tls_type): Define.
3732 (elf32_arm_mkobject): New function.
3733 (struct elf32_arm_relocs_copied): Add pc_count.
3734 (elf32_arm_hash_entry, GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD)
3735 (GOT_TLS_IE): Define.
3736 (struct elf32_arm_link_hash_table): Add tls_ldm_got.
3737 (elf32_arm_link_hash_newfunc): Initialize tls_type.
3738 (elf32_arm_copy_indirect_symbol): Copy pc_count and tls_type.
3739 (elf32_arm_link_hash_table_create): Initialize tls_ldm_got.
3740 (dtpoff_base, tpoff): New functions.
3741 (elf32_arm_final_link_relocate): Handle TLS relocations.
3742 (IS_ARM_TLS_RELOC): Define.
3743 (elf32_arm_relocate_section): Warn about TLS mismatches.
3744 (elf32_arm_gc_sweep_hook): Handle TLS relocations and pc_count.
3745 (elf32_arm_check_relocs): Detect invalid symbol indexes. Handle
3746 TLS relocations and pc_count.
3747 (elf32_arm_adjust_dynamic_symbol): Check non_got_ref.
3748 (allocate_dynrelocs): Handle TLS. Bind REL32 relocs to local
3750 (elf32_arm_size_dynamic_sections): Handle TLS.
3751 (elf32_arm_finish_dynamic_symbol): Likewise.
3752 (bfd_elf32_mkobject): Define.
3754 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
3756 * elf32-arm.c (elf32_arm_check_relocs): Increment count for all
3757 relocation types. Don't count relocations which will use a PLT.
3759 2005-03-29 Joel Brobecker <brobecker@gnat.com>
3761 * elf.c (elfcore_grok_nto_status): Print tid as long.
3762 (elfcore_grok_nto_regs): Likewise.
3764 2005-03-29 Joel Brobecker <brobecker@gnat.com>
3766 * irix-core.c: Remove some unnecessary prototypes.
3768 2005-03-28 Joel Brobecker <brobecker@adacore.com>
3770 * irix-core.c: Convert to ISO C.
3772 2005-03-28 Joel Brobecker <brobecker@adacore.com>
3774 * irix-core.c (do_sections): Replace + by | in expression.
3775 (irix_core_core_file_matches_executable_p): Add ATTRIBUTE_UNUSED
3776 to unused parameters to avoid a compiler warning.
3778 2005-03-28 Mark Kettenis <kettenis@gnu.org>
3780 * netbsd-core.c: Convert to ISO C. Fix formatting.
3782 2005-03-24 Eric Christopher <echristo@redhat.com>
3784 * elfxx-mips.c: Revert previous patch.
3786 2005-03-24 Nick Clifton <nickc@redhat.com>
3788 * targets.c (_bfd_target_vector): Only include the
3789 bfd_elf32_ia64_hpux_big_vec vector when building a 64-bit BFD with
3790 all targets enabled.
3792 2005-03-24 James E Wilson <wilson@specifixinc.com>
3794 * Makefile.am (BFD32_BACKENDS): Delete elf32-ia64.lo.
3795 (BFD64_BACKENDS): Add elf32-ia64.lo.
3796 * Makefile.in: Regenerate.
3798 2005-03-23 Eric Christopher <echristo@redhat.com>
3800 * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): New.
3801 (mips_elf_calculate_relocation): Use. Define DF_TEXTREL
3802 after emitting relocation.
3803 (_bfd_mips_elf_adjust_dynamic_symbol): Ditto.
3804 (_bfd_mips_elf_check_relocs): Remove code to set DF_TEXTREL
3807 2005-03-23 Mike Frysinger <vapier@gentoo.org>
3808 Nick Clifton <nickc@redhat.com>
3810 * config.bfd: Accept any C library to accompany a GNU Linux
3811 implementation, not just the GNU C library.
3812 * configure.in: Likewise.
3813 * configure: Regenerate.
3815 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
3817 * bfd-in.h (_bfd_elf_provide_symbol): New.
3818 * bfd-in2.h: Regenerated.
3820 * elf32-ppc.c (set_linker_sym): Moved to elflink.c.
3821 (ppc_elf_set_sdata_syms): Call _bfd_elf_provide_symbol instead
3824 * elflink.c (_bfd_elf_provide_symbol): New. Moved and renamed
3827 2005-03-22 Hans-Peter Nilsson <hp@axis.com>
3829 * hash.c (strtab_hash_newfunc): Fix typo in allocated size.
3831 2005-03-22 Bob Wilson <bob.wilson@acm.org>
3833 * xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup,
3834 xtensa_sysreg_lookup_name, xtensa_interface_lookup,
3835 xtensa_funcUnit_lookup): Skip bsearch call if count is zero.
3836 (xtensa_opcode_decode): Rearrange code.
3838 2005-03-22 Nick Clifton <nickc@redhat.com>
3840 * binary.c: Convert to ISO C90 formatting.
3841 * coff-arm.c: Convert to ISO C90 formatting.
3842 * coffgen.c: Convert to ISO C90 formatting.
3843 * elf32-gen.c: Convert to ISO C90 formatting.
3844 * elf64-gen.c: Convert to ISO C90 formatting.
3845 * hash.c: Convert to ISO C90 formatting.
3846 * ieee.c: Convert to ISO C90 formatting.
3848 2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
3850 * elf32-arm.c (elf32_arm_final_link_relocate): Don't fail for
3851 unresolved symbols in R_ARM_NONE relocations.
3853 2005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
3855 * elf32-arm.c (elf32_arm_final_link_relocate): Add
3856 UNRESOLVED_RELOC_P argument. Set it appropriately.
3857 (elf32_arm_relocate_section): Update call to
3858 elf32_arm_final_link_relocate. Don't clobber RELOCATION; use
3859 unresolved_reloc instead.
3861 2005-03-23 Alan Modra <amodra@bigpond.net.au>
3863 * elflink.c (elf_link_add_object_symbols): Set SEC_EXCLUDE on
3864 .gnu.warning.* sections.
3866 2005-03-22 Alan Modra <amodra@bigpond.net.au>
3868 * elf32-ppc.c (elf_linker_section_pointers_t): Remove
3870 (ppc_elf_create_linker_section): Don't try to reuse existing section.
3871 (elf_create_pointer_linker_section): Delete info parm. Don't make
3872 h dynamic. Don't set written_address_p.
3873 (ppc_elf_check_relocs): Adjust ppc_elf_create_linker_section calls.
3874 (bfd_put_ptr): Delete.
3875 (elf_finish_pointer_linker_section): Remove output_bfd and info parms.
3876 Always write section contents. Assert global sym is def_regular.
3877 Use offset bottom bit as a written flag.
3878 (ppc_elf_relocate_section): Adjust elf_finish_pointer_linker_section
3881 2005-03-22 Alan Modra <amodra@bigpond.net.au>
3883 * elf32-ppc.c (ppc_elf_set_sdata_syms): New function, extracted from..
3884 (ppc_elf_set_sdata_syms): ..here. Expand comment. Set .sbss start
3887 2005-03-21 Nick Clifton <nickc@redhat.com>
3889 * coff-arm.c (coff_link_hash_entry): Only define for non WINCE
3891 (t2a1_bx_pc_insn): Likewise.
3892 (t2a2_noop_insn): Likewise.
3893 (t2a3_b_insn): Likewise.
3894 (t2a1_push_insn): Likewise.
3895 (t2a2_ldr_insn): Likewise.
3896 (t2a3_mov_insn): Likewise.
3897 (t2a4_bx_insn): Likewise.
3898 (t2a5_pop_insn): Likewise.
3899 (t2a6_bx_insn): Likewise.
3900 (coff_arm_relocate_section): Only declare the high_address
3901 variable for non WINCE targets.
3903 2005-03-22 Alan Modra <amodra@bigpond.net.au>
3905 * elf32-ppc.c (ppc_elf_add_symbol_hook): Make htab->sbss
3906 SEC_LINKER_CREATED. Attach to dynobj.
3907 (ppc_elf_size_dynamic_sections): Strip htab->sbss if zero size.
3909 2005-03-21 Alan Modra <amodra@bigpond.net.au>
3911 * elf32-ppc.c (struct elf_linker_section): Remove sym_hash and
3912 sym_offset. Add name, bss_name, sym_name, sym_val.
3913 (struct ppc_elf_link_hash_table): Remove sdata and sdata2 pointers.
3914 Add sdata array of elf_linker_section_t.
3915 (ppc_elf_link_hash_table_create): Set name, sym_name, and bss_name.
3916 (enum elf_linker_section_enum): Delete.
3917 (ppc_elf_create_linker_section): Rewrite. Don't create syms here.
3918 (ppc_elf_check_relocs): Delay ppc_elf_create_linker_section until
3919 the special sections are needed. Adjust htab->sdata refs.
3920 Ensure dynobj is set in sreloc code.
3921 (ppc_elf_size_dynamic_sections): Strip sdata sections.
3922 (ppc_elf_set_sdata_syms): New function.
3923 (elf_finish_pointer_linker_section): Use 0x8000 for sym_offset.
3924 (ppc_elf_relocate_section): Adjust references to htab->sdata. Use
3925 sym_val instead of sym_hash.
3926 * elf32-ppc.h (ppc_elf_set_sdata_syms): Declare.
3928 2005-03-21 Alan Modra <amodra@bigpond.net.au>
3930 * elf32-ppc.c (is_ppc_elf_target): Move to linker part of file.
3931 (ppc_elf_merge_private_bfd_data): Likewise.
3933 2005-03-21 Alan Modra <amodra@bigpond.net.au>
3935 * elf32-ppc.c (struct elf_linker_section): Remove rel_section.
3936 (ppc_elf_create_linker_section): Don't create rel_section.
3937 (elf_create_pointer_linker_section): Don't size relocs.
3938 (elf_finish_pointer_linker_section): Remove relative_reloc parm.
3939 Don't generate relocs.
3940 (ppc_elf_relocate_section): Adjust calls to
3941 elf_finish_pointer_linker_section.
3943 2005-03-21 Alan Modra <amodra@bigpond.net.au>
3945 * elf32-ppc.c (is_ppc_elf_target): New function.
3946 (ppc_elf_merge_private_bfd_data): Use it rather than just testing
3947 for bfd_target_elf_flavour. Do this test before endian check.
3948 (ppc_elf_add_symbol_hook): Use is_pcc_elf_target.
3949 (ppc_elf_size_dynamic_sections): Likewise.
3951 2005-03-20 H.J. Lu <hongjiu.lu@intel.com>
3953 * elf-bfd.h (elf_backend_data): Add int to
3954 elf_backend_section_from_shdr.
3955 (bfd_elf_section_data): Update comment for this_idx.
3956 (_bfd_elf_make_section_from_shdr): Add int.
3957 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
3959 * elf.c (_bfd_elf_make_section_from_shdr): Take section index
3960 and use it to set this_idx in bfd_elf_section_data.
3961 (bfd_section_from_shdr): Pass shindex to
3962 _bfd_elf_make_section_from_shdr.
3963 (_bfd_elf_section_from_bfd_section): Use this_idx in
3964 bfd_elf_section_data to find section index.
3966 * elf32-arm.c (elf32_arm_section_from_shdr): Take section
3967 index and pass it to _bfd_elf_make_section_from_shdr.
3968 * elf32-i370.c(i370_elf_section_from_shdr): Likewise.
3969 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
3970 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
3971 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
3972 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
3973 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
3974 * elf64-x86-64.c (elf64_x86_64_section_from_shdr): Likewise.
3975 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
3976 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
3978 2005-03-19 Danny Smith <dannysmith@users.sourceforge.net>
3979 Ross Ridge <rridge@csclub.uwaterloo.ca>
3981 * peicode.h (pe_ILF_build_a_bfd): Strip only one prefix
3982 character in IMPORT_NAME_UNDECORATE and IMPORT_NAME_NOPREFIX
3985 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
3987 * elflink.c (elf_mark_used_section): Remove check for special
3990 2005-03-18 Andreas Schwab <schwab@suse.de>
3992 * elfxx-ia64.c (elfNN_ia64_install_value): Change type of insn
3993 from bfd_vma to ia64_insn, remove broken cast.
3995 2005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
3997 * elf32-m68k.c (elf_cfv4e_plt0_entry): plt entry for coldfire v4e.
3998 (elf_m68k_adjust_dynamic_symbol,elf_m68k_finish_dynamic_symbol,
3999 elf_m68k_finish_dynamic_sections): Use it.
4001 2005-03-17 Paul Brook <paul@codesourcery.com>
4002 Dan Jacobowitz <dan@codesourcery.com>
4003 Mark Mitchell <mark@codesourcery.com>
4005 * elf32-arm.c (elf32_arm_modify_segment_map): New function.
4006 (elf32_arm_additional_program_headers): Likewise.
4007 (elf_backend_modify_segment_map): Define.
4008 (elf_backend_additional_program_headers): Likewise.
4009 (elf32_arm_symbian_modify_segment_map): Use
4010 elf32_arm_modify_segment_map.
4012 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
4014 * elflink.c (elf_mark_used_section): Check bfd_is_const_section
4015 for special sections.
4017 2005-03-18 Alan Modra <amodra@bigpond.net.au>
4019 * elf-bfd.h (_bfd_elf_link_renumber_dynsyms): Delete.
4020 * elflink.c (_bfd_elf_link_renumber_dynsyms): Make static, add
4021 section_sym_count param, and return number of section symbols.
4022 (bfd_elf_size_dynamic_sections): Clear section symbol area of
4023 .dynsym contents. Don't bother calling swap_symbol_out on the
4024 first all-zero dynsym.
4025 (elf_mark_used_section): Formatting. Avoid twiddling flags in
4026 special sections like bfd_abs_section.
4027 (bfd_elf_gc_sections): Spelling fix.
4029 2005-03-16 Fred Fish <fnf@specifixinc.com>
4032 * dwarf2.c (read_indirect_string): Fix apparent typo, check
4033 dwarf_str_buffer allocation, not dwarf_abbrev_buffer.
4035 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
4037 * elflink.c (elf_mark_used_section): New.
4038 (bfd_elf_gc_sections): Call elf_gc_mark_section for
4039 non-relocatable link if we don't do GC.
4041 2005-03-16 Nick Clifton <nickc@redhat.com>
4042 Ben Elliston <bje@au.ibm.com>
4044 * configure.in (werror): New switch: Add -Werror to the
4045 compiler command line. Enabled by default. Disable via
4047 * configure: Regenerate.
4049 2005-03-16 Nick Clifton <nickc@redhat.com>
4051 * ecoff.c: Convert to ISO C90 formatting.
4053 2005-03-16 Alan Modra <amodra@bigpond.net.au>
4055 * elf32-ppc.c: Divide file into general and linker specific
4056 functions. Sort linker functions into roughly the order in which
4057 they are called by the ELF linker code.
4059 2005-03-16 Alan Modra <amodra@bigpond.net.au>
4061 * elf32-ppc.c (ppc_elf_create_linker_section): Set SEC_LINKER_CREATED
4062 on section. Correct comment, and add FIXME.
4063 (ppc_elf_additional_program_headers): Don't bump header count for
4064 interp. Test SEC_ALLOC, not SEC_LOAD, and don't test size.
4065 (ppc_elf_size_dynamic_sections): Don't strip sdata and sdata2, but
4066 do allocate memory if they need it.
4068 2005-03-15 Mikkel Krautz <krautz@gmail.com>
4070 * config.bfd (x86_64-elf): Add target.
4072 2005-03-15 Alan Modra <amodra@bigpond.net.au>
4074 * po/es.po: Commit new Spanish translation.
4076 2005-03-14 H.J. Lu <hongjiu.lu@intel.com>
4078 * elfxx-ia64.c (elfNN_ia64_relocate_section): Set symbo name
4079 for global symbol when reporting overflow.
4081 2005-03-11 Jakub Jelinek <jakub@redhat.com>
4083 * libbfd-in.h (_bfd_ar_spacepad): New prototype.
4084 * libbfd.h: Rebuilt.
4085 * archive.c (_bfd_ar_spacepad): New function.
4086 (_bfd_construct_extended_name_table, _bfd_write_archive_contents,
4087 bsd_write_armap, _bfd_archive_bsd_update_armap_timestamp,
4088 coff_write_armap): Use it.
4089 (bfd_ar_hdr_from_filesystem): Likewise. Fix HP-UX large
4091 * archive64.c (bfd_elf64_archive_write_armap): Use _bfd_ar_spacepad.
4093 2005-03-10 Mark Kettenis <kettenis@gnu.org>
4095 * archive.c (_bfd_look_for_bfd_in_cache): Move declaration of
4096 has_table to the start of the function.
4098 2005-03-10 Ben Elliston <bje@au.ibm.com>
4100 * archive.c: Include hashtab.h.
4101 (struct ar_cache): Rename `arelt' to `arbfd' and remove `next'.
4102 (_bfd_look_for_bfd_in_cache): Reimplement using htab_find.
4103 (hash_file_ptr): New function.
4104 (eq_file_ptr): Likewise.
4105 (_bfd_add_bfd_to_archive_cache): Reimplement using a hash table.
4106 * libbfd-in.h: Include hashtab.h.
4107 (struct artdata): Change `cache' member type to htab_t.
4108 * libbfd.h: Rebuild.
4110 2005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
4112 * configure.in: Bump version to 2.16.90.
4113 * configure: Regenerated.
4115 2005-03-07 Jakub Jelinek <jakub@redhat.com>
4117 * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp.
4118 close is a function like macro in system headers.
4120 2005-03-07 Alan Modra <amodra@bigpond.net.au>
4123 * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Reinstate
4124 _GLOBAL_OFFSET_TABLE_ as a normal dynamic symbol.
4126 2005-03-06 Alan Modra <amodra@bigpond.net.au>
4128 * elf.c (elfcore_grok_win32pstatus): Warning fixes.
4130 2005-03-05 Alan Modra <amodra@bigpond.net.au>
4132 * po/bfd.pot: Regenerate.
4134 2005-03-05 Alan Modra <amodra@bigpond.net.au>
4136 * elf64-ppc.c (update_plt_info): Don't mark new ABI call syms
4138 (func_desc_adjust): Force dot-syms local in executables as well
4141 2005-03-04 David Daney <ddaney@avtrex.com>
4143 * elfxx-mips.c (mips_elf_calculate_relocation): Handle special
4144 '__gnu_local_gp' symbol used by gas -mno-shared.
4146 2005-03-03 H.J. Lu <hongjiu.lu@intel.com>
4148 * elf-bfd.h (elf_backend_data): Add "const char *" to
4149 elf_backend_section_from_phdr.
4151 * elf.c (bfd_section_from_phdr): Pass "proc" to the
4152 elf_backend_section_from_phdr hook.
4154 2005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
4155 Joseph Myers <joseph@codesourcery.com>
4157 * elfxx-mips.c (struct mips_got_entry): Add tls_type.
4158 (struct mips_got_info): Add tls_gotno, tls_assigned_gotno,
4160 (struct mips_elf_got_per_bfd_arg): Add global_count.
4161 (struct mips_elf_count_tls_arg): New.
4162 (struct mips_elf_hash_sort_data): Update comment for min_got_dynindx.
4163 (struct mips_elf_link_hash_entry): Add tls_type and tls_got_offset.
4164 (GOT_NORMAL, GOT_TLS_GD, GOT_TLS_LDM, GOT_TLS_IE)
4165 (GOT_TLS_OFFSET_DONE, GOT_TLS_DONE): Define.
4166 (TLS_RELOC_P): Define.
4167 (TP_OFFSET, DTP_OFFSET): Define.
4168 (dtprel_base, tprel_base): New functions.
4169 (mips_elf_link_hash_newfunc): Initialize tls_type.
4170 (mips_elf_got_entry_hash, mips_elf_got_entry_eq)
4171 (mips_elf_multi_got_entry_hash, mips_elf_multi_got_entry_eq): Handle
4173 (mips_tls_got_relocs, mips_elf_count_local_tls_relocs)
4174 (mips_elf_count_global_tls_entries, mips_elf_count_global_tls_relocs)
4175 (mips_elf_output_dynamic_relocation, mips_elf_initialize_tls_slots)
4176 (mips_tls_got_index): New functions.
4177 (mips_elf_local_got_index): Add new R_SYMNDX, H, and R_TYPE
4178 arguments. Pass them to mips_elf_create_local_got_entry. Use
4180 (mips_elf_global_got_index): Add new R_TYPE and INFO arguments.
4182 (mips_elf_got_page, mips_elf_got16_entry): Update calls to
4183 mips_elf_create_local_got_entry.
4184 (mips_elf_create_local_got_entry): Add new R_SYMNDX, H, and R_TYPE
4185 arguments. Handle TLS entries.
4186 (mips_elf_sort_hash_table_f): Add non-TLS assertions.
4187 (mips_elf_record_local_got_symbol): Add new TLS_FLAG argument. Handle
4189 (mips_elf_record_global_got_symbol): Likewise.
4190 (mips_elf_make_got_per_bfd): Initialize new mips_got_info members.
4192 (mips_elf_merge_gots): Handle TLS entries when merging.
4193 (mips_elf_initialize_tls_index): New function.
4194 (mips_elf_set_global_got_offset): Handle TLS entries.
4195 (mips_elf_adjust_gp): Handle TLS.
4196 (mips_elf_multi_got): Remove redundant call to
4197 mips_elf_resolve_final_got_entries. Initialize global_count.
4198 Correct a comment. Initialize new TLS members of mips_got_info.
4199 Assign TLS GOT indexes for new GOTs.
4200 (mips_elf_create_got_section): Initialize new TLS members of
4202 (mips_elf_calculate_relocation): Handle TLS relocs.
4203 (_bfd_mips_elf_check_relocs): Likewise. Update calls to changed
4205 (_bfd_mips_elf_always_size_sections): Handle TLS.
4206 (_bfd_mips_elf_size_dynamic_sections): Likewise.
4207 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Update calls to
4209 (_bfd_mips_elf_copy_indirect_symbol): Copy tls_type.
4210 (_bfd_mips_elf_hide_symbol): Handle TLS.
4211 * elfn32-mips.c (elf_mips_howto_table_rel, elf_mips_howto_table_rela)
4212 (mips_reloc_map): Add TLS relocs.
4213 * elf32-mips.c (elf_mips_howto_table_rel, mips_reloc_map): Likewise.
4214 * elf64-mips.c (mips_elf64_howto_table_rel)
4215 (mips_elf64_howto_table_rela, mips_reloc_map): Likewise.
4216 * reloc.c: Define new MIPS TLS relocations.
4217 * libbfd.h, bfd-in2.h: Regenerated.
4219 2005-03-02 Jan Beulich <jbeulich@novell.com>
4221 * Makefile.am: Add dependency of cache.o on libiberty.h.
4222 * cache.c: Include libiberty.h.
4223 (bfd_open_file): Use unlink_if_ordinary instead of unlink.
4225 2005-03-01 Zack Weinberg <zack@codesourcery.com>
4227 * elf.c (bfd_section_from_shdr <default case>): Call
4228 elf_backend_section_from_shdr hook unconditionally, and return
4230 (bfd_section_from_phdr): Similarly, for elf_backend_section_from_phdr.
4231 * elfxx-target.h (elf_backend_section_from_shdr)
4232 (elf_backend_section_from_phdr): Default to
4233 _bfd_elf_make_section_from_shdr and _bfd_elf_make_section_from_phdr
4236 2005-03-01 Alan Modra <amodra@bigpond.net.au>
4238 * targets.h: Typo fix.
4239 * bfd-in2.h: Regenerate.
4241 * bout.c (b_out_write_object_contents): Don't use sizeof on host
4242 structs to size on-disk structures.
4243 (b_out_set_section_contents): Size the external struct, not the
4244 internal one for on-disk size.
4245 (b_out_sizeof_headers): Likewise.
4247 2005-03-01 Alan Modra <amodra@bigpond.net.au>
4249 * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym
4250 entry points with the func descriptor as well as undefweak.
4252 2005-02-28 Ross Ridge <rridge@csclub.uwaterloo.ca>
4254 * peicode.h (pe_ILF_build_a_bfd): Do not assume that an @ will be
4255 present when IMPORT_NAME_UNDOECRATE is used.
4257 2005-02-28 H.J. Lu <hongjiu.lu@intel.com>
4260 * elf-bfd.h (_bfd_elf_merge_symbol): Add a pointer to unsigned
4263 * elf32-sh-symbian.c (sh_symbian_relocate_section): Pass NULL
4264 to _bfd_elf_merge_symbol.
4266 * elflink.c (_bfd_elf_merge_symbol): Use the pointer to
4267 unsigned int to return the alignment of the old common symbol
4268 in the dynamic object.
4269 (_bfd_elf_add_default_symbol): Pass NULL to
4270 _bfd_elf_merge_symbol.
4271 (elf_link_add_object_symbols): Pass &old_alignment to
4272 _bfd_elf_merge_symbol. Get the alignment of the new common
4273 symbol in the dynamic object.
4275 2005-02-24 Ben Elliston <bje@au.ibm.com>
4277 * coffcode.h (coff_sym_filepos): Remove GNU960 conditional code.
4278 * format.c (bfd_check_format_matches): Likewise.
4279 * archive.c (BFD_GNU960_ARMAG): Likewise.
4280 (bfd_generic_archive_p): Likewise.
4281 (_bfd_write_archive_contents): Likewise.
4283 2005-02-24 H.J. Lu <hongjiu.lu@intel.com>
4285 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.95.
4286 * configure: Regenerate.
4288 2005-02-24 Julian Brown <julian@sirius.codesourcery.com>
4290 * elflink.c (elf_link_add_object_symbols): Force symbols in discarded
4291 COMDAT group sections to have default visibility.
4293 2005-02-24 Alan Modra <amodra@bigpond.net.au>
4295 * coffcode.h (coff_print_aux): Warning fix.
4296 * elf-m10300.c (mn10300_elf_relax_section): Use section->id
4297 instead of section pointer to identify.
4298 * coff-h8300.c (h8300_reloc16_extra_cases): Likewise. Allocate
4299 the correct size buffer for local sym mangling too.
4300 (h8300_bfd_link_add_symbols): Likewise.
4301 * elf32-sh-symbian.c (sh_symbian_process_embedded_commands): Fix
4303 * elf32-sh64.c (shmedia_prepare_reloc): Use %B and %p in error message
4304 * elf32-xtensa.c (literal_value_hash): Warning fix.
4305 * versados.c (process_otr): Warning fix.
4306 (versados_canonicalize_reloc): Likewise.
4307 * vms-gsd.c (_bfd_vms_slurp_gsd): Warning fix.
4308 * vms.c (fill_section_ptr): Warning fix.
4310 2005-02-23 H.J. Lu <hongjiu.lu@intel.com>
4312 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Defined.
4313 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Likewise.
4315 2005-02-23 Nick Clifton <nickc@redhat.com>
4317 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Initialise
4318 the relvaddr field of the Elf32_crinfo structure.
4320 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Initialise
4321 variables that are passed by reference to
4322 m68hc11_get_relocation_value in case that function does not
4325 * elf32-cr16c.c (cr16c_elf_final_link_relocate): Remove duplicated
4326 return statements and replace with a single return at the end of
4327 the function. This helps pacify the flow analysis code in gcc 4.0.
4329 * elf.c (_bfd_elf_compute_section_file_positions): Initialise
4330 strtab to avoid compile time warning.
4332 2005-02-23 Ben Elliston <bje@au.ibm.com>
4334 * opncls.c (bfd_zalloc): Document this function.
4336 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
4338 * coffcode.h (sec_to_styp_flags): Replaced SEC_CLINK with
4339 SEC_TIC54X_CLINK. Replace SEC_BLOCK with SEC_TIC54X_BLOCK.
4340 Replace SEC_SHARED with SEC_COFF_SHARED.
4341 (styp_to_sec_flags): Likewise.
4343 * elfxx-target.h (TARGET_BIG_SYM): Remove SEC_ARCH_BIT_0.
4344 (TARGET_LITTLE_SYM): Likewise.
4346 * section.c (SEC_ARCH_BIT_0): Removed.
4347 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Defined with
4348 SEC_LINK_DUPLICATES_ONE_ONLY and SEC_LINK_DUPLICATES_SAME_SIZE.
4349 (SEC_SHARED): Renamed to ...
4350 (SEC_COFF_SHARED): This.
4351 (SEC_BLOCK): Renamed to ...
4352 (SEC_TIC54X_BLOCK): This.
4353 (SEC_CLINK): Renamed to ...
4354 (SEC_TIC54X_CLINK): This.
4355 (SEC_XXX): Rearranged. Move SEC_COFF_SHARED_LIBRARY,
4356 SEC_COFF_SHARED, SEC_TIC54X_BLOCK and SEC_TIC54X_CLINK to the
4358 * bfd-in2.h: Regenerated.
4360 2005-02-21 Fred Fish <fnf@specifixinc.com>
4362 * dwarf2.c (find_abstract_instance_name): Call recursively
4363 to handle a DW_AT_specification.
4365 2005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4367 * elfxx-mips.c (ecoff_swap_rpdr_out, mips_elf_output_extsym,
4368 mips_elf_create_dynamic_relocation,
4369 _bfd_mips_elf_size_dynamic_sections, _bfd_mips_elf_final_link):
4370 Remove #if 0'd code.
4372 2005-02-21 Alan Modra <amodra@bigpond.net.au>
4374 * Makefile.am: Run "make dep-am"
4375 * Makefile.in: Regenerate.
4377 2005-02-21 Alan Modra <amodra@bigpond.net.au>
4379 * coffgen.c (bfd_coff_get_comdat_section): Check that
4380 coff_section_data isn't NULL.
4382 2005-02-21 Alan Modra <amodra@bigpond.net.au>
4384 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Warning fix.
4385 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Likewise.
4386 * coff-rs6000.c (xcoff_write_armap_big): Warning fixes. Remove
4387 useless assignments.
4388 (xcoff_write_archive_contents_big): Likewise.
4389 (_bfd_xcoff_put_ldsymbol_name): Likewise.
4390 * coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise.
4391 * coffgen.c (coff_write_symbols): Make "written" a bfd_vma.
4392 * cofflink.c (process_embedded_commands): Warning fixes.
4393 * cpu-arm.c: Delete unnecessary prototypes. Convert to C90.
4395 * dwarf2.c: Warning fixes.
4396 * elf-bfd.h: Likewise.
4397 * elf-eh-frame.c: Likewise.
4398 * elf-strtab.c: Likewise.
4400 * elf32-m68k.c: Likewise.
4401 * elf32-ppc.c: Likewise.
4402 * elf32-sh-symbian.c: Likewise.
4403 * elf32-sh.c: Delete unnecessary prototypes. Warning fixes.
4404 * elf64-sh64.c: Likewise.
4405 * peicode.h: Likewise.
4406 * elf64-mmix.c: Warning fixes.
4407 * elfcode.h: Likewise.
4408 * elfxx-mips.c: Likewise.
4409 * libbfd-in.h: Likewise.
4410 * libbfd.c: Likewise.
4411 * mach-o.c: Likewise.
4412 * merge.c: Likewise.
4414 * opncls.c: Likewise.
4417 * vms-hdr.c: Likewise.
4418 * vms-tir.c: Likewise.
4419 * xtensa-isa.c: Likewise.
4420 * xtensa-modules.c: Likewise.
4422 (pstrcmp): Use correct choice of string lengths. Fix return value.
4423 (bfd_sym_module_name): Correct string length.
4424 * bfd-in2.h: Regenerate.
4425 * libbfd.h: Regenerate.
4427 2005-02-17 Alexandre Oliva <aoliva@redhat.com>
4429 * elf32-frv.c (elf32_frv_relocate_section): Remove warning from
4430 uninitialized check_segment[1] in TLSMOFF case.
4431 Reported by Alan Modra.
4432 (elf32_frv_relocate_section): Improve errors and warnings.
4434 2005-02-17 Alan Modra <amodra@bigpond.net.au>
4436 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning.
4438 2005-02-16 Alan Modra <amodra@bigpond.net.au>
4440 * coff-arm.c (coff_arm_is_local_label_name): Warning fix.
4441 * elf32-frv.c (frvfdpic_relocs_info_hash): Likewise.
4442 * pef.c (bfd_pef_scan): Don't ignore return value of
4443 bfd_pef_scan_start_address.
4444 * mach-o.c (bfd_mach_o_scan): Don't ignore return value of
4445 bfd_mach_o_scan_start_address.
4446 * elfxx-ia64.c (elfNN_ia64_relax_brl): Rewrite for 32-bit bfd_vma.
4447 * elfxx-mips.c: Remove unnecessary prototypes.
4448 (sort_dynamic_relocs_64): Abort if not BFD64.
4450 2005-02-16 Alan Modra <amodra@bigpond.net.au>
4452 * elf64-ppc.c (ppc64_elf_edit_toc): Skip toc if size is zero.
4453 Skip toc reloc adjust if reloc_count is zero.
4455 2005-02-15 Nigel Stephens <nigel@mips.com>
4456 Maciej W. Rozycki <macro@mips.com>
4458 * elf32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
4459 reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
4460 R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
4461 (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
4462 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
4464 (mips16_gprel_reloc): Remove bit shuffling; call
4465 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
4466 and _bfd_mips16_elf_reloc_shuffle() instead.
4467 (mips16_reloc_map): New reloc map for MIPS16 relocs.
4468 (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
4470 (mips_elf32_rtype_to_howto): Fetch MIPS16 howtos from
4471 elf_mips16_howto_table_rel.
4472 * elf64-mips.c (mips16_elf64_howto_table_rel): New array for
4473 MIPS16 REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16
4474 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
4475 (elf_mips16_jump_howto): Move into mips16_elf64_howto_table_rel.
4476 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
4478 (mips16_elf64_howto_table_rela): New array for MIPS16 RELA
4479 reloc howtos. Add R_MIPS16_26, R_MIPS16_GPREL, R_MIPS16_HI16 and
4480 R_MIPS16_LO16 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16
4482 (mips16_gprel_reloc): Remove bit shuffling; call
4483 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
4484 and _bfd_mips16_elf_reloc_shuffle() instead.
4485 (mips16_reloc_map): New reloc map for MIPS16 relocs.
4486 (bfd_elf64_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
4488 (mips_elf64_rtype_to_howto): Fetch MIPS16 howtos from
4489 mips16_elf64_howto_table_rela or mips16_elf64_howto_table_rel.
4490 * elfn32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
4491 REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
4492 R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
4493 (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
4494 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
4496 (mips16_gprel_reloc): Remove bit shuffling; call
4497 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
4498 and _bfd_mips16_elf_reloc_shuffle() instead.
4499 (mips16_reloc_map): New reloc map for MIPS16 relocs.
4500 (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
4502 (mips_elf_n32_rtype_to_howto): Fetch MIPS16 howtos from
4503 elf_mips16_howto_table_rela or elf_mips16_howto_table_rel.
4504 * elfxx-mips.c (_bfd_mips16_elf_reloc_unshuffle): New function to
4505 handle bit shuffling for MIPS16 relocs.
4506 (_bfd_mips16_elf_reloc_shuffle): Likewise.
4507 (_bfd_mips_elf_lo16_reloc): Use _bfd_mips16_elf_reloc_unshuffle()
4508 and _bfd_mips16_elf_reloc_shuffle().
4509 (_bfd_mips_elf_generic_reloc): Likewise.
4510 (mips_elf_calculate_relocation): Likewise. Handle R_MIPS16_HI16
4512 (mips_elf_obtain_contents): Remove bit shuffling.
4513 (mips_elf_perform_relocation): Likewise; call
4514 _bfd_mips16_elf_reloc_unshuffle() and _bfd_mips16_elf_reloc_shuffle()
4516 (_bfd_mips_elf_relocate_section): Likewise. Handle R_MIPS16_HI16
4518 * elfxx-mips.h (_bfd_mips16_elf_reloc_unshuffle): Declare.
4519 (_bfd_mips16_elf_reloc_shuffle): Likewise.
4520 * reloc.c (BFD_RELOC_MIPS16_HI16): New reloc.
4521 (BFD_RELOC_MIPS16_HI16_S): Likewise.
4522 (BFD_RELOC_MIPS16_LO16): Likewise.
4523 * bfd-in2.h: Regenerate.
4524 * libbfd.h: Regenerate.
4526 2005-02-15 Jan Beulich <jbeulich@novell.com>
4528 * elfxx-ia64.c (ia64_howto_table): Correct strings for
4529 R_IA64_DTPMOD64[LM]SB.
4531 2005-02-14 H.J. Lu <hongjiu.lu@intel.com>
4533 * elfxx-ia64.c (elfNN_ia64_relax_section): Allow relax
4534 backward branch in the same section.
4535 (elfNN_ia64_relocate_section): Inform users that the input
4536 section is too big to relax br instruction when overflow
4537 happens to R_IA64_PCREL21B, R_IA64_PCREL21BI, R_IA64_PCREL21M
4538 and R_IA64_PCREL21F.
4540 2005-02-14 Orjan Friberg <orjanf@axis.com>
4542 * elfcore.h (elf_core_file_p): Move the call to
4543 elf_backend_object_p to allow the correct machine to be set before
4544 processing the program headers.
4546 2005-02-14 Nick Clifton <nickc@redhat.com>
4549 * peicode.h (pe_bfd_copy_private_bfd_data): Copy the large address
4550 aware flag from the input bfd to the output bfd.
4552 2005-02-11 Maciej W. Rozycki <macro@mips.com>
4554 * elf32-mips.c (_bfd_mips_elf32_gprel16_reloc): Reject
4555 R_MIPS_LITERAL relocations for external symbols.
4556 * elf64-mips.c (mips_elf64_literal_reloc): Likewise.
4557 * elfn32-mips.c (mips_elf_literal_reloc): Likewise.
4559 2005-02-11 H.J. Lu <hongjiu.lu@intel.com>
4561 * bfd-in2.h: Rebuilt.
4563 2005-02-11 Paul Brook <paul@codesourcery.com>
4565 * elf-bfd.h (struct elf_link_hash_table): Add
4566 is_relocatable_executable.
4567 * elf.c (_bfd_elf_link_hash_table_init): Initialize it.
4568 * elflink.c (bfd_elf_link_record_dynamic_symbol): Create local dynamic
4569 symbols in relocatable executables.
4570 (bfd_elf_record_link_assignment): Create dynamic section symbols in
4571 relocatable executables.
4572 (_bfd_elf_link_renumber_dynsyms): Ditto.
4573 (bfd_elf_final_link): Ditto.
4574 * elf32-arm.c (elf32_arm_final_link_relocate): Copy absolute
4575 relocations into relocatable executables.
4576 (elf32_arm_check_relocs): Crate dynamic sections for relocatable
4577 executables. Also copy absolute relocations.
4578 (elf32_arm_adjust_dynamic_symbol): Don't create copy relocations
4579 in relocatable executables.
4580 (allocate_dynrelocs): Copy relocations for relocatable executables.
4581 Output dynamic symbols for symbols defined in linker scripts.
4583 2005-02-11 Nick Clifton <nickc@redhat.com>
4585 * libbfd.c (read_signed_leb128): Use an unsigned type for 'shift'
4586 to avoid a compile time warning.
4588 * coff-alpha.c (alpha_adjust_reloc_in): Remove redundant test from
4591 * coff-tic4x.c (coff_rtype_to_howto): Move definition before
4592 inclusion of coffcode.h so that it is actually picked up.
4594 * coffcode.h (coff_std_swap_table): Add an unused attribute in
4595 case it is not used.
4597 * elf32-ip2k.c (ip2k_call_opcode, IS_CALL_OPCODE): Remove unused
4598 structure and macro.
4600 * elf32-iq2000.c (iq2000_reloc_map): Remove unused structure and
4603 * elf32-m32r.c (m32r_reloc_map_old): Use #ifdef USE_M32R_OLD_RELOC
4604 to protect the declaration of this array.
4606 * xsym.c (bfd_sym_parse_contained_variables_table_entry_v32):
4607 Avoid call to memcpy with a size of 0.
4609 2005-02-12 Alan Modra <amodra@bigpond.net.au>
4611 * elf64-ppc.c (toc_adjusting_stub_needed): Return true for
4612 old-style branches to undefined dot-symbols which will be
4613 satisfied by a plt call.
4615 2005-02-11 Alan Modra <amodra@bigpond.net.au>
4617 * elf64-ppc.c (move_plt_plist): New function, extracted from..
4618 (ppc64_elf_copy_indirect_symbol): ..here.
4619 (func_desc_adjust): Use move_plt_plist.
4621 2005-02-10 Paul Brook <paul@codesourcery.com>
4623 * elf32-arm.c (elf32_arm_final_link_relocate): Handle R_ARM_THM_PC9.
4625 2005-02-10 Paul Brook <paul@codesourcery.com>
4627 * elflink.c (bfd_elf_record_link_assignment): Make hidden and internal
4629 (elf_link_renumber_hash_table_dynsyms): Ignore local symbols.
4630 (elf_link_renumber_local_hash_table_dynsyms): New function.
4631 (_bfd_elf_link_renumber_dynsyms): Number local dynamic symbols.
4633 2005-02-10 Jakub Jelinek <jakub@redhat.com>
4635 * bfd-in.h (BFD_LINKER_CREATED): Define.
4636 * bfd-in2.h: Rebuilt.
4637 * elflink.c (bfd_elf_size_dynamic_sections): Disregard
4638 BFD_LINKER_CREATED bfds when determining input bfds without
4639 .note.GNU-stack section.
4641 2005-02-10 Maciej W. Rozycki <macro@mips.com>
4643 * elf64-mips.c (mips16_gprel_reloc): Update a comment.
4644 * elfn32-mips.c (mips16_gprel_reloc): Keep R_MIPS16_GPREL
4645 relocations against external symbols unchanged.
4647 2005-02-08 Paul Brook <paul@codesourcery.com>
4649 * elflink.c (elf_link_input_bfd): Ignore symbols from null input
4652 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
4654 * elflink.c (elf_link_add_object_symbols): Don't add "warning: "
4657 2005-02-07 Maciej W. Rozycki <macro@mips.com>
4659 * elf64-mips.c: Fix formatting throughout.
4661 2005-02-07 Maciej W. Rozycki <macro@mips.com>
4663 * elfn32-mips.c (elf_mips_howto_table_rela): Fix a comment typo.
4665 2005-02-07 Alexandre Oliva <aoliva@redhat.com>
4667 * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove special handling for
4668 *ABS*/*UND* sections.
4669 (elf32_frv_relocate_section): Move zero-addend-required error...
4670 (_frv_emit_got_relocs_plt_entries): ... here. Report error for
4671 missing needed TLS section.
4673 2005-02-07 Hans-Peter Nilsson <hp@axis.com>
4675 * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO
4676 being the last symbol.
4677 (aout_link_add_symbols): Just return TRUE if a warning
4680 2005-02-07 Maciej W. Rozycki <macro@mips.com>
4682 * elf32-mips.c (mips_elf_gprel32_reloc): Reject
4683 R_MIPS_GPREL32 relocations against external symbols.
4684 * elf64-mips.c (mips_elf64_gprel32_reloc): Replace an incorrect
4687 2005-02-07 Alan Modra <amodra@bigpond.net.au>
4689 * elf-bfd.h (elf_string_from_elf_strtab): Delete macro.
4690 * elf.c (bfd_elf_string_from_elf_section): Expand occurrence of
4691 elf_string_from_elf_strtab.
4692 (_bfd_elf_setup_group_pointers, bfd_section_from_shdr): Likewise.
4693 (bfd_section_from_shdr): For SHT_SYMTAB, load SHT_SYMTAB_SHNDX too
4694 if it exists. Don't do the reverse for SHT_SYMTAB_SHNDX. For
4695 SHT_STRTAB, check whether the strtab is for symtab or dynsymtab by
4696 looking at cached symtab info first, before iterating over headers.
4697 For SHT_REL and SHT_RELA, load dynsymtab if needed.
4698 * elfcode.h (elf_object_p): Don't load section header stringtab
4701 2005-02-06 H.J. Lu <hongjiu.lu@intel.com>
4703 * elf32-i386.c (elf_i386_relocate_section): Disallow R_386_GOTOFF
4704 against protected function when building shared library.
4707 * elf64-x86-64.c (is_32bit_relative_branch): New.
4708 (elf64_x86_64_relocate_section): Alllow R_X86_64_PC32 on a
4709 protected function symbol when building shared library for
4710 32bit relative branch instruction.
4712 2005-02-06 Alan Modra <amodra@bigpond.net.au>
4714 * elf64-ppc.c (add_symbol_adjust): Don't create fake descriptor
4715 syms when doing a relocatable link.
4716 (ppc64_elf_gc_mark_hook): Check that syms are defined before looking
4718 (ppc64_elf_tls_setup): Likewise.
4719 (ppc64_elf_edit_opd): Don't use an undefined func desc sym.
4721 2005-02-04 Alan Modra <amodra@bigpond.net.au>
4723 * elf64-ppc.c (struct ppc_link_hash_entry): Add "fake".
4724 (link_hash_newfunc): Clear all locals using memset.
4725 (make_fdh): Remove flags param. Always create fake func desc
4726 weak. Link the descriptor with the code entry sym.
4727 (ppc64_elf_archive_symbol_lookup): Don't return fake syms.
4728 (add_symbol_adjust): Adjust make_fdh call.
4729 (func_desc_adjust): Likewise. Twiddle any pre-existing fake
4730 descriptor to strong undefined if code entry is strong.
4732 2005-02-04 Alan Modra <amodra@bigpond.net.au>
4734 * elflink.c (bfd_elf_record_link_assignment): Do "provide" symbol
4735 lookup here. Set to new before calling bfd_link_repair_undef_list.
4736 (elf_smash_syms): Check that u.undef.weak isn't the not_needed bfd.
4738 2005-02-03 Alan Modra <amodra@bigpond.net.au>
4740 * linker.c (_bfd_link_hash_newfunc): Set all local fields.
4742 2005-02-03 Alan Modra <amodra@bigpond.net.au>
4744 * linker.c (_bfd_generic_link_add_one_symbol): Set u.undef.weak.
4745 * elflink.c (elf_smash_syms): Restore symbols that were undefweak
4746 before the as-needed lib was loaded. Abort on unexpected refs.
4748 2005-02-02 Alan Modra <amodra@bigpond.net.au>
4750 * elflink.c (elf_smash_syms): Expand comments.
4751 (elf_link_add_object_symbols): Only call elf_smash_syms for
4752 as-needed dynamic objects.
4754 * elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear
4755 everything, just the field specific to ia64.
4756 * elf64-hppa.c (elf64_hppa_new_dyn_hash_entry): Likewise.
4758 2005-02-01 Alan Modra <amodra@bigpond.net.au>
4760 * elf64-ppc.c (func_desc_adjust): Move code creating func desc sym to..
4761 (make_fdh): ..here. New function. Don't set BSF_OBJECT for
4763 (struct add_symbol_adjust_data): New.
4764 (add_symbol_adjust): Make an undefweak func desc for old ABI
4765 objects to link with --as-needed shared libs. Return fail status.
4766 Don't adjust old ABI func entry sym to weak if func desc syms
4768 (ppc64_elf_check_directives): Adjust call to add_symbol_adjust,
4771 2005-02-01 Hans-Peter Nilsson <hp@axis.com>
4773 * cpu-cris.c (get_compatible): Rearrange disabled code and comment
4776 2005-02-01 Alan Modra <amodra@bigpond.net.au>
4778 * elf64-ppc.c (ppc64_elf_check_directives): Move undefs list fixup..
4779 * linker.c (bfd_link_repair_undef_list): ..to new function, but don't
4780 remove anything but new and undefweak.
4781 * elflink.c (_bfd_elf_link_create_dynamic_sections): Override any
4783 (_bfd_elf_create_dynamic_sections): Formatting.
4784 (bfd_elf_record_link_assignment): Call bfd_link_repair_undef_list.
4785 (_bfd_elf_merge_symbol): Don't handle as-needed syms here.
4786 (struct elf_smash_data): New.
4787 (elf_smash_syms): New function.
4788 (elf_link_add_object_symbols): Call elf_smash_syms. Don't add
4789 unneeded dynamic objects to loaded list.
4790 (elf_link_output_extsym): Don't handle as-needed here. Strip
4791 bfd_link_hash_new symbols.
4792 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
4793 delref when dynindx is already -1.
4794 * elf64-alpha.c (elf64_alpha_output_extsym): Strip bfd_link_hash_new
4796 * elfxx-mips.c (mips_elf_output_extsym): Likewise.
4798 2005-02-01 Ben Elliston <bje@au.ibm.com>
4800 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Redefine.
4802 2005-02-01 Ben Elliston <bje@au.ibm.com>
4804 * aout-arm.c, aout-target.h, aoutx.h, archive.c, armnetbsd.c,
4805 bfd-in.h, bfdio.c, coff-alpha.c, coff-arm.c, coff-h8300.c,
4806 coff-i860.c, coff-mcore.c, coff-or32.c, coff-ppc.c, coff-sh.c,
4807 coff-sparc.c, coffcode.h, coffgen.c, cofflink.c, cpu-cris.c,
4808 cpu-h8500.c, cpu-ns32k.c, ecoff.c, ecofflink.c, elf.c,
4809 elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-hppa.c,
4810 elf32-i860.c, elf32-ip2k.c, elf32-m32r.c, elf32-sh.c,
4811 elf32-v850.c, elf64-mips.c, elf64-sparc.c, elflink.c,
4812 i386aout.c, i386msdos.c, i386os9k.c, ieee.c, mach-o.c,
4813 nlm32-sparc.c, oasys.c, opncls.c, pdp11.c, pe-mips.c, peXXigen.c,
4814 pef.c, peicode.h, reloc.c, riscix.c, section.c, simple.c, som.c,
4815 sparclynx.c, targets.c, vms-misc.c, vms-tir.c, xsym.c,
4816 hosts/delta68.h, hosts/vaxbsd.h: Remove #if 0'd code
4817 throughout. Similarly, collapse #if 1'd code.
4819 2005-02-01 Ben Elliston <bje@au.ibm.com>
4821 * elf-bfd.h (bfd_elf_discard_group): Remove.
4822 * elf.c (bfd_elf_discard_group): Likewise.
4823 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Remove macro.
4825 2005-01-31 Richard Sandiford <rsandifo@redhat.com>
4827 * elf-bfd.h (elf_backend_data): Add elf_backend_eh_frame_address_size.
4828 (_bfd_elf_eh_frame_address_size): Declare.
4829 * elfxx-target.h (elf_backend_eh_frame_address_size): Define a default.
4830 (elfNN_bed): Initialize elf_backend_eh_frame_address_size.
4831 * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Declare.
4832 (elf_backend_eh_frame_address_size): Define.
4833 * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): New function.
4834 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Get the address
4835 size from the new backend hook.
4836 (_bfd_elf_write_section_eh_frame): Likewise.
4837 (_bfd_elf_eh_frame_address_size): New function.
4839 2005-01-31 Andrew Cagney <cagney@gnu.org>
4841 * configure: Regenerate to track ../gettext.m4.
4843 2005-01-31 Mark Mitchell <mark@codesourcery.com>
4845 * elf32-arm.c (elf32_arm_symbian_special_sections): Do not set
4846 SHF_WRITE for .init_array, .fini_array, and .preinit_array.
4848 2005-01-31 Nick Clifton <nickc@redhat.com>
4850 * confg.bfd: Make targets scheduled for obsoletion (m68k-lynxos,
4851 sparc-lynxos, vax-vms) be obsolete.
4853 2005-01-28 Daniel Jacobowitz <dan@codesourcery.com>
4855 * elf-bfd.h (struct elf_backend_data): Add minpagesize.
4856 * elf32-arm.c (ELF_MINPAGESIZE): Define.
4857 * elf32-ppc.c (ELF_MINPAGESIZE): Define.
4858 * elfcode.h (elf_object_p): Use minpagesize instead of
4860 * elfxx-target.h (ELF_MINPAGESIZE): Default to ELF_MAXPAGESIZE.
4861 (elfNN_bed): Include ELF_MINPAGESIZE.
4863 2005-01-28 Julian Brown <julian@codesourcery.com>
4865 * bin-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
4866 * bin-in2.h (bfd_elf32_arm_set_target_relocs): Update prototype.
4867 * elf32-arm.c (elf32_arm_link_hash_table): Add fix_v4bx flag.
4868 (bfd_elf32_arm_set_target_relocs): Add formal parameter fix_v4bx for
4869 passing flag value from ld. Set flag value in global hash table entry.
4870 (elf32_arm_final_link_relocate): Add code to implement R_ARM_V4BX
4873 2005-01-27 Andrew Cagney <cagney@gnu.org>
4875 * configure: Regenerate to track ../gettext.m4 change.
4877 2005-01-25 Mark Mitchell <mark@codesourcery.com>
4879 * elf32-arm.c (elf_backend_default_use_rela_p): Define to zero for
4882 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
4884 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
4885 * elf32-frv.c (elf32_frv_relocate_section): Force local binding
4887 * reloc.c: Add R_FRV_TLSMOFF.
4888 * elf32-frv.c (elf32_frv_howto_table): Likewise.
4889 (frv_reloc_map, frv_reloc_type_lookup): Map it.
4890 (elf32_frv_relocate_section): Handle it.
4891 (elf32_frv_check_relocs): Likewise.
4892 * libbfd.h, bfd-in2.h: Rebuilt.
4893 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
4894 * elf32-frv.c (_frvfdpic_emit_got_relocs_plt_entries): Don't crash
4895 when given an undefweak TLS symbol. Fix constant TLS PLT entries
4896 such that they return the constant in gr9.
4897 (_frvfdpic_relax_tls_entries): Don't crash for undefweak TLS
4899 (_frvfdpic_size_got_plt): Set _cooked_size of dynamic sections.
4900 too, such that they shrink on relaxation.
4901 (elf32_frvfdpic_finish_dynamic_sections): Check __ROFIXUP_END__ as
4902 marking the position right past the _GLOBAL_OFFSET_TABLE_ value.
4903 (_frvfdpic_assign_plt_entries): Shrink constant TLS PLT entries
4904 if we can guarantee the use of 16-bit constants.
4905 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
4906 Introduce TLS support for FR-V FDPIC.
4907 * reloc.c: Add TLS relocations.
4908 * elf32-frv.c (elf32_frv_howto_table): Add TLS relocations.
4909 (elf32_frv_rel_tlsdesc_value_howto): New.
4910 (elf32_frv_rel_tlsoff_howto): New.
4911 (frv_reloc_map): Add new mappings.
4912 (struct frvfdpic_elf_link_hash_table): Add pointer to summary
4914 (frvfdpic_dynamic_got_plt_info): New.
4915 (frvfdpic_plt_tls_ret_offset): New.
4916 (ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE): Move earlier.
4917 (struct _frvfdpic_dynamic_got_info): Likewise. Add TLS members.
4918 (struct _frvfdpic_dynamic_got_plt_info): Likewise.
4919 (FRVFDPIC_SYM_LOCAL): Regard symbols defined in the absolute
4921 (struct frvfdpic_relocs_info): Add TLS fields.
4922 (frvfdpic_relocs_info_hash): Warning clean up.
4923 (frvfdpic_relocs_info_find): Initialize tlsplt_entry.
4924 (frvfdpic_pic_merge_early_relocs_info): Merge TLS fields.
4925 (FRVFDPIC_TLS_BIAS): Define.
4926 (tls_biased_base): New.
4927 (_frvfdpic_emit_got_relocs_plt_entries): Deal with TLS
4929 (frv_reloc_type_lookup): Likewise.
4930 (frvfdpic_info_to_howto_rel): Likewise.
4931 (elf32_frv_relocate_section): Likewise.
4932 (_frv_create_got_section): Create the PLT section here.
4933 (elf32_frvfdpic_create_dynamic_sections): Not here.
4934 (_frvfdpic_count_nontls_entries): Move out of...
4935 (_frvfdpic_count_got_plt_entries): ... here.
4936 (_frvfdpic_count_tls_entries): Likewise. Add TLS support.
4937 (_frvfdpic_count_relocs_fixups): Likewise. Add relaxation
4939 (_frvfdpic_relax_tls_entries): New.
4940 (_frvfdpic_compute_got_alloc_data): Add TLS support.
4941 (_frvfdpic_get_tlsdesc_entry): New.
4942 (_frvfdpic_assign_got_entries): Add TLS support.
4943 (_frvfdpic_assign_plt_entries): Likewise.
4944 (_frvfdpic_reset_got_plt_entries): New.
4945 (_frvfdpic_size_got_plt): Move out of...
4946 (elf32_frvfdpic_size_dynamic_sections): ... here.
4947 (_frvfdpic_relax_got_plt_entries): New.
4948 (elf32_frvfdpic_relax_section): New.
4949 (elf32_frvfdpic_finish_dynamic_sections): Add TLS sanity check.
4950 (elf32_frv_check_relocs): Add TLS support.
4951 (bfd_elf32_bfd_relax_section): Define for FDPIC.
4952 * libbfd.h, bfd-in2.h: Rebuilt.
4954 2005-01-25 Alan Modra <amodra@bigpond.net.au>
4956 * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound): Only include
4957 loadable reloc sections.
4958 (_bfd_elf_canonicalize_dynamic_reloc): Likewise.
4959 (_bfd_elf_get_synthetic_symtab): Return 0 if no dynamic syms.
4961 2005-01-25 Alan Modra <amodra@bigpond.net.au>
4963 * elflink.c (elf_link_add_object_symbols): Don't create link dynamic
4964 sections immediately when linking shared libs. Instead, wait until
4965 we know a lib is needed.
4966 (_bfd_elf_link_create_dynstrtab): Extract from..
4967 (_bfd_elf_link_create_dynamic_sections_): ..here.
4968 (elf_add_dt_needed_tag): Call _bfd_elf_link_create_dynstrtab and
4969 _bfd_elf_link_create_dynamic_sections. Add abfd param. Allow
4970 for non-existent .dynamic.
4971 (elf_link_output_extsym): Don't complain about undefined symbols
4972 in as-needed dynamic libs that aren't actually linked.
4974 2005-01-24 Andrew Cagney <cagney@gnu.org>
4976 * configure: Regenerate, ../gettext.m4 was updated.
4978 2005-01-21 Ben Elliston <bje@au.ibm.com>
4980 * aout-encap.c: Remove unused file.
4982 2005-01-19 H.J. Lu <hongjiu.lu@intel.com>
4985 * elflink.c (_bfd_elf_dynamic_symbol_p): Only protected
4986 non-function symbols are local.
4987 (_bfd_elf_symbol_refs_local_p): Likewise.
4989 2005-01-18 Alan Modra <amodra@bigpond.net.au>
4991 * bfd.c (bfd_link_just_syms): Add abfd param.
4992 * bfd-in2.h: Regenerate.
4994 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
4996 * elf-eh-frame.c (skip_cfa_op, skip_non_nops): New functions.
4997 (_bfd_elf_discard_section_eh_frame): Use them to interpret the CFA
4998 instructions. If the amount of padding is known, reduce the size
4999 of the CIE or FDE by that amount.
5001 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
5003 * elf-bfd.h (struct cie): Use bfd_vmas for code_align, ra_column and
5004 augmentation_size. Use bfd_signed_vmas for data_align.
5005 * elf-eh-frame.c (read_uleb128, read_sleb128): Delete in favor of...
5006 (read_byte, skip_leb128, read_uleb128, read_sleb128): ...these new
5007 functions. Don't read past the end of the enclosing CIE or FDE.
5008 (skip_bytes): New utility function.
5009 (_bfd_elf_discard_section_eh_frame): Use new functions, adding more
5011 (_bfd_elf_write_section_eh_frame): Use new functions.
5013 2005-01-17 Richard Sandiford <rsandifo@redhat.com>
5015 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use an
5016 assert-style REQUIRE() macro to handle sanity checks.
5018 2005-01-17 H.J. Lu <hongjiu.lu@intel.com>
5020 * dwarf2.c (dwarf2_debug): Move info_ptr_unit to ...
5022 (read_unsigned_leb128): Removed.
5023 (read_signed_leb128): Removed.
5024 (find_abstract_instance_name): Updated.
5025 (parse_comp_unit): Accept info_ptr_unit.
5026 (_bfd_dwarf2_find_nearest_line): Set info_ptr_unit for each
5027 comp unit and pass it to parse_comp_unit.
5029 * elf-eh-frame.c (read_unsigned_leb128): Moved to ...
5030 (read_signed_leb128): Moved to ...
5033 * libbfd-in.h (read_unsigned_leb128): New prototype.
5034 (read_signed_leb128): Likewise.
5035 * libbfd.h: Regenerated.
5037 2005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
5038 Nick Clifton <nickc@redhat.com>
5040 * cpu-sh.c (bfd_to_arch_table): Change arch_sh1_up to arch_sh_up,
5041 arch__sh4_nofp_up to arch_sh4_nofpu_up and arch_sh4a_nofp_up to
5042 arch_sh4a_nofpu_up in order to match the external names and make the
5043 testsuite's job easier.
5044 * archuires.c: Rename bfd_mach_sh2a_fake? to more meaningful
5046 * bfd-in2.h: Regenerate.
5048 2005-01-15 Andrew Cagney <cagney@gnu.org>
5051 * acinclude.m4: Move BFD_NEED_DECLARATION,
5052 BFD_HAVE_SYS_PROCFS_TYPE and BFD_HAVE_SYS_PROCFS_TYPE_MEMBER to
5053 the new file bfd.m4. Include ../bfd/bfd.m4.
5054 * configure: Re-generate.
5056 2005-01-12 Alan Modra <amodra@bigpond.net.au>
5058 * elf32-ppc.c (ppc_elf_howto_raw): Delete RELAX32* entries.
5059 (ppc_elf_relax_section): Use PLT variants of RELAX32 relocs for
5061 (ppc_elf_relocate_section): Handle R_PPC_RELAX32_PLT and
5062 R_PPC_RELAX32PC_PLT.
5064 2005-01-11 Alan Modra <amodra@bigpond.net.au>
5066 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Follow indirect and warning
5068 * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
5069 * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
5070 * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
5071 * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
5072 * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
5073 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
5074 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Likewise.
5075 * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
5076 * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
5077 * elf32-sparc.c (elf32_sparc_gc_sweep_hook): Likewise.
5078 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
5079 * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
5080 * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
5081 * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
5083 2005-01-11 Alan Modra <amodra@bigpond.net.au>
5085 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Correct
5088 2005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
5090 * archures.c: Define bfd_mach_maxq10 and bfd_mach_maxq20.
5091 * bfd-in2.h: Regenerate.
5092 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Add code
5093 to support these new machine values.
5094 * cpu-maxq.c (bfd_maxq10_arch): New architecture definition for
5096 (bfd_maxq_arch): Update values for the maxq20.
5098 2005-01-10 Eric Botcazou <ebotcazou@libertysurf.fr>
5100 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): When linking a
5101 non-shared object, do not reserve space in .plt and .rela.plt for
5102 regular symbols neither defined nor referenced in shared objects.
5104 2005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5106 * elf32-sparc.c (elf32_sparc_link_hash_table_create): Use bfd_zmalloc
5107 to zero the structure.
5108 (create_got_section): Use BFD_ASSERT instead of abort.
5109 * elf64-sparc.c (struct sparc64_elf_link_hash_table): New 'sgot' and
5111 (create_got_section): New function.
5112 (sparc64_elf_create_dynamic_sections): Likewise.
5113 (sparc64_elf_check_relocs): Invoke create_got_section instead of
5114 _bfd_elf_create_got_section. Use the sgot and srelgot shortcuts.
5115 (sparc64_elf_size_dynamic_sections): Use the srelgot shortcut.
5116 (sparc64_elf_relocate_section): Use the sgot and srelgot shortcuts.
5117 (sparc64_elf_finish_dynamic_symbol): Likewise.
5118 (sparc64_elf_finish_dynamic_sections): Use the sgot shortcut.
5119 (elf_backend_create_dynamic_sections): Define to
5120 sparc64_elf_create_dynamic_sections.
5122 2005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5124 * elf32-sparc.c (elf32_sparc_omit_section_dynsym): New function.
5125 (elf_backend_omit_section_dynsym): Define to it.
5126 * elf64-sparc.c (sparc64_elf_omit_section_dynsym): New function.
5127 (elf_backend_omit_section_dynsym): Define to it.
5129 2005-01-07 Jakub Jelinek <jakub@redhat.com>
5131 * bfd/elf.c (INCLUDE_SECTION_IN_SEGMENT): Don't put empty sections into
5132 PT_DYNAMIC segment, unless .dynamic.
5134 2005-01-06 Paul Brook <paul@codesourcery.com>
5136 * config.bfd: Add entry for arm-*-vxworks and arm-*-windiss.
5137 * configure.in: Add bfd_elf32_{big,little}arm_vxworks_vec.
5138 * configure: Regenerate.
5139 * elf32-arm.c: Add VxWorks target bfd.
5141 (elf32_arm_link_hash_table): Add use_rel.
5142 (elf32_arm_link_hash_table_create, elf32_arm_final_link_relocate,
5143 elf32_arm_relocate_section): Replace USE_REL with runtime check.
5144 Correct offset calculation for RELA case.
5145 (elf_backend_may_use_rel_p, elf_backend_may_use_rela_p,
5146 elf_backend_default_use_rela_p, elf_backend_rela_normal): Define.
5147 (elf32_arm_vxworks_link_hash_table_create): New function.
5148 * targets.c (bfd_elf32_bigarm_vxworks_vec): Add declaration.
5149 (bfd_elf32_littlearm_vxworks_vec): Ditto.
5150 (_bfd_target_vector): Add bfd_elf32_{big,little}arm_vxworks_vec.
5152 2005-01-06 Alan Modra <amodra@bigpond.net.au>
5154 * elf64-ppc.c (struct ppc_link_hash_table): Add no_multi_toc and
5156 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Define.
5157 (ppc64_elf_check_relocs): Update references to has_gp_reloc.
5158 (ppc64_elf_setup_section_lists): Add no_multi_toc parm, set htab bit.
5159 (ppc64_elf_next_toc_section): Heed no_multi_toc.
5160 (ppc64_elf_reinit_toc): Set multi_toc_needed.
5161 (toc_adjusting_stub_needed): Rewrite.
5162 (ppc64_elf_next_input_section): Use multi_toc_needed to shortcut
5163 toc tests. Adjust for toc_adjusting_stub_needed changes.
5164 (ppc64_elf_size_stubs): Update references to has_gp_reloc.
5165 * elf64-ppc.h (ppc64_elf_setup_section_lists): Update prototype.
5166 * section.c: Expand comment on backend bits.
5167 * bfd-in2.h: Regenerate.
5168 * libbfd.h: Regenerate.
5170 2005-01-06 Alan Modra <amodra@bigpond.net.au>
5172 * elf64-ppc.c (ppc64_elf_size_stubs): When determining need for
5173 toc adjusting stub, do not test source section flags.
5175 2005-01-05 Eric Botcazou <ebotcazou@libertysurf.fr>
5177 * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
5178 from STABS debugging sections again.
5180 2005-01-05 Fred Fish <fnf@specifixinc.com>
5182 * dwarf2.c (struct dwarf2_debug): Add info_ptr_unit member.
5183 (find_abstract_instance_name): New function.
5184 (scan_unit_for_functions): Handle DW_TAG_inlined_subroutine.
5185 (scan_unit_for_functions): Handle DW_AT_abstract_origin.
5186 (_bfd_dwarf2_find_nearest_line): Initialize info_ptr_unit.
5188 2004-12-31 Paul Brook <paul@copdesourcery.com>
5190 * elf32-arm.c (elf32_arm_symbian_plt_entry): Fix comment typo.
5192 2004-12-31 Alan Modra <amodra@bigpond.net.au>
5194 * reloc.c (BFD_RELOC_AVR_LDI, BFD_RELOC_AVR_6, BFD_RELOC_AVR_6_ADIW):
5195 Commit missing changes from 2004-12-22.
5196 * bfd-in2.h: Regenerate.
5198 2004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
5200 * elf32-crx.c (elf32_crx_relax_section): Support 'bcop' relaxation.
5202 2004-12-21 Kris Warkentin <kewarken@qnx.com>
5204 * elf.c (elfcore_grok_nto_gregs): Change name to elfcore_grok_nto_regs.
5205 Add 'base' argument for constructing register sections. Reformat.
5206 (elfcore_grok_nto_note): Call elfcore_grok_nto_regs for both
5207 gp and fp regs. Reformat.
5209 2004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
5211 * reloc.c: Add new relocs R_AVR_LDI, R_AVR_6, R_AVR_6_ADIW.
5212 * bfd-in2.h: Regenerate.
5213 * elf32-avr.c (elf_avr_nowto_table): Add the new relocs.
5214 (avr_reloc_map): Likewise.
5215 (avr_final_link_relocate): Likewise.
5217 2004-12-22 Alan Modra <amodra@bigpond.net.au>
5219 * elflink.c (_bfd_elf_merge_symbol): Treat old definitions from
5220 as-needed dynamic libs as undefined.
5221 (elf_link_add_object_symbols): Remove DYN_AS_NEEDED from as-needed
5222 libs when finding they are needed.
5224 2004-12-20 Alan Modra <amodra@bigpond.net.au>
5226 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add opd_relocs.
5227 (opd_entry_value): Use opd_relocs if available.
5228 (ppc64_elf_relocate_section): Don't set reloc_done. Instead
5229 copy .opd relocations to opd_relocs.
5230 (ppc64_elf_edit_toc): Set rel_hdr.sh_size after editing relocs.
5232 2004-12-16 Richard Sandiford <rsandifo@redhat.com>
5234 * reloc.c (BFD_RELOC_V850_LO16_SPLIT_OFFSET): New bfd_reloc_code_type.
5235 * elf32-v850.c (v850_elf_howto_table): Add entry for
5236 R_V850_LO16_SPLIT_OFFSET.
5237 (v850_elf_reloc_map): Map it to BFD_RELOC_V850_LO16_SPLIT_OFFSET.
5238 (v850_elf_perform_lo16_relocation): New function, extracted from...
5239 (v850_elf_perform_relocation): ...here. Use it to handle
5240 R_V850_LO16_SPLIT_OFFSET.
5241 (v850_elf_check_relocs, v850_elf_final_link_relocate): Handle
5242 R_V850_LO16_SPLIT_OFFSET.
5243 * libbfd.h, bfd-in2.h: Regenerate.
5245 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
5247 * config.bfd: Add s390x-ibm-tpf support.
5249 2004-12-14 Tomer Levi <Tomer.Levi@nsc.com>
5251 * elf32-crx.c (elf32_crx_relax_delete_bytes): Add 'struct bfd_link_info *'
5252 to prototype, to make hash info available.
5253 Prevent wrapped symbols from being adjusted twice.
5255 2004-12-14 Richard Sandiford <rsandifo@redhat.com>
5257 * elfxx-mips.c (mips_elf_calculate_relocation): Don't report an
5258 overflow for calls to undefined weak symbols.
5260 2004-12-11 Alan Modra <amodra@bigpond.net.au>
5262 * elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
5263 canonical sections syms have a name.
5265 2004-12-11 Alan Modra <amodra@bigpond.net.au>
5267 * elf64-ppc.c (opd_entry_value): Don't use cached relocs if they
5268 have been adjusted for output.
5269 (ppc64_elf_relocate_section): Mark sections with reloc_done.
5271 2004-12-10 Alan Modra <amodra@bigpond.net.au>
5273 * elf.c (bfd_elf_sym_name): Rename from bfd_elf_local_sym_name and
5274 add symtab_hdr param.
5275 (group_signature): Update calls.
5276 * elf-bfd.h (bfd_elf_sym_name): Update.
5277 * elf32-ppc.c (ppc_elf_relocate_section): Update.
5278 * elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Update.
5279 (ppc64_elf_relocate_section): Update.
5280 * elflink.c (elf_link_input_bfd): Update.
5282 2004-12-10 Jakub Jelinek <jakub@redhat.com>
5284 * elf.c (bfd_elf_local_sym_name): Avoid crashes with invalid
5285 st_shndx on STT_SECTION sections.
5287 2004-12-09 Daniel Jacobowitz <dan@codesourcery.com>
5289 * elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalize
5290 ELF section symbols.
5292 2004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
5294 * elfxx-mips.c (mips_elf_calculate_relocation): For R_MIPS_JALR,
5295 return a real value, unless it is a PLT symbol.
5296 (mips_elf_perform_relocation): On the RM9000, turn a jal into a
5299 * elfn32-mips.c (elf_mips_howto_table_rela): Change dst_mask of
5300 R_MIPS_JALR entry to 0.
5302 * archures.c: Define bfd_mach_mips9000.
5303 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_9000.
5304 (mips_set_isa_flags): Handle bfd_mach_mips9000.
5305 * cpu-mips.c (I_mips9000): Define.
5306 (arch_info_struct): Add case for bfd_mach_mips9000.
5307 * aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mips9000.
5308 * bfd-in2.h: Regenerate.
5310 2004-12-08 Ian Lance Taylor <ian@wasabisystems.com>
5312 * elfxx-mips.c (mips_elf_calculate_relocation): Test for R_MIPS_26
5315 2004-12-07 Ben Elliston <bje@gnu.org>
5317 * netbsd-core.c (netbsd_core_file_p): Make `i' unsigned.
5319 2004-12-06 Daniel Jacobowitz <dan@debian.org>
5321 Suggested by Fergal Daly <fergal@esatclear.ie>:
5322 * simple.c (simple_dummy_multiple_definition): New function.
5323 (bfd_simple_get_relocated_section_contents): Use it.
5325 2004-12-03 Jan Beulich <jbeulich@novell.com>
5327 * elf.c (elf_find_function): Don't use the last file symbol ever,
5328 seen, but the last one seen prior to the symbol being reported.
5329 Don't report a filename at all for global symbols when that might
5332 2004-12-01 Paul Brook <paul@codesourcery.com>
5334 * elf32-arm.c (elf32_arm_copy_private_bfd_data): Set EI_OSABI.
5335 (elf32_arm_post_process_headers): Set EI_OSABI depending on ABI
5338 2004-12-01 Paul Brook <paul@codesourcery.com>
5340 * elflink.c (elf_link_add_object_symbols): Make symbols from discarded
5343 2004-11-30 Paul Brook <paul@codesourcery.com>
5345 * elf32-arm.c (struct elf32_arm_link_hash_table): Remove
5346 no_pipeline_knowledge
5347 (elf32_arm_link_hash_table_create): Ditto.
5348 (bfd_elf32_arm_process_before_allocation): Ditto.
5349 (elf32_arm_final_link_relocate): Ditto. Remove oabi relocation
5351 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
5353 * bfd-in2.h: Regenerate.
5355 2004-11-30 Randolph Chung <tausq@debian.org>
5357 * elf32-hppa.c (elf32_hppa_grok_prstatus): New function.
5358 (elf32_hppa_grok_psinfo): New function.
5359 (elf_backend_grok_prstatus): Define.
5360 (elf_backend_grok_psinfo): Define.
5362 2004-11-24 H.J. Lu <hongjiu.lu@intel.com>
5365 * elfcode.h (elf_slurp_symbol_table): Handle STT_TLS.
5367 2004-11-24 Paul Brook <paul@codesourcery.com>
5369 * elf.c (assign_section_numbers): Number SHT_GROUP sections first.
5371 2004-11-24 Paul Brook <paul@codesourcery.com>
5373 * elf32-arm.c (elf32_arm_swap_symbol_in): New function.
5374 (elf32_arm_swap_symbol_out): New function.
5375 (elf32_arm_size_info): Add.
5376 (elf_backend_size_info): Define.
5378 2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5380 * hpux-core.c (hpux_core_core_file_p): Use offsetof macro in calls to
5383 2004-11-19 Alan Modra <amodra@bigpond.net.au>
5385 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Warning fix.
5386 * elf32-iq2000.c (iq2000_reloc_type_lookup): C90 function decl.
5387 * nlmcode.h (nlm_write_object_contents): Warning fix.
5389 2004-11-18 Bob Wilson <bob.wilson@acm.org>
5391 * elf32-xtensa.c (ebb_propose_action): Fix argument order.
5393 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
5395 * elf32-arm.c (PLT_THUMB_STUB_SIZE): Define.
5396 (elf32_arm_plt_thumb_stub): New.
5397 (struct elf32_arm_link_hash_entry): Add plt_thumb_refcount
5399 (elf32_arm_link_hash_traverse): Fix typo.
5400 (elf32_arm_link_hash_table): Add obfd.
5401 (elf32_arm_link_hash_newfunc): Initialize new fields.
5402 (elf32_arm_copy_indirect_symbol): Copy plt_thumb_refcount.
5403 (elf32_arm_link_hash_table_create): Initialize obfd.
5404 (record_arm_to_thumb_glue): Mark the glue as a local ARM function.
5405 (record_thumb_to_arm_glue): Mark the glue as a local Thumb function.
5406 (bfd_elf32_arm_get_bfd_for_interworking): Verify that the
5407 interworking BFD is not dynamic.
5408 (bfd_elf32_arm_process_before_allocation): Handle R_ARM_PLT32. Do
5409 not emit glue for PLT references.
5410 (elf32_arm_final_link_relocate): Handle Thumb functions. Do not
5411 emit glue for PLT references. Support the Thumb PLT prefix.
5412 (elf32_arm_gc_sweep_hook): Handle R_ARM_THM_PC22 and
5414 (elf32_arm_check_relocs): Likewise.
5415 (elf32_arm_adjust_dynamic_symbol): Handle Thumb functions and
5417 (allocate_dynrelocs): Handle Thumb PLT references.
5418 (elf32_arm_finish_dynamic_symbol): Likewise.
5419 (elf32_arm_symbol_processing): New function.
5420 (elf_backend_symbol_processing): Define.
5422 2004-11-16 Richard Sandiford <rsandifo@redhat.com>
5424 * elf-bfd.h (eh_cie_fde): Add new fields: add_augmentation_size and
5425 add_fde_encoding. Remove need_relative.
5426 * elf-eh-frame.c (extra_augmentation_string_bytes)
5427 (extra_augmentation_data_bytes, size_of_output_cie_fde): New functions.
5428 (_bfd_elf_discard_section_eh_frame): Consider changing the FDE encoding
5429 in cases where the CIE has no existing 'R' augmentation. Use
5430 size_of_output_cie_fde when assigning offsets. Use the final offset
5431 as the new section size.
5432 (_bfd_elf_eh_frame_section_offset): Remove need_relative handling.
5433 Account for any extra augmentation bytes in the returned offset.
5434 (_bfd_elf_write_section_eh_frame): Rework so that the entries are
5435 moved before being modified. Pad growing entries with DW_CFA_nops.
5436 Add 'z' and 'R' augmentations as directed by add_augmentation_size
5437 and add_fde_encoding.
5439 2004-11-15 Mark Mitchell <mark@codesourcery.com>
5441 * elf32-arm.c (elf32_arm_relocate_section): Use
5442 arm_real_reloc_type.
5444 2004-11-16 Richard Sandiford <rsandifo@redhat.com>
5446 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Return early
5447 for discard relocations; don't add an R_MIPS_NONE to the main body
5450 2004-11-04 Paul Brook <paul@codesourcery.com>
5452 * elf-bfd.h (_bfd_elf_slurp_version_tables): Update prototype.
5453 * elf.c (_bfd_elf_print_private_bfd_data): Pass extra argument.
5454 (_bfd_elf_slurp_version_tables): Add extra argument. Create extra
5455 default version definition for unversioned symbols.
5456 * elfcode.h (elf_slurp_symbol_table): Pass extra argument.
5457 * elflink.c (elf_link_add_object_symbols): Pass extra argument to
5458 _bfd_elf_slurp_version_tables. Set default version for unversioned
5461 2004-11-15 Paul Brook <paul@codesourcery.com>
5463 * elflink.c (elf_link_add_object_symbols): Don't assume version
5464 indices are consecutive.
5466 2004-11-14 Richard Sandiford <rsandifo@redhat.com>
5468 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal with
5469 composite relocations against the personality data.
5471 2004-11-13 Paul Brook <paul@codesourcery.com>
5473 * bfd/elf32-arm.c (elf32_arm_final_link_relocate): Resolve
5474 R_ARM_PREL31 relocations to PLT entries.
5475 (elf32_arm_relocate_section, elf32_arm_gc_sweep_hook): Ditto.
5476 (elf32_arm_check_relocs): Ditto.
5478 2004-11-12 Bob Wilson <bob.wilson@acm.org>
5480 * xtensa-isa.c (xtensa_interface_class_id): New.
5482 2004-11-11 Bob Wilson <bob.wilson@acm.org>
5484 * elf32-xtensa.c (property_table_compare): Remove assertion about
5485 entries with the same address and non-zero size.
5486 (xtensa_read_table_entries): Report such entries as errors.
5488 2004-11-11 Mark Mitchell <mark@codesourcery.com>
5490 * elf32-arm.c (elf32_arm_final_link_relocate): Correct logic for
5491 R_ARM_RELATIVE on Symbian OS.
5493 2004-11-09 Mark Mitchell <mark@codesourcery.com>
5495 * som.c (som_bfd_print_private_bfd_data): New function.
5496 (som_object_setup): Save the auxiliary header. Don't assume that
5497 zero is an invalid entry point for a shared library.
5498 (som_object_p): Allocate the auxiliary header on the heap.
5500 * elf32-arm.c (elf32_arm_begin_write_processing): Do not use a K&R
5502 (elf32_arm_symbian_modify_segment_map): Likewise.
5504 2004-11-09 Daniel Jacobowitz <dan@debian.org>
5506 From David Poole <daveml@mbuf.com>:
5507 * elf32-arm.c (elf32_arm_readonly_dynrelocs): New function.
5508 (elf32_arm_size_dynamic_sections): Call it.
5510 2004-11-09 Alan Modra <amodra@bigpond.net.au>
5512 * Makefile.am (SOURCE_HFILES): Remove elf32-arm.h.
5513 (ALL_MACHINES_CFILES): Fix typo.
5514 * Makefile.in: Regenerate.
5515 * po/SRC-POTFILES.in: Regenerate.
5517 2004-11-08 Mark Mitchell <mark@codesourcery.com>
5519 * elf32-arm.c (elf32_arm_final_link_relocate): When generating an
5520 R_ARM_RELATIVE relocation for Symbian OS, mention the section
5521 symbol in the relocation.
5523 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
5524 Vineet Sharma <vineets@noida.hcltech.com>
5526 * coff-maxq.c: New File.
5527 * cpu-maxq.c: New File.
5528 * coffcode.h: Likewise.
5529 * config.bfd: Likewise.
5530 * configure.in (maxqcoff_vec): New target vector.
5531 * Makefile.am: Add support for maxq target.
5532 * configure.in: Likewise.
5533 * archures.c:. Likewise.
5534 * targets.c: Likewise.
5535 * bfd_in2.h : Regenerated.
5536 * Makefile.in: Regenerated.
5537 * configure: Regenerated.
5538 * doc/Makefile.in: Regenerated.
5540 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
5542 * coff-i386.c (coff_i386_reloc): Fix weak symbols.
5543 * cofflink.c (_bfd_coff_link_input_bfd): Don't process
5544 C_NT_WEAK aux entries.
5545 (_bfd_coff_generic_relocate_section): Handle undefined
5548 2004-11-07 Andreas Schwab <schwab@suse.de>
5550 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Use
5551 SYMBOL_CALLS_LOCAL and check for undefweak symbols with
5552 non-default visibility.
5554 2004-11-01 Mark Mitchell <mark@codesourcery.com>
5556 * elf32-arm.c (elf32_arm_symbian_begin_write_processing): Clear
5558 (elf32_arm_symbian_modify_segment_map): Don't
5559 reset includes_filehdr and includes_phdrs here.
5561 2004-11-04 Daniel Jacobowitz <dan@debian.org>
5563 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace
5564 elfarm-nabi with elf32-arm. Remove elfarm-oabi.
5565 (elf32-arm.lo): Replace elfarm-nabi.lo rule. Remove elf32-arm.h
5567 * config.bfd: Move arm-*-oabi* and thumb-*-oabi* from obsolete list
5568 to a new removed list. Remove normal configuration stanzas.
5569 * configure.in: (bfd_elf32_bigarm_vec, bfd_elf32_bigarm_symbian_vec)
5570 (bfd_elf32_littlearm_symbian_vec, bfd_elf32_littlearm_vec): Replace
5571 elfarm-nabi.lo with elf32-arm.lo.
5572 (bfd_elf32_bigarm_oabi_vec, bfd_elf32_littlearm_oabi_vec): Remove.
5573 * elf32-arm.c: Renamed from elfarm-nabi.c. Inline elf32-arm.h.
5574 * elf32-arm.h: Remove.
5575 * elfarm-oabi.c: Remove.
5576 * targets.c (_bfd_target_vector): Remove bfd_elf32_bigarm_oabi_vec
5577 and bfd_elf32_littlearm_oabi_vec.
5578 * aclocal.m4, Makefile.in, configure, doc/Makefile.in: Regenerated.
5580 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
5582 * config.bfd: Support crisv32-*-* like cris-*-*.
5583 * archures.c (bfd_mach_cris_v0_v10, bfd_mach_cris_v32)
5584 (bfd_mach_cris_v10_v32): New macros.
5585 * cpu-cris.c: Tweak formatting.
5586 (get_compatible): New function.
5588 (bfd_cris_arch_compat_v10_v32, bfd_cris_arch_v32): New
5589 bfd_arch_info_type:s.
5590 (bfd_cris_arch): Use bfd_mach_cris_v0_v10 for member mach,
5591 get_compatible for member compatible and link bfd_cris_arch_v32 as
5593 * elf32-cris.c (cris_elf_pcrel_reloc)
5594 (cris_elf_set_mach_from_flags): New functions.
5595 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL>
5596 <R_CRIS_32_PCREL>: Use cris_elf_pcrel_reloc.
5597 (cris_elf_grok_prstatus, cris_elf_grok_psinfo): Give correct
5598 numbers for bfd_mach_cris_v32.
5599 (PLT_ENTRY_SIZE_V32): New macro.
5600 (elf_cris_plt0_entry): Drop last comma in initializer.
5601 (elf_cris_plt0_entry_v32, elf_cris_plt_entry_v32)
5602 (elf_cris_pic_plt0_entry_v32, elf_cris_pic_plt_entry_v32): New
5604 (cris_elf_relocate_section): Change all "%B(%A)" messages to
5606 (elf_cris_finish_dynamic_symbol): Do V32-specific PLT entries.
5607 (elf_cris_finish_dynamic_sections): Similar.
5608 (elf_cris_adjust_dynamic_symbol): Similar.
5609 (cris_elf_check_relocs): Change all "%B(%A)" messages to "%B,
5611 <switch with PIC relocs>: Emit error and return FALSE for
5612 bfd_mach_cris_v10_v32.
5613 <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
5614 Emit warning when generating textrel reloc.
5615 (cris_elf_object_p): Call cris_elf_set_mach_from_flags.
5616 (cris_elf_final_write_processing): Set flags according to mach.
5617 (cris_elf_print_private_bfd_data): Display
5618 EF_CRIS_VARIANT_COMMON_V10_V32 and EF_CRIS_VARIANT_V32.
5619 (cris_elf_merge_private_bfd_data): Drop variables old_flags,
5620 new_flags. Don't call cris_elf_final_write_processing. Don't
5621 look at the actual elf header flags at all; use
5622 bfd_get_symbol_leading_char to check ibfd, obfd. Trap difference
5623 in bfd_get_mach for ibfd and obfd and handle merging of compatible
5625 (bfd_elf32_bfd_copy_private_bfd_data): Define.
5626 * reloc.c (BFD_RELOC_CRIS_SIGNED_8, BFD_RELOC_CRIS_UNSIGNED_8)
5627 (BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_UNSIGNED_16)
5628 (BFD_RELOC_CRIS_LAPCQ_OFFSET): New relocs.
5629 * bfd-in2.h, libbfd.h: Regenerate.
5631 2004-11-04 Alan Modra <amodra@bigpond.net.au>
5633 * elf64-ppc.h (ppc64_elf_edit_toc): Declare.
5634 * elf64-ppc.c (struct ppc_link_hash_entry <adjust_done>): Update
5636 (struct adjust_toc_info): New.
5637 (adjust_toc_syms, ppc64_elf_edit_toc): New functions.
5639 2004-11-03 Bob Wilson <bob.wilson@acm.org>
5641 * elf.c (assign_file_positions_for_segments): Set next_file_pos even
5642 if there are no segments.
5644 2004-11-02 Daniel Jacobowitz <dan@debian.org>
5646 * config.bfd: Mark arm-*-oabi and thumb-*-oabi as obsolete.
5648 2004-11-02 Nick Clifton <nickc@redhat.com>
5650 * elf32-iq2000.c: Convert to ISO C90 formatting.
5652 2004-11-02 Hans-Peter Nilsson <hp@axis.com>
5654 * elflink.c (_bfd_elf_create_got_section): Hide _GLOBAL_OFFSET_TABLE_.
5656 2004-10-28 H.J. Lu <hongjiu.lu@intel.com>
5658 * elfxx-ia64.c (elfNN_ia64_relocate_section): Handle weak
5659 undefined symbols for R_IA64_SECREL32MSB, R_IA64_SECREL32LSB,
5660 R_IA64_SECREL64MSB and R_IA64_SECREL64LSB.
5662 2004-10-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5664 * elf32-sh.c (tpoff): Take alignment into account.
5666 2004-10-28 Nick Clifton <nickc@redhat.com>
5668 * elf32-iq2000.c (iq2000_elf_relocate_section): Do nothing when
5669 performing a relocatable link.
5670 (iq2000_elf_object_p): Do not set elf_bad_symtab. This is only
5671 for MIPS ports under Irix.
5673 2004-10-27 Richard Earnshaw <rearnsha@arm.com>
5675 * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Handle
5676 R_ARM_CALL and R_ARM_JUMP24 as aliases of R_ARM_PC24.
5677 (elf32_arm_final_link_relocate): Ditto.
5678 (arm_add_to_rel, elf32_arm_relocate_section): Ditto.
5679 (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto
5680 (elf32_arm_adjust_dynamic_symbol): Ditto.
5681 * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_CALL and
5682 R_ARM_JUMP32. Move R_ARM_R{REL32,ABS32,PC24,BASE}...
5683 (elf32_arm_r_howto): ... To here.
5684 (elf32_arm_howto_from_type): Use elf32_arm_r_howto.
5686 2004-10-26 H.J. Lu <hongjiu.lu@intel.com>
5689 * elfxx-ia64.c (elfNN_ia64_relocate_section): Correct
5690 R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, R_IA64_SECREL64MSB
5691 and R_IA64_SECREL64LSB.
5693 2004-10-26 Paul Brook <paul@codesourcery.com>
5695 * elflink.c (elf_finalize_dynstr): Skip shared aux structure.
5696 (bfd_elf_size_dynamic_sections): Create default version definition.
5697 (elf_link_output_extsym): Adjust for default symbol version.
5699 2004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
5701 * mmo.c: Adjust to ISO C.
5703 * mmo.c (mmo_write_section_description): New function broken out
5704 of mmo_internal_write_section.
5705 (mmo_internal_write_section): For each of .text and .data, call
5706 mmo_write_section_description before outputting contents if it has
5707 nontrivially deducible vma or contents.
5708 (mmo_has_leading_or_trailing_zero_tetra_p): New function.
5709 (mmo_canonicalize_symtab): Adjust absolute symbols to .data
5710 symbols if found within the .data address range.
5712 2004-10-24 Daniel Jacobowitz <dan@debian.org>
5714 * opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY.
5716 2004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
5718 * mmo.c (File Layout): Correct place of misplaced blurb about
5721 2004-10-22 Mark Kettenis <kettenis@gnu.org>
5723 * config.bfd: Add mips64*-*-openbsd.
5725 2004-10-21 Bob Wilson <bob.wilson@acm.org>
5727 * elf32-xtensa.c (ebb_propose_action): Put declarations before
5730 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
5732 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.94.
5733 * configure: Regenerate.
5735 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
5738 * aoutx.h (aout_link_input_section_std): Pass proper hash entry
5739 to linker reloc_overflow callback.
5740 (aout_link_input_section_ext): Likewise.
5741 (aout_link_reloc_link_order): Likewise.
5742 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
5743 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
5745 (alpha_relocate_section): Likewise.
5746 * coff-arm.c (coff_arm_relocate_section): Likewise.
5747 * coff-h8300.c (h8300_reloc16_extra_cases): Likewise.
5748 * coff-h8500.c (extra_case): Likewise.
5749 * coff-i960.c (coff_i960_relocate_section): Likewise.
5750 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
5751 * coff-mips.c (mips_relocate_section): Likewise.
5752 * coff-or32.c (coff_or32_relocate_section): Likewise.
5753 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
5754 * coff-rs6000.c (xcoff_ppc_relocate_section): Likewise.
5755 * coff-sh.c (sh_relocate_section): Likewise.
5756 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
5757 * coff-w65.c (w65_reloc16_extra_cases): Likewise.
5758 * coff-z8k.c (extra_case): Likewise.
5759 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
5760 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
5761 (_bfd_coff_generic_relocate_section): Likewise.
5762 * ecoff.c (ecoff_reloc_link_order): Likewise.
5763 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
5764 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
5765 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
5766 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
5767 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
5768 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
5769 * elf32-cris.c (cris_elf_relocate_section): Likewise.
5770 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
5771 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
5772 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
5773 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
5774 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
5775 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
5776 * elf32-i370.c (i370_elf_relocate_section): Likewise.
5777 * elf32-i386.c (elf_i386_relocate_section): Likewise.
5778 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
5779 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
5780 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
5781 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
5782 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
5783 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
5784 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
5785 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
5786 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
5787 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
5788 * elf32-s390.c (elf_s390_relocate_section): Likewise.
5789 * elf32-sh.c (sh_elf_relocate_section): Likewise.
5790 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
5791 * elf32-v850.c (v850_elf_relocate_section): Likewise.
5792 * elf32-vax.c (elf_vax_relocate_section): Likewise.
5793 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
5794 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
5795 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
5796 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
5797 * elf64-s390.c (elf_s390_relocate_section): Likewise.
5798 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
5799 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
5800 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
5801 * elflink.c (elf_reloc_link_order): Likewise.
5802 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
5803 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
5804 (_bfd_elf_mips_get_relocated_section_contents): Likewise.
5805 * linker.c (_bfd_generic_reloc_link_order): Likewise.
5806 * pdp11.c (pdp11_aout_link_input_section): Likewise.
5807 (aout_link_reloc_link_order): Likewise.
5808 * reloc.c (bfd_generic_get_relocated_section_contents):
5810 * xcofflink.c (xcoff_reloc_link_order): Likewise.
5811 * simple.c (simple_dummy_reloc_overflow): Updated.
5813 2004-10-20 Andreas Schwab <schwab@suse.de>
5815 * elf32-m68k.c (elf_m68k_plt_sym_val): New function.
5816 (elf_backend_plt_sym_val): Define.
5818 2004-10-19 Danny Smith <dannysmith@users.sourceforege.net>
5820 * config.bfd: Set targ_underscore=yes for PE COFF targets
5822 2004-10-19 Alan Modra <amodra@bigpond.net.au>
5824 * elf64-ppc.c (opd_entry_value): Handle --just-symbols objects.
5825 (ppc64_elf_edit_opd): Likewise.
5827 2004-10-18 Mark Mitchell <mark@codesourcery.com>
5829 * elfarm-nabi.c (ELF_DYNAMIC_SEC_FLAGS): Add comment.
5830 * elflink.c (_bfd_elf_create_dynamic_sections): For a loaded PLT,
5831 set SEC_ALLOC and SEC_LOAD.
5833 2004-10-18 Nick Clifton <nickc@redhat.com>
5835 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Compute
5836 'name' for relocs against both local and global symbols.
5838 2004-10-16 Daniel Jacobowitz <dan@debian.org>
5840 * bfd-in2.h: Regenerate.
5841 * bfd.c (struct bfd): Add no_export.
5842 * elflink.c (elf_link_add_object_symbols): Handle no_export.
5844 2004-10-15 Alan Modra <amodra@bigpond.net.au>
5846 * config.bfd: Whitespace cleanup.
5847 * Makefile.am: Run "make dep-am"
5848 * Makefile.in: Regenerate.
5850 2004-10-15 Jakub Jelinek <jakub@redhat.com>
5852 * elflink.c (struct already_linked_section): Removed.
5853 (try_match_symbols_in_sections, already_linked): Removed.
5854 (_bfd_elf_section_already_linked): Skip ^\.gnu\.linkonce\.[^.]*\.
5855 prefix of section names when finding already_linked_table
5856 chain. Compare section names. Instead of calling already_linked,
5857 do it inline and only for sections in the same already_linked_list.
5859 2004-10-15 Alan Modra <amodra@bigpond.net.au>
5861 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Add "info"
5862 parameter. If called after _bfd_elf_write_section_eh_frame,
5863 don't allow a -2 return unless need_* bit is already set, and
5864 handle offsets adjusted for output_offset.
5865 * elf-bfd.h (_bfd_elf_eh_frame_section_offset): Update prototype.
5866 * elf.c (_bfd_elf_section_offset): Update call.
5868 2004-10-13 H.J. Lu <hongjiu.lu@intel.com>
5871 * coffcode.h (coff_compute_section_file_positions): Cast to
5872 bfd_vma when computing page alignment.
5874 2004-10-13 Mark Mitchell <mark@codesourcery.com>
5876 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
5877 offsets, not VMAs, for DT_VERSYM, DT_VERDEF, DT_VERNEED.
5879 2004-10-12 Mark Mitchell <mark@codesourcery.com>
5881 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.plt
5882 relocations use a virtual address, not a section offset.
5884 2004-10-12 Bob Wilson <bob.wilson@acm.org>
5886 * elf32-xtensa.c (elf_xtensa_get_private_bfd_flags): Delete.
5887 (narrow_instruction, widen_instruction): Remove unnecessary calls to
5888 xtensa_format_encode.
5889 (ebb_propose_action): Inline call to ebb_add_proposed_action.
5890 (ebb_add_proposed_action): Delete.
5892 2004-10-12 Bob Wilson <bob.wilson@acm.org>
5894 * elf32-xtensa.c: Use ISO C90 formatting.
5896 2004-10-12 Paul Brook <paul@codesourcery.com>
5898 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Rephrase error
5901 2004-10-12 Paul Brook <paul@codesourcery.com>
5903 * elf32-arm.h: Support EABI version 4 objects.
5905 2004-10-12 Alan Modra <amodra@bigpond.net.au>
5908 * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Place last in chain.
5909 Don't mark as default.
5910 (bfd_x86_64_arch): Don't mark as default.
5912 2004-10-12 Alan Modra <amodra@bigpond.net.au>
5914 * elflink.c (enum action_discarded): New.
5915 (elf_section_complain_discarded): Delete.
5916 (elf_action_discarded): New function subsuming the above and also
5917 controlling reloc behaviour.
5918 (elf_link_input_bfd): Use it.
5920 2004-10-11 Jakub Jelinek <jakub@redhat.com>
5922 * elf.c (bfd_section_from_shdr): Handle SHT_GNU_LIBLIST.
5923 (special_sections): Add .gnu.liblist and .gnu.conflict.
5924 (assign_section_numbers): Handle SHT_GNU_LIBLIST.
5926 2004-10-11 Alan Modra <amodra@bigpond.net.au>
5929 * elflink.c (elf_link_input_bfd): Try harder to support
5930 relocations against symbols in removed linkonce sections.
5932 2004-10-11 Alan Modra <amodra@bigpond.net.au>
5934 * elflink.c (elf_link_input_bfd): Revert PR 354 change.
5937 * elflink.c (elf_link_input_bfd): Check that relocs in SEC_ALLOC
5938 sections do not reference symbols in non-SEC_ALLOC sections.
5940 2004-10-11 Alan Modra <amodra@bigpond.net.au>
5943 * elflink.c (elf_link_sort_relocs): Don't bomb on unusual sections.
5944 (_bfd_elf_link_omit_section_dynsym): Formatting.
5946 2004-10-10 Alan Modra <amodra@bigpond.net.au>
5948 * libbfd-in.h (BFD_ASSERT, BFD_FAIL): Wrap macro body in do while.
5949 * libbfd.h: Regnerate.
5950 * elf32-cris.c: Add missing semicolon to BFD_ASSERTs.
5951 * elf32-frv.c: Likewise.
5952 * elf32-m32r.c: Likewise.
5953 * elf32-ppc.c: Likewise.
5954 * elf64-hppa.c: Likewise.
5955 * elfxx-ia64.c: Likewise.
5956 * opncls.c: Likewise.
5958 2004-10-10 Alan Modra <amodra@bigpond.net.au>
5960 * elf-bfd.h (struct eh_frame_hdr_info): Add offsets_adjusted.
5961 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Adjust
5962 offsets stored in struct eh_cie_fde entries before doing other
5965 * elf-bfd.h (struct eh_cie_fde): Add cie_inf, remove sec.
5966 (struct eh_frame_hdr_info): Add last_cie_inf, remove last_cie_offset.
5967 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete code
5968 setting offsets for removed CIEs. Don't set "sec", instead set
5969 cie_inf for FDEs. Keep a pointer to last struct eh_cie_fde for a
5970 CIE in hdr_info. Only set make_relative and make_lsda_relative
5971 for CIEs. Use pointers rather than array indices.
5972 (_bfd_elf_eh_frame_section_offset): Test/set make_relative,
5973 make_lsda_relative, need_* on cie_inf for FDEs.
5974 (_bfd_elf_write_section_eh_frame): Adjust offset and new_offset for
5975 section output_offset. Delete cie_offset, instead use cie_inf
5976 pointer to CIE entry. Use need_relative and need_lsda_relative on
5977 CIE entry for FDEs. Use pointers rather than array indices.
5979 2004-10-09 Alan Modra <amodra@bigpond.net.au>
5981 * coff-rs6000.c (rs6000coff_vec): Add initializer for
5982 bfd_is_target_special_symbol.
5983 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
5984 * som.c (som_bfd_is_target_special_symbol): Define.
5986 2004-10-08 Nick Clifton <nickc@redhat.com>
5988 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.93.
5989 * configure: Regenerate.
5990 * bfd-in2.h: Regenerate.
5991 * syms.c (bfd_is_target_special_symbol): New interface function.
5992 Returns true when a symbol should be considered to be special.
5993 * targets.c (bfd_target): Include bfd_is_target_special_symbol in
5994 the symbol jump table.
5995 * elf32-arm.h (elf32_arm_is_target_special_symbol): New function.
5996 Return true iff the symbol is a mapping symbol.
5997 (bfd_elf32_bfd_is_target_special_symbol): Define.
5998 * elfxx-target.h: Provide a default definition for
5999 bfd_is_target_special_symbol.
6000 * aout-target.h: Likewise.
6001 * aout-tic30.c: Likewise.
6002 * binary.c: Likewise.
6003 * coffcode.h: Likewise.
6004 * i386msdos.c: Likewise.
6007 * libaout.h: Likewise.
6008 * libbfd-in.h: Likewise
6009 * libecoff.h: Likewise.
6010 * mach-o.c: Likewise.
6012 * nlm-target.h: Likewise.
6013 * oasys.c: Likewise.
6015 * ppcboot.c: Likewise.
6017 * tekhex.c: Likewise.
6018 * versados.c: Likewise.
6020 * xcoff-target.h: Likewise.
6022 * libbfd.h: Regenerate.
6024 2004-10-08 Daniel Jacobowitz <dan@debian.org>
6026 * config.bfd: Include 64-bit support for i[3-7]86-*-solaris2*.
6027 * elf64-x86-64.c (elf64_x86_64_section_from_shdr): New function.
6028 (elf_backend_section_from_shdr): Define.
6030 2004-10-08 Alan Modra <amodra@bigpond.net.au>
6032 * syms.c (bfd_is_local_label): Return false for file symbols.
6034 2004-10-07 Bob Wilson <bob.wilson@acm.org>
6035 David Heine <dlheine@tensilica.com>
6037 * elf32-xtensa.c (elf32xtensa_size_opt): New global variable.
6038 (xtensa_default_isa): Global variable moved here from xtensa-isa.c.
6039 (elf32xtensa_no_literal_movement): New global variable.
6040 (elf_howto_table): Add entries for new relocations.
6041 (elf_xtensa_reloc_type_lookup): Handle new relocations.
6042 (property_table_compare): When addresses are equal, compare sizes and
6043 various property flags.
6044 (property_table_matches): New.
6045 (xtensa_read_table_entries): Extend to read new property tables. Add
6046 output_addr parameter to indicate that output addresses should be used.
6047 Use bfd_get_section_limit.
6048 (elf_xtensa_find_property_entry): New.
6049 (elf_xtensa_in_literal_pool): Use elf_xtensa_find_property_entry.
6050 (elf_xtensa_check_relocs): Handle new relocations.
6051 (elf_xtensa_do_reloc): Use bfd_get_section_limit. Handle new
6052 relocations. Use new xtensa-isa.h functions.
6053 (build_encoding_error_message): Remove encode_result parameter. Add
6054 new target_address parameter used to detect alignment errors.
6055 (elf_xtensa_relocate_section): Use bfd_get_section_limit. Clean up
6056 error handling. Use new is_operand_relocation function.
6057 (elf_xtensa_combine_prop_entries, elf_xtensa_merge_private_bfd_data):
6058 Use underbar macro for error messages. Formatting.
6059 (get_const16_opcode): New.
6060 (get_l32r_opcode): Add a separate flag for initialization.
6061 (get_relocation_opnd): Operand number is no longer explicit in the
6062 relocation. Change to decode the opcode and analyze its operands.
6063 (get_relocation_slot): New.
6064 (get_relocation_opcode): Add bfd parameter. Use bfd_get_section_limit.
6065 Use new xtensa-isa.h functions to handle multislot instructions.
6066 (is_l32r_relocation): Add bfd parameter. Use is_operand_relocation.
6067 (get_asm_simplify_size, is_alt_relocation, is_operand_relocation,
6068 insn_decode_len, insn_decode_opcode, check_branch_target_aligned,
6069 check_loop_aligned, check_branch_target_aligned_address, narrowable,
6070 widenable, narrow_instruction, widen_instruction, op_single_fmt_table,
6071 get_single_format, init_op_single_format_table): New.
6072 (elf_xtensa_do_asm_simplify): Add error_message parameter and use it
6073 instead of calling _bfd_error_handler. Use new xtensa-isa.h functions.
6074 (contract_asm_expansion): Add error_message parameter and pass it to
6075 elf_xtensa_do_asm_simplify. Replace use of R_XTENSA_OP0 relocation
6076 with R_XTENSA_SLOT0_OP.
6077 (get_expanded_call_opcode): Extend to handle either L32R or CONST16
6078 instructions. Use new xtensa-isa.h functions.
6079 (r_reloc struct): Add new virtual_offset field.
6080 (r_reloc_init): Add contents and content_length parameters. Set
6081 virtual_offset field to zero. Add contents to target_offset field for
6082 partial_inplace relocations.
6083 (r_reloc_is_defined): Check for null.
6084 (print_r_reloc): New debug function.
6085 (source_reloc struct): Replace xtensa_operand field with pair of the
6086 opcode and the operand position. Add is_abs_literal field.
6087 (init_source_reloc): Specify operand by opcode/position pair. Set
6088 is_abs_literal field.
6089 (source_reloc_compare): When target_offsets are equal, compare other
6090 fields to make sorting predictable.
6091 (literal_value struct): Add is_abs_literal field.
6092 (value_map_hash_table struct): Add has_last_loc and last_loc fields.
6093 (init_literal_value): New.
6094 (is_same_value): Replace with ...
6095 (literal_value_equal): ... this function. Add comparisons of
6096 virtual_offset and is_abs_literal fields.
6097 (value_map_hash_table_init): Use bfd_zmalloc. Check for allocation
6098 failure. Initialize has_last_loc field.
6099 (value_map_hash_table_delete): New.
6100 (hash_literal_value): Rename to ...
6101 (literal_value_hash): ... this. Include is_abs_literal flag and
6102 virtual_offset field in the hash value.
6103 (get_cached_value): Rename to ...
6104 (value_map_get_cached_value): ... this. Update calls to
6105 literal_value_hash and literal_value_equal.
6106 (add_value_map): Check for allocation failure. Update calls to
6107 value_map_get_cached_value and literal_value_hash.
6108 (text_action, text_action_list, text_action_t): New types.
6109 (find_fill_action, compute_removed_action_diff, adjust_fill_action,
6110 text_action_add, text_action_add_literal, offset_with_removed_text,
6111 offset_with_removed_text_before_fill, find_insn_action,
6112 print_action_list, print_removed_literals): New.
6113 (offset_with_removed_literals): Delete.
6114 (xtensa_relax_info struct): Add is_relaxable_asm_section, action_list,
6115 fix_array, fix_array_count, allocated_relocs, relocs_count, and
6116 allocated_relocs_count fields.
6117 (init_xtensa_relax_info): Initialize new fields.
6118 (reloc_bfd_fix struct): Add new translated field.
6119 (reloc_bfd_fix_init): Add translated parameter and use it to set the
6121 (fix_compare, cache_fix_array): New.
6122 (get_bfd_fix): Remove fix_list parameter and get all relax_info for the
6123 section via get_xtensa_relax_info. Use cache_fix_array to set up
6124 sorted fix_array and use bsearch instead of linear search.
6125 (section_cache_t): New struct.
6126 (init_section_cache, section_cache_section, clear_section_cache): New.
6127 (ebb_t, ebb_target_enum, proposed_action, ebb_constraint): New types.
6128 (init_ebb_constraint, free_ebb_constraint, init_ebb, extend_ebb_bounds,
6129 extend_ebb_bounds_forward, extend_ebb_bounds_backward,
6130 insn_block_decodable_len, ebb_propose_action, ebb_add_proposed_action):
6132 (retrieve_contents): Use bfd_get_section_limit.
6133 (elf_xtensa_relax_section): Add relocations_analyzed flag. Update call
6134 to compute_removed_literals. Free value_map_hash_table when no longer
6136 (analyze_relocations): Check is_relaxable_asm_section flag. Call
6137 compute_text_actions for all sections.
6138 (find_relaxable_sections): Mark sections as relaxable if they contain
6139 ASM_EXPAND relocations that can be optimized. Adjust r_reloc_init
6140 call. Increment relax_info src_count field only for appropriate
6141 relocation types. Remove is_literal_section check.
6142 (collect_source_relocs): Use bfd_get_section_limit. Adjust calls to
6143 r_reloc_init and find_associated_l32r_irel. Check
6144 is_relaxable_asm_section flag. Handle L32R instructions with absolute
6145 literals. Pass is_abs_literal flag to init_source_reloc.
6146 (is_resolvable_asm_expansion): Use bfd_get_section_limit. Check for
6147 CONST16 instructions. Adjust calls to r_reloc_init and
6148 pcrel_reloc_fits. Handle weak symbols conservatively.
6149 (find_associated_l32r_irel): Add bfd parameter and pass it to
6151 (compute_text_actions, compute_ebb_proposed_actions,
6152 compute_ebb_actions, check_section_ebb_pcrels_fit,
6153 check_section_ebb_reduces, text_action_add_proposed,
6154 compute_fill_extra_space): New.
6155 (remove_literals): Replace with ...
6156 (compute_removed_literals): ... this function. Call
6157 init_section_cache. Use bfd_get_section_limit. Sort internal_relocs.
6158 Call xtensa_read_table_entries to get the property table. Skip
6159 relocations other than R_XTENSA_32 and R_XTENSA_PLT. Use new
6160 is_removable_literal, remove_dead_literal, and
6161 identify_literal_placement functions.
6162 (get_irel_at_offset): Rewrite to use bsearch on sorted relocations
6163 instead of linear search.
6164 (is_removable_literal, remove_dead_literal,
6165 identify_literal_placement): New.
6166 (relocations_reach): Update check for literal not referenced by any
6167 PC-relative relocations. Adjust call to pcrel_reloc_fits.
6168 (coalesce_shared_literal, move_shared_literal): New.
6169 (relax_section): Use bfd_get_section_limit. Call
6170 translate_section_fixes. Update calls to r_reloc_init and
6171 offset_with_removed_text. Check new is_relaxable_asm_section flag.
6172 Add call to pin_internal_relocs. Add special handling for
6173 R_XTENSA_ASM_SIMPLIFY and R_XTENSA_DIFF* relocs. Use virtual_offset
6174 info to calculate new addend_displacement variable. Replace code for
6175 deleting literals with more general code to perform the actions
6176 determined by the action_list for the section.
6177 (translate_section_fixes, translate_reloc_bfd_fix): New.
6178 (translate_reloc): Check new is_relaxable_asm_section flag. Call
6179 find_removed_literal only if is_operand_relocation. Update call to
6180 offset_with_removed_text. Use new target_offset and removed_bytes
6182 (move_literal): New.
6183 (relax_property_section): Use bfd_get_section_limit. Set new
6184 is_full_prop_section flag and handle new property tables. Update calls
6185 to r_reloc_init and offset_with_removed_text. Check
6186 is_relaxable_asm_section flag. Handle expansion of zero-sized
6187 unreachable entries, with use of offset_with_removed_text_before_fill.
6188 For relocatable links, combine entries only for literal tables.
6189 (relax_section_symbols): Check is_relaxable_asm_section flag. Update
6190 calls to offset_with_removed_text. Translate st_size field for
6192 (do_fix_for_relocatable_link): Change to return bfd_boolean to indicate
6193 failure. Add contents parameter. Update call to get_bfd_fix. Update
6194 call to r_reloc_init. Call _bfd_error_handler and return FALSE for
6195 R_XTENSA_ASM_EXPAND relocs.
6196 (do_fix_for_final_link): Add input_bfd and contents parameters. Update
6197 call to get_bfd_fix. Include offset from contents for partial_inplace
6199 (is_reloc_sym_weak): New.
6200 (pcrel_reloc_fits): Use new xtensa-isa.h functions.
6201 (prop_sec_len): New.
6202 (xtensa_is_property_section): Handle new property sections.
6203 (is_literal_section): Delete.
6204 (internal_reloc_compare): When r_offset matches, compare r_info and
6205 r_addend to make sorting predictable.
6206 (internal_reloc_matches): New.
6207 (xtensa_get_property_section_name): Handle new property sections.
6208 (xtensa_get_property_predef_flags): New.
6209 (xtensa_callback_required_dependence): Use bfd_get_section_limit.
6210 Update calls to xtensa_isa_init, is_l32r_relocation, and r_reloc_init.
6211 * xtensa-isa.c (xtensa_default_isa): Moved to elf32-xtensa.c.
6212 (xtisa_errno, xtisa_error_msg): New variables.
6213 (xtensa_isa_errno, xtensa_isa_error_msg): New.
6214 (xtensa_insnbuf_alloc): Add error handling.
6215 (xtensa_insnbuf_to_chars): Add num_chars parameter. Update to
6216 use xtensa_format_decode. Add error handling.
6217 (xtensa_insnbuf_from_chars): Add num_chars parameter. Decode the
6218 instruction length to find the number of bytes to copy.
6219 (xtensa_isa_init): Add error handling. Replace calls to
6220 xtensa_load_isa and xtensa_extend_isa with code to initialize lookup
6221 tables in the xtensa_modules structure.
6222 (xtensa_check_isa_config, xtensa_add_isa, xtensa_load_isa,
6223 xtensa_extend_isa): Delete.
6224 (xtensa_isa_free): Change to only free lookup tables.
6225 (opname_lookup_compare): Replace with ...
6226 (xtensa_isa_name_compare): ... this function. Use strcasecmp.
6227 (xtensa_insn_maxlength): Rename to ...
6228 (xtensa_isa_maxlength): ... this.
6229 (xtensa_insn_length): Delete.
6230 (xtensa_insn_length_from_first_byte): Replace with ...
6231 (xtensa_isa_length_from_chars): ... this function.
6232 (xtensa_num_opcodes): Rename to ...
6233 (xtensa_isa_num_opcodes): ... this.
6234 (xtensa_isa_num_pipe_stages, xtensa_isa_num_formats,
6235 xtensa_isa_num_regfiles, xtensa_isa_num_stages,
6236 xtensa_isa_num_sysregs, xtensa_isa_num_interfaces,
6237 xtensa_isa_num_funcUnits, xtensa_format_name, xtensa_format_lookup,
6238 xtensa_format_decode, xtensa_format_encode, xtensa_format_length,
6239 xtensa_format_num_slots, xtensa_format_slot_nop_opcode,
6240 xtensa_format_get_slot, xtensa_format_set_slot): New functions.
6241 (xtensa_opcode_lookup): Add error handling.
6242 (xtensa_decode_insn): Replace with ...
6243 (xtensa_opcode_decode): ... this function, with new format and
6244 slot parameters. Add error handling.
6245 (xtensa_encode_insn): Replace with ...
6246 (xtensa_opcode_encode): ... this function, which does the encoding via
6247 one of the entries in the "encode_fns" array. Add error handling.
6248 (xtensa_opcode_name): Add error handling.
6249 (xtensa_opcode_is_branch, xtensa_opcode_is_jump, xtensa_opcode_is_loop,
6250 xtensa_opcode_is_call): New.
6251 (xtensa_num_operands): Replace with ...
6252 (xtensa_opcode_num_operands): ... this function. Add error handling.
6253 (xtensa_opcode_num_stateOperands,
6254 xtensa_opcode_num_interfaceOperands, xtensa_opcode_num_funcUnit_uses,
6255 xtensa_opcode_funcUnit_use, xtensa_operand_name,
6256 xtensa_operand_is_visible): New.
6257 (xtensa_get_operand, xtensa_operand_kind): Delete.
6258 (xtensa_operand_inout): Add error handling and special-case for
6260 (xtensa_operand_get_field, xtensa_operand_set_field): Rewritten to
6261 operate on one slot of an instruction. Added error handling.
6262 (xtensa_operand_encode): Handle default operands with no encoding
6263 functions. Check for success by comparing against decoded value.
6265 (xtensa_operand_decode): Handle default operands. Return decoded value
6266 through argument pointer. Add error handling.
6267 (xtensa_operand_is_register, xtensa_operand_regfile,
6268 xtensa_operand_num_regs, xtensa_operand_is_known_reg): New.
6269 (xtensa_operand_isPCRelative): Rename to ...
6270 (xtensa_operand_is_PCrelative): ... this. Add error handling.
6271 (xtensa_operand_do_reloc, xtensa_operand_undo_reloc): Return value
6272 through argument pointer. Add error handling.
6273 (xtensa_stateOperand_state, xtensa_stateOperand_inout,
6274 xtensa_interfaceOperand_interface, xtensa_regfile_lookup,
6275 xtensa_regfile_lookup_shortname, xtensa_regfile_name,
6276 xtensa_regfile_shortname, xtensa_regfile_view_parent,
6277 xtensa_regfile_num_bits, xtensa_regfile_num_entries,
6278 xtensa_state_lookup, xtensa_state_name, xtensa_state_num_bits,
6279 xtensa_state_is_exported, xtensa_sysreg_lookup,
6280 xtensa_sysreg_lookup_name, xtensa_sysreg_name, xtensa_sysreg_number,
6281 xtensa_sysreg_is_user, xtensa_interface_lookup, xtensa_interface_name,
6282 xtensa_interface_num_bits, xtensa_interface_inout,
6283 xtensa_interface_has_side_effect, xtensa_funcUnit_lookup,
6284 xtensa_funcUnit_name, xtensa_funcUnit_num_copies): New.
6285 * xtensa-modules.c: Rewrite to use new data structures.
6286 * reloc.c (BFD_RELOC_XTENSA_DIFF8, BFD_RELOC_XTENSA_DIFF16,
6287 BFD_RELOC_XTENSA_DIFF32, BFD_RELOC_XTENSA_SLOT0_OP,
6288 BFD_RELOC_XTENSA_SLOT1_OP, BFD_RELOC_XTENSA_SLOT2_OP,
6289 BFD_RELOC_XTENSA_SLOT3_OP, BFD_RELOC_XTENSA_SLOT4_OP,
6290 BFD_RELOC_XTENSA_SLOT5_OP, BFD_RELOC_XTENSA_SLOT6_OP,
6291 BFD_RELOC_XTENSA_SLOT7_OP, BFD_RELOC_XTENSA_SLOT8_OP,
6292 BFD_RELOC_XTENSA_SLOT9_OP, BFD_RELOC_XTENSA_SLOT10_OP,
6293 BFD_RELOC_XTENSA_SLOT11_OP, BFD_RELOC_XTENSA_SLOT12_OP,
6294 BFD_RELOC_XTENSA_SLOT13_OP, BFD_RELOC_XTENSA_SLOT14_OP,
6295 BFD_RELOC_XTENSA_SLOT0_ALT, BFD_RELOC_XTENSA_SLOT1_ALT,
6296 BFD_RELOC_XTENSA_SLOT2_ALT, BFD_RELOC_XTENSA_SLOT3_ALT,
6297 BFD_RELOC_XTENSA_SLOT4_ALT, BFD_RELOC_XTENSA_SLOT5_ALT,
6298 BFD_RELOC_XTENSA_SLOT6_ALT, BFD_RELOC_XTENSA_SLOT7_ALT,
6299 BFD_RELOC_XTENSA_SLOT8_ALT, BFD_RELOC_XTENSA_SLOT9_ALT,
6300 BFD_RELOC_XTENSA_SLOT10_ALT, BFD_RELOC_XTENSA_SLOT11_ALT,
6301 BFD_RELOC_XTENSA_SLOT12_ALT, BFD_RELOC_XTENSA_SLOT13_ALT,
6302 BFD_RELOC_XTENSA_SLOT14_ALT): Add new relocations.
6303 * Makefile.am (xtensa-isa.lo, xtensa-modules.lo): Update dependencies.
6304 * Makefile.in: Regenerate.
6305 * bfd-in2.h: Likewise.
6306 * libbfd.h: Likewise.
6308 2004-10-07 Richard Sandiford <rsandifo@redhat.com>
6310 * elf64-mips.c (mips_elf64_write_rel): Use STN_UNDEF for relocs
6311 against the absolute section.
6312 (mips_elf64_write_rela): Likewise.
6314 2004-10-07 Jan Beulich <jbeulich@novell.com>
6316 * elf.c (elf_find_function): Don't generally check for matching
6317 section, just for non-file symbols. Remove redunant comparison
6319 * elf32-arm.h (arm_elf_find_function): Likewise.
6321 2004-10-07 Jeff Baker <jbaker@qnx.com>
6323 * elflink.c (_bfd_elf_add_dynamic_entry): Add code to warn if
6324 adding a DT_TEXTREL to a shared object and --warn-shared-textrel
6327 2004-10-04 Roland McGrath <roland@redhat.com>
6329 * hash.c (bfd_hash_set_default_size): Use const for table.
6330 Use size_t instead of int for variable compared to sizeof results.
6332 2004-10-05 Alan Modra <amodra@bigpond.net.au>
6335 * syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs.
6337 2004-10-01 Paul Brook <paul@codesourcery.com>
6339 * elf32-arm.h (elf32_arm_fake_sections,
6340 is_arm_elf_unwind_section_name, elf32_arm_section_from_shdr): New
6342 (elf_backend_fake_sections, elf_backend_section_from_shdr): Define.
6344 2004-10-01 Alan Modra <amodra@bigpond.net.au>
6346 * elf-bfd.h (struct eh_cie_fde): Add need_relative and
6348 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Set
6349 need_relative or need_lsda_relative if we are processing an
6350 offset for a reloc on a FDE initial loc or LSDA field
6352 (_bfd_elf_write_section_eh_frame): Test need_relative and
6353 need_lsda_relative in place of corresponding make_* field
6354 when deciding to use pc-relative encodings.
6356 2004-09-30 Paul Brook <paul@codesourcery.com>
6358 * elf32-arm.h (bfd_elf32_arm_set_target_relocs): Handle "abs"
6359 target2 relocation type.
6361 2004-09-30 H.J. Lu <hongjiu.lu@intel.com>
6364 * elflink.c (_bfd_elf_merge_symbol): Check TLS symbol.
6366 2004-09-30 Paul Brook <paul@codesourcery.com>
6368 * reloc.c: Add BFD_RELOC_ARM_SMI.
6369 * bfd-in2.h: Regenerate.
6372 2004-09-24 Alan Modra <amodra@bigpond.net.au>
6374 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add output section
6375 vma and output offset to address.
6376 * simple.c (simple_save_output_info): Only set output section
6377 and offset for debug sections, or those not already set up by
6379 (bfd_simple_get_relocated_section_contents): Update comment.
6381 2004-09-24 Alan Modra <amodra@bigpond.net.au>
6383 * elf.c (IS_LOADED): Delete.
6384 (assign_file_positions_for_segments): Just test SEC_LOAD instead.
6385 Restore SEC_HAS_CONTENTS test to the one place it was used prior
6388 2004-09-23 Alan Modra <amodra@bigpond.net.au>
6391 * elf32-sparc.c (elf32_sparc_final_write_processing): Handle
6392 bfd_mach_sparc_sparclet and bfd_mach_sparc_sparclite. Remove
6393 redundant assignment of EM_SPARC.
6395 2004-09-22 Brian Ford <ford@vss.fsi.com>
6397 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
6398 alignment for .rdata sections so sse[2] code works with gcc >= 3.3.3
6400 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6402 2004-09-22 Alan Modra <amodra@bigpond.net.au>
6404 * elf32-ppc.c (ppc_elf_modify_segment_map): Delete.
6405 (elf_backend_modify_segment_map): Don't define.
6407 2004-09-22 Alan Modra <amodra@bigpond.net.au>
6409 * elf.c (IS_LOADED): Define.
6410 (assign_file_positions_for_segments): Don't round up file offset of
6411 PT_LOAD segments containing no SEC_LOAD sections, instead round down.
6412 Delete code handling link script adjustment of lma. Do the adjust
6413 in later code handling similar ajustments. Remove dead code error
6414 check. Warn if section lma would require a negative offset
6415 adjustment. Tweak lma adjustment to use p_filesz rather than p_memsz.
6416 Use p_vaddr + p_memsz inside section loop in place of voff. Don't
6417 update voff in section loop. Change voff in segment loop to be an
6418 adjustment on top of "off". Set sec->filepos and update "off" later.
6419 Test for loadable sections consistently using IS_LOADED. Similarly,
6420 test for alloc-only sections other than .tbss consistently.
6421 Don't bother checking SEC_ALLOC in PT_LOAD segments. Remove FIXME.
6422 Tidy PT_NOTE handling. Use %B and %A in error messages.
6423 (assign_file_positions_except_relocs): Use %B in error message.
6425 2004-09-17 H.J. Lu <hongjiu.lu@intel.com>
6427 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.9.
6428 (CONFIG_STATUS_DEPENDENCIES): New.
6429 (Makefile): Removed.
6430 (config.status): Likewise.
6431 * Makefile.in: Regenerated.
6433 2004-09-17 Paul Brook <paul@codesourcery.com>
6435 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add prototype.
6436 (bfd_elf32_arm_process_before_allocation): Update prototype.
6437 * bfd-in2.h: Regenerate.
6438 * bfd/elf32-arm.h (elf32_arm_link_hash_table): Add target2_reloc.
6439 (elf32_arm_link_hash_table_create): Set it.
6440 (bfd_elf32_arm_process_before_allocation): Remove target1_is_rel.
6441 (bfd_elf32_arm_set_target_relocs): New function.
6442 (arm_real_reloc_type): New function.
6443 (elf32_arm_final_link_relocate): Use it. Handle R_ARM_PREL31 and
6444 R_ARM_GOT_PREL. Remove R_ARM_TARGET1.
6445 (elf32_arm_gc_sweep_hook): Ditto.
6446 (elf32_arm_check_relocs): Ditto.
6447 (elf32_arm_relocate_section): Handle R_ARM_GOT_PREL.
6448 * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_PREL31 and
6450 (elf32_arm_got_prel): New variable.
6451 (elf32_arm_howto_from_type): New function.
6452 (elf32_arm_info_to_howto): Use it.
6453 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PREL31 and
6454 BFD_RELOC_ARM_TARGET2.
6455 * libbfd.h: Regenerate.
6456 * reloc.c: Add BFD_RELOC_ARM_TARGET2 and BFD_RELOC_ARM_PREL31.
6458 2004-09-17 Alan Modra <amodra@bigpond.net.au>
6460 * ecoff.c: Update u.undef.next refs.
6461 * elf64-ppc.c: Likewise.
6462 * elflink.c: Likewise.
6463 * linker.c: Likewise.
6464 * xcofflink.c: Likewise.
6466 * elf-bfd.h (struct elf_link_hash_entry): Rearrange. Add FIXME to
6467 dynamic_def. Combine weakdef and elf_hash_value. Move vtable
6468 fields to indirect struct.
6469 * elf-m10300.c: Update u.weakdef refs.
6470 * elf32-arm.h: Likewise.
6471 * elf32-cris.c: Likewise.
6472 * elf32-frv.c: Likewise.
6473 * elf32-hppa.c: Likewise.
6474 * elf32-i370.c: Likewise.
6475 * elf32-i386.c: Likewise.
6476 * elf32-m32r.c: Likewise.
6477 * elf32-m68k.c: Likewise.
6478 * elf32-ppc.c: Likewise.
6479 * elf32-s390.c: Likewise.
6480 * elf32-sh.c: Likewise.
6481 * elf32-sparc.c: Likewise.
6482 * elf32-vax.c: Likewise.
6483 * elf32-xtensa.c: Likewise.
6484 * elf64-alpha.c: Likewise.
6485 * elf64-hppa.c: Likewise.
6486 * elf64-ppc.c: Likewise.
6487 * elf64-s390.c: Likewise.
6488 * elf64-sh64.c: Likewise.
6489 * elf64-sparc.c: Likewise.
6490 * elf64-x86-64.c: Likewise.
6491 * elfxx-ia64.c: Likewise.
6492 * elfxx-mips.c: Likewise.
6493 * elflink.c: Likewise. Also u.elf_hash_value.
6494 (elf_gc_propagate_vtable_entries_used): Update for h->vtable
6496 (elf_gc_smash_unused_vtentry_relocs): Likewise.
6497 (bfd_elf_gc_record_vtinherit): Alloc vtable.
6498 (bfd_elf_gc_record_vtentry): Likewise.
6499 * elf.c (_bfd_elf_link_hash_newfunc): Use memset.
6501 2004-09-17 Alan Modra <amodra@bigpond.net.au>
6503 * Makefile.am: Run "make dep-am".
6504 * Makefile.in: Regenerate.
6505 * bfd-in2.h: Regenerate.
6506 * po/SRC-POTFILES.in: Regenerate.
6507 * po/bfd.pot: Regenerate.
6509 2004-09-16 Alan Modra <amodra@bigpond.net.au>
6511 * elf-bfd.h (struct elf_link_hash_entry): Replace elf_link_hash_flags
6512 with bitfields. Make "type" and "other" bitfields too.
6513 (ELF_LINK_HASH_REF_REGULAR, ELF_LINK_HASH_DEF_REGULAR,
6514 ELF_LINK_HASH_REF_DYNAMIC, ELF_LINK_HASH_DEF_DYNAMIC,
6515 ELF_LINK_HASH_REF_REGULAR_NONWEAK, ELF_LINK_HASH_DYNAMIC_ADJUSTED,
6516 ELF_LINK_HASH_NEEDS_COPY, ELF_LINK_HASH_NEEDS_PLT, ELF_LINK_NON_ELF,
6517 ELF_LINK_HIDDEN, ELF_LINK_FORCED_LOCAL, ELF_LINK_HASH_MARK,
6518 ELF_LINK_NON_GOT_REF, ELF_LINK_DYNAMIC_DEF, ELF_LINK_DYNAMIC_WEAK,
6519 ELF_LINK_POINTER_EQUALITY_NEEDED): Delete.
6520 (ELF_COMMON_DEF_P, WILL_CALL_FINISH_DYNAMIC_SYMBOL): Update.
6521 * elf-hppa.h: Update all uses of elf_link_hash_flags.
6522 * elf-m10300.c: Likewise.
6524 * elf32-arm.h: Likewise.
6525 * elf32-cris.c: Likewise.
6526 * elf32-frv.c: Likewise.
6527 * elf32-hppa.c: Likewise.
6528 * elf32-i370.c: Likewise.
6529 * elf32-i386.c: Likewise.
6530 * elf32-m32r.c: Likewise.
6531 * elf32-m68k.c: Likewise.
6532 * elf32-ppc.c: Likewise.
6533 * elf32-s390.c: Likewise.
6534 * elf32-sh-symbian.c: Likewise.
6535 * elf32-sh.c: Likewise.
6536 * elf32-sh64.c: Likewise.
6537 * elf32-sparc.c: Likewise.
6538 * elf32-vax.c: Likewise.
6539 * elf32-xtensa.c: Likewise.
6540 * elf64-alpha.c: Likewise.
6541 * elf64-hppa.c: Likewise.
6542 * elf64-ppc.c: Likewise.
6543 * elf64-s390.c: Likewise.
6544 * elf64-sh64.c: Likewise.
6545 * elf64-sparc.c: Likewise.
6546 * elf64-x86-64.c: Likewise.
6547 * elflink.c: Likewise.
6548 * elfxx-ia64.c: Likewise.
6549 * elfxx-mips.c: Likewise.
6550 * configure.in (AM_INIT_AUTOMAKE): Set version to 2.15.92.
6551 * configure: Regenerate.
6552 * aclocal.m4: Regenerate.
6554 2004-09-16 Alan Modra <amodra@bigpond.net.au>
6556 * elf32-arm.h (elf32_arm_gc_sweep_hook): Add #ifndef OLD_ARM_ABI
6557 around uses of R_ARM_TARGET1.
6558 (elf32_arm_check_relocs): Likewise.
6560 2004-09-13 Paul Brook <paul@codesourcery.com>
6562 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
6564 * bfd-in2.h: Regenerate.
6565 * libbfd.h: Regenerate.
6566 * elf32-arm.h (elf32_arm_link_hash_table): Add target1_is_rel.
6567 (elf32_arm_link_hash_table_create): Set target1_is_rel.
6568 (bfd_elf32_arm_process_before_allocation): Ditto.
6569 (elf32_arm_final_link_relocate): Handle R_ARM_TARGET1.
6570 (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
6571 * elfarm-nabi.c (elf32_arm_howto_table): Rename RELABS to TARGET1.
6574 2004-09-10 Joel Brobecker <brobecker@gnat.com>
6576 * hpux-core.c (thread_section_p): New function.
6577 (hpux_core_core_file_p): Fix computation of offset in call
6578 to bfd_seek. Create a ".reg" section from an arbitrary
6579 ".reg/<id>" section if none was created after having read
6582 2004-09-11 Andreas Schwab <schwab@suse.de>
6584 * acinclude.m4: Fix spelling of ACX_NONCANONICAL_*.
6585 * aclocal.m4: Rebuild.
6586 * configure: Rebuild.
6588 2004-09-10 Joel Brobecker <brobecker@gnat.com>
6590 * section.c (bfd_sections_find_if): Fix parameter name in
6591 comment to match code.
6593 2004-09-10 Alan Modra <amodra@bigpond.net.au>
6595 * elf.c (assign_file_positions_except_relocs): Assign relocs
6596 stored in a bfd section.
6598 2004-09-08 Hans-Peter Nilsson <hp@axis.com>
6600 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset
6601 h->gotplt_refcount to 0, not -1.
6603 2004-09-07 Hans-Peter Nilsson <hp@axis.com>
6605 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
6606 case R_CRIS_32_GOTPLT>: For internal error message, handle NULL
6608 (cris_elf_check_relocs) <case R_CRIS_32_PLT_PCREL>: Don't try to
6609 handle symbol visibility here.
6611 2004-09-07 Alan Modra <amodra@bigpond.net.au>
6613 * elf64-ppc.c (struct ppc_link_hash_table): Add stub_globals.
6614 (is_ppc64_elf_target): Rename from is_ppc64_target. Update all
6616 (ppc_stub_name): Remove trailing "+0" on stub name.
6617 (create_linkage_sections): Create relocations for
6618 branch lookup table when --emit-relocs as well as when --shared.
6619 (ppc_build_one_stub): Emit relocs for long branch stubs. Adjust
6620 relbrlt test. For --emit-stub-syms, always output a sym even when
6621 one already exists on a plt call stub. Put stub type in the stub
6623 (ppc_size_one_stub): Size long branch stub relocs. Adjust relbrlt
6625 (ppc64_elf_size_stubs): Count global sym stubs added. Zero
6626 reloc_count in stub sections. Adjust relbrlt test.
6627 (ppc64_elf_build_stubs): Adjust relbrlt test. Tweak stats output.
6628 * elflink.c (bfd_elf_size_dynamic_sections): Fix comment typo.
6629 (elf_link_input_bfd): Ignore symbol index zero relocs when checking
6630 for relocs against discarded symbols. Fix comments.
6632 2004-09-06 Mark Mitchell <mark@codesourcery.com>
6634 * elf-bfd.h (_bfd_elf_make_dynamic_segment): Declare it.
6635 * elf.c (_bfd_elf_make_dynamic_segment): New function, split out
6637 (map_sections_to_segments): ... here. Use it. Assign a file
6638 position to the .dynamic section if it is not loadable, but part
6639 of the PT_DYNAMIC segment.
6640 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
6641 offsets, not VMAs, for the BPABI. Do not fill in the header in
6642 the .got.plt section for the BPABI.
6643 * elfarm-nabi.c (elf32_arm_symbian_modify_segment_map): Add a
6645 (elf_backend_want_got_plt): Define to zero for Symbian OS.
6647 2004-09-06 Nick Clifton <nickc@redhat.com>
6649 * elflink.c (elf_link_add_object_symbols): Set the error code to
6650 bfd_error_wrong_format when the input format does not match the
6653 2004-09-06 Alan Modra <amodra@bigpond.net.au>
6655 * elf64-ppc.c (is_ppc64_target): New function, extracted from..
6656 (ppc64_elf_check_directives): ..here.
6657 (ppc64_elf_size_dynamic_sections): Use it here to check bfd type
6658 before accessing ppc64_elf_tdata.
6659 (ppc64_elf_finish_dynamic_sections): And here too.
6661 2004-09-04 Alan Modra <amodra@bigpond.net.au>
6663 * bfd.c (_bfd_default_error_handler): Correct loop exit.
6665 2004-09-03 Mark Mitchell <mark@codesourcery.com>
6667 * config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors.
6668 * configure.in (bfd_elf32_bigarm_symbian_vec): Add it.
6669 (bfd_elf32_littlearm_symbian_vec): Likewise.
6670 * configure: Regenerated.
6671 * elf-bfd.h (elf_backend_data): Add dynamic_sec_flags.
6672 * elf32-arm.h (PLT_HEADER_SIZE): Do not define.
6673 (PLT_ENTRY_SIZE): Likewise.
6674 (bfd_vma_elf32_arm_symbian_plt_entry): New
6676 (elf32_arm_link_hash_table): Add plt_header_size, plt_entry_size,
6678 (create_got_section): Don't create sections when generating BPABI
6680 (elf32_arm_create_dynamic_sections): Tidy.
6681 (elf32_arm_link_hash_table_create): Set plt_header_size,
6682 plt_entry_size, and symbian_p.
6683 (elf32_arm_check_relocs): Do not mark .rel.dyn as loadable when
6684 generating BPABI objects.
6685 (allocate_dynrelocs): Use htab->plt_header_size, not
6686 PLT_HEADER_SIZE. Do not add to .got.plt when
6687 generating BPABI objects.
6688 (elf32_arm_finish_dynamic_symbol): Generate Symbian OS PLTs.
6689 * elfarm-nabi.c: Add SymbianOS target vectors.
6690 * elflink.c (_bfd_elf_create_got_section): Use dynamic_sec_flags.
6691 (_bfd_elf_link_create_dynamic_sections): Likewise.
6692 * elfxx-target.h (ELF_DYNAMIC_SEC_FLAGS): New macro.
6693 (elfNN_bed): Use it.
6694 * targets.c (bfd_elf32_bigarm_symbian_vec): New variable.
6695 (bfd_elf32_littlearm_symbian_vec): Likewise.
6696 (_bfd_target_vector): Add them.
6698 2004-09-03 Nick Clifton <nickc@redhat.com>
6701 * coffcode.h (handle_COMDAT): Replace abort with an warning
6702 message and allow the scan to continue.
6704 2004-09-02 Alan Modra <amodra@bigpond.net.au>
6706 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Use static_syms passed
6707 in when reading relocs, not our sorted syms. Remove unnecessary
6710 2004-08-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6712 * elf.c (special_sections): Add .gnu.linkonce.b modelled on .bss.
6714 2004-08-30 Nathanael Nerode <neroden@gcc.gnu.org>
6716 * acinclude.m4: Require AC_CANONICAL_TARGET, not AC_CANONICAL_SYSTEM.
6717 Include ../config/acx.m4 and use ACX_NONCANONICAL_* where appropriate;
6718 replace uses of *_alias with *_noncanonical.
6719 * aclocal.m4: Rebuild with aclocal 1.4p6.
6720 * Makefile.in: Rebuild with automake 1.4p6.
6721 * doc/Makefile.in: Rebuild with automake 1.4p6.
6722 * configure.in: Autoupdate with autoupdate 2.59.
6723 * config.in: Regenerate with autoheader 2.59.
6724 * configure: Regnerate with autoconf 2.59.
6726 2004-08-28 Alan Modra <amodra@bigpond.net.au>
6728 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Copy input
6729 symbol pointer arrays before modifying.
6731 2004-08-28 Alan Modra <amodra@bigpond.net.au>
6733 * bfd.c (bfd_get_synthetic_symtab): Pass counts and both symbol tables.
6734 * elf-bfd.h (_bfd_elf_get_synthetic_symtab): Adjust.
6735 * elf.c (_bfd_elf_get_synthetic_symtab): Adjust.
6736 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Adjust.
6737 * targets.c (struct bfd_target <_bfd_get_synthetic_symtab>): Adjust.
6738 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't read symbols.
6739 Use both symbol tables on non-relocatable objects. Use a common
6740 error exit. Fix "mid" warning.
6741 * libbfd.h: Regenerate.
6742 * bfd-in2.h: Regenerate.
6744 2004-08-28 Alan Modra <amodra@bigpond.net.au>
6746 * elf64-ppc.c (ppc64_elf_branch_reloc): Check .opd is in a regular
6748 (struct sfpr_def_parms): Save some space.
6749 (sfpr_define): Here too.
6751 * elf64-ppc.c (compare_symbols): Put section syms first.
6752 (sym_exists_at): New function.
6753 (ppc64_elf_get_synthetic_symtab): Use relocs to find code entry
6754 points only for relocatable files. Use .opd section contents
6755 otherwise. Generally clean up the code.
6757 2004-08-27 Alan Modra <amodra@bigpond.net.au>
6759 * elf64-ppc.c (STD_R0_0R1, STD_R0_0R12, LD_R0_0R1, LD_R0_0R12,
6760 LI_R12_0, STVX_VR0_R12_R0, LVX_VR0_R12_R0, MTLR_R0, SFPR_MAX): Define.
6761 (struct sfpr_def_parms): New.
6762 (sfpr_define): New function.
6763 (savegpr0, savegpr0_tail, restgpr0, restgpr0_tail): New functions.
6764 (savegpr1, savegpr1_tail, restgpr1, restgpr1_tail): New functions.
6765 (savefpr, savefpr0_tail, restfpr, restfpr0_tail): New functions.
6766 (savefpr1_tail, restfpr1_tail): New functions.
6767 (savevr, savevr_tail, restvr, restvr_tail): New functions.
6768 (MIN_SAVE_FPR, MAX_SAVE_FPR): Don't define.
6769 (ppc64_elf_func_desc_adjust): Use sfpr_define in place of existing
6770 code. Define all ABI mandated _save and _rest functions.
6772 2004-08-26 Paul Brook <paul@codesourcery.com>
6774 * elf32-arm.h (INTERWORK_FLAG): Return true for EABIv3 objects.
6776 2004-08-26 Alan Modra <amodra@bigpond.net.au>
6778 * elf32-m32r.c (m32r_elf_relocate_section): Don't compare with
6781 2004-08-26 Alan Modra <amodra@bigpond.net.au>
6783 * elf32-i386.c (elf_i386_relocate_section): Tweak last change so
6784 that pcrel correction is applied for R_386_PC32.
6786 2004-08-25 Alan Modra <amodra@bigpond.net.au>
6788 * elf32-i386.c (elf_i386_relocate_section): Zero section contents
6789 for R_386_32 and R_386_PC32 relocs against symbols defined in
6792 2004-08-25 Dmitry Diky <diwil@spec.ru>
6794 * reloc.c (BFD_RELOC_MSP430_2X_PCREL,BFD_RELOC_MSP430_RL_PCREL):
6795 Add new relocations.
6796 * bfd-in2.h: Regenerate.
6797 * libbfd.h: Regenerate.
6798 * elf32-msp430.c: Clean-up code.
6799 (elf_msp430_howto_table): Add new relocation entries.
6800 (bfd_elf32_bfd_reloc_type_lookup): New relocation handlers.
6801 (msp430_elf_relax_section): New function.
6802 (msp430_elf_relax_delete_bytes): New function.
6803 (msp430_elf_symbol_address_p): New function.
6805 2004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6807 * elf32-m32r.c (m32r_elf_relocate_section): Handle
6808 R_M32R_SDA16_RELA in the same way as R_M32R_SDA16.
6810 2004-08-20 Daniel Jacobowitz <dan@debian.org>
6812 * elflink.c (_bfd_elf_section_already_linked): Handle
6813 SEC_LINK_DUPLICATES_SAME_CONTENTS.
6815 2004-08-19 Mark Mitchell <mark@codesourcery.com>
6817 * config.bfd (arm*-*-symbianelf*): New target.
6818 (arm*-*-eabi*): Likewise.
6820 2004-08-19 Alan Modra <amodra@bigpond.net.au>
6822 * elf64-ppc.c (ppc_get_stub_entry): Change third param to a
6823 "struct ppc_link_hash_entry *".
6824 (ppc64_elf_relocate_section): Ditto for type of h. Introduce h_elf
6825 to satisfy RELOC_FOR_GLOBAL_SYMBOL.
6827 2004-08-19 Jakub Jelinek <jakub@redhat.com>
6829 * elf64-ppc.c (ppc64_elf_edit_opd): Support 16 byte long .opd
6830 entries (where fd_aux overlaps next entry's fd_func).
6831 Add non_overlapping argument, use it.
6832 (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, adjust_opd_syms,
6833 ppc64_elf_size_stubs, ppc64_elf_relocate_section,
6834 ppc64_elf_output_symbol_hook): Use address / 8 instead of address / 24
6835 as indexes into opd_sym_map/opd_adjust array.
6836 * elf64-ppc.h (ppc64_elf_edit_opd): Adjust prototype.
6838 2004-08-18 Alan Modra <amodra@bigpond.net.au>
6840 * elf64-ppc.c (func_desc_adjust): Give undefined dot-symbols a value
6841 if we can look up their function descriptor in a regular file.
6843 2004-08-18 Nick Clifton <nickc@redhat.com>
6846 * cofflink.c (coff_link_add_symbols): Check that the comdat
6847 pointer in the coff_section_data structure has been initialised
6850 2004-08-18 Alan Modra <amodra@bigpond.net.au>
6853 * elflink.c (bfd_elf_record_link_assignment): Add comment about
6854 changing bfd_link_hash_undefined to bfd_link_hash_new.
6856 2004-08-17 Jakub Jelinek <jakub@redhat.com>
6858 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Only define
6860 * elf64-ppc.c (bfd_elf64_get_synthetic_symtab): Define.
6861 (synthetic_opd, synthetic_relocatable): New variables.
6862 (compare_symbols, compare_relocs): New helper routines.
6863 (ppc64_elf_get_synthetic_symtab): New function.
6864 * bfd.c (bfd_get_synthetic_symtab): Rename dynsyms argument
6866 * bfd-in2.h: Regenerated.
6867 * elf.c (_bfd_elf_get_synthetic_symtab): Rename dynsyms argument
6868 to relsyms. Return 0 if abfd is relocatable.
6870 2004-08-17 Alan Modra <amodra@bigpond.net.au>
6872 * elflink.h (elf_gc_sweep): Keep non-alloc, non-load sections.
6874 2004-08-17 Nick Clifton <nickc@redhat.com>
6876 * (is_arm_mapping_symbol_name): New function - return true
6877 when a symbol name matches the requirements for an ARM mapping
6879 (arm_elf_find_function): New function based on
6880 elf_find_function in elf.c but skipping ARM mapping symbols
6881 and including thumb function symbols.
6882 (elf32_arm_find_nearest_line): Use arm_elf_find_function.
6883 (elf32_arm_output_symbol_hook): Use is_arm_mapping_symbol_name.
6885 2004-08-17 Alan Modra <amodra@bigpond.net.au>
6887 * elf64-ppc.c (ppc64_elf_branch_reloc): New function.
6888 (ppc64_elf_howto_raw): Use ppc64_elf_branch_reloc.
6889 (ppc64_elf_brtaken_reloc): Here too.
6891 2004-08-17 Alan Modra <amodra@bigpond.net.au>
6893 * elf64-ppc.c (add_symbol_adjust): Correct mismatched function
6895 (ppc64_elf_check_directives): Check that we have the right hash
6896 table before proceeding.
6898 2004-08-17 Alan Modra <amodra@bigpond.net.au>
6900 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add "deleted_section".
6901 (adjust_opd_syms): Attach opd syms for deleted entries to one of
6902 the sections that will be discarded.
6904 2004-08-16 Alan Modra <amodra@bigpond.net.au>
6906 * elflink.c (elf_section_complain_discarded): Ignore .fixup.
6908 2004-08-16 Alan Modra <amodra@bigpond.net.au>
6910 * bfd.c (_bfd_default_error_handler): Account for doubled '%' in
6911 free space available.
6913 2004-08-16 Alan Modra <amodra@bigpond.net.au>
6915 * pdp11.c (struct pdp11_aout_reloc_external): Delete. Replace
6916 occurrences with bfd_byte * thoughout file.
6918 * coff-rs6000.c (do_shared_object_padding): Warning fix.
6919 (xcoff_write_armap_big): Likewise.
6920 (xcoff_write_archive_contents_old): Likewise.
6921 (xcoff_write_archive_contents_big): Likewise.
6923 * elf64-mmix.c (mmix_elf_get_section_contents): Delete declaration.
6925 2004-08-13 Nick Clifton <nickc@redhat.com>
6927 * elf32-arm.h: Convert to ISO C90.
6929 2004-08-13 Alan Modra <amodra@bigpond.net.au>
6932 * elf32-hppa.c (elf32_hppa_hide_symbol): Use init_refcount to
6935 2004-08-13 Alan Modra <amodra@bigpond.net.au>
6937 * bfd.c (_bfd_default_error_handler): Handle %A and %B.
6938 (bfd_archive_filename, bfd_get_section_ident): Delete.
6939 * ecofflink.c (bfd_ecoff_debug_accumulate_other): Don't call
6940 bfd_archive_filename.
6941 * elflink.c (elf_link_input_bfd): Don't use callbacks->error_handler
6942 to warn about symbols in discarded sections. Use _bfd_error_handler.
6943 * aout-adobe.c (aout_adobe_callback): See below.
6944 * aout-cris.c (swap_ext_reloc_in): ..
6945 * coff-arm.c (find_thumb_glue, find_arm_glue,
6946 coff_arm_relocate_section, bfd_arm_process_before_allocation,
6947 coff_arm_merge_private_bfd_data, _bfd_coff_arm_set_private_flags,
6948 coff_arm_copy_private_bfd_data): ..
6949 * coff-i860.c (i860_reloc_processing): ..
6950 * coff-mcore.c (mcore_coff_unsupported_reloc,
6951 coff_mcore_relocate_section): ..
6952 * coff-ppc.c (coff_ppc_relocate_section): ..
6953 * coff-rs6000.c (xcoff_create_csect_from_smclas
6954 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
6955 sh_swap_insns, sh_relocate_section): ..
6956 * coff-tic54x.c (tic54x_reloc_processing): ..
6957 * coff-tic80.c (coff_tic80_relocate_section): ..
6958 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): ..
6959 * coffcode.h (styp_to_sec_flags, coff_slurp_line_table,
6960 coff_slurp_symbol_table, coff_classify_symbol,
6961 coff_slurp_reloc_table): ..
6962 * coffgen.c (_bfd_coff_read_string_table): ..
6963 * cofflink.c (coff_link_add_symbols, _bfd_coff_link_input_bfd,
6964 _bfd_coff_generic_relocate_section): ..
6965 * cpu-arm.c (bfd_arm_merge_machines): ..
6966 * cpu-sh.c (sh_merge_bfd_arch): ..
6967 * elf-hppa.h (elf_hppa_relocate_section): ..
6968 * elf.c (bfd_elf_string_from_elf_section, setup_group,
6969 _bfd_elf_setup_group_pointers, bfd_section_from_shdr,
6970 assign_section_numbers, _bfd_elf_symbol_from_bfd_symbol,
6971 copy_private_bfd_data, _bfd_elf_validate_reloc): ..
6972 * elf32-arm.h (find_thumb_glue, find_arm_glue,
6973 bfd_elf32_arm_process_before_allocation, elf32_thumb_to_arm_stub,
6974 elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate,
6975 elf32_arm_relocate_section, elf32_arm_set_private_flags,
6976 elf32_arm_copy_private_bfd_data, elf32_arm_merge_private_bfd_data): ..
6977 * elf32-cris.c (cris_elf_relocate_section, cris_elf_check_relocs,
6978 cris_elf_merge_private_bfd_data
6979 * elf32-frv.c (elf32_frv_relocate_section, elf32_frv_check_relocs): ..
6980 * elf32-gen.c (elf32_generic_link_add_symbols): ..
6981 * elf32-hppa.c (hppa_add_stub, hppa_build_one_stub,
6982 elf32_hppa_check_relocs, get_local_syms, final_link_relocate,
6983 elf32_hppa_relocate_section): ..
6984 * elf32-i370.c (i370_elf_merge_private_bfd_data,
6985 i370_elf_check_relocs, i370_elf_relocate_section): ..
6986 * elf32-i386.c (elf_i386_info_to_howto_rel, elf_i386_check_relocs,
6987 elf_i386_relocate_section): ..
6988 * elf32-m32r.c (m32r_elf_relocate_section,
6989 m32r_elf_merge_private_bfd_data): ..
6990 * elf32-m68hc1x.c (m68hc12_add_stub,
6991 _bfd_m68hc11_elf_merge_private_bfd_data): ..
6992 * elf32-m68k.c (elf_m68k_relocate_section): ..
6993 * elf32-mcore.c (mcore_elf_unsupported_reloc,
6994 mcore_elf_relocate_section): ..
6995 * elf32-ppc.c (ppc_elf_merge_private_bfd_data, bad_shared_reloc,
6996 ppc_elf_check_relocs, ppc_elf_relocate_section,
6997 ppc_elf_begin_write_processing): ..
6998 * elf32-s390.c (elf_s390_check_relocs, invalid_tls_insn,
6999 elf_s390_relocate_section): ..
7000 * elf32-sh-symbian.c (sh_symbian_import_as,
7001 sh_symbian_process_embedded_commands,
7002 sh_symbian_relocate_section): ..
7003 * elf32-sh.c (sh_elf_relax_section, sh_elf_relax_delete_bytes,
7004 sh_elf_swap_insns, sh_elf_relocate_section, sh_elf_check_relocs,
7005 sh_elf_merge_private_data): ..
7006 * elf32-sparc.c (elf32_sparc_check_relocs,
7007 elf32_sparc_relocate_section,
7008 elf32_sparc_merge_private_bfd_data): ..
7009 * elf32-v850.c (v850_elf_check_relocs,
7010 v850_elf_merge_private_bfd_data): ..
7011 * elf32-xtensa.c (elf_xtensa_check_relocs,
7012 elf_xtensa_relocate_section, elf_xtensa_merge_private_bfd_data): ..
7013 * elf64-alpha.c (elf64_alpha_relax_with_lituse,
7014 elf64_alpha_relax_got_load, elf64_alpha_size_got_sections,
7015 elf64_alpha_relocate_section_r, elf64_alpha_relocate_section): ..
7016 * elf64-gen.c (elf64_generic_link_add_symbols): ..
7017 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data, ppc_add_stub,
7018 ppc64_elf_check_relocs, ppc64_elf_edit_opd,
7019 ppc64_elf_relocate_section): ..
7020 * elf64-s390.c (elf_s390_check_relocs, invalid_tls_insn,
7021 elf_s390_relocate_section): ..
7022 * elf64-sh64.c (sh_elf64_relocate_section): ..
7023 * elf64-sparc.c (sparc64_elf_check_relocs,
7024 sparc64_elf_add_symbol_hook, sparc64_elf_relocate_section,
7025 sparc64_elf_merge_private_bfd_data): ..
7026 * elf64-x86-64.c (elf64_x86_64_check_relocs,
7027 elf64_x86_64_relocate_section): ..
7028 * elflink.c (_bfd_elf_add_default_symbol,
7029 _bfd_elf_link_assign_sym_version, elf_link_read_relocs_from_section,
7030 _bfd_elf_link_output_relocs, elf_link_add_object_symbols,
7031 bfd_elf_size_dynamic_sections, elf_link_output_extsym,
7032 elf_get_linked_section_vma, elf_fixup_link_order,
7033 bfd_elf_final_link, bfd_elf_gc_record_vtinherit,
7034 bfd_elf_gc_record_vtinherit, _bfd_elf_section_already_linked): ..
7035 * elfxx-ia64.c (elfNN_ia64_relax_section,
7036 elfNN_ia64_relocate_section, elfNN_ia64_merge_private_bfd_data): ..
7037 * elfxx-mips.c (mips_elf_perform_relocation,
7038 _bfd_mips_elf_check_relocs,
7039 _bfd_mips_elf_merge_private_bfd_data): ..
7040 * ieee.c (ieee_slurp_external_symbols): ..
7041 * ihex.c (ihex_bad_byte, ihex_scan, ihex_read_section): ..
7042 * libbfd.c (_bfd_generic_verify_endian_match): ..
7043 * linker.c (_bfd_generic_link_add_one_symbol,
7044 _bfd_generic_section_already_linked): ..
7045 * pdp11.c (translate_to_native_sym_flags): ..
7046 * pe-mips.c (coff_pe_mips_relocate_section): ..
7047 * peicode.h (pe_ILF_build_a_bfd): ..
7048 * srec.c (srec_bad_byte): ..
7049 * stabs.c (_bfd_link_section_stabs): ..
7050 * xcofflink.c (xcoff_link_add_symbols, xcoff_link_input_bfd): ..
7051 Replace all uses of bfd_archive_filename and bfd_get_section_ident
7052 with corresponding %B and %A in _bfd_error_handler format string.
7053 Replace occurrences of "fprintf (stderr," with _bfd_error_handler
7054 calls to use %A and %B. Fix "against symbol .. from section" and
7055 similar error messages. Combine multiple _bfd_error_handler calls
7056 where they were separated due to bfd_archive_filename deficiencies.
7057 * bfd-in2.h: Regenerate.
7059 2004-08-12 H.J. Lu <hongjiu.lu@intel.com>
7061 * elf32-i386.c (elf_i386_relocate_section): Report unrecognized
7064 2004-08-10 Alan Modra <amodra@bigpond.net.au>
7066 * elf64-ppc.c (struct ppc_link_hash_entry): Add was_undefined.
7067 (struct ppc_link_hash_table): Remove no_multi_toc, multi_toc_needed.
7068 Make emit_stub_syms, stub_error and has_14bit_branch bit-fields.
7070 (link_hash_newfunc): Init was_undefined.
7071 (add_symbol_adjust): Don't set undefined dot symbols to defweak;
7072 Use undefweak instead.
7073 (ppc64_elf_check_directives): Fix undefs chain.
7074 (ppc64_elf_next_toc_section): Remove no_multi_toc and multi_toc_needed
7076 (ppc64_elf_size_stubs): Adjust for add_symbol_adjust change.
7077 (undo_symbol_twiddle, ppc64_elf_restore_symbols): New functions.
7078 * elf64-ppc.h (ppc64_elf_restore_symbols): Declare.
7080 2004-08-09 Jakub Jelinek <jakub@redhat.com>
7082 * elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic
7083 error, test input_section flags rather than sec.
7085 2004-08-09 Alan Modra <amodra@bigpond.net.au>
7087 * elf-bfd.h (struct elf_backend_data): Add
7088 elf_backend_archive_symbol_lookup.
7089 (_bfd_elf_archive_symbol_lookup): Declare.
7090 * elflink.c (_bfd_elf_archive_symbol_lookup): New function..
7091 (elf_link_add_archive_symbols): ..extracted from here. Call the
7093 * elfxx-target.h (elf_backend_archive_symbol_lookup): Provide default.
7094 (elfNN_bed): Init new field.
7095 * elf64-ppc.c (elf_backend_check_directives): Define.
7096 (elf_backend_archive_symbol_lookup): Define.
7097 (struct ppc_link_hash_table): Add tls_get_add_fd. Make tls_get_add
7098 a ppc_link_hash_entry pointer.
7100 (ppc64_elf_archive_symbol_lookup, opd_entry_value): New functions.
7101 (add_symbol_adjust, ppc64_elf_check_directives): New functions.
7102 (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, func_desc_adjust,
7103 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup,
7104 ppc64_elf_tls_optimize, allocate_dynrelocs, ppc_type_of_stub,
7105 ppc_build_one_stub, ppc64_elf_size_stubs, ppc64_elf_relocate_section,
7106 ppc64_elf_finish_dynamic_symbol): Handle branch relocs to function
7109 2004-08-09 Alan Modra <amodra@bigpond.net.au>
7111 * elf64-ppc.c (struct ppc_link_hash_entry): Expand adjust_done comment.
7112 (ppc64_elf_add_symbol_hook): Test for NULL section.
7113 (get_sym_h): Formatting.
7114 (ppc64_elf_size_stubs): Include reloc addend in value stored as
7117 * elf64-ppc.c (ppc64_elf_relocate_section): Combine handling of
7118 long branch stubs with code handling plt and r2off branch stubs.
7120 2004-08-09 Alan Modra <amodra@bigpond.net.au>
7122 * elf-bfd.h (_bfd_elf_gc_mark): Declare.
7123 * elflink.c (elf_link_input_bfd): Formatting.
7124 (_bfd_elf_gc_mark): Rename from elf_gc_mark and make global. Adjust
7126 * elf64-ppc.c (struct ppc_link_hash_entry): Remove is_entry.
7127 (link_hash_newfunc): Don't set it.
7128 (ppc64_elf_copy_indirect_symbol): Nor copy it.
7129 (ppc64_elf_mark_entry_syms): Delete.
7130 (ppc64_elf_gc_mark_hook): Mark entry syms here. Also mark opd
7131 sections. Use get_opd_info.
7132 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Delete.
7134 2004-08-09 Alan Modra <amodra@bigpond.net.au>
7136 * elf64-ppc.c (adjust_opd_syms): Fix merge error.
7138 * elf64-ppc.c (struct ppc_link_hash_table): Remove have_undefweak.
7139 (func_desc_adjust): Don't set have_undefweak.
7140 (ppc64_elf_func_desc_adjust): Don't add an extr nop to sfpr.
7141 (ppc64_elf_relocate_section): NOP out calls to undefweak functions.
7143 * elf64-ppc.c (struct ppc_link_hash_entry): Make "oh" a
7144 "struct ppc_link_hash_entry *". Adjust all references.
7145 (ppc64_elf_hide_symbol): Correct a comment.
7147 * elf64-ppc.c (get_opd_info): New function.
7148 (adjust_opd_syms): Use get_opd_info. Define removed symbols as zero.
7149 (ppc64_elf_edit_opd): Use get_opd_info. Check that sym has a dot
7150 before calling get_fdh. Test fdh rather than h before dereferencing
7151 fdh. Mark removed symbols in opd_adjust.
7152 (ppc64_elf_tls_optimize): Don't bother with opd adjustment here.
7153 (ppc64_elf_relocate_section): Use get_opd_info, and handle removed
7155 (ppc64_elf_output_symbol_hook): Likewise.
7157 2004-08-06 Paul Brook <paul@codesourcery.com>
7159 * elfarm-nabi.c (elf32_arm_howto_table): Add new EABI relocations.
7160 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_RELABS32,
7161 BFD_RELOC_ARM_ROSEGREL32 and BFD_RELOC_ARM_SBREL32.
7162 * reloc.c: Add BFD_RELOC_ARM_RELABS32, BFD_RELOC_ARM_ROSEGREL32
7163 and BFD_RELOC_ARM_SBREL32.
7164 * bfd-in2.h, bbfd.h: Regenerate.
7166 2004-08-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7168 * elfxx-mips.c (mips_elf_calculate_relocation): Test only for
7169 the dynamic link symbol actually in use.
7171 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
7173 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Handle bfd_link_hash_new
7175 2004-07-31 Joel Brobecker <brobecker@gnat.com>
7176 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7178 * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle
7179 SHN_MIPS_TEXT and SHN_MIPS_DATA.
7181 2004-07-30 H.J. Lu <hongjiu.lu@intel.com>
7182 Nick Clifton <nickc@redhat.com>
7185 * bfd.c (_bfd_default_error_handler): Make it global.
7187 * elf-bfd.h (elf_backend_data): Add link_order_error_handler.
7189 * elf.c (assign_section_numbers): Cope gracefully with sections
7190 which have SHF_LINK_ORDER set but no sh_link set up.
7191 * elflink.c (elf_get_linked_section_vma): Likewise.
7193 * elfxx-ia64.c (elf_backend_link_order_error_handler): New. Set
7196 * elfxx-target.h (elf_backend_link_order_error_handler): New.
7197 Set it to _bfd_default_error_handler.
7198 (elfNN_bed): Add elf_backend_link_order_error_handler.
7200 * libbfd-in.h (_bfd_default_error_handler): New.
7202 * libbfd.h: Regenerated.
7204 2004-07-30 Jakub Jelinek <jakub@redhat.com>
7206 * archures.c (bfd_mach_sparc_64bit_p): Define.
7207 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Use it.
7208 * bfd-in2.h: Rebuilt.
7210 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
7212 Introduce SH2a support.
7213 2004-02-18 Corinna Vinschen <vinschen@redhat.com>
7214 * archures.c (bfd_mach_sh2a_nofpu): New.
7215 * bfd-in2.h: Rebuilt.
7216 * cpu-sh.c (SH2A_NOFPU_NEXT): New.
7217 (arch_info_struct): Add sh2a_nofpu.
7218 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a_nofpu.
7219 2003-12-29 DJ Delorie <dj@redhat.com>
7220 * reloc.c: Add relocs for sh2a.
7221 * bfd-in2.h: Regenerate.
7222 * libbfd.hh: Regenerate.
7223 2003-12-01 Michael Snyder <msnyder@redhat.com>
7224 * archures.c (bfd_mach_sh2a): New.
7225 * bfd-in2.h: Rebuilt.
7226 * cpu-sh.c (SH_NEXT, SH2_NEXT, etc.): Change defines to enums.
7228 (arch_info_struct): Add sh2a.
7229 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a.
7231 2004-07-28 Nick Clifton <nickc@redhat.com>
7232 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7235 * som.c (setup_sections): Improve estimation of space sizes in
7236 relocatable objects.
7238 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
7239 * config.bfd (hppa*-*-netbsd*): Set targ_defvec to
7240 bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec
7242 * configure.in (bfd_elf32_hppa_nbsd_vec): Add case.
7243 * configure: Regenerate.
7244 * elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd"
7245 case that accepts OSABI=NetBSD and OSABI=SysV.
7246 (elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to
7247 the base of .got or .data (if .got does not exist).
7248 (elf32_hppa_post_process_headers): For elf32-hppa-netbsd,
7250 (TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case.
7251 (TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case.
7252 * targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration.
7253 (_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec.
7255 2004-07-27 H.J. Lu <hongjiu.lu@intel.com>
7258 * elf-bfd.h (bfd_elf_section_data): Add sec_group.
7259 (elf_sec_group): Defined.
7260 (bfd_elf_match_symbols_in_sections): New prototype.
7261 (_bfd_elf_setup_group_pointers): Likewise.
7263 * elf.c (bfd_elf_discard_group): Abort.
7264 (bfd_elf_set_group_contents): Also include relocation sections.
7265 Remove zero-fill for ld -r.
7266 (_bfd_elf_setup_group_pointers): New function.
7267 (elf_sort_elf_symbol): Likewise.
7268 (elf_sym_name_compare): Likewise.
7269 (bfd_elf_match_symbols_in_sections): Likewise.
7271 * elfcode.h (elf_object_p): Call _bfd_elf_setup_group_pointers.
7273 * elflink.c (match_group_member): New.
7274 (elf_link_input_bfd): Check group member for discarded section.
7275 (try_match_symbols_in_sections): New function.
7276 (already_linked): Likewise.
7277 (_bfd_elf_section_already_linked): Support mixing comdat group
7278 and linkonce section.
7280 * libbfd-in.h (bfd_section_already_linked_table_traverse): New.
7281 * linker.c (bfd_section_already_linked_table_traverse): New.
7283 * libbfd.h: Regenerated.
7285 2004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
7287 * reloc.c: Add BFD_RELOC_CRX_SWITCH8, BFD_RELOC_CRX_SWITCH16,
7288 BFD_RELOC_CRX_SWITCH32.
7289 * bfd-in2.h: Regenerate.
7290 * libbfd.h: Regenerate.
7291 * elf32-crx.c: Support relocation/relaxation of
7292 BFD_RELOC_CRX_SWITCH* types.
7294 2004-07-27 Alan Modra <amodra@bigpond.net.au>
7296 * elf64-ppc.c: Correct "Linker stubs" comment.
7298 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
7300 * elf-bfd.h (bfd_elf_section_data): Add a pointer for the
7302 (elf_linked_to_section): New.
7304 * elf.c (assign_section_numbers): Set up sh_link for
7307 * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info
7308 to sh_link for SHT_IA_64_UNWIND sections.
7310 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
7312 * elflink.c (elf_fixup_link_order): Add _() to error message.
7314 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
7316 * elflink.c (elf_fixup_link_order): Issue a warning and flag
7319 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
7321 * aout-adobe.c (aout_32_section_already_linked): Defined.
7322 * aout-target.h (MY_section_already_linked): Likewise.
7323 * aout-tic30.c (MY_section_already_linked): Likewise.
7324 * binary.c (binary_section_already_linked): Likewise.
7325 * bout.c (b_out_section_already_linked): Likewise.
7326 * coff-alpha.c (_bfd_ecoff_section_already_linked): Likewise.
7327 * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
7328 * coffcode.h (coff_section_already_linked): Likewise.
7329 * i386msdos.c (msdos_section_already_linked): Likewise.
7330 * i386os9k.c (os9k_section_already_linked): Likewise.
7331 * ieee.c (ieee_section_already_linked): Likewise.
7332 * ihex.c (ihex_section_already_linked): Likewise.
7333 * mach-o.c (bfd_mach_o_section_already_linked): Likewise.
7334 * mmo.c (mmo_section_already_linked): Likewise.
7335 * nlm-target.h (nlm_section_already_linked): Likewise.
7336 * oasys.c (oasys_section_already_linked): Likewise.
7337 * pef.c (bfd_pef_section_already_linked): Likewise.
7338 * ppcboot.c (ppcboot_section_already_linked): Likewise.
7339 * som.c (som_bfd_discard_group): Likewise.
7340 * srec.c (srec_section_already_linked): Likewise.
7341 * tekhex.c (tekhex_section_already_linked): Likewise.
7342 * versados.c (versados_section_already_linked): Likewise.
7343 * vms.c (vms_section_already_linked): Likewise.
7344 * coff-target.h (_bfd_xcoff_section_already_linked): Likewise.
7345 * xsym.c (bfd_sym_section_already_linked): Likewise.
7347 * bfd-in.h (bfd_section_already_linked_table_init): New.
7348 (bfd_section_already_linked_table_free): Likewise.
7350 * coff-rs6000.c (rs6000coff_vec): Add
7351 _bfd_generic_section_already_linked.
7352 (pmac_xcoff_vec): Likewise.
7353 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
7354 (aix5coff64_vec): Likewise.
7356 * elf-bfd.h (_bfd_elf_section_already_linked): New prototype.
7357 * elflink.c (_bfd_elf_section_already_linked): New function.
7359 * elfxx-target.h (bfd_elfNN_section_already_linked): Defined.
7361 * libbfd-in.h (_bfd_nolink_section_already_linked): Defined.
7362 (_bfd_generic_section_already_linked): New.
7363 (bfd_section_already_linked_hash_entry): Likewise.
7364 (bfd_section_already_linked): Likewise.
7365 (bfd_section_already_linked_table_lookup): Likewise.
7366 (bfd_section_already_linked_table_insert): Likewise.
7368 * linker.c (bfd_section_already_linked): New.
7369 (_bfd_section_already_linked_table): Likewise.
7370 (bfd_section_already_linked_table_lookup): Likewise.
7371 (bfd_section_already_linked_table_insert): Likewise.
7372 (already_linked_newfunc): Likewise.
7373 (bfd_section_already_linked_table_init): Likewise.
7374 (bfd_section_already_linked_table_free): Likewise.
7375 (_bfd_generic_section_already_linked): Likewise.
7377 * section.c (bfd_section): Remove comdat.
7378 (bfd_comdat_info): Moved to ...
7379 * bfd-in.h (coff_comdat_info): Here.
7380 (bfd_coff_get_comdat_section): New.
7381 * coffgen.c (bfd_coff_get_comdat_section): Likewise.
7382 * libcoff-in.h (coff_section_tdata): Add comdat.
7383 * coffcode.h (handle_COMDAT): Updated.
7384 * cofflink.c (coff_link_add_symbols): Likewise.
7385 * ecoff.c (bfd_debug_section): Likewise.
7387 * targets.c (bfd_target): Add _section_already_linked.
7388 (BFD_JUMP_TABLE_LINK): Updated.
7390 * bfd-in2.h: Regenerated.
7391 * libbfd.h: Likewise.
7392 * libcoff.h: Likewise.
7394 2003-07-21 Paul Brook <paul@codesourcery.com>
7396 * elflink.c (elf_get_linked_section_vma, compare_link_order,
7397 elf_fixup_link_order): New functions.
7398 (bfd_elf_final_link): Call elf_fixup_link_order.
7400 2004-07-21 Alexandre Oliva <aoliva@redhat.com>
7402 * elf-bfd.h (ELF_COMMON_DEF_P): New.
7403 * elflink.c (_bfd_elf_symbol_refs_local_p): Use it to handle
7405 * elf-m10300.c: Use SYMBOL_REFERENCES_LOCAL instead of
7406 _bfd_elf_symbol_refs_local_p.
7407 * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove hack for common
7410 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
7412 * bfd-in.h (dynamic_lib_link_class): Add DYN_NO_ADD_NEEDED and
7414 (bfd_elf_get_dyn_lib_class): New prototype.
7415 * elf.c (bfd_elf_get_dyn_lib_class): New function.
7417 * elflink.c (elf_link_add_object_symbols): Check DYN_AS_NEEDED,
7418 DYN_DT_NEEDED and DYN_NO_NEEDED bits to see if a DT_NEEDED
7419 entry is needed. Issue an error if a DT_NEEDED entry is needed
7420 for a file marked DYN_NO_NEEDED.
7421 (elf_link_check_versioned_symbol): Check the DYN_DT_NEEDED bit
7424 * bfd-in2.h: Regenerated.
7426 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7428 * elflink.c (elf_section_complain_discarded): Don't complain in
7431 2004-07-10 James E Wilson <wilson@specifixinc.com>
7433 * elfxx-ia64.c (elfNN_ia64_relax_ldxmov): Remove abfd parameter.
7434 (elfNN_ia64_install_value, elfNN_ia64_relax_brl): Likewise.
7435 (elfNN_ia64_relax_section, elfNN_ia64_relocate_section,
7436 elfNN_ia64_finish_dynamic_symbol, elfNN_ia64_finish_dynamic_sections):
7438 (elfNN_ia64_relax_brl): Change bfd_get_64 to bfd_getl64. Change
7439 bfd_put_64 to bfd_putl64.
7440 (elfNN_ia64_relax_ldxmov, elfNN_ia64_install_value): Likewise.
7442 2004-07-09 H.J. Lu <hongjiu.lu@intel.com>
7445 * elfxx-ia64.c (elfNN_ia64_relax_section): Only warn br in
7446 .init/.fini sections when trying to relax it.
7448 2004-07-09 Jie Zhang <zhangjie@magima.com.cn>
7450 * elf.c (assign_file_positions_for_segments): Make sure the
7451 .dynamic section is the first section in the PT_DYNAMIC segment.
7453 2004-07-09 Nick Clifton <nickc@redhat.com>
7455 * config.bfd: Change sh-sybmian-elf to sh-*-symbianelf.
7456 * elf32-sh-symbian.c: Rename the sh_find_elf_flags and
7457 sh_elf_get_flags_from_mach functions so that they do not conflict
7458 when this target is built with other sh-elf targets.
7459 * elf32-sh.c (sh_elf_get_flags_from_mach): Remove bogus
7460 suppression of this function.
7461 (sh_elf_find_flags): Likewise.
7463 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
7465 * Makefile.am (ALL_MACHINES): Add cpu-crx.lo.
7466 (ALL_MACHINES_CFILES): Add cpu-crx.c.
7467 (BFD32_BACKENDS): Add elf32-crx.lo.
7468 (BFD32_BACKENDS_CFILES): Add elf32-crx.c.
7469 (cpu-crx.lo): New target.
7470 (elf32-crx.lo): New target.
7471 * Makefile.in: Regenerate.
7472 * archures.c (bfd_architecture): Add bfd_{arch,mach}_crx.
7473 (bfd_archures_list): Add bfd_crx_arch.
7474 * bfd-in2.h: Regenerate.
7475 * config.bfd: Handle crx-*-elf*, crx*.
7476 * configure.in: Handle bfd_elf32_crx_vec.
7477 * configure: Regenerate.
7478 * cpu-crx.c: New file.
7479 * elf32-crx.c: Likewise.
7480 * libbfd.h: Regenerate.
7481 * reloc.c: Add BFD_RELOC_CRX_REL4, BFD_RELOC_CRX_REL8,
7482 BFD_RELOC_CRX_REL8_CMP, BFD_RELOC_CRX_REL16, BFD_RELOC_CRX_REL24,
7483 BFD_RELOC_CRX_REL32, BFD_RELOC_CRX_REGREL12, BFD_RELOC_CRX_REGREL22,
7484 BFD_RELOC_CRX_REGREL28, BFD_RELOC_CRX_REGREL32, BFD_RELOC_CRX_ABS16,
7485 BFD_RELOC_CRX_ABS32, BFD_RELOC_CRX_NUM8, BFD_RELOC_CRX_NUM16,
7486 BFD_RELOC_CRX_NUM32, BFD_RELOC_CRX_IMM16 and BFD_RELOC_CRX_IMM32
7487 * targets.c (bfd_elf32_crx_vec): Declare.
7488 (bfd_target_vector): Add bfd_elf32_crx_vec.
7490 2004-07-06 Nick Clifton <nickc@redhat.com>
7492 * config.bfd: Add sh-symbian-elf target.
7493 * configure.in: Add bfd_elf32_shl_symbian_vec.
7494 * configure: Regenerate.
7495 * elf-bfd.h (struct elf_backend_data): Add new field
7497 * elflink.c (elf_link_add_object_symbols): Invoke the
7498 check_directives function, if defined.
7499 * elfxx-target.h: Provide a default, NULL definition for
7501 * targets.c: Add bfd_elf32_shl_symbian_vec.
7502 * elf32-sh.c (sh_elf_swap_insns): Protect against unnecessary
7504 (elf32_shlin_grok_prstatus, elf32_shlib_grok_psinfo,
7505 * sh_elf_get_flags_from_mach, sh_elf_find_flags): Likewise.
7506 (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Only define if they have
7507 not already been defined.
7508 * elf32-sh64.c: Use SH_TARGET_ALREADY_DEFINED.
7509 * sh-symbian.c: New file. Provide functions to support the
7510 * sh-symbian-elf target.
7511 * Makefile.am: Add elf32-sh-symbian.c
7512 * Makefile.in: Regenerate.
7514 2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
7516 * elf32-sh.c: Include ../opcodes/sh-opc.h.
7517 * Makefile.am: Ran make dep-am.
7518 * Makefile.in: Ran make dep-in.
7520 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
7522 * cofflink.c (_bfd_coff_generic_relocate_section): Resolve PE weak
7525 2004-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
7527 * config.bfd: Add want64 to configuration target s390-*-linux*.
7529 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
7531 * bfd.c (bfd_get_section_ident): New.
7533 * elflink.c (elf_link_read_relocs_from_section): Call
7534 bfd_get_section_ident to identify the section when reporting
7536 (_bfd_elf_link_output_relocs): Likewise.
7537 (elf_link_output_extsym): Likewise.
7538 (elf_link_input_bfd): Likewise.
7539 (bfd_elf_gc_record_vtinherit): Likewise.
7541 * bfd-in2.h: Regenerated.
7543 2004-07-01 Jie Zhang <zhangjie@magima.com.cn>
7544 Nick Clifton <nickc@redhat.com>
7547 * elfxx-mips.c (_bfd_mips_elf_final_link): Pass the correct number
7548 of section symbols to mips_elf_sort_hash_table ().
7550 2004-07-01 Alan Modra <amodra@bigpond.net.au>
7552 * elflink.c (elf_section_ignore_discarded_relocs): Revert last
7554 (elf_section_complain_discarded): New function. Handle
7555 .gcc_except_table too.
7556 (elf_link_input_bfd): Rewrite handling of relocs against symbols
7557 in discarded sections.
7558 * elf-bfd.h (elf_discarded_section): Protect macro arg.
7560 2004-06-30 James E Wilson <wilson@specifixinc.com>
7562 * elfxx-ia64.c (elfNN_ia64_check_relocs): New local pltoff. Initialize
7563 to NULL. Call get_pltoff if NULL and NEED_PLTOFF is true.
7565 2004-06-30 H.J. Lu <hongjiu.lu@intel.com>
7568 * elflink.c (elf_link_input_bfd): Issue an error for non-debug
7569 local references to discarded sections and report their
7572 2004-06-30 Alan Modra <amodra@bigpond.net.au>
7574 * elflink.c (elf_section_ignore_discarded_relocs): Don't test
7575 sec_info_type, test section name instead.
7577 2004-06-29 H.J. Lu <hongjiu.lu@intel.com>
7580 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't relax branch
7581 in .init/.fini sections.
7583 2004-06-29 Bob Wilson <bob.wilson@acm.org>
7585 * elf32-xtensa.c (elf_xtensa_relocate_section): Use
7586 bfd_get_section_limit.
7588 2004-06-29 Bob Wilson <bob.wilson@acm.org>
7590 * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Don't change the
7591 output section size.
7593 2004-06-29 Alan Modra <amodra@bigpond.net.au>
7595 * elf64-mmix.c (mmix_set_relaxable_size): Save original size in
7597 (mmix_elf_perform_relocation): Adjust for above change.
7598 (mmix_elf_relocate_section): Likewise.
7599 (mmix_elf_relax_section): Likewise. Use output_section->rawsize.
7600 (mmix_elf_get_section_contents): Delete.
7601 (bfd_elf64_get_section_contents): Delete.
7602 (mmix_elf_relocate_section): Zero stub area.
7603 * linker.c (default_indirect_link_order): Alloc max of section size
7605 * simple.c (bfd_simple_get_relocated_section_contents): Likewise.
7606 * section.c (bfd_malloc_and_get_section): Likewise.
7607 (struct bfd_section): Update rawsize comment.
7608 * bfd-in2.h: Regenerate.
7610 * reloc16.c (bfd_coff_reloc16_relax_section): Set rawsize.
7612 2004-06-29 Alan Modra <amodra@bigpond.net.au>
7614 * bfd-in.h (bfd_get_section_limit): Define.
7615 * reloc.c (bfd_perform_relocation, bfd_install_relocation)
7616 (_bfd_final_link_relocate): Use bfd_get_section_limit.
7617 * aout-tic30.c (tic30_aout_final_link_relocate): Likewise.
7618 * coff-arm.c (coff_arm_relocate_section): Likewise.
7619 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): Likewise.
7620 * cpu-ns32k.c (do_ns32k_reloc): Likewise.
7621 (bfd_ns32k_final_link_relocate): Likewise.
7622 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): Likwise.
7623 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): Likewise.
7624 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc)
7625 (i860_howto_highadj_reloc, i860_howto_splitn_reloc): Likewise.
7626 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc)
7627 (m32r_elf_generic_reloc, m32r_elf_relocate_section): Likewise.
7628 * elf32-m68hc1x.c (m68hc11_elf_special_reloc): Likewise.
7629 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
7630 * elf32-or32.c (or32_elf_consth_reloc): Likewise.
7631 * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Likewise.
7632 * elf32-s390.c (s390_elf_ldisp_reloc): Likewise.
7633 * elf32-sh.c (sh_elf_reloc_loop): Likewise.
7634 * elf32-sparc.c (sparc_elf_wdisp16_reloc): Likewise.
7635 (sparc_elf_hix22_reloc, sparc_elf_lox10_reloc): Likwise.
7636 * elf32-v850.c (v850_elf_reloc): Likewise.
7637 * elf32-xstormy16.c (xstormy16_elf_24_reloc): Likewise.
7638 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Likewise.
7639 * elf64-alpha.c (elf64_alpha_reloc_gpdisp): Likewise.
7640 * elf64-mips.c (mips_elf64_gprel32_reloc)
7641 (mips16_gprel_reloc): Likewise.
7642 * elf64-mmix.c (mmix_elf_reloc): Likewise.
7643 * elf64-s390.c (s390_elf_ldisp_reloc): Likewise.
7644 * elf64-sparc.c (init_insn_reloc): Likewise.
7645 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
7646 * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp)
7647 (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc)
7648 (_bfd_mips_elf_generic_reloc): Likewise.
7649 * bfd-in2.h: Regenerate.
7651 2004-06-28 Alan Modra <amodra@bigpond.net.au>
7653 * bfd-in.h (struct stab_info): Move from stabs.c.
7654 * stabs.c (struct stab_link_includes_table): Delete.
7655 (stab_link_includes_lookup): Delete.
7656 (_bfd_write_section_stabs, _bfd_write_stab_strings): Remove one
7657 level of indirection from sinfo parm.
7658 (_bfd_link_section_stabs): Likewise. Set SEC_LINKER_CREATED on
7659 stabstr section. Adjust hash table accesses.
7660 * coff-ppc.c (ppc_bfd_coff_final_link): Do include rawsize in contents
7661 alloc. Adjust stab_info test.
7662 * cofflink.c (_bfd_coff_link_hash_table_init): Clear stab_info.
7663 (_bfd_coff_final_link): Adjust stab_info test.
7664 (_bfd_coff_link_input_bfd): Ignore SEC_LINKER_CREATED sections.
7665 * elf-bfd.h (struct elf_link_hash_table): Include struct stab_info
7667 * libcoff-in.h (struct coff_link_hash_table): Likewise.
7668 * elf.c (_bfd_elf_link_hash_table_init): Clear stab_info.
7669 * elflink.c (bfd_elf_final_link): Don't attempt to link linker created
7670 stabstr section. Adjust stab_info test.
7671 * libbfd-in.h (_bfd_link_section_stabs, _bfd_write_section_stabs)
7672 (_bfd_write_stab_strings): Adjust prototypes.
7673 * libbfd.h: Regenerate.
7674 * libcoff.h: Regenerate.
7675 * bfd-in2.h: Regenerate.
7677 2004-06-27 Mark Kettenis <kettenis@gnu.org>
7679 From Miod Vallat <miod@online.fr>:
7680 * aoutx.h (NAME(aout,machine_type)): Handle bfd_arch_m88k.
7682 2004-06-26 Alexandre Oliva <aoliva@redhat.com>
7684 * elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): Delete.
7685 (struct elf32_mn10300_link_hash_entry): Remove
7686 pcrel_relocs_copied.
7687 (mn10300_elf_check_relocs): Only reserve dynamic relocations for
7688 R_MN10300_32. Don't adjust pcrel_relocs_copied.
7689 (mn10300_elf_final_link_relocate): Fail for direct, pc-relative
7690 and gotoff relocations if the symbol doesn't bind locally. Use
7691 _bfd_elf_symbol_refs_local_p to test. Don't create dynamic
7692 relocation for PCREL32.
7693 (mn10300_elf_relocate_section): Use _bfd_elf_symbol_refs_local_p
7694 to test whether a symbol binds locally.
7695 (elf32_mn10300_link_hash_newfunc): Don't initialize
7696 pcrel_relocs_copied.
7697 (_bfd_mn10300_elf_discard_copies): Delete.
7698 (_bfd_mn10300_elf_size_dynamic_sections): Don't call it.
7700 2004-06-26 Mark Kettenis <kettenis@gnu.org>
7702 * config.bfd: Replace m88k-*-openbsd* with m88*-*-openbsd*.
7704 2004-06-25 Joel Brobecker <brobecker@gnat.com>
7706 * som.c (som_set_reloc_info): Correct small typo.
7708 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7710 * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_GOTOFF.
7711 (m32r_elf_relocate_section): Changed for R_M32R_GOTOFF.
7712 (m32r_elf_gcsweep_hook): Likewise.
7713 (m32r_elf_check_relocs): Likewise.
7714 (m32r_elf_howto_table): Added R_M32R_GOTOFF_HI_ULO,
7715 R_M32R_GOTOFF_HI_SLO and R_M32R_GOTOFF_LO.
7716 * reloc.c: Added BFD_RELOC_M32R_GOTOFF_HI_ULO,
7717 BFD_RELOC_M32R_GOTOFF_HI_SLO and BFD_RELOC_M32R_GOTOFF_LO.
7718 * bfd-in2.h: Regenerated.
7719 * libbfd.h: Regenerated.
7721 2004-06-24 H.J. Lu <hongjiu.lu@intel.com>
7723 * elf64-x86-64.c (elf64_x86_64_check_relocs): Warn overflow
7725 (elf64_x86_64_relocate_section): Issue an error for
7726 R_X86_64_PC8, R_X86_64_PC16 and R_X86_64_PC32 relocations
7727 against global symbols when building shared library.
7729 2004-06-24 Alan Modra <amodra@bigpond.net.au>
7731 * section.c (struct sec): Rename "_cooked_size" to "size".
7732 Rename "_raw_size" to "rawsize".
7733 (STD_SECTION): Adjust comments.
7734 (bfd_set_section_size, bfd_get_section_contents): Use size.
7735 (bfd_malloc_and_get_section): New function.
7736 * bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
7737 * coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
7738 Correctly free reloc and contents memory.
7739 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
7740 and fake CIE now that we can shink section size to zero.
7741 (_bfd_elf_write_section_eh_frame): Likewise..
7742 * elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
7743 * elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
7744 _bfd_stab_section_offset. Use _bfd_elf_section_offset.
7745 * stabs.c (_bfd_stab_section_offset_): Remove unused args and
7746 unneeded indirection.
7747 * elf.c (_bfd_elf_section_offset): .. and update call.
7748 * libbfd-in.h (_bfd_stab_section_offset): Update prototype.
7749 * libbfd.h: Regenerate.
7750 * bfd-in2.h: Regenerate.
7752 Replace occurrences of "_raw_size" and "_cooked_size" in most places
7753 with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
7754 sections. Use "rawsize", if non-zero, for bfd_get_section_contents
7755 calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
7756 Similarly use "rawsize", if non-zero, in reloc functions to validate
7757 reloc addresses. Use new bfd_malloc_and_get_section in most places
7758 where bfd_get_section_contents was called. Expand all occurrences of
7759 bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
7760 grok_prstatus and similar functions to "size".
7761 * aix386-core.c (aix386_core_file_p): ..
7762 * aix5ppc-core.c (xcoff64_core_p): ..
7763 * aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
7764 aout_adobe_set_section_contents): ..
7765 * aout-target.h (callback): ..
7766 * aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
7767 MY_bfd_final_link): ..
7768 * aoutf1.h (sunos4_core_file_p): ..
7769 * aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
7770 adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
7771 final_link, aout_link_input_section): ..
7772 * binary.c (binary_object_p, binary_canonicalize_symtab,
7773 binary_set_section_contents): ..
7774 * bout.c (b_out_callback, b_out_write_object_contents,
7775 b_out_set_section_contents, b_out_bfd_relax_section,
7776 b_out_bfd_get_relocated_section_contents): ..
7777 * cisco-core.c (cisco_core_file_validate): ..
7778 * coff-alpha.c (alpha_ecoff_object_p,
7779 alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
7780 * coff-arm.c (coff_arm_relocate_section,
7781 bfd_arm_allocate_interworking_sections): ..
7782 * coff-h8300.c (h8300_reloc16_extra_cases,
7783 h8300_bfd_link_add_symbols): ..
7784 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
7785 * coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
7786 ppc_bfd_coff_final_link): ..
7787 * coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
7788 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
7789 sh_align_loads, sh_coff_get_relocated_section_contents): ..
7790 * coff64-rs6000.c (xcoff64_write_object_contents,
7791 xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
7792 * coffcode.h (coff_compute_section_file_positions,
7793 coff_write_object_contents): ..
7794 * coffgen.c (make_a_section_from_file, coff_write_symbols,
7795 coff_section_symbol, build_debug_section): ..
7796 * cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
7797 process_embedded_commands, _bfd_coff_link_input_bfd,
7798 _bfd_coff_write_global_sym): ..
7799 * cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
7800 * cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
7801 * dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
7802 * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
7803 _bfd_dwarf2_find_nearest_line): ..
7804 * ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
7805 ecoff_compute_section_file_positions,
7806 _bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
7807 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
7808 _bfd_elf_discard_section_eh_frame_hdr,
7809 _bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
7810 _bfd_elf_write_section_eh_frame,
7811 _bfd_elf_write_section_eh_frame_hdr): ..
7812 * elf-hppa.h (elf_hppa_sort_unwind): ..
7813 * elf-m10200.c (mn10200_elf_relax_section,
7814 mn10200_elf_relax_delete_bytes,
7815 mn10200_elf_get_relocated_section_contents): ..
7816 * elf-m10300.c (_bfd_mn10300_elf_create_got_section,
7817 mn10300_elf_check_relocs, mn10300_elf_relax_section,
7818 mn10300_elf_relax_delete_bytes,
7819 mn10300_elf_get_relocated_section_contents,
7820 _bfd_mn10300_elf_adjust_dynamic_symbol,
7821 _bfd_mn10300_elf_discard_copies,
7822 _bfd_mn10300_elf_size_dynamic_sections,
7823 _bfd_mn10300_elf_finish_dynamic_sections): ..
7824 * elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
7825 _bfd_elf_make_section_from_phdr, elf_fake_sections,
7826 bfd_elf_set_group_contents, map_sections_to_segments,
7827 elf_sort_sections, assign_file_positions_for_segments,
7828 SECTION_SIZE, copy_private_bfd_data,
7829 _bfd_elf_get_dynamic_reloc_upper_bound,
7830 _bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
7831 _bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
7832 elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
7833 elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
7834 _bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
7835 * elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
7836 bfd_elf32_arm_process_before_allocation,
7837 elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
7838 elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
7839 elf32_arm_write_section): ..
7840 * elf32-cris.c (cris_elf_grok_prstatus,
7841 elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
7842 elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
7843 cris_elf_check_relocs, elf_cris_size_dynamic_sections,
7844 elf_cris_discard_excess_dso_dynamics,
7845 elf_cris_discard_excess_program_dynamics): ..
7846 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
7847 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
7848 * elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
7849 _frv_create_got_section, _frvfdpic_assign_plt_entries,
7850 elf32_frvfdpic_size_dynamic_sections,
7851 elf32_frvfdpic_modify_segment_map,
7852 elf32_frvfdpic_finish_dynamic_sections): ..
7853 * elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
7854 elf32_h8_get_relocated_section_contents): ..
7855 * elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
7856 elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
7857 allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
7858 elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
7859 elf32_hppa_finish_dynamic_sections): ..
7860 * elf32-i370.c (i370_elf_adjust_dynamic_symbol,
7861 i370_elf_size_dynamic_sections, i370_elf_check_relocs,
7862 i370_elf_finish_dynamic_sections): ..
7863 * elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
7864 allocate_dynrelocs, elf_i386_size_dynamic_sections,
7865 elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
7866 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
7867 i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
7868 * elf32-ip2k.c (ip2k_is_switch_table_128,
7869 ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
7870 ip2k_relax_switch_table_256, ip2k_elf_relax_section,
7871 adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
7872 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
7873 m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
7874 allocate_dynrelocs, m32r_elf_size_dynamic_sections,
7875 m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
7876 m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
7877 m32r_elf_get_relocated_section_contents): ..
7878 * elf32-m68hc11.c (m68hc11_elf_build_one_stub,
7879 m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
7880 m68hc11_elf_relax_delete_bytes): ..
7881 * elf32-m68hc12.c (m68hc12_elf_build_one_stub,
7882 m68hc12_elf_size_one_stub): ..
7883 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
7884 elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
7885 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
7886 elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
7887 elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
7888 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
7889 elf32_mips_grok_prstatus): ..
7890 * elf32-or32.c (or32_elf_consth_reloc): ..
7891 * elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
7892 elf_create_pointer_linker_section, ppc_elf_create_linker_section,
7893 ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
7894 allocate_dynrelocs, ppc_elf_size_dynamic_sections,
7895 ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
7896 ppc_elf_final_write_processing): ..
7897 * elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
7898 allocate_dynrelocs, elf_s390_size_dynamic_sections,
7899 elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
7900 * elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
7901 sh_elf_relax_delete_bytes, sh_elf_align_loads,
7902 sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
7903 sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
7904 sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
7905 * elf32-sh64-com.c (sh64_address_in_cranges,
7906 sh64_get_contents_type): ..
7907 * elf32-sh64.c (sh64_find_section_for_address,
7908 sh64_elf_final_write_processing): ..
7909 * elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
7910 sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
7911 allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
7912 elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
7913 * elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
7914 * elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
7915 elf_vax_size_dynamic_sections, elf_vax_discard_copies,
7916 elf_vax_instantiate_got_entries, elf_vax_relocate_section,
7917 elf_vax_finish_dynamic_sections): ..
7918 * elf32-xstormy16.c (xstormy16_elf_24_reloc,
7919 xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
7920 xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
7921 xstormy16_elf_finish_dynamic_sections): ..
7922 * elf32-xtensa.c (xtensa_read_table_entries,
7923 elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
7924 elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
7925 bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
7926 elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
7927 elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
7928 get_relocation_opcode, retrieve_contents, find_relaxable_sections,
7929 collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
7930 relax_section, shrink_dynamic_reloc_sections, relax_property_section,
7931 xtensa_callback_required_dependence): ..
7932 * elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
7933 elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
7934 elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
7935 elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
7936 elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
7937 elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
7938 elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
7939 elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
7940 * elf64-hppa.c (allocate_dynrel_entries,
7941 elf64_hppa_size_dynamic_sections,
7942 elf64_hppa_finish_dynamic_sections): ..
7943 * elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
7944 mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
7945 elf64_mips_grok_prstatus): ..
7946 * elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
7947 mmix_elf_relocate_section, mmix_elf_final_link,
7948 mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
7949 mmix_elf_relax_section, mmix_elf_get_section_contents): ..
7950 * elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
7951 ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
7952 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
7953 allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
7954 ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
7955 toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
7956 ppc64_elf_build_stubs, ppc64_elf_relocate_section,
7957 ppc64_elf_finish_dynamic_sections): ..
7958 * elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
7959 allocate_dynrelocs, elf_s390_size_dynamic_sections,
7960 elf_s390_finish_dynamic_sections): ..
7961 * elf64-sh64.c (sh_elf64_get_relocated_section_contents,
7962 sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
7963 sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
7964 sh64_elf64_finish_dynamic_sections): ..
7965 * elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
7966 sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
7967 sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
7968 sparc64_elf_finish_dynamic_symbol,
7969 sparc64_elf_finish_dynamic_sections): ..
7970 * elf64-x86-64.c (elf64_x86_64_grok_prstatus,
7971 elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
7972 elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
7973 elf64_x86_64_finish_dynamic_sections): ..
7974 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
7975 * elfcode.h (elf_slurp_reloc_table): ..
7976 * elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
7977 elf_finalize_dynstr, elf_link_add_object_symbols,
7978 bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
7979 elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
7980 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
7981 elf32_mips_grok_prstatus): ..
7982 * elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
7983 elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
7984 elfNN_ia64_choose_gp, elfNN_ia64_final_link,
7985 elfNN_ia64_finish_dynamic_sections): ..
7986 * elfxx-mips.c (mips_elf_create_procedure_table,
7987 mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
7988 _bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
7989 mips_elf_global_got_index, mips_elf_multi_got,
7990 mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
7991 mips_elf_allocate_dynamic_relocations,
7992 mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
7993 _bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
7994 _bfd_mips_elf_always_size_sections,
7995 _bfd_mips_elf_size_dynamic_sections,
7996 _bfd_mips_elf_finish_dynamic_symbol,
7997 _bfd_mips_elf_finish_dynamic_sections,
7998 _bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
7999 _bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
8000 _bfd_elf_mips_get_relocated_section_contents,
8001 _bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
8002 * hp300hpux.c (callback): ..
8003 * hppabsd-core.c (make_bfd_asection): ..
8004 * hpux-core.c (make_bfd_asection): ..
8005 * i386linux.c (linux_link_create_dynamic_sections,
8006 bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
8007 * i386msdos.c (msdos_write_object_contents): ..
8008 * i386os9k.c (os9k_callback, os9k_write_object_contents,
8009 os9k_set_section_contents): ..
8010 * ieee.c (parse_expression, ieee_slurp_external_symbols,
8011 ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
8012 ieee_write_section_part, do_with_relocs, do_as_repeat,
8013 do_without_relocs, ieee_write_debug_part, init_for_output,
8014 ieee_set_section_contents): ..
8015 * ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
8016 * irix-core.c (do_sections, make_bfd_asection): ..
8017 * libaout.h (aout_section_merge_with_text_p): ..
8018 * libbfd.c (_bfd_generic_get_section_contents,
8019 _bfd_generic_get_section_contents_in_window): ..
8020 * linker.c (default_indirect_link_order): ..
8021 * lynx-core.c (make_bfd_asection): ..
8022 * m68klinux.c (linux_link_create_dynamic_sections,
8023 bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
8024 * mach-o.c (bfd_mach_o_make_bfd_section,
8025 bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
8026 bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
8027 bfd_mach_o_scan_read_segment): ..
8028 * merge.c (_bfd_add_merge_section, record_section, merge_strings,
8029 _bfd_merge_sections): ..
8030 * mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
8031 mmo_map_set_sizes, mmo_canonicalize_symtab,
8032 mmo_internal_write_section, mmo_write_object_contents): ..
8033 * netbsd-core.c (netbsd_core_file_p): ..
8034 * nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
8035 nlm_alpha_set_public_section): ..
8036 * nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
8037 * nlm32-sparc.c (nlm_sparc_write_import): ..
8038 * nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
8039 nlm_compute_section_file_positions): ..
8040 * oasys.c (oasys_object_p, oasys_slurp_section_data,
8041 oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
8042 * opncls.c (get_debug_link_info): ..
8043 * osf-core.c (make_bfd_asection): ..
8044 * pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
8045 adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
8046 final_link, aout_link_input_section): ..
8047 * peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
8048 pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
8049 * pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
8050 bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
8051 * ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
8052 * ptrace-core.c (ptrace_unix_core_file_p): ..
8053 * reloc.c (bfd_perform_relocation, bfd_install_relocation,
8054 _bfd_final_link_relocate, bfd_generic_relax_section,
8055 bfd_generic_get_relocated_section_contents): ..
8056 * reloc16.c (bfd_coff_reloc16_relax_section,
8057 bfd_coff_reloc16_get_relocated_section_c): ..
8058 * riscix.c (riscix_some_aout_object_p): ..
8059 * rs6000-core.c (read_hdr, make_bfd_asection): ..
8060 * sco5-core.c (make_bfd_asection): ..
8061 * simple.c (bfd_simple_get_relocated_section_contents): ..
8062 * som.c (som_object_setup, setup_sections, som_prep_headers,
8063 som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
8064 som_set_reloc_info, som_get_section_contents,
8065 som_bfd_link_split_section): ..
8066 * sparclinux.c (linux_link_create_dynamic_sections,
8067 bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
8068 * srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
8069 * stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
8070 _bfd_write_stab_strings, _bfd_stab_section_offset): ..
8071 * sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
8072 bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
8073 sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
8074 sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
8075 sunos_finish_dynamic_link): ..
8076 * syms.c (_bfd_stab_section_find_nearest_line): ..
8077 * tekhex.c (first_phase, tekhex_set_section_contents,
8078 tekhex_write_object_contents): ..
8079 * trad-core.c (trad_unix_core_file_p): ..
8080 * versados.c (process_esd, process_otr, process_otr): ..
8081 * vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
8082 * vms-misc.c (add_new_contents): ..
8083 * vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
8084 * vms.c (vms_set_section_contents): ..
8085 * xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
8086 xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
8087 _bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
8088 * xsym.c (bfd_sym_scan): .. See above.
8090 2004-06-21 H.J. Lu <hongjiu.lu@intel.com>
8092 * elfxx-ia64.c (elfNN_ia64_relax_section): Add addend when
8093 calling _bfd_merged_section_offset only for section symbols.
8095 2004-06-22 Alan Modra <amodra@bigpond.net.au>
8097 * elf32-ppc.c (ppc_elf_relax_section): Implement reference code
8098 for handling SEC_MERGE symbols in relax_section.
8100 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
8102 2003-05-15 Richard Sandiford <rsandifo@redhat.com>
8103 * cpu-h8300.c (compatible): Allow h8300s and h8300sx code to be
8104 linked together. Mark the result as h8300sx code.
8106 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
8108 * elf-bfd.h (struct elf_backend_data): Added
8109 elf_backend_omit_section_dynsym.
8110 (_bfd_elf_link_omit_section_dynsym): Declare.
8111 * elf32-frv.c (_frvfdpic_link_omit_section_dynsym): New.
8112 (elf_backend_omit_section_dynsym): Use it for frvfdpic.
8113 * elflink.c (_bfd_elf_link_omit_section_dynsym): Split out of...
8114 (_bfd_elf_link_renumber_dynsyms): ... this function.
8115 * elfxx-target.h (elf_backend_omit_section_dynsym): Default to
8116 _bfd_elf_link_omit_section_dynsym).
8117 (elfNN_bed): Added elf_backend_omit_section_dynsym.
8119 2004-06-21 Nick Clifton <nickc@redhat.com>
8121 * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED
8124 2004-06-17 Jerome Guitton <guitton@gnat.com>
8126 * bfd-in.h (bfd_cache_close_all): New function declaration.
8127 * bfd-in2.h: Regenerate.
8128 * cache.c (bfd_cache_close_all): New function definition.
8130 2004-06-16 Mark Kettenis <kettenis@gnu.org>
8132 * configure.in: Don't set COREFILE to trad-core.lo for FreeBSD
8134 * configure: Regenerate.
8136 2004-06-16 Daniel Jacobowitz <dan@debian.org>
8138 * elf32-ppc.c (ppc_elf_create_linker_section): Create symbols in
8139 the pre-existing section.
8141 2004-06-15 Alan Modra <amodra@bigpond.net.au>
8143 * section.c (struct sec): Remove usused flags. Reorganize a little.
8144 (bfd_get_section_size_before_reloc): Delete.
8145 (bfd_get_section_size_after_reloc): Delete.
8146 (STD_SECTION): Update.
8147 (bfd_get_section_size_now): Delete.
8148 (bfd_set_section_contents): Don't referece reloc_done.
8149 (bfd_get_section_contents): Remove reloc_done comment.
8150 * bout.c (b_out_bfd_get_relocated_section_contents): Don't set
8152 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise.
8153 * ecoff.c (bfd_debug_section): Update initializer.
8154 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Ditto.
8155 * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
8156 * bfd-in.h (bfd_section_size): Expand.
8157 (bfd_get_section_size): New macro.
8158 * bfd-in2.h: Regenerate.
8159 * coff64-rs6000.c (xcoff64_write_object_contents): Replace
8160 bfd_get_section_size_before_reloc with bfd_get_section_size.
8161 * coffcode.h (coff_write_object_contents): Likewise.
8162 * coffgen.c (build_debug_section): Likewise.
8163 * dwarf1.c (parse_line_table): Likewise.
8164 (_bfd_dwarf1_find_nearest_line): Likewise.
8165 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
8166 * i386msdos.c (msdos_write_object_contents): Likewise.
8167 * pdp11.c (squirt_out_relocs): Likewise.
8168 * elf32-sh64.c (sh64_find_section_for_address): Remove comment.
8169 * elf64-mmix.c (mmix_elf_final_link): Update comment.
8171 2004-06-14 Chris Demetriou <cgd@broadcom.com>
8173 * elf32-mips.c (elf_mips_gnu_pcrel32): Add (undoing 2004-04-24
8174 removal) with updated comment.
8175 (bfd_elf32_bfd_reloc_type_lookup): Add back case for
8177 (mips_elf32_rtype_to_howto): Add back case for R_MIPS_PC32.
8178 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
8180 2004-06-12 Alan Modra <amodra@bigpond.net.au>
8182 * elf64-x86-64.c (elf64_x86_64_relocate_section): Ignore reloc
8183 overflow on branches to undefweaks.
8185 2004-06-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8187 * coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly
8188 as ecoff_section_data() does not return a valid lvalue.
8190 2004-06-09 Alexandre Oliva <aoliva@redhat.com>
8192 * elflink.c (elf_sort_symbol): Compare section id, not pointers.
8193 (elf_link_add_object_symbols): Likewise.
8195 * elf-m10300.c (_bfd_mn10300_elf_reloc_type_class): New.
8196 (elf_backend_reloc_type_class): New.
8198 2004-06-08 Mark Kettenis <kettenis@gnu.org>
8200 * configure.in (hppa*-*-netbsd*, hppa*-*-openbsd): Set COREFILE to
8202 * configure: Regenerate.
8204 2004-06-07 Daniel Jacobowitz <dan@debian.org>
8206 From: Albert Chin-A-Young <china@thewrittenword.com>
8207 * bfd/elf-bfd.h (struct eh_cie_fde): Convert unsigned char bitfields
8210 2004-05-29 H.J. Lu <hongjiu.lu@intel.com>
8212 * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last
8215 2004-05-28 DJ Delorie <dj@redhat.com>
8217 * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend
8218 for linking, but otherwise adjust reloc for merged sections.
8220 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
8222 * elfxx-ia64.c (elfNN_ia64_relax_section): Properly call
8223 _bfd_merged_section_offset for local symbols.
8225 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
8227 * Makefile.am: Regenerate dependencies.
8228 * Makefile.in: Regenerate.
8229 * archures.c: Add bfd_mach_sh3_nommu .
8230 * bfd-in2.h: Regenerate.
8231 * cpu-sh.c: Add sh3-nommu architecture.
8232 (bfd_to_arch_table): Create new table.
8233 (sh_get_arch_from_bfd_mach): Create new function.
8234 (sh_get_arch_up_from_bfd_mach): Create new function.
8235 (sh_merge_bfd_arch): Create new function.
8236 * elf32-sh.c (sh_ef_bfd_table): Add table.
8237 (sh_elf_check_relocs): Replace switch statement with
8238 use of sh_ef_bfd_table .
8239 (sh_elf_get_flags_from_mach): Add new function.
8240 (sh_find_elf_flags): Likewise.
8241 (sh_elf_copy_private_data): Replace most of non-elf contents
8242 with a call to sh_merge_bfd_arch() .
8244 2004-05-27 Michael Chastain <mec.gnu@mindspring.com>
8246 * Makefile.am (bfdver.h): Use explicit filename, not $< .
8247 * Makefile.in: Regenerate.
8249 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
8251 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Avoid
8252 custom calling conventions for dynamic symbols.
8253 (mn10300_elf_relax_section): Avoid relaxing a function as a local
8254 symbol if it's an alias to a global one.
8256 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
8258 * elf.c (_bfd_elf_make_section_from_shdr): Undo the last
8261 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
8263 * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
8266 2004-05-26 Alan Modra <amodra@bigpond.net.au>
8268 * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
8269 for SHT_GROUP sections.
8271 2004-05-25 Alan Modra <amodra@bigpond.net.au>
8273 * elflink.c (elf_link_add_object_symbols): Don't set up merge
8275 * elf.c (_bfd_elf_merge_sections): .. Do it here instead.
8276 * merge.c: Formatting. Remove unnecessary casts. Expand
8277 bfd_get_section_alignment macro.
8278 (struct sec_merge_sec_info): Rename "first" to "first_str". Update
8279 use throughout file.
8280 (_bfd_add_merge_section): Rename from _bfd_merge_section. Update
8281 comment. Abort on dynamic or non-SEC_MERGE input. Don't test
8282 section name to determine sinfo group, instead test output section
8284 (_bfd_merge_sections): Add struct bfd_link_info param. Call
8285 _bfd_strip_section_from_output rather than just twiddling flags.
8286 * libbfd-in.h (_bfd_add_merge_section): Rename, update comment.
8287 (_bfd_merge_sections): Update prototype.
8288 * libbfd.h: Regenerate.
8290 2004-05-24 Mark Kettenis <kettenis@gnu.org>
8292 * netbsd-core.c: Correctly indent section that sets architecture
8295 From Miod Vallat <miod@online.fr>:
8296 * m88kopenbsd.c: New file.
8297 * targets.c (m88k_openbsd_vec): New.
8298 * config.bfd: Add m88k-*-openbsd*.
8299 * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo.
8300 (m88kopenbsd_vec): New.
8301 * configure: Regenerate.
8302 * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo.
8303 (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c.
8305 * Makefile.in: Regenerate.
8306 * po/SRC-POTFILES.in: Regenerate.
8308 2004-05-24 Nick Clifton <nickc@redhat.com>
8310 * hash.c: Remove bogus node "Changing the default Hash Table Size"
8311 introduced by hash table size patch.
8313 2004-05-22 Ben Elliston <bje@au.ibm.com>
8315 * configure.in (is_release): Remove.
8316 (bfd_version_date, bfd_version, bfd_version_string): Likewise.
8317 (AC_OUTPUT): Don't output bfdver.h from version.h.
8318 * configure: Regenerate.
8319 * Makefile.am (RELEASE): New variable.
8320 (bfdver.h): New target.
8321 * Makefile.in: Regenerate.
8322 * doc/Makefile.in: Likewise.
8324 2004-05-22 Ben Elliston <bje@au.ibm.com>
8326 * Makefile.am (config.status): Don't depend on version.h.
8327 * Makefile.in: Regenerate.
8329 2004-05-22 Alan Modra <amodra@bigpond.net.au>
8331 * merge.c (_bfd_merged_section_offset): Remove "addend" param.
8332 * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype.
8333 * libbfd.h: Regenerate.
8334 * elf.c (_bfd_elf_rela_local_sym): Adjust call.
8335 (_bfd_elf_rel_local_sym): Likewise.
8336 * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise.
8337 (elf_link_input_bfd): Likewise.
8338 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
8339 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
8340 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
8341 (elfNN_ia64_relocate_section): Likewise.
8343 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
8345 * hash.c (bfd_default_hash_table_size): New variable.
8346 (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE.
8347 (bfd_hash_set_default_size): New function. Set the default size
8348 to a selected prime number close to the argument. Document new
8350 * bfd-in.h: Add prototype for bfd_hash_set_default_size.
8351 * bfd-in2.h: Regenerate.
8352 * Makefile.am (hash.lo): Add dependency upon libiberty.h.
8353 * Makefile.in: Regenerate.
8355 2004-05-21 Mark Kettenis <kettenis@gnu.org>
8357 * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
8358 * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
8359 arm, m68k, m88k and hppa core files.
8361 2004-05-21 Nick Clifton <nickc@redhat.com>
8363 * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
8364 (bfd_bwrite): Likewise.
8365 (bfd_tell): Likewise.
8366 (bfd_flush): Likewise.
8367 (bfd_stat): Likewise.
8368 (bfd_seek): Likewise.
8369 (bfd_get_mtime): Likewise.
8370 (bfd_get_size): Likewise.
8372 2004-05-19 Ben Elliston <bje@au.ibm.com>
8374 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
8376 2004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
8378 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
8379 (bfd_generic_openr_next_archived_file): Likewise.
8381 2004-05-17 Bob Wilson <bob.wilson@acm.org>
8383 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
8384 section names by inserting a new substring after .gnu.linkonce, except
8385 for .gnu.linkonce.t.* where the "t." is replaced.
8387 2004-05-17 Adam Nemet <anemet@lnxw.com>
8389 * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
8390 (m68-*-lynxos* case): Likewise.
8391 (powerpc-*-lyxnos* case): New case.
8392 (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
8394 2004-05-17 David Heine <dlheine@tensilica.com>
8396 * aout-target.h (MY_bfd_copy_private_header_data): Define.
8397 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
8398 * bfd.c (bfd_copy_private_header_data): Define.
8399 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
8401 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
8402 * coffcode.h (coff_bfd_copy_private_header_data): Define.
8403 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
8404 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
8405 segments by calling copy_private_bfd_data.
8406 (_bfd_elf_copy_private_header_data): Define.
8407 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
8408 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
8409 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
8410 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
8411 * mmo.c (mmo_bfd_copy_private_header_data): Define.
8412 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
8413 * som.c (som_bfd_copy_private_header_data): Define.
8414 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
8415 * vms.c (vms_bfd_copy_private_header_data): Define.
8416 * bfd-in2.h: Regenerate.
8417 * libbfd.h: Regenerate.
8419 2004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
8421 * elfxx-mips.c (MINUS_TWO): Define.
8422 (mips_elf_higher, mips_elf_highest,
8423 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
8424 some bfd_vma values.
8425 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
8427 2004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8429 * som.c (log2): Rename to exact_log2. Adjust all callers.
8431 2004-05-13 Paul Brook <paul@codesourcery.com>
8433 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
8434 dwarf3 format CIE entries. Remove comment about the size of the
8435 ra_column field. It is now correctly deduced.
8437 2004-05-13 Joel Sherrill <joel@oarcorp.com>
8439 * config.bfd (or32-*-rtems*): Switch to elf.
8441 2004-05-13 Nick Clifton <nickc@redhat.com>
8443 * po/fr.po: Updated French translation.
8445 2004-05-11 Jakub Jelinek <jakub@redhat.com>
8447 * elflink.c (bfd_elf_final_link): Don't output STT_SECTION symbol
8448 into .dynsym if elf_section_data (sec)->dynindx <= 0.
8449 Adjust counting of last_local.
8450 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
8451 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
8452 created by the linker nor !SHF_ALLOC.
8454 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
8455 DT_PLTGOT to the start of the .got.plt section instead of the
8456 .got output section. Set sh_entsize for .got section in addition
8458 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
8459 is at sgot->output_section->vma.
8460 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
8461 DT_PLTGOT to the start of the .got.plt section instead of the
8462 .got output section.
8463 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
8464 is at sgot->output_section->vma. Set sh_entsize for .got section
8465 in addition to .got.plt.
8466 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
8467 (bfd_section_from_phdr): Likewise.
8468 (map_sections_to_segments): Likewise.
8469 (assign_file_positions_for_segments): Likewise.
8470 (get_program_header_size): Likewise.
8471 * elflink.c (bfd_elf_size_dynamic_sections): Set
8472 elf_tdata (output_bfd)->relro from info->relro.
8473 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
8475 2004-05-08 Alexandre Oliva <aoliva@redhat.com>
8477 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
8478 a zero symndx for which we hadn't accounted a dynamic relocation.
8479 (_frvfdpic_add_rofixup): Likewise.
8481 2004-05-07 Brian Ford <ford@vss.fsi.com>
8482 DJ Delorie <dj@redhat.com>
8484 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
8485 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
8486 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
8487 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
8489 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
8491 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
8492 immediately if there's no link info.
8493 (elf32_frvfdpic_copy_private_bfd_data): New.
8494 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
8496 2004-05-06 Zack Weinberg <zack@codesourcery.com>
8498 * dwarf2.c (add_line_info): Also set info->filename to NULL if
8499 filename argument is null; do not call strlen on a null pointer.
8501 2004-05-06 Daniel Jacobowitz <drow@mvista.com>
8503 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
8506 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
8508 * configure.in (bfd_elf32_frvfdpic_vec): New.
8509 * configure: Rebuilt.
8510 * targets.c (bfd_elf32_frvfdpic_vec): New.
8511 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
8513 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
8514 frvfdpic instead of frv. Rearrange elf-target macros such that
8515 the FDPIC-specific ones are only defined for this new target
8517 (bfd_elf32_frvfdpic_vec): Declare.
8519 (elf32_frv_relocate_section): Use it to enable segment checking
8520 and to control rofixup emission. Add output section vma to
8521 applied relocation in non-LOAD non-ALLOC sections. Use
8522 _bfd_error_handler for errors.
8523 (_frv_create_got_section): Create .rel.got and .rofixup only in
8524 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
8526 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
8527 (elf32_frvfdpic_modify_segment_map): Likewise.
8528 (elf32_frv_finish_dynamic_sections): New, do-nothing.
8529 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
8530 error message if we miscompute the rofixup size.
8531 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
8532 (frvfdpic_elf_encode_eh_address): Likewise.
8533 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
8534 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
8535 relocs. Reject unknown relocation types.
8536 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
8537 (frv_elf_merge_private_bfd_data): Likewise.
8538 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
8539 0x4000 for newly-added elf32-frvfdpic.
8541 2004-05-05 Nick Clifton <nickc@redhat.com>
8544 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
8545 returning NULL as most users of this function do not check its
8547 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
8548 of bfd_cache_lookup().
8549 * sco5-core.c (sco5_core_file_p): Likewise.
8550 * trad-core.c (trad_unix_core_file_p): Likewise.
8552 2004-05-05 Nick Clifton <nickc@redhat.com>
8554 * cache.c (bfd_cache_lookup): Improve formatting.
8555 * archive.c: Fix formatting.
8557 2004-05-05 Peter Barada <peter@the-baradas.com>
8559 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
8560 * cpu-m68k.c(bfd_m68k_arch): Likewise.
8561 * bfd-in2.h(bfd_architecture): Regenerate.
8563 2004-05-03 Alan Modra <amodra@bigpond.net.au>
8565 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
8567 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
8568 those against discarded link-once and SEC_MERGE section symbols.
8570 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
8572 * section.c (bfd_get_section_by_name_if): New.
8573 * bfd-in2.h: Regenerated.
8575 2004-05-02 Alan Modra <amodra@bigpond.net.au>
8577 * som.c (som_bfd_is_group_section): Define.
8579 2004-05-01 Alan Modra <amodra@bigpond.net.au>
8581 * section.c (bfd_make_section_anyway): Copy the whole
8582 bfd_hash_entry, not just "next" from existing entry.
8584 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
8586 * elf.c (bfd_section_from_shdr): Maintain the section order in
8588 (special_sections): Add ".note.GNU-stack".
8589 (elf_fake_sections): Handle section group for relocatable
8592 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
8594 * section.c (bfd_sections_find_if): New.
8595 * bfd-in2.h: Regenerated.
8597 2004-04-30 Alan Modra <amodra@bigpond.net.au>
8599 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
8601 * elf-bfd.h (bfd_elf_is_group_section): Declare.
8602 * elf.c (bfd_elf_is_group_section): New function.
8603 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
8604 * section.c (bfd_generic_is_group_section): New function.
8605 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
8606 (BFD_JUMP_TABLE_LINK): Adjust.
8607 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
8608 * aout-target.h (MY_bfd_is_group_section): Define.
8609 * aout-tic30.c (MY_bfd_is_group_section): Define.
8610 * bfd.c (bfd_is_group_section): Define.
8611 * binary.c (binary_bfd_is_group_section): Define.
8612 * bout.c (b_out_bfd_is_group_section): Define.
8613 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
8614 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
8615 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
8616 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
8617 * coffcode.h (coff_bfd_is_group_section): Define.
8618 * i386msdos.c (msdos_bfd_is_group_section): Define.
8619 * i386os9k.c (os9k_bfd_is_group_section): Define.
8620 * ieee.c (ieee_bfd_is_group_section): Define.
8621 * ihex.c (ihex_bfd_is_group_section): Define.
8622 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
8623 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
8624 * mmo.c (mmo_bfd_is_group_section): Define.
8625 * nlm-target.h (nlm_bfd_is_group_section): Define.
8626 * oasys.c (oasys_bfd_is_group_section): Define.
8627 * pef.c (bfd_pef_bfd_is_group_section): Define.
8628 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
8629 * srec.c (srec_bfd_is_group_section): Define.
8630 * tekhex.c (tekhex_bfd_is_group_section): Define.
8631 * versados.c (versados_bfd_is_group_section): Define.
8632 * vms.c (vms_bfd_is_group_section): Define.
8633 * xsym.c (bfd_sym_bfd_is_group_section): Define.
8634 * bfd-in2.h: Regenerate.
8635 * libbfd.h: Regenerate.
8637 2004-04-30 Alan Modra <amodra@bigpond.net.au>
8639 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
8641 2004-04-30 Hans-Peter Nilsson <hp@axis.com>
8643 * configure.in: Update version to 2.15.91.
8644 * configure: Regenerate.
8646 2004-04-29 Brian Ford <ford@vss.fsi.com>
8648 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
8649 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
8650 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
8651 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
8652 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
8653 .gnu.linkonce.wi. sections.
8654 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
8655 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
8657 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
8658 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
8660 2004-04-28 Chris Demetriou <cgd@broadcom.com>
8662 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
8663 * bfd-in2.h: Regenerate.
8664 * libbfd.h: Likewise.
8666 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8668 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
8670 (setup_sections): Use som_subspace_dictionary_record struct instead
8671 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
8672 is_comdat, is_common or dup_common.
8673 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
8674 is_comdat, is_common and dup_common in section subspace_dict from
8676 (som_begin_writing): Use som_subspace_dictionary_record struct.
8677 (som_finish_writing): Likewise.
8678 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
8679 is_common and dup_common flags in info for symbol. Add comment
8680 regarding linker support for these fields. Slightly reorganize
8682 (som_build_and_write_symbol_table): Set is_comdat, is_common and
8683 dup_common fields in symbol table from symbol info.
8684 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
8685 arguments. Set corresponding fields in copy_data. Change all callers.
8686 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
8688 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
8689 * som.h (som_subspace_dictionary_record): Define.
8690 (som_copyable_section_data_struct): Add is_comdat, is_common and
8692 (som_section_data_struct): Use som_subspace_dictionary_record struct
8693 instead of subspace_dictionary_record.
8694 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
8696 2004-04-27 Bob Wilson <bob.wilson@acm.org>
8698 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
8699 if set. Check reloc_done flag before applying relocations. Use
8700 output addresses, both when applying relocations and when comparing
8701 against the specified section.
8702 (elf_xtensa_relocate_section): Use output address to check if dynamic
8703 reloc is in a literal pool. Set section's reloc_done flag.
8705 2004-04-27 H.J. Lu <hongjiu.lu@intel.com>
8707 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
8708 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
8710 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
8713 2004-04-27 Alan Modra <amodra@bigpond.net.au>
8715 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
8716 structure field removed in 2004-04-24 patch.
8717 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
8719 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
8721 * elf32-arm.h (elf32_arm_section_flags): Likewise.
8722 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
8723 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
8724 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
8725 field before calling elf_backend_section_flags.
8727 2004-04-24 Chris Demetriou <cgd@broadcom.com>
8729 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
8730 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
8731 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
8732 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
8733 and BFD_RELOC_32_PCREL.
8734 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
8735 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
8736 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
8737 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
8738 (mips_elf_next_relocation): Move comment about matching HI/LO
8740 (_bfd_mips_elf_relocate_section): Here. Remove handling for
8741 R_MIPS_GNU_REL_HI16.
8743 2004-04-23 Chris Demetriou <cgd@broadcom.com>
8745 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
8746 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
8747 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
8748 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
8749 and update comments to reflect current usage.
8750 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
8751 and MIPS_R_SWITCH, as well as several empty entries. Update comment
8753 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
8754 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
8755 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
8756 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
8757 type number to be MIPS_R_PCREL16.
8758 (mips_relocate_section): Remove support for link-time relaxation
8759 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
8760 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
8761 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
8762 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
8763 relaxation of branches used by embedded-PIC.
8764 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
8765 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
8766 related members, update comment.
8767 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
8768 code related to embedded-PIC.
8769 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
8770 initialization of now-removed 'adjust' member of
8771 'struct ecoff_debug_info'.
8773 2004-04-23 Chris Demetriou <cgd@broadcom.com>
8775 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
8777 2004-04-21 Philip Blundell <pb@nexus.co.uk>
8779 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
8780 relocs for locally defined symbols during -shared final link.
8781 (elf32_arm_final_link_relocate): Likewise.
8783 2004-04-22 Jakub Jelinek <jakub@redhat.com>
8785 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
8786 ELF_LINK_POINTER_EQUALITY_NEEDED.
8787 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
8788 if r_type is not R_X86_64_PC32.
8789 (elf64_x86_64_finish_dynamic_symbol): If
8790 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
8793 2004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8795 * elf32-sh.c (sh_elf_plt_sym_val): New function.
8796 (elf_backend_plt_sym_val): Define.
8798 2004-04-22 Andrew Cagney <cagney@redhat.com>
8800 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
8802 2004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8804 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
8806 * som.c (som_set_section_contents): Constantify second argument.
8807 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
8808 (som_object_setup): Rework to avoid warning.
8809 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
8812 2004-04-22 Andrew Cagney <cagney@redhat.com>
8814 * cache.c (bfd_cache_close): Check for a previously closed file.
8816 2004-04-22 Jakub Jelinek <jakub@redhat.com>
8818 * bfd.c (bfd_get_synthetic_symtab): Define.
8819 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
8820 NAME##_get_synthetic_symtab.
8821 (struct bfd_target): Add _bfd_get_synthetic_symtab.
8822 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
8823 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
8825 (_bfd_elf_get_synthetic_symtab): New prototype.
8826 * elfcode.h (elf_get_synthetic_symtab): Define.
8827 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
8828 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
8829 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
8830 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
8831 * bfd-in2.h: Rebuilt.
8832 * libbfd.h: Rebuilt.
8833 * elf32-i386.c (elf_i386_plt_sym_val): New function.
8834 (elf_backend_plt_sym_val): Define.
8835 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
8836 (elf_backend_plt_sym_val): Define.
8837 * elf32-s390.c (elf_s390_plt_sym_val): New function.
8838 (elf_backend_plt_sym_val): Define.
8839 * elf64-s390.c (elf_s390_plt_sym_val): New function.
8840 (elf_backend_plt_sym_val): Define.
8841 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
8842 (elf_backend_plt_sym_val): Define.
8843 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
8844 (elf_backend_plt_sym_val): Define.
8845 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
8846 (elf_backend_plt_sym_val): Define.
8847 * aout-target.h (MY_get_synthetic_symtab): Define.
8848 * aout-tic30.c (MY_get_synthetic_symtab): Define.
8849 * coff-rs6000.c (rs6000coff_vec): Add
8850 _bfd_nodynamic_get_synthetic_symtab.
8851 (pmac_xcoff_vec): Likewise.
8852 * coff64-rs6000.c (rs6000coff64_vec): Add
8853 _bfd_nodynamic_get_synthetic_symtab.
8854 (aix5coff64_vec): Likewise.
8855 * sunos.c (MY_get_synthetic_symtab): Define.
8856 * vms.c (vms_get_synthetic_symtab): Define.
8858 2004-04-22 Nick Clifton <nickc@redhat.com>
8860 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
8862 2004-04-22 Peter Barada <peter@the-baradas.com>
8864 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
8865 * bfd2-in.h: Regenerate.
8866 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
8868 2004-04-21 Chris Demetriou <cgd@broadcom.com>
8870 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
8871 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
8872 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
8873 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
8874 * bfd-in2.h: Regenerate.
8876 2004-04-21 Bob Wilson <bob.wilson@acm.org>
8878 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
8879 require relocations against a weak symbol to reference the same
8880 symbol hash entry if not a final, static link.
8881 (get_cached_value, add_value_map): Add final_static_link argument.
8882 (remove_literals): Pass final_static_link argument as needed.
8884 2004-04-21 Andrew Cagney <cagney@redhat.com>
8886 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
8887 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
8888 (opncls_bwrite, opncls_bclose, opncls_bflush)
8889 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
8890 bfd iovec that uses function callbacks.
8891 (bfd_close): Use the iovec's bclose.
8892 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
8893 (cache_bclose, cache_bflush, cache_bstat)
8894 (cache_iovec): New functions and global variable, implement a
8895 cache "iovec", where applicable set bfd_error.
8896 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
8897 * bfdio.c (struct bfd_iovec): Define.
8898 (real_read): Delete function.
8899 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
8900 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
8901 assume that bread and bwrite set bfd_error.
8902 * bfd.c (struct bfd): Add "iovec", update comments.
8903 * bfd-in2.h, libbfd.h: Re-generate.
8905 2004-04-21 Andrew Cagney <cagney@redhat.com>
8907 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
8909 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
8911 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
8912 (bfd_elf_gc_sections): Fail if a shared object is being created.
8913 Do not fail if dynamic sections have been created. Instead call
8914 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
8915 dynamically referenced symbols. Do not mark the whole graph
8916 rooted at .eh_frame, only the section proper.
8918 2004-04-20 DJ Delorie <dj@redhat.com>
8920 * reloc.c: Add BFD_RELOC_32_SECREL.
8921 * bfd-in2.h: Regenerate.
8922 * libbfd.h: Likewise.
8923 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
8924 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
8925 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
8927 2004-04-19 Jakub Jelinek <jakub@redhat.com>
8929 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
8930 relocs against hidden/protected undefweak symbols properly.
8931 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
8933 2004-04-18 Mark Kettenis <kettenis@gnu.org>
8935 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
8936 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
8939 2004-04-17 Brian Ford <ford@vss.fsi.com>
8941 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
8942 filepos for the SizeOfHeaders field.
8943 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
8945 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
8947 2004-04-16 Alan Modra <amodra@bigpond.net.au>
8949 * simple.c (bfd_simple_get_relocated_section_contents): Don't
8950 change reloc_done. Set and restore _cooked_size.
8953 2004-04-15 Mark Kettenis <kettenis@gnu.org>
8955 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
8958 2004-04-15 Nick Clifton <nickc@redhat.com>
8960 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
8962 2004-04-15 Alan Modra <amodra@bigpond.net.au>
8964 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
8966 2004-04-15 H.J. Lu <hongjiu.lu@intel.com>
8968 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
8969 when it is a definition.
8971 2004-04-14 Alan Modra <amodra@bigpond.net.au>
8973 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
8974 when statically linking PIC code.
8975 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
8977 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
8979 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
8980 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
8981 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
8982 * configure: Regenerate.
8984 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
8986 * elflink.c: Include libiberty.h.
8987 * Makefile.am (elflink.lo): Depend on libiberty.h.
8988 * Makefile.in: Regenerate.
8990 2004-04-06 Daniel Jacobowitz <drow@mvista.com>
8992 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
8995 2004-04-05 H.J. Lu <hongjiu.lu@intel.com>
8997 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
8998 reserve the memory for dynamic linker
9000 2004-04-05 Mark Kettenis <kettenis@gnu.org>
9002 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
9003 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
9005 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
9007 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
9008 RELOC_FOR_GLOBAL_SYMBOL.
9009 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
9011 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
9013 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
9014 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
9016 2004-04-01 Paul Brook <paul@codesourcery.com>
9018 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
9019 * elf32-arm.h (struct elf32_elf_section_map): New.
9020 (struct _arm_elf_section_data): New.
9021 (elf32_arm_section_data): Define.
9022 (struct elf32_arm_link_hash_table): Add byteswap_code.
9023 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
9024 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
9025 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
9026 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
9027 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
9028 (bfd_elf32_new_section_hook, elf_backend_write_section,
9029 elf_backend_link_output_symbol_hook): Define.
9031 2004-04-01 Andy Chittenden <achittenden@bluearc.com>
9033 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
9034 that keeps the characters in a B_INCL..B_EINCL range.
9035 (_bfd_link_section_stabs): When computing the sum of the
9036 characters in a B_INCL..B_EINCL range also keep a copy of those
9037 characters. Use this information to distinguish between
9038 include sections that have the same sum and the same length
9039 but which are nevertheless unique.
9041 2004-03-31 Paul Brook <paul@codesourcery.com>
9043 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
9044 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
9046 2004-03-31 Andy Chittenden <achittenden@bluearc.com>
9048 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
9049 to 'sum_chars' and add field 'num_chars'.
9050 (_bfd_link_section_stabs): When computing the sum of the
9051 characters in a B_INCL..B_EINCL range also keep a count of the
9052 number of characters. Use this information to help distinguish
9053 between include sections when have the same sum but which
9054 nevertheless are still unique.
9056 2004-03-31 Mattias Engdegård <mattias@virtutech.se>
9058 * stabs.c (_bfd_link_section_stabs): Do not skip N_EXCL stabs.
9060 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
9061 Tomer Levi <Tomer.Levi@nsc.com>
9063 * Makefile.am (ALL_MACHINES): Add cpu-cr16c.lo.
9064 (ALL_MACHINES_CFILES): Add cpu-cr16c.c.
9065 (BFD32_BACKENDS): Add elf32-cr16c.lo.
9066 (BFD32_BACKENDS_CFILES): Add elf32-cr16c.c.
9067 (cpu-cr16c.lo): New target.
9068 (elf32-cr16c.lo): Likewise.
9069 * Makefile.in: Regenerate.
9070 * archures.c (bfd_architecture): Add bfd_{arch,mach}_cr16c.
9071 (bfd_archures_list): Add bfd_cr16c_arch.
9072 * config.bfd: Handle cr16c-*-elf*.
9073 * configure.in: Handle bfd_elf32_cr16c_vec.
9074 * configure: Regenerate.
9075 * reloc.c: Add BFD_RELOC_16C_NUM08, BFD_RELOC_16C_NUM08_C,
9076 BFD_RELOC_16C_NUM16, BFD_RELOC_16C_NUM16_C,
9077 BFD_RELOC_16C_NUM32, BFD_RELOC_16C_NUM32_C,
9078 BFD_RELOC_16C_DISP04, BFD_RELOC_16C_DISP04_C,
9079 BFD_RELOC_16C_DISP08, BFD_RELOC_16C_DISP08_C,
9080 BFD_RELOC_16C_DISP16, BFD_RELOC_16C_DISP16_C,
9081 BFD_RELOC_16C_DISP24, BFD_RELOC_16C_DISP24_C,
9082 BFD_RELOC_16C_DISP24a, BFD_RELOC_16C_DISP24a_C,
9083 BFD_RELOC_16C_REG04, BFD_RELOC_16C_REG04_C,
9084 BFD_RELOC_16C_REG04a, BFD_RELOC_16C_REG04a_C,
9085 BFD_RELOC_16C_REG14, BFD_RELOC_16C_REG14_C,
9086 BFD_RELOC_16C_REG16, BFD_RELOC_16C_REG16_C,
9087 BFD_RELOC_16C_REG20, BFD_RELOC_16C_REG20_C,
9088 BFD_RELOC_16C_ABS20, BFD_RELOC_16C_ABS20_C,
9089 BFD_RELOC_16C_ABS24, BFD_RELOC_16C_ABS24_C,
9090 BFD_RELOC_16C_IMM04, BFD_RELOC_16C_IMM04_C,
9091 BFD_RELOC_16C_IMM16, BFD_RELOC_16C_IMM16_C,
9092 BFD_RELOC_16C_IMM20, BFD_RELOC_16C_IMM20_C,
9093 BFD_RELOC_16C_IMM24, BFD_RELOC_16C_IMM24_C,
9094 BFD_RELOC_16C_IMM32, BFD_RELOC_16C_IMM32_C.
9095 * targets.c (bfd_elf32_cr16c_vec): Declare.
9096 (bfd_target_vector): Add bfd_elf32_cr16c_vec.
9097 * cpu-cr16c.c: New file.
9098 * elf32-cr16c.c: Likewise.
9099 * libbfd.h: Regenerate.
9100 * bfd-in2.h: Likewise.
9102 2004-03-30 Jakub Jelinek <jakub@redhat.com>
9104 * elf.c (map_sections_to_segments): Fix handling of .tbss.
9106 2004-03-27 Alan Modra <amodra@bigpond.net.au>
9108 * Makefile.am: Remove all mention of elflink.h.
9109 * Makefile.in: Regenerate.
9110 * bfd-in.h (bfd_elf_discard_info): Declare.
9111 (bfd_elf32_discard_info, bfd_elf64_discard_info): Delete.
9112 * bfd-in2.h: Regenerate.
9113 * elf-bfd.h (bfd_elf32_print_symbol, bfd_elf64_print_symbol,
9114 bfd_elf32_link_record_dynamic_symbol,
9115 bfd_elf64_link_record_dynamic_symbol,
9116 _bfd_elf_link_record_dynamic_symbol, bfd_elf32_bfd_final_link,
9117 bfd_elf64_bfd_final_link, elf_link_record_local_dynamic_symbol,
9118 _bfd_elf32_link_record_local_dynamic_symbol,
9119 _bfd_elf64_link_record_local_dynamic_symbol,
9120 _bfd_elf32_gc_sections, _bfd_elf32_gc_common_finalize_got_offsets,
9121 _bfd_elf32_gc_common_final_link, _bfd_elf64_gc_common_final_link,
9122 _bfd_elf32_gc_record_vtinherit, _bfd_elf32_gc_record_vtentry,
9123 _bfd_elf64_gc_sections, _bfd_elf64_gc_common_finalize_got_offsets,
9124 _bfd_elf64_gc_record_vtinherit, _bfd_elf64_gc_record_vtentry,
9125 _bfd_elf32_reloc_symbol_deleted_p,
9126 _bfd_elf64_reloc_symbol_deleted_p): Delete.
9127 (bfd_elf_link_record_dynamic_symbol,
9128 bfd_elf_link_record_local_dynamic_symbol,
9129 bfd_elf_final_link, bfd_elf_gc_sections,
9130 bfd_elf_gc_record_vtinherit, bfd_elf_gc_record_vtentry,
9131 bfd_elf_gc_common_finalize_got_offsets, bfd_elf_gc_common_final_link,
9132 bfd_elf_reloc_symbol_deleted_p): Declare.
9133 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
9134 * elf32-arm.h: Update for changed function names. Remove local
9135 WILL_CALL_FINISH_DYNAMIC_SECTION define.
9136 * elf-hppa.h, elf-m10300.c, elf32-cris.c, elf32-d10v.c, elf32-dlx.c,
9137 * elf32-fr30.c, elf32-frv.c, elf32-h8300.c, elf32-hppa.c, elf32-i386.c,
9138 * elf32-iq2000.c, elf32-m32r.c, elf32-m68hc1x.c, elf32-m68k.c,
9139 * elf32-mcore.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
9140 * elf32-sh.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
9141 * elf32-xstormy16.c, elf32-xtensa.c, elf64-alpha.c, elf64-hppa.c,
9142 * elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
9143 * elf64-x86-64.c, elfxx-ia64.c, elfxx-mips.c, elfxx-target.h: Likewise.
9144 * elfxx-target.h (bfd_elfNN_bfd_final_link): Define.
9145 (bfd_elfNN_print_symbol): Define.
9146 * elfcode.h: Don't include elflink.h.
9147 (elf_bfd_discard_info, elf_reloc_symbol_deleted_p,
9148 elf_link_record_dynamic_symbol, elf_bfd_final_link, elf_gc_sections,
9149 elf_gc_common_finalize_got_offsets, elf_gc_common_final_link,
9150 elf_gc_record_vtinherit, elf_gc_record_vtentry,
9151 elf_link_record_local_dynamic_symbol): Don't define.
9152 * elflink.c: Update for changed function names. Move elflink.h
9154 * elflink.h: Delete file.
9155 * po/SRC-POTFILES.in: Regenerate.
9156 * po/bfd.pot: Regenerate.
9158 2004-03-27 Alan Modra <amodra@bigpond.net.au>
9160 * elf64-mmix.c (mmix_elf_relocate_section): Restore code setting
9161 "name" for global syms accidentally removed in 2004-03-20 change.
9163 2004-03-27 Alan Modra <amodra@bigpond.net.au>
9165 * elf-bfd.h (struct elf_reloc_cookie): Add r_sym_shift field.
9166 * elflink.h: Replace all occurrences of sizeof (Elf_External_*)
9167 where Elf_External_* is different for 64 and 32 bit, with
9168 corresponding elf_size_info field.
9169 (struct elf_final_link_info): Use "bfd_byte *" instead
9170 of "Elf_External_Sym *" for external_syms and symbuf.
9171 (elf_link_adjust_relocs): Set up r_type_mask and r_sym_shift local
9172 vars and use instead of ELF_R_INFO and ELF_R_TYPE macros.
9173 (struct elf_link_sort_rela): Add "sym_mask" alias for "offset".
9174 (elf_link_sort_cmp1): Use sym_mask field instead of ELF_R_SYM.
9175 (elf_link_sort_cmp2): Adjust.
9176 (elf_link_sort_relocs): Set up r_sym_mask local var instead of
9177 using ELF_R_SYM macro. Set u.sym_mask.
9178 (elf_bfd_final_link): Call _bfd_elf_stringtab_init instead of macro
9179 version, elf_stringtab_init. Ditto for bfd_section_from_elf_index
9180 vs. section_from_elf_index. Adjust Elf_External_Sym pointer
9181 arithmetic. Pass bed to elf_link_flush_output_syms. Adjust
9182 Elf_External_Dyn pointer arithmentic. Use bed swap_dyn_in and
9183 swap_syn_out functions. Rearrange dyn swap in/out switch.
9184 (elf_link_output_sym): Adjust Elf_External_Sym pointer arithmentic.
9185 Pass bed to elf_link_flush_output_syms. Use bed swap_symbol_out.
9186 (elf_link_flush_output_syms): Add elf_backend_data arg.
9187 (elf_link_check_versioned_symbol): Likewise.
9188 (elf_link_output_extsym): Pass bed to elf_link_check_versioned_symbol.
9189 Adjust Elf_External_Sym pointer arithmetic. Use bed swap_symbol_out.
9190 (elf_link_input_bfd): Use bfd_section_from_elf_index. Set up
9191 r_type_mask and r_sym_shift local vars and use instead of ELF_R_SYM,
9192 ELF_R_TYPE and ELF_R_INFO macros.
9193 (elf_reloc_link_order): Select ELF32_R_INFO or ELF64_R_INFO invocation
9194 based on size rather than using ELF_R_INFO.
9195 (elf_gc_mark): Set up r_sym_shift local var and use instead of
9197 (struct alloc_got_off_arg): New.
9198 (elf_gc_common_finalize_got_offsets): Use elf_size_info instead of
9199 ARCH_SIZE. Pass get entry size down to elf_gc_allocate_got_offsets.
9200 (elf_gc_allocate_got_offsets): Adjust.
9201 (elf_reloc_symbol_deleted_p): Usee cookie.r_sym_shift instead of
9202 ELF_R_SYM. Use bfd_section_from_elf_index.
9203 (elf_bfd_discard_info): Set cookie.r_sym_shift.
9204 * elfcode.h (elf_stringtab_init, section_from_elf_index): Delete.
9205 (elf_slurp_symbol_table): Use bfd_section_from_elf_index.
9207 2004-03-26 Stan Shebs <shebs@apple.com>
9209 Remove MPW support, no longer used.
9210 * config.bfd (powerpc-*-mpw*): Remove configuration.
9211 * mpw-config.in, mpw-make.sed: Remove files.
9212 * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
9214 2004-03-26 Alan Modra <amodra@bigpond.net.au>
9216 * elf64-ppc.c (elf_backend_add_symbol_hook): Define.
9217 (ppc64_elf_add_symbol_hook): New function.
9218 * elf-bfd.h (struct elf_backend_data <elf_add_symbol_hook>): Remove
9219 const from Elf_Internal_Sym param.
9220 * elflink.c (elf_link_add_object_symbols): Adjust.
9221 * elf-hppa.h (elf_hppa_add_symbol_hook): Adjust.
9222 * elf32-frv.c (elf32_frv_add_symbol_hook): Adjust.
9223 * elf32-i370.c (elf_backend_add_symbol_hook): Adjust.
9224 * elf32-m32r.c (m32r_elf_add_symbol_hook): Adjust.
9225 * elf32-m68hc1x.c (elf32_m68hc11_add_symbol_hook): Adjust.
9226 * elf32-m68hc1x.h (elf32_m68hc11_add_symbol_hook): Adjust.
9227 * elf32-ppc.c (ppc_elf_add_symbol_hook): Adjust.
9228 * elf32-sh64.c (sh64_elf_add_symbol_hook): Adjust.
9229 * elf32-v850.c (v850_elf_add_symbol_hook): Adjust.
9230 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Adjust.
9231 * elf64-mmix.c (mmix_elf_add_symbol_hook): Adjust.
9232 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Adjust.
9233 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Adjust.
9234 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Adjust.
9235 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Adjust.
9236 * elfxx-mips.h (_bfd_mips_elf_add_symbol_hook): Adjust.
9238 2004-03-26 Alan Modra <amodra@bigpond.net.au>
9240 * elfxx-target.h (bfd_elfNN_bfd_link_add_symbols): Define.
9241 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): Delete.
9242 (_bfd_elf_sort_symbol, _bfd_elf_add_dt_needed_tag): Delete.
9243 (_bfd_elf_finalize_dynstr, bfd_elf32_bfd_link_add_symbols): Delete.
9244 (bfd_elf64_bfd_link_add_symbols): Delete.
9245 (bfd_elf_link_add_symbols): Declare.
9246 * elfcode.h (elf_bfd_link_add_symbols): Delete.
9247 * elflink.c: Include safe-ctype.h.
9248 (elf_add_dt_needed_tag): Rename from _bfd_elf_add_dt_needed_tag,
9250 (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static.
9251 (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make
9253 (elf_link_add_archive_symbols): Rename from
9254 _bfd_elf_link_add_archive_symbols, make static.
9255 (elf_link_add_object_symbols): New function. Corresponding
9256 elflink.h function converted to use elf_size_info.
9257 (bfd_elf_link_add_symbols): Likewise.
9258 (bfd_elf_size_dynamic_sections): Adjust.
9259 * elflink.h (elf_bfd_link_add_symbols): Delete.
9260 (elf_link_add_object_symbols): Delete.
9261 * elf32-gen.c (elf32_generic_link_add_symbols): Call
9262 bfd_elf_link_add_symbols.
9263 * elf64-gen.c (elf64_generic_link_add_symbols): Likewise.
9265 2004-03-25 Alan Modra <amodra@bigpond.net.au>
9267 * elflink.h (elf_link_add_object_symbols): Add DT_NEEDED for as-needed
9268 and chained shared libs only if dynsym. Clear dynsym on forced-local.
9270 * elf-bfd.h (_bfd_elf_add_dynamic_entry): Declare.
9271 (bfd_elf32_add_dynamic_entry, bfd_elf64_add_dynamic_entry): Delete.
9272 (_bfd_elf_add_dt_needed_tag): Declare.
9273 (_bfd_elf_sort_symbol): Declare.
9274 (_bfd_elf_finalize_dynstr): Declare.
9275 (RELOC_FOR_GLOBAL_SYM): Formatting.
9276 * elfcode.h (elf_add_dynamic_entry): Delete.
9277 * elflink.c (_bfd_elf_add_dynamic_entry): New function. Corresponding
9278 elflink.h function converted to use elf_size_info.
9279 (_bfd_elf_add_dt_needed_tag): Likewise.
9280 (_bfd_elf_sort_symbol): Likewise.
9281 (_bfd_elf_finalize_dynstr): Likewise.
9282 (compute_bucket_count): Likewise.
9283 (bfd_elf_size_dynamic_sections): Likewise. Check result of
9284 _bfd_elf_strtab_add before calling _bfd_elf_strtab_addref.
9285 (elf_adjust_dynstr_offsets, elf_collect_hash_codes): Moved from..
9286 * elflink.h: ..here.
9287 (sort_symbol, add_dt_needed_tag): Delete.
9288 (elf_add_dynamic_entry, elf_finalize_dynstr): Delete.
9289 (compute_bucket_count, NAME(bfd_elf,size_dynamic_sections)): Delete.
9291 * elf32-arm.h (add_dynamic_entry): Update. Remove casts.
9292 * elf32-cris.c (add_dynamic_entry): Likewise.
9293 * elf32-hppa.c (add_dynamic_entry): Likewise.
9294 * elf32-i370.c (add_dynamic_entry): Likewise.
9295 * elf32-i386.c (add_dynamic_entry): Likewise.
9296 * elf32-m32r.c (add_dynamic_entry): Likewise.
9297 * elf32-m68k.c (add_dynamic_entry): Likewise.
9298 * elf32-ppc.c (add_dynamic_entry): Likewise.
9299 * elf32-s390.c (add_dynamic_entry): Likewise.
9300 * elf32-sh.c (add_dynamic_entry): Likewise.
9301 * elf32-sparc.c (add_dynamic_entry): Likewise.
9302 * elf32-vax.c (add_dynamic_entry): Likewise.
9303 * elf32-xtensa.c (add_dynamic_entry): Likewise.
9304 * elf64-alpha.c (add_dynamic_entry): Likewise.
9305 * elf64-hppa.c (add_dynamic_entry): Likewise.
9306 * elf64-ppc.c (add_dynamic_entry): Likewise.
9307 * elf64-s390.c (add_dynamic_entry): Likewise.
9308 * elf64-sparc.c (add_dynamic_entry): Likewise.
9309 * elf64-x86-64.c (add_dynamic_entry): Likewise.
9310 * elfxx-ia64.c (add_dynamic_entry): Likewise.
9311 * elfxx-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
9312 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
9313 * elf32-frv.c (elf32_frv_size_dynamic_sections): Likewise.
9314 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
9316 2004-03-23 Paul Brook <paul@codesourcery.com>
9318 * elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
9320 2004-03-22 Bob Wilson <bob.wilson@acm.org>
9322 * elf32-xtensa.c (elf_xtensa_check_relocs): Remove code to read
9323 literal tables and check for relocs outside of literal pools.
9324 (elf_xtensa_make_sym_local): Don't clear ELF_LINK_NON_GOT_REF flag.
9325 (elf_xtensa_fix_refcounts): Don't check ELF_LINK_NON_GOT_REF or
9327 (elf_xtensa_size_dynamic_sections): Don't add DT_TEXTREL entry.
9328 (elf_xtensa_relocate_section): Read literal tables and check for
9329 dynamic relocations in read-only sections and not in literal pools.
9331 2004-03-23 Alan Modra <amodra@bigpond.net.au>
9334 * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char.
9336 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
9338 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
9339 R_CRIS_16_GOTPLT>: Also error if there's no PLT for a symbol
9340 not defined by the executable, or defined in a DSO.
9341 <eliding run-time relocation of .got>: Initialize GOT entry for a
9342 function symbol or ELF_LINK_HASH_NEEDS_PLT statically in an
9344 (cris_elf_gc_sweep_hook): Improve fallthrough marking.
9345 (elf_cris_try_fold_plt_to_got): Improve head comment. Do not fold
9346 a PLT reloc to GOT for an executable.
9347 (elf_cris_adjust_dynamic_symbol): Only fold a .got.plt entry with
9348 .got for a DSO and explain why.
9349 (elf_cris_discard_excess_program_dynamics): Also lose GOT-relocs
9350 and unreferenced symbols for which a PLT is defined. Adjust
9351 dynamic-symbol pruning correspondingly, to make sure we don't lose
9352 a dynamic symbol also defined by a DSO.
9354 2004-03-22 Alan Modra <amodra@bigpond.net.au>
9356 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Add input_bfd, input_section
9357 and rel args. Group input and output args. Wrap to 80 columns.
9358 * elf-m10200.c, elf-m10300.c, elf32-arm.h, elf32-avr.c,
9359 elf32-cris.c, elf32-d10v.c, elf32-fr30.c, elf32-h8300.c,
9360 elf32-hppa.c, elf32-i386.c, elf32-i860.c, elf32-ip2k.c,
9361 elf32-iq2000.c, elf32-m68hc1x.c, elf32-m68k.c, elf32-mcore.c,
9362 elf32-msp430.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
9363 elf32-sparc.c, elf32-v850.c, elf32-vax.c, elf32-xstormy16.c,
9364 elf32-xtensa.c, elf64-alpha.c, elf64-mmix.c, elf64-ppc.c,
9365 elf64-s390.c, elf64-sparc.c, elf64-x86-64.c, elfxx-ia64.c: Update
9366 RELOC_FOR_GLOBAL_SYMBOL invocation.
9368 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
9370 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if
9371 unresolved symbols in objects aren't allowed.
9373 * elf-hppa.h (elf_hppa_relocate_section): Properly handle
9375 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
9376 (elf_hppa_unmark_useless_dynamic_symbols):
9377 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
9378 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
9379 (elf32_hppa_relocate_section): Likewise.
9380 * elf32-i370.c (i370_elf_relocate_section): Likewise.
9381 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
9382 * elf32-sh.c (sh_elf_relocate_section): Likewise.
9383 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
9384 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
9386 * elf-m10200.c (mn10200_elf_relocate_section): Use
9387 RELOC_FOR_GLOBAL_SYMBOL.
9388 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
9389 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
9390 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
9391 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
9392 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
9393 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Likewise.
9394 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
9395 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
9396 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
9397 * elf32-v850.c (v850_elf_relocate_section): Likewise.
9398 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
9399 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
9401 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9403 * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
9404 (final_link_relocate): Likewise.
9405 * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
9406 R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
9408 2004-03-19 Alan Modra <amodra@bigpond.net.au>
9410 * Makefile.am: Run "make dep-am".
9411 * Makefile.in: Regenerate.
9412 * aclocal.m4: Regenerate.
9413 * config.in: Regenerate.
9414 * po/bfd.pot: Regenerate.
9416 2004-03-19 Alan Modra <amodra@bigpond.net.au>
9417 H.J. Lu <hongjiu.lu@intel.com>
9419 * elflink.c (_bfd_elf_merge_symbol): Revert last change. Move
9420 type and size change code to where it was previously. Remove
9421 dt_needed param. Treat old weak syms as strong if new sym is
9422 from a shared lib, even when old sym is from another shared
9423 lib. Remove unnecessary tests of oldweak and newweak. Correct
9425 (_bfd_elf_add_default_symbol): Remove dt_needed param. Update
9426 _bfd_elf_merge_symbol calls.
9427 * elflink.h (elf_link_add_object_symbols): Update calls. Remove
9428 dt_needed local var. Update comments.
9429 * elf-bfd.h (_bfd_elf_merge_symbol): Update prototype.
9430 (_bfd_elf_add_default_symbol): Likewise.
9432 * elflink.c (_bfd_elf_merge_symbol): Reinstate code to handle
9433 strong syms in one shared object overriding weak syms in another.
9435 2004-03-18 Alan Modra <amodra@bigpond.net.au>
9437 * elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field. Add
9438 dyn_lib_class field. Rearrange for better packing.
9439 (elf_dt_soname): Delete.
9440 (elf_dyn_lib_class): Define.
9441 * elf.c (bfd_elf_set_dt_needed_name): Update comment.
9442 (bfd_elf_set_dt_needed_soname): Delete.
9443 (bfd_elf_set_dyn_lib_class): New function.
9444 * elflink.h (add_dt_needed_tag): New function. Split out from..
9445 (elf_link_add_object_symbols): ..here. Rename "name" to "soname".
9446 Use elf_dyn_lib_class to set dt_needed and add_needed. Move fallback
9447 initialization of soname.
9448 (elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of
9450 * bfd-in.h (enum dynamic_lib_link_class): New.
9451 (bfd_elf_set_dt_needed_soname): Delete.
9452 (bfd_elf_set_dyn_lib_class): Declare.
9453 * bfd-in2.h: Regenerate.
9455 * elflink.c (_bfd_elf_merge_symbol): Rewrite weak symbol handling.
9456 (_bfd_elf_add_default_symbol): Remove indirect BFD_ASSERTs.
9457 * elflink.h (elf_link_add_object_symbols): Don't clear dt_needed in
9458 symbol loop. Instead use add_needed to flag tag as written.
9460 2004-03-17 Nathan Sidwell <nathan@codesourcery.com>
9462 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
9463 logic for null_input_bfd detection.
9465 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9467 * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
9469 2004-03-16 Mark Kettenis <kettenis@gnu.org>
9471 * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
9474 2004-03-16 Alan Modra <amodra@bigpond.net.au>
9476 * elflink.c (elf_link_read_relocs_from_section): Don't use
9477 NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check..
9478 (_bfd_elf_link_read_relocs): ..to here.
9479 * elf32-ppc.c (ppc_elf_relax_section): Formatting.
9481 2004-03-16 Alan Modra <amodra@bigpond.net.au>
9483 * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override
9484 values selected in configure.host. Require both to be defined
9485 before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to
9486 corresponding BFD_HOST vars with quotes.
9487 <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc;
9488 Always require BFD_HOST_64_BIT_DEFINED.
9489 <file_ptr type>: Find off_t size before emitting message. Combine
9490 off_t and ftello64 conditional.
9491 * configure: Regenerate.
9493 2004-03-16 Alan Modra <amodra@bigpond.net.au>
9495 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
9496 aliasing warning. Remove trailing whitespace throughout file.
9498 2004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9500 * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of
9501 input_section in calls to get_dyn_name.
9502 * 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
9504 (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
9506 2004-03-15 Alan Modra <amodra@bigpond.net.au>
9508 * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types.
9509 (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here.
9510 (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t.
9511 (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t.
9512 (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t.
9513 * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8.
9514 (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set
9516 * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t.
9517 (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT.
9518 (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
9519 (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT.
9520 (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise.
9521 * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t.
9522 (read_8_bytes, read_indirect_string, read_address): Likewise.
9523 (read_abbrevs, parse_comp_unit): Likewise.
9524 * targets.c (struct bfd_target): Likewise.
9525 * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use.
9526 * hppabsd-core.c: Likewise. Formatting.
9527 * hpux-core.c: Likewise.
9528 * irix-core.c: Likewise.
9529 * netbsd-core.c: Likewise.
9530 * osf-core.c: Likewise.
9531 * ptrace-core.c: Likewise.
9532 * sco5-core.c: Likewise.
9533 * trad-core.c: Likewise.
9534 * configure: Regenerate.
9535 * bfd-in2.h: Regenerate.
9537 2004-03-15 Alan Modra <amodra@bigpond.net.au>
9539 * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
9540 (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
9541 (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
9542 (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
9543 (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
9544 (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
9545 (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
9546 * libbfd.c: Likewise in function definitions.
9547 (bfd_put_8): Mask with 0xff rather than casting to char.
9548 (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
9549 (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
9550 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
9551 (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
9552 (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
9553 (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
9554 * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
9555 (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
9556 (H_GET_64, H_GET_32, H_GET_16): Likewise.
9557 (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
9558 * archive.c (do_slurp_coff_armap): Update swap prototype.
9559 * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
9560 (tic54x_getl_signed_32): Likewise.
9561 (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
9562 * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
9563 * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
9564 (bfd_getp_signed_32, bfd_putp32): Likewise.
9565 * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
9566 bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
9567 bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
9568 bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
9569 bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
9570 bfd_h_getx_signed_16, bfd_h_putx16.
9571 * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
9572 * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
9573 * hpux-core.c: Likewise.
9574 * irix-core.c: Likewise.
9575 * netbsd-core.c: Likewise.
9576 * osf-core.c: Likewise.
9577 * ptrace-core.c: Likewise.
9578 * sco5-core.c: Likewise.
9579 * trad-core.c: Likewise.
9580 * bfd-in2.h: Regenerate.
9582 2004-03-15 Matt Thomas <matt@3am-software.com>
9584 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
9587 2004-03-13 Mark Kettenis <kettenis@gnu.org>
9589 * config.bfd: Add x86_64-*-openbsd*.
9590 * configure.in (x86_64-*-openbsd*): Set COREFILE to
9592 * configure: Regenerate.
9594 2004-03-12 Nick Clifton <nickc@redhat.com>
9595 Dave Murphy <wintermute2k4@ntlworld.com>
9597 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
9598 if the input bfd does not contain any code.
9600 2004-03-09 Steve Ellcey <sje@cup.hp.com>
9602 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
9604 2004-03-05 Fred Fish <fnf@redhat.com>
9606 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
9607 mips16 symbols to be even rather than testing first for even/odd.
9608 (_bfd_mips_elf_link_output_symbol_hook): Ditto.
9610 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
9612 * elf.c (map_sections_to_segments): Ignore .tbss sections for
9615 2004-03-03 Alexandre Oliva <aoliva@redhat.com>
9617 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
9618 undefined symbols as hash_new.
9620 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
9622 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
9624 * elf32-sh.c: Ditto.
9625 * bfd-in2.h: Regenerate.
9627 2004-03-02 Alexandre Oliva <aoliva@redhat.com>
9629 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
9631 (_frv_count_got_plt_entries): Initialize them.
9632 (frv_pic_relocs_info_find): Add insert argument. Adjust all
9634 (frv_pic_relocs_info_for_global): Likewise.
9635 (frv_pic_relocs_info_for_local): Likewise.
9636 (frv_pic_merge_early_relocs_info): New.
9637 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
9639 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
9640 Check that we don't exceed the allocated count for entry.
9641 (_frv_add_rofixup): Likewise.
9642 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
9643 (elf32_frv_finish_dynamic_sections): Improve error message in case
9644 we emit too few rofixup entries.
9646 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
9648 * archures.c (bfd_mach_fr450): New.
9649 * bfd-in2.h: Regenerate.
9650 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
9651 (arch_info_500): Link to it.
9652 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
9653 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
9654 (frv_elf_arch_extension_p): New function.
9655 (frv_elf_merge_private_bfd_data): Use it.
9657 2004-02-28 H.J. Lu <hongjiu.lu@intel.com>
9659 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
9661 * elflink.h (is_global_data_symbol_definition): Moved to
9663 (elf_link_is_defined_archive_symbol): Likewise.
9664 (elf_link_add_archive_symbols): Likewise. Renamed to
9665 _bfd_elf_link_add_archive_symbols.
9667 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
9668 of ELF symbol table entry from backend.
9669 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
9670 instead of elf_link_add_object_symbols.
9672 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
9674 * elf-bfd.h (struct elf_backend_data): Added
9675 elf_backend_can_make_relative_eh_frame,
9676 elf_backend_can_make_lsda_relative_eh_frame and
9677 elf_backend_encode_eh_address.
9678 (_bfd_elf_encode_eh_address): Declare.
9679 (_bfd_elf_can_make_relative): Declare.
9680 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
9681 hooks to decide whether to attempt to make_relative and
9683 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
9684 (_bfd_elf_can_make_relative): New.
9685 (_bfd_elf_encode_eh_address): New.
9686 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
9687 (frv_elf_encode_eh_address): New.
9688 (elf_backend_can_make_relative_eh_frame): Define.
9689 (elf_backend_can_make_lsda_relative_eh_frame): Define.
9690 (elf_backend_encode_eh_address): Define.
9692 (elf_backend_can_make_relative_eh_frame): Define.
9693 (elf_backend_can_make_lsda_relative_eh_frame): Define.
9694 (elf_backend_encode_eh_address): Define.
9695 (elfNN_bed): Add them.
9697 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
9699 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
9700 complain_on_overflow to signed.
9702 2004-02-27 H.J. Lu <hongjiu.lu@intel.com>
9704 * elflink.h (sort_symbol): New.
9705 (elf_link_add_object_symbols): Use a sorted symbol array for
9708 2004-02-27 Jakub Jelinek <jakub@redhat.com>
9710 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
9711 for pc relative relocs.
9712 (elf_s390_relocate_section): Likewise.
9713 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
9714 for pc relative relocs.
9715 (elf_s390_relocate_section): Likewise.
9717 2004-02-26 H.J. Lu <hongjiu.lu@intel.com>
9719 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
9722 2004-02-25 H.J. Lu <hongjiu.lu@intel.com>
9724 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
9725 field to track if a relocation is against readonly section.
9726 (count_dyn_reloc): Take a new argument for rent->reltext.
9727 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
9728 (get_reloc_section): Don't set ia64_info->reltext here.
9729 (allocate_dynrel_entries): Set ia64_info->reltext here.
9731 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
9733 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
9734 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
9735 function's descriptor to symbol+offset, and map local undefweak
9736 symbol to NULL function descriptor.
9737 (elf32_frv_relocate_section): Likewise.
9739 2004-02-23 Mark Kettenis <kettenis@gnu.org>
9741 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
9743 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
9744 (netbsd_core_file_p): Set architecture from machine ID for
9747 2004-02-23 Jakub Jelinek <jakub@redhat.com>
9749 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
9750 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
9752 2004-02-21 H.J. Lu <hongjiu.lu@intel.com>
9754 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
9755 symbols with non-default visibility.
9757 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
9759 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
9760 IMAGE_SCN_MEM_WRITE on known sections only.
9762 2004-02-20 Jakub Jelinek <jakub@redhat.com>
9764 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
9765 symbols used in PIE relocs.
9767 2004-02-19 Jakub Jelinek <jakub@redhat.com>
9769 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
9772 2004-02-18 Daniel Jacobowitz <drow@mvista.com>
9774 * configure.in: Update version to 2.15.90.
9775 * configure: Regenerate.
9777 2004-02-17 Daniel Jacobowitz <drow@mvista.com>
9778 Richard Sandiford <rsandifo@redhat.com>
9780 * elfxx-mips.c (mips_elf_calculate_relocation): Use
9781 _bfd_elf_symbol_refs_local_p to decide whether to decay
9782 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
9783 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
9784 relocs if the symbol wasn't defined by a regular object file.
9785 Don't check the symbol's dynindx.
9787 2004-02-16 Andrew Cagney <cagney@redhat.com>
9789 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
9791 * bfd-in2.h: Re-generate.
9793 2004-02-14 Andrew Cagney <cagney@redhat.com>
9795 * configure.host (HDEFINES): When hppa*-*-hpux*, define
9796 _LARGEFILE64_SOURCE.
9798 2004-02-13 Andrew Cagney <cagney@redhat.com>
9800 * elf.c (vma_page_aligned_bias): New function.
9801 (assign_file_positions_except_relocs)
9802 (assign_file_positions_for_segments): Replace broken modulo
9803 arithmetic with call to vma_page_aligned_bias.
9805 2004-02-11 Andrew Cagney <cagney@redhat.com>
9807 * bfd-in.h: Update copyright.
9808 (bfd_tell): Change return type to file_ptr.
9809 * bfd-in2.h: Re-generate.
9810 * cache.c: Update copyright.
9811 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
9813 (close_one): Use real_ftell.
9814 * bfdio.c: Update copyright.
9815 (real_ftell, real_fseek): New functions.
9816 (bfd_tell): Use real_fseek and real_ftell, change return type to
9818 (bfd_seek): Use real_ftell and real_fseek, change type of
9819 file_position to a file_ptr.
9820 * libbfd-in.h: Update copyright.
9821 (real_ftell, real_fseek): Declare.
9822 * libbfd.h: Re-generate.
9824 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
9825 fseeko and fseeko64. Determine bfd_file_ptr.
9826 * configure: Re-generate.
9827 * config.in: Re-generate.
9829 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
9831 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
9832 * elf32-h8300.c: Likewise.
9834 2004-02-09 Christian Vogel <vogelchr@vogel.cx>
9835 Nick Clifton <nickc@redhat.com>
9837 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
9838 GOT entries with no associated GOT subsection.
9840 2004-02-09 Richard Sandiford <rsandifo@redhat.com>
9842 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
9843 * elf.c (swap_out_syms): Use it to decide whether local section
9844 symbols should be named.
9845 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
9846 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
9847 (elf_backend_name_local_section_symbols): Define.
9848 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
9850 2004-01-30 H.J. Lu <hongjiu.lu@intel.com>
9852 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
9853 (elfNN_ia64_relax_section): Optimize brl to br during the relax
9856 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
9858 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
9859 to bfd_link_hash_entry passed by reference to
9860 _bfd_generic_link_add_one_symbol.
9862 2004-01-25 H.J. Lu <hongjiu.lu@intel.com>
9864 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
9865 relocations against dynamic symbols.
9867 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
9869 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
9872 2004-01-21 Tom Rix <tcrix@worldnet.att.net>
9874 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
9875 * bfd-in2.h, libbfd.h: Rebuilt.
9877 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
9879 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
9880 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
9881 flag has been cleared.
9883 2004-01-19 Kazu Hirata <kazu@cs.umass.edu>
9885 * coff-h8300.c: Add and adjust comments about relaxation.
9886 * elf32-h8300.c: Likewise.
9888 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
9890 * coff-h8300.c: Fix comment typos.
9891 * elf32-h8300.c: Likewise.
9893 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
9895 * coff-h8300.c: Add comments about relaxation.
9896 * elf32-h8300.c: Likewise.
9898 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9900 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
9902 * aclocal.m4: Regenerate.
9903 * configure: Regenerate.
9905 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
9907 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
9908 mips_elf64_rtype_to_howto instead of using howto_table.
9910 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
9912 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
9914 (elf32_arm_check_relocs): Don't increment the PLT refcount for
9915 relocs which would not use the PLT.
9917 2004-01-13 Alan Modra <amodra@bigpond.net.au>
9919 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
9920 (ppc64_elf_gc_sweep_hook): Likewise.
9921 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
9923 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
9925 Adds linker relaxation support for bit manipulation insns like
9926 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
9928 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
9929 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
9930 * coff-h8300.c: Opcode for bit manipulation insn is checked in
9931 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
9933 2004-01-12 Alan Modra <amodra@bigpond.net.au>
9935 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
9937 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
9939 * elf32-h8300.c: Fix formatting.
9941 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
9943 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
9944 dynamic object is present. Declare r_symndx and h in an inner
9946 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
9948 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
9950 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
9951 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
9952 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
9953 identically. Do not emit PC24 relocations for shared libraries.
9954 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
9955 identically. Don't adjust pc_count.
9956 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
9957 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
9958 adjust count for branch relocations.
9959 (allocate_dynrelocs): Correct typo in call to
9960 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
9961 PC24 or PLT32 relocs when linking.
9963 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
9965 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
9966 relocation howto with ARM_26 one for consistency.
9967 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
9968 that will be converted to ARM_26D ones, since we always want 'done'
9969 relocations to be reflected in section's data.
9970 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
9972 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
9975 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
9977 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
9978 are not partial_inplace during a relocatable link.
9980 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
9982 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
9983 if no dynamic object is present. Declare r_symndx and h in an
9986 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
9988 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
9989 trampoline if it is known out of range.
9991 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
9993 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
9994 * elf32-frv.c (_frv_osec_readonly_p): New.
9995 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
9997 (_frv_count_got_plt_entries): Adjust expected count accordingly.
9998 (elf32_frv_relocate_section): Likewise. Error out if attempting
9999 to emit rofixups or dynamic relocs in read-only segments. Use
10000 _bfd_elf_section_offset to adjust r_offsets in rofixups and
10001 dynamic relocations.
10002 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
10003 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
10004 relocations or fixups involving merged sections correctly. Avoid
10005 crash when undefined symbol is referenced by R_FRV_32 or
10006 R_FRV_FUNCDESC_VALUE.
10007 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
10008 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
10009 input section holding local symbol to addend of R_FRV_32 or
10010 R_FRV_FUNCDESC_VALUE dynamic relocation.
10011 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
10012 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
10013 (elf32_frv_always_size_sections): Don't store pointer to
10014 __stacksize symbol in sec_info.
10015 (elf32_frv_modify_segment_map): Look it up here.
10016 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
10017 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
10018 of the lazy PLT entry, not only its offset, as the low word of a
10019 function descriptor.
10020 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
10021 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
10022 if a hash table entry already exists but is not a definition.
10023 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
10024 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
10025 (_frv_add_rofixup): Don't inline.
10026 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
10027 for undefweak symbols.
10028 (elf32_frv_relocate_section): Avoid crash while computing
10029 relocation when linking with shared library. Only emit rofixups
10030 and dynamic relocations for alloc&load sections. Mark binaries
10031 with inter-segment relocations for relocation as a unit.
10032 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
10033 (DEFAULT_STACK_SIZE): New.
10034 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
10035 emit rofixups or dynamic relocs when linking dynamic non-PIE
10037 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
10038 shared libs too. Reserve the last entry for the GOT pointer.
10039 (elf32_frv_finish_dynamic_sections): Emit it.
10040 (elf32_frv_always_size_sections): New.
10041 (elf32_frv_modify_segment_map): New.
10042 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
10044 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
10045 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
10046 (elf_backend_always_size_sections): New.
10047 (elf_backend_modify_segment_map): New.
10048 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
10049 * config.bfd: Added frv-*-*linux*.
10050 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
10051 ABS section, instead of crashing.
10052 (elf32_frv_relocate_section): Don't crash before warning about
10053 different segments in non-PIC relocation.
10054 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
10055 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
10056 relocs to undefweak symbols.
10057 (elf32_frv_relocate_section): Ditto for undefined symbols.
10058 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
10059 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
10060 gotfixup section was created.
10061 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
10062 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
10063 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
10064 complain_overflow_signed.
10065 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
10066 have not been allocated.
10067 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
10068 privfd only if dynamic sections were created.
10069 (elf32_frv_relocate_section): Compute gprel_segment, and use it
10070 for GPREL relocs. When linking relocatable FDPIC executables,
10071 emit warnings for relocations that would be illegal on PIE or
10072 shared libraries. Emit rofixup for R_FRV_32 only if input object
10074 (_frv_create_got_section): Define _gp symbol in the rofixup
10076 (elf32_frv_finish_dynamic_sections): If rofixups needed but
10077 dynamic sections missing, error out requesting -melf32frvfd.
10078 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
10079 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
10080 computation of addends from section and global or local symbol
10081 value. Change return type to bfd_boolean, and return a failure if
10082 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
10083 nonzero addend is required.
10084 (elf32_frv_relocate_section): Likewise. Print error for
10085 unsupported nonzero addends.
10086 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
10087 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
10088 force everything local.
10089 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
10090 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
10091 (frv_gotfixup_section): New.
10092 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
10093 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
10095 (_frv_add_rofixup): New.
10096 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
10097 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
10098 improve some ugly conditions.
10099 (elf32_frv_relocate_section): Likewise. Reject inter-segment
10100 relocations in fdpic.
10101 (_frv_create_got_section): Create .rofixup.got section.
10102 (struct _frv_dynamic_got_info): Added fixups.
10103 (_frv_count_got_plt_entries): Account in-GOT relocations into
10104 relocs32, relocsfd and relocsfdv. Account them into relocs or
10105 fixups, as appropriate.
10106 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
10108 (elf32_frv_finish_dynamic_sections): Verify that the right number
10109 of relocations and fixups was generated.
10110 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
10112 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
10113 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
10114 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
10115 descriptor of a (formerly-)global symbol is local.
10116 (struct frv_pic_relocs_info): Adjust comments.
10117 (_frv_emit_got_relocs_plt_entries): Adjust.
10118 (elf32_frv_relocate_section): Likewise.
10119 (_frv_count_got_plt_entries): Likewise.
10120 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
10121 symbol's value to addend in the common preamble. Decay dynamic
10122 symbols to section+offset if they bind or call locally, for GOT
10123 and FUNCDESC_VALUE, respectively.
10124 (elf32_frv_relocate_section): Likewise.
10125 (elf32_frv_check_relocs): Don't register as dynamic symbols of
10126 internal or hidden visibility.
10127 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
10128 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
10129 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
10130 (elf32_frv_relocate_section): Pass relocation addend in. Use
10131 original relocation addend to look up the got relocs/plt entries
10132 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
10133 processing relocations that reference .scommon symbols.
10134 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
10135 Introduce support for dynamic linking.
10136 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
10137 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
10138 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
10139 (frv_reloc_type_lookup): Return REL howtos for executables and
10141 (frv_info_to_howto_rel): New.
10142 (struct frv_elf_link_hash_table): New.
10143 (frv_hash_table, frv_got_section, frv_gotrel_section,
10144 frv_plt_section, frv_pltrel_section, frv_relocs_info,
10145 frv_got_initial_offset, frv_plt_initial_offset): New macros.
10146 (frv_elf_link_hash_table_create): New.
10147 (struct frv_pic_relocs_info): New.
10148 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
10149 (frv_pic_relocs_info_find): New.
10150 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
10152 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
10153 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
10154 (_frv_emit_got_relocs_plt_entries): New.
10155 (elf32_frv_relocate_section): Add support for dynamic linking.
10156 Handle new relocations.
10157 (_frv_create_got_section): New.
10158 (elf32_frv_create_dynamic_sections): New.
10159 (ELF_DYNAMIC_INTERPRETER): New.
10160 (struct _frv_dynamic_got_info): New.
10161 (_frv_count_got_plt_entries): New.
10162 (struct _frv_dynamic_got_plt_info): New.
10163 (_frv_compute_got_alloc_data): New.
10164 (_frv_get_got_entry, _frv_get_fd_entry): New.
10165 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
10166 (_frv_resolve_final_relocs_info): New.
10167 (elf32_frv_size_dynamic_sections): New.
10168 (elf32_frv_finish_dynamic_sections): New.
10169 (elf32_frv_adjust_dynamic_symbol): New.
10170 (elf32_frv_finish_dynamic_symbol): New.
10171 (elf32_frv_check_relocs): Handle new relocs. Explain how the
10173 (elf_info_to_howto_rel): Define.
10174 (bfd_elf32_bfd_link_hash_table_create): Define.
10175 (elf_backend_create_dynamic_sections): Define.
10176 (elf_backend_adjust_dynamic_symbol): Define.
10177 (elf_backend_size_dynamic_sections): Define.
10178 (elf_backend_finish_dynamic_symbol): Define.
10179 (elf_backend_finish_dynamic_sections): Define.
10180 (elf_backend_want_got_sym): Define.
10181 (elf_backend_got_header_size): Define.
10182 (elf_backend_want_got_plt): Define.
10183 (elf_backend_plt_readonly): Define.
10184 (elf_backend_want_plt_sym): Define.
10185 (elf_backend_plt_header_size): Define.
10186 (elf_backend_may_use_rel_p): Define.
10187 (elf_backend_may_use_rela_p): Define.
10188 (elf_backend_default_use_rela_p): Define.
10189 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
10190 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
10191 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
10192 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
10193 (frv_reloc_map): Map the corresponding BFD relocs to them.
10194 (frv_reloc_type_lookup): ... and back to BFD relocs.
10195 * reloc.c: New relocs.
10196 * bfd-in2.h, libbfd.h: Rebuilt.
10197 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
10198 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
10199 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
10200 R_FRV_FUNCDESC_GOTLO): New.
10201 (frv_reloc_map): Map the corresponding BFD relocs to them.
10202 (frv_reloc_type_lookup): ... and back to BFD relocs.
10203 * reloc.c: New relocs.
10204 * bfd-in2.h, libbfd.h: Rebuilt.
10206 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10208 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
10209 targets to support pages of up to 64kB.
10210 (elf32_bed): Redefine to get a separate backend data structure for
10211 traditional targets.
10212 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
10213 targets to support pages of up to 64kB.
10214 (elf64_bed): Redefine to get a separate backend data structure for
10215 traditional targets.
10216 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
10217 targets to support pages of up to 64kB.
10218 (elf32_bed): Redefine to get a separate backend data structure for
10219 traditional targets.
10221 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10223 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
10225 2004-01-02 Mark Kettenis <kettenis@gnu.org>
10227 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
10228 (elf_i386_grok_psinfo): Likewise.
10230 2004-01-02 Bernardo Innocenti <bernie@develer.com>
10232 * config.bfd: Add m68k-uClinux target.
10234 2004-01-01 Grant Edwards <grante@visi.com>
10236 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
10237 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
10238 (elf32_h8_gc_sweep_hook): New function.
10239 (elf_backend_gc_mark_hook): Define.
10240 (elf_backend_gc_sweep_hook): Define.
10241 (elf_backend_can_gc_sections): Define.
10243 For older changes see ChangeLog-0203
10249 version-control: never