* coff-h8300.c (h8300_reloc16_extra_cases): Use input section
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
44da2da1
AM
12005-12-27 Alan Modra <amodra@bigpond.net.au>
2
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.
11
ec456156
AM
122005-12-27 Alan Modra <amodra@bigpond.net.au>
13
14 * Makefile.am: Run "make dep-am".
15 * Makefile.in: Regenerate.
16 * po/SRC-POTFILES.in: Regenerate.
17
9bf46c00
AM
182005-12-24 Alan Modra <amodra@bigpond.net.au>
19
20 * aix5ppc-core.c: Remove duplicate prototypes.
21 (xcoff64_core_file_matches_executable_p): Provide implementation
22 for !AIX_5_CORE.
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.
28
12ac1cf5
NC
292005-12-23 Michael Weiser <michael@weiser.dinsnail.net>
30
31 PR 1150
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
39 prototype.
40 * elflink.c (elf_link_output_extsym): Check
41 elf_backend_ignore_undef_symbol before reporting an undefined
42 symbol in a shared library.
43
69d246d9
JB
442005-12-23 Joel Brobecker <brobecker@adacore.com>
45
46 * corefile.c (generic_core_file_matches_executable_p): New function.
47 * libbfd-in.h (generic_core_file_matches_executable_p): Add
48 declaration.
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.
55
56 * aix386-core.c: Replace core_file_matches_executable_p null
57 implementation by generic_core_file_matches_executable_p by
58 using a macro.
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.
64 * mach-o.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.
70
03e94c08
BW
712005-12-19 David Heine <dlheine@tensilica.com>
72
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
76 when finished.
77
d031aafb
NS
782005-12-16 Nathan Sidwell <nathan@codesourcery.com>
79
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.
84 * bfd-in2.h: Rebuilt.
85 * config.bfd (mt): Remove special case targ_archs.
86 (mt-*-elf): Rename bfd_elf32_mt_vec.
87 * configure: Rebuilt.
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.
113
25bbc984
L
1142005-12-13 H.J. Lu <hongjiu.lu@intel.com>
115
116 PR ld/2008
117 * elf.c (_bfd_elf_setup_sections): Return FALSE if
118 elf_linked_to_section will be set to NULL.
119
120 * format.c (bfd_check_format_matches): Don't check the default
121 target twice.
122
4fa1c237
AM
1232005-12-13 Alan Modra <amodra@bigpond.net.au>
124
125 * elf64-ppc.c (ppc64_elf_relocate_section): Force tail calls in
126 shared libs to resolve locally.
127
39b41c9c
PB
1282005-12-12 Paul Brook <paul@codesourcery.com>
129
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
135 using BLX.
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.
142
4970f871
NS
1432005-12-12 Nathan Sidwell <nathan@codesourcery.com>
144
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.
154
67f93c31
AM
1552005-12-12 Alan Modra <amodra@bigpond.net.au>
156
157 * elf64-ppc.c (ppc64_elf_size_stubs): Don't consider non-ppc64 input.
158
5adcfd8b
AM
1592005-12-10 Alan Modra <amodra@bigpond.net.au>
160
161 * elflink.c (elf_gc_mark_dynamic_ref_symbol): Use !info-executable
162 to test for linking shared libs, not info->shared.
163
0ba07910
AM
1642005-12-08 Alan Modra <amodra@bigpond.net.au>
165
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
171 when emit_stub_syms.
172 * elf32-ppc.h (ppc_elf_select_plt_layout): Update prototype.
173
a7985d73
AM
1742005-12-08 Alan Modra <amodra@bigpond.net.au>
175
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.
183
e424ecc8
L
1842005-12-07 H.J. Lu <hongjiu.lu@intel.com>
185
186 * elf.c (assign_section_numbers): Remove extra code in the last
187 change.
188
f2876037
L
1892005-12-07 H.J. Lu <hongjiu.lu@intel.com>
190 Andreas Schwab <schwab@suse.de>
191
192 PR binutils/1991
193 * elf.c (assign_section_numbers): Always use the output section
194 when setting up sh_link for SHF_LINK_ORDER.
195
fe21a8fc
L
1962005-12-07 Thiemo Seufer <ths@networkno.de>
197 H.J. Lu <hongjiu.lu@intel.com>
198
199 PR ld/1932
200 * bfd-in.h (bfd_elf_record_link_assignment): Add output_bfd
201 and hidden arguments.
202
203 * bfd.c (bfd_hide_symbol): Removed.
204
205 * bfd-in2.h: Regenerated.
206
207 * elflink.c (bfd_elf_record_link_assignment): Handle hidden
208 symbols which were provided by a linker script.
209
1ca81d72
AM
2102005-12-06 Paul Gilliam <pgilliam@us.ibm.com>
211
212 * cpu-powerpc.c (bfd_powerpc_archs): Add ppc 750.
213
927e625f
MK
2142005-11-18 Mark Kettenis <kettenis@gnu.org>
215
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.
219
8ce757c4
NC
2202005-12-01 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
221
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.
226
390fbbf1
AM
2272005-11-24 Alan Modra <amodra@bigpond.net.au>
228
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.
238
bad36eac
DJ
2392005-11-23 Daniel Jacobowitz <dan@codesourcery.com>
240 Thiemo Seufer <ths@networkno.de>
241
242 * elf32-mips.c (elf_mips_howto_table_rel): Use rightshift 2 for
243 R_MIPS_PC16.
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
248 R_MIPS_PC16.
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
254 R_MIPS_PC16.
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.
262
a14199db
AM
2632005-11-23 Frederic Riss <frederic.riss@st.com>
264
265 * elfcode.h (elf_object_p): Delay the setting of start_address
266 until we're sure the backend matches the binary.
267
f29ba312
DA
2682005-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
269
270 * som.c (som_decode_symclass): Decode BSF_WEAK symbols in the same
271 manner as bfd_decode_symclass.
272
220c76dd
AM
2732005-11-18 Alan Modra <amodra@bigpond.net.au>
274
275 * elf64-ppc.c (ppc64_elf_check_relocs): Don't set has_14bit_branch
276 on branches to same section.
277
d97a8924
DA
2782005-11-17 Randolph Chung <tausq@debian.org>
279
280 * elf64-hppa.c (elf64_hppa_object_p): Recognize corefiles under
281 hppa64-hp-hpux11.11.
282 (elf64_hppa_section_from_phdr): New function.
283 (elf_backend_section_from_phdr): Define.
284
5e2b0d47
NC
2852005-11-11 Nick Clifton <nickc@redhat.com>
286
287 PR 1150
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.
294
6f84a2a6
NS
2952005-11-08 Nathan Sidwell <nathan@codesourcery.com>
296
297 Add ms2 support
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.
307
49c96104
SE
3082005-11-07 Steve Ellcey <sje@cup.hp.com>
309
310 * warning.m4 (AM_BINUTILS_WARNINGS): Default to empty string
311 if compiler is not GCC.
312 * configure: Regenerate
313
3142005-11-07 Steve Ellcey <sje@cup.hp.com>
315
316 * configure: Regenerate after modifying bfd/warning.m4.
317
76f703bf
SE
3182005-11-07 Steve Ellcey <sje@cup.hp.com>
319
320 * configure.host (ia64-*-hpux*): Set _LARGEFILE64_SOURCE.
321
2e6f4fae
DJ
3222005-11-03 Daniel Jacobowitz <dan@codesourcery.com>
323
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.
330
6ece8836
TS
3312005-11-03 Thiemo Seufer <ths@networkno.de>
332
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.
337
3a800eb9
AM
3382005-11-03 Alan Modra <amodra@bigpond.net.au>
339
340 * elf.c (elf_fake_sections): When calculating tbss size, just use
341 the last link_order.
342 (assign_file_positions_for_segments): Likewise.
343 * elflink.c (bfd_elf_final_link): Likewise.
344 (elf_reloc_link_order): Correct comment.
345
966972ec
AM
3462005-11-02 Alan Modra <amodra@bigpond.net.au>
347
348 PR ld/1775
349 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Add required
350 parentheses.
351
be690875
L
3522005-10-29 H.J. Lu <hongjiu.lu@intel.com>
353
354 * Makefile.am: Run "make dep-am".
355 * Makefile.in: Regenerated.
356
357 * dep-in.sed: Replace " ./" with " ".
358
9b818146
L
3592005-10-29 H.J. Lu <hongjiu.lu@intel.com>
360
361 * hpux-core.c: Include <machine/reg.h> only if HPUX_CORE is
362 define.
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.
366
62d8ad4f
MK
3672005-10-29 Mark Kettenis <kettenis@gnu.org>
368
369 * Makefile.am: Run "make dep-am".
370 * Makefile.in: Regenerate.
371
e9adafe3
JB
3722005-10-28 Joel Brobecker <brobecker@adacore.com>
373
374 From Eric Botcazou <botcazou@adacore.com>
375 * coffcode.h (coff_compute_section_file_positions): Fix small
376 error in preprocessor directives.
377
cc429f57
JB
3782005-10-28 Joel Brobecker <brobecker@adacore.com>
379
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.
388
74d26813
L
3892005-10-28 H.J. Lu <hongjiu.lu@intel.com>
390
391 PR binutils/1472
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.
396
b2efcd36
HPN
3972005-10-28 Hans-Peter Nilsson <hp@axis.com>
398
399 PR ld/1567
400 * elf32-cris.c (cris_elf_howto_table) <R_CRIS_32>: Set
401 complain_on_overflow field to complain_overflow_dont.
402
d0fdd288
AM
4032005-10-27 Alan Modra <amodra@bigpond.net.au>
404
95560129
AM
405 PR 973
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
411 not open.
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.
415
182a0099
AM
416 * bfdwin.c (bfd_get_file_window): Seek into file in place of
417 using bfd_cache_lookup.
418
d00967c7
AM
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.
423
b677b8c0
AM
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.
427
d0fdd288
AM
428 * cache.c: Reorganize file to avoid forward reference.
429
3dff57e8
AM
4302005-10-26 Alan Modra <amodra@bigpond.net.au>
431
432 * cache.c (bfd_cache_lookup_worker): Don't abort on failing to
433 reopen file.
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.
441
d53e85d8
AM
4422005-10-26 Alan Modra <amodra@bigpond.net.au>
443
444 * cache.c (bfd_cache_lookup_worker): Use bfd_error_handler
445 rather than bfd_perror. Print file name. Internationalise.
446
5c91cdfb
AM
4472005-10-26 Alan Modra <amodra@bigpond.net.au>
448
449 * cache.c (bfd_open_file): Set bfd_error_system_call on failure
450 to open file.
451 (bfd_cache_lookup_worker): Remove check that file pos is in
452 unsigned long range. Print system error before aborting.
453
3c9b82ba
NC
4542005-10-25 Arnold Metselaar <arnold.metselaar@planet.nl>
455
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.
470
fcfa13d2
AM
4712005-10-26 Alan Modra <amodra@bigpond.net.au>
472
473 PR ld/1540
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.
495
3caac5b8
AM
4962005-10-25 Alan Modra <amodra@bigpond.net.au>
497
498 * po/SRC-POTFILES.in: Regenerate.
499 * po/bfd.pot: Regenerate.
500
9ba4c445
JZ
5012005-10-24 Jie Zhang <jie.zhang@analog.com>
502
503 * elf32-bfin.c (bfd_bfin_elf32_create_embedded_relocs): Fix signedness
504 warning.
505
f4707595
JZ
5062005-10-24 Bernd Schmidt <bernd.schmidt@analog.com>
507
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.
513
f02571c5
AM
5142005-10-24 Alan Modra <amodra@bigpond.net.au>
515
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.
523
3e45f319
AM
5242005-10-24 Alan Modra <amodra@bigpond.net.au>
525
526 * elf32-i370.c (i370_elf_fake_sections): Don't set SHF_EXCLUDE on
527 group sections.
528
6a2375c6
JB
5292005-10-24 Jan Beulich <jbeulich@novell.com>
530
531 * cpu-ia64-opc.c (elf64_ia64_operands): Move memory operand out of
532 set of indirect operands.
533
d30e8e7c
AM
5342005-10-24 Alan Modra <amodra@bigpond.net.au>
535
536 * elf32-ppc.c (ppc_elf_fake_sections): Don't set SHF_EXCLUDE on
537 group sections.
538
60b48850
L
5392005-10-23 H.J. Lu <hongjiu.lu@intel.com>
540
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.
547
ccd2ec6a
L
5482005-10-23 H.J. Lu <hongjiu.lu@intel.com>
549
550 PR ld/1487
551 * elf-bfd.h (_bfd_generic_init_private_section_data): New.
552 (_bfd_elf_init_private_section_data): New.
553
554 * elf.c (elf_fake_sections): Don't set SHF_GROUP for
555 relocatable link.
556 (bfd_elf_set_group_contents): Don't handle relocatable link
557 specially.
558 (assign_section_numbers): If it isn't called by assembler,
559 use the output section of elf_linked_to_section for
560 SHF_LINK_ORDER.
561 (_bfd_elf_init_private_section_data): New.
562 (_bfd_elf_copy_private_section_data): Call it.
563
564 * libbfd-in.h (_bfd_generic_init_private_section_data): New.
565
566 * libbfd.c (_bfd_generic_init_private_section_data): New.
567
568 * targets.c (BFD_JUMP_TABLE_COPY): Add
569 _bfd_generic_init_private_section_data.
570 (bfd_init_private_section_data): Likewise.
571
572 * bfd-in2.h: Regenerated.
573 * libbfd.h: Likewise.
574
60124e18
AM
5752005-10-23 Alan Modra <amodra@bigpond.net.au>
576
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.
582
44444f50
NC
5832005-10-19 Paul Brook <paul@codesourcery.com>
584
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.
588
66b920dc
L
5892005-10-15 H.J. Lu <hongjiu.lu@intel.com>
590
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.
597
ecca9871
L
5982005-10-15 H.J. Lu <hongjiu.lu@intel.com>
599
600 PR ld/1467
601 * elf-bfd.h (_bfd_elf_match_sections_by_type): New.
602 (_bfd_generic_match_sections_by_type): New. Defined.
603
604 * elf.c (_bfd_elf_match_sections_by_type): New.
605
606 * libbfd-in.h (_bfd_generic_match_sections_by_type): New.
607
608 * bfd-in2.h: Regenerated.
609 * libbfd.h: Likewise.
610
611 * libbfd.c (_bfd_generic_match_sections_by_type): New.
612
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.
617
ee065d83
PB
6182005-10-08 Paul Brook <paul@codesourcery.com>
619
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.
636
6edfbbad
DJ
6372005-10-06 Daniel Jacobowitz <dan@codesourcery.com>
638
639 * elf32-arm.c (elf32_arm_check_relocs): Avoid aliasing warnings from
640 GCC.
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.
659
1b74d094
BW
6602005-10-04 Bob Wilson <bob.wilson@acm.org>
661
662 * archive.c: Add missing SUBSECTION for documentation.
663 * bfd.c: Likewise.
664 * cache.c: Likewise.
665 * corefile.c: Likewise.
666 * format.c: Likewise.
667 * init.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.
672
bd4aae00
NC
6732005-10-04 Nick Clifton <nickc@redhat.com>
674
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.
678
d638e0ac
BW
6792005-10-03 David Heine <dlheine@tensilica.com>
680
681 * elf32-xtensa.c (relocations_reach): Skip range check for
682 absolute literals.
683
65a7a66f
AM
6842005-10-03 Alan Modra <amodra@bigpond.net.au>
685
686 * elf.c (_bfd_elf_get_synthetic_symtab): Set BSF_GLOBAL on
687 synthetic syms.
688
5d038dee
L
6892005-09-30 H.J. Lu <hongjiu.lu@intel.com>
690
691 * Makefile.am: Run "make dep-am".
692 * Makefile.in: Regenerated.
693 * aclocal.m4: Likewise.
694
0f64bb02
CM
6952005-09-30 Catherine Moore <clm@cm00re.com>
696
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.
712
7fe2b9a6
AM
7132005-09-30 Alan Modra <amodra@bigpond.net.au>
714
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
719 is undefined.
720
dd863624
L
7212005-09-28 H.J. Lu <hongjiu.lu@intel.com>
722
723 PR binutils/1321
724 * elf-bfd.h (_bfd_elf_setup_group_pointers): Renamed to ...
725 (_bfd_elf_setup_sections): This.
726 * elf.c: Likewise.
727 * elfcode.h (elf_object_p): Likewise.
728
729 * elf.c (_bfd_elf_setup_sections): Process SHF_LINK_ORDER.
730 (_bfd_elf_copy_private_section_data): Likewise.
731
d33cdfe3
L
7322005-09-28 H.J. Lu <hongjiu.lu@intel.com>
733
734 * elflink.c (elf_fixup_link_order): Report locations for mixed
735 ordered and unordered input sections.
736
c955f9cd
JW
7372005-09-22 James E. Wilson <wilson@specifix.com>
738
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.
a7985d73 745
d5cbaa15
JW
7462005-09-20 James E. Wilson <wilson@specifix.com>
747
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.
751
707bba77
AM
7522005-09-20 Alan Modra <amodra@bigpond.net.au>
753
754 * elflink.c (_bfd_elf_merge_symbol): Simplify.
755
5c3dead3
AM
7562005-09-19 Alan Modra <amodra@bigpond.net.au>
757
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
760 errors.
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.
764
6cfda947
KB
7652005-09-09 Kevin Buettner <kevinb@redhat.com>
766
767 * elf32-am33lin.c (bfd.h, sysdep.h, elf-bfd.h, elf/mn10300.h):
768 Include.
769 (elf32_am33lin_grok_prstatus, elf32_am33lin_grok_psinfo): New
770 functions.
771 (elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
772
0951f019
RE
7732005-09-09 Richard Earnshaw <richard.earnshaw@arm.com>
774
775 * elf32-arm.c (elf32_arm_section_from_shdr): Accept SHT_ARM_PREEMPTMAP
776 and SHT_ARM_ATTRIBUTES.
777
e04bcc6d
L
7782005-09-08 H.J. Lu <hongjiu.lu@intel.com>
779
780 * elflink.c (elf_get_linked_section_vma): Fix a typo in comment.
781 * elfxx-ia64.c (elf_backend_link_order_error_handler): Likewise.
782
92fd189d
L
7832005-09-08 H.J. Lu <hongjiu.lu@intel.com>
784
785 PR ld/1263
786 * elflink.c (elf_link_add_object_symbols): Abort for
787 --just-symbols on DSO.
788
3eb17e6b
PB
7892005-09-08 Paul Brook <paul@codesourcery.com>
790
791 * reloc.c: Rename BFD_RELOC_ARM_SMI to BFD_RELOC_ARM_SMC.
792 * bfd-in2.h: Regenerate.
793 * libbfd.h: Regenerate.
794
68f49ba3
L
7952005-09-06 H.J. Lu <hongjiu.lu@intel.com>
796
797 PR ld/1301
798 * elflink.c (_bfd_elf_merge_symbol): Don't check undefined
799 symbol introduced by "ld -u" for TLS.
800
8f06b2d8
PB
8012005-09-02 Paul Brook <paul@codesourcery.com>
802
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.
807
046aeb74
DD
8082005-09-01 Dmitry Diky <diwil@spec.ru>
809
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.
a7985d73 814
e81d3500
DD
8152005-08-31 DJ Delorie <dj@redhat.com>
816
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
820 punning.
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
823 rules.
824 (elf_x86_64_size_dynamic_sections): Avoid the need for type
825 punning.
826
e26f8bd9
NC
8272005-08-30 Phil Edwards <phil@codesourcery.com>
828
829 * config.bfd (i[3-7]86-*-vxworks): Match vxworks* instead.
830
1faab634
L
8312005-08-29 H.J. Lu <hongjiu.lu@intel.com>
832
833 PR ld/1247
834 * elfxx-ia64.c (allocate_fptr): Check undefined symbol.
835
c9adbffe
NC
8362005-08-29 Steven J. Hill <sjhill@realitydiluted.com>
837
838 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Initialise
839 'value' to avoid compile time warning message.
840
c0524131
NC
8412005-08-26 Christian Groessler <chris@groessler.org>
842
843 * coff-z8k.c: (r_jr, r_disp7, r_callr): Fix src_mask and dst_mask
844 of HOWTO.
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
853 coff-z8k target.
854 * bfd-in2.h: Regenerate.
855 * libbfd.h: Regenerate.
856
4195f552
KK
8572005-08-25 Kaz Kojima <kkojima@rr.iij4u.or.jp>
858
859 * elf32-sh.c (sh_elf_get_flags_from_mach): Fix off-by-one error.
860
843fe662
L
8612005-08-24 H.J. Lu <hongjiu.lu@intel.com>
862
863 PR ld/1208
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.
878
1cddf136
KK
8792005-08-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
880
881 * config.bfd: Add bfd_elf32_shnbsd_vec and bfd_elf32_shlnbsd_vec
882 to targ_selvecs for sh5*-*-netbsd* and sh64*-*-netbsd*.
883
c17ae8a2
AM
8842005-08-18 Alan Modra <amodra@bigpond.net.au>
885
848cf006
AM
886 * coff-a29k.c: Delete.
887 * cpu-a29k.c: Delete.
c17ae8a2
AM
888 * Makefile.am: Remove mention of a29k files.
889 * aoutf1.h: Remove a29k support.
890 * aoutx.h: Likewise.
891 * archures.c: Likewise.
892 * coffcode.h: Likewise.
893 * config.bfd: Likewise.
894 * configure.in: Likewise.
895 * ieee.c: Likewise.
896 * mipsbsd.c: Likewise.
897 * pdp11.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.
904
909272ee
AM
9052005-08-18 Alan Modra <amodra@bigpond.net.au>
906
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.
925
bc79cded
L
9262005-08-17 H.J. Lu <hongjiu.lu@intel.com>
927
928 PR binutils/1179
929 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Use section lma
930 instead of vma.
931 (_bfd_dwarf2_find_line): Likewise.
932
46fda84e
AM
9332005-08-17 Alan Modra <amodra@bigpond.net.au>
934
935 * elf64-mmix.c (mmix_elf_add_symbol_hook): Mark reg section
936 SEC_LINKER_CREATED.
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.
941
8d1d654f
AM
9422005-08-17 Alan Modra <amodra@bigpond.net.au>
943
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.
947
27198fa9
DS
9482005-08-17 Danny Smith <dannysmith@users.sourceforge.net>
949
950 * cofflink.c (_bfd_coff_generic_relocate_section): Correct
951 comment.
952
ccabcbe5
AM
9532005-08-17 Alan Modra <amodra@bigpond.net.au>
954
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.
963
18d944df
AM
9642005-08-16 Alan Modra <amodra@bigpond.net.au>
965
966 * elf64-ppc.c (ppc64_elf_edit_opd): Don't call dec_dynrel_count
967 when relocatable.
968
4af0a1d8
BW
9692005-08-15 Bob Wilson <bob.wilson@acm.org>
970
971 * elf32-xtensa.c (ELF_MACHINE_CODE, ELF_MACHINE_ALT1): Swap values
972 of EM_XTENSA and EM_XTENSA_OLD.
973
d98685ac
AM
9742005-08-16 Alan Modra <amodra@bigpond.net.au>
975
976 * elf-bfd.h (_bfd_elf_define_linkage_sym): Declare.
977 * elflink.c (_bfd_elf_define_linkage_sym): New function, extracted
978 from..
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.
986
ce490eda
PB
9872005-08-15 Paul Brook <paul@codesourcery.com>
988
989 * elf32-arm.c (elf32_arm_howto_table_1): Make R_ARM_PLT32 the same as
990 R_ARM_PC24.
991
4fc35ca9
DA
9922005-08-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
993
994 PR ld/1135
995 * elf64-hppa.c (elf64_hppa_special_sections): Add flag definitions for
996 .plt, .dlt, .sdata, .sbss and .tbss.
997
fa9ee72b
DD
9982005-08-12 Dmitry Diky <diwil@spec.ru>
999
1000 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Adjust relocations
1001 referenced by .section + DISPLACEMENT.
1002
98b880f4
JW
10032005-08-10 James E. Wilson <wilson@specifix.com>
1004
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.
1007
a38a2e96
L
10082005-08-09 H.J. Lu <hongjiu.lu@intel.com>
1009
1010 * elfxx-ia64.c (elfNN_ia64_final_link): Reset gp.
1011
fd6212e6
NC
10122005-08-09 Rodney Brown <rbrown@bravurasolutions.com.au>
1013 Nick Clifton <nickc@redhat.com>
1014
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.
1018
44c86e8c
NC
10192005-08-08 Eric Dönges <Eric.Doenges@betty-tv.com>
1020
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
1024 variants.
1025
957c6e41
NC
10262005-08-07 Nick Clifton <nickc@redhat.com>
1027 Paul Brook <paul@codesourcery.com>
1028
1029 PR 1147
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.
1039
1040 * elfxx-target.h (bfd_elfNN_close_and_cleanup): Only define if not
1041 already defined by the target.
1042
a29b7e88
FF
10432005-08-05 Fred Fish <fnf@specifix.com>
1044
1045 * dwarf2.c (read_rangelist): Use addr_size instead of offset_size
1046 to determine how many bytes to read from each rangelist entry.
1047
7af8e998
L
10482005-08-05 H.J. Lu <hongjiu.lu@intel.com>
1049
1050 * bfd.c (bfd_hide_symbol): New.
1051 * bfd-in2.h: Regenerated.
1052
00492999
L
10532005-08-04 H.J. Lu <hongjiu.lu@intel.com>
1054
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.
1058
046183de
AM
10592005-08-04 Alan Modra <amodra@bigpond.net.au>
1060
1061 * elf32-ppc.c (struct elf_linker_section): Replace sym_val field
1062 with sym.
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_
1069 and _SDA2_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.
1078
1e035701
AM
10792005-08-04 Alan Modra <amodra@bigpond.net.au>
1080
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.
1085
90b263f3
L
10862005-08-03 H.J. Lu <hongjiu.lu@intel.com>
1087
1088 * elfxx-ia64.c (elfNN_ia64_relax_section): Resize .rela.got
1089 only if it isn't NULL.
1090
b0360d8c
L
10912005-08-03 H.J. Lu <hongjiu.lu@intel.com>
1092
1093 * elf32-i386.c (elf_howto_table): Undo the overflow change for
1094 R_386_PC16 made on 2005-07-18.
1095
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.
1098
636ce3f5
AM
10992005-08-03 Alan Modra <amodra@bigpond.net.au>
1100
1101 * elf32-ppc.c (struct ppc_elf_link_hash_table): Remove hgot. Use
1102 elf.hgot throughout file.
1103
4d962050
AM
11042005-08-03 Alan Modra <amodra@bigpond.net.au>
1105
1106 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Correct value of
1107 _GLOBAL_OFFSET_TABLE_ for > 32k GOT.
1108
4a78a1f4
AS
11092005-08-02 Andreas Schwab <schwab@suse.de>
1110
1111 * elfxx-ia64.c (struct elfNN_ia64_allocate_data): Add only_got.
1112 (elfNN_ia64_relax_section): Reallocate .rela.got when .got has
1113 changed.
1114 (allocate_dynrel_entries): Look only at GOT relocations when
1115 only_got is true.
1116 (elfNN_ia64_size_dynamic_sections): Set only_got to false before
1117 calling allocate_dynrel_entries.
1118
8e3de13a
NC
11192005-08-02 Nick Clifton <nickc@redhat.com>
1120
1121 PR 1147
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.
1134
c5211a54
RS
11352005-08-01 Richard Sandiford <richard@codesourcery.com>
1136
1137 * elfxx-mips.c (mips_mach_extends_p): Treat MIPS64 as an extension
1138 of MIPS32 and MIPS64r2 as an extension of MIPS32r2.
1139
1b9ee6a2
DD
11402005-07-30 David Daney <ddaney@avtrex.com>
1141
1142 * elflink.c (elf_gc_sweep): Set dynsymcount to correct value.
1143
eedecc07
DD
11442005-07-29 David Daney <ddaney@avtrex.com>
1145
1146 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Ignore _gp_disp
1147 if it is in the *ABS* section.
1148
e9f89963
PB
11492005-07-29 Paul Brook <paul@codesourcery.com>
1150
1151 * reloc.c: Add BFD_RELOC_ARM_T32_ADD_PC12.
1152 * bfd-in2.h: Regenerate.
1153 * libbfd.h: Regenerate.
1154
92e90b6e
PB
11552005-07-29 Paul Brook <paul@codesourcery.com>
1156
1157 * reloc.c (BFD_RELOC_ARM_T32_IMM12): Add.
1158 * bfd-in2.h: Regeenrate.
1159 * libbfd.h: Regenerate.
1160
0facbdf5
NC
11612005-07-29 Pavel Kankovsky <peak@argo.troja.mff.cuni.cz>
1162
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
1166 larger section.
1167
8a696751
AM
11682005-07-29 Alan Modra <amodra@bigpond.net.au>
1169
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.
1185
2f5028a7
AM
11862005-07-27 Alan Modra <amodra@bigpond.net.au>
1187
1188 * elflink.c (fix_syms): Handle symbols defined in input sections.
1189
a33d77bc
JB
11902005-07-27 Jan Beulich <jbeulich@novell.com>
1191
1192 * elf64-x86-64.c (R_X86_64_standard, R_X86_64_vt_offset): New.
1193 (elf64_x86_64_info_to_howto): Use them.
1194
f41d945b
AM
11952005-07-27 Alan Modra <amodra@bigpond.net.au>
1196
1197 * elflink.c (_bfd_elf_merge_symbol): Skip weak redefinition
1198 regardless of strength of previous definition.
1199
87538722
AM
12002005-07-26 Alan Modra <amodra@bigpond.net.au>
1201
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.
1205
9e8cc8b4
AM
12062005-07-26 Alan Modra <amodra@bigpond.net.au>
1207
1208 * elflink.c (elf_gc_sweep): Move gcc_except_table code..
1209 (bfd_elf_gc_sections): ..to here.
1210
fd54057a
DD
12112005-07-25 DJ Delorie <dj@redhat.com>
1212
1213 * reloc.c: Remove unused M32C relocs, add BFD_RELOC_M32C_HI8.
1214 * libbfd.h: Regenerate.
1215 * bfd-in2.h: Regenerate.
1216
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.
1221
3b22753a
L
12222005-07-25 Jan Hubicka <jh@suse.cz>
1223 H.J. Lu <hongjiu.lu@intel.com>
1224
1225 * elf-bfd.h (_bfd_elf_large_com_section): New.
1226 * elf.c (_bfd_elf_large_com_section): New. Defined.
1227
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.
1245
a4d8e49b
L
12462005-07-25 H.J. Lu <hongjiu.lu@intel.com>
1247
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.
1253
1254 * elf.c (elf_fake_sections): Don't clear sh_flags.
1255
1256 * elflink.c (_bfd_elf_merge_symbol): Call backend merge_symbol
1257 if it is available.
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.
1266
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.
1273
1274 * section.c (BFD_FAKE_SECTION): New.
1275 (STD_SECTION): Use it.
1276 * bfd-in2.h: Regenerated.
1277
58ac56d0
L
12782005-07-23 Olaf Hering <olh@suse.de>
1279
1280 * elflink.c (elf_link_input_bfd): Add '\n' for linker einfo
1281 callback.
1282
9f971fcb
NC
12832005-07-21 Ralf Corsepius <ralf.corsepius@rtems.org>
1284
1285 * config.bfd: Remove i[3-7]86-*-rtemself*.
1286 Remove sparc-*-rtemself*.
1287
a9b7b174
NC
12882005-07-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1289
1290 * elf32-m32r.c (m32r_elf_check_relocs): Fix pc count for
1291 R_M32R_REL32.
1292
240a3425
BE
12932005-07-21 Ben Elliston <bje@gnu.org>
1294
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.
1309
157e7bd1
NC
13102005-07-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1311
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.
1317
85da3a56
NC
13182005-07-18 Nick Clifton <nickc@redhat.com>
1319
1320 * reloc.c: Add M32C and MS1 relocs.
1321 * bfd-in2.h: Regenerate.
1322 * libbfd.h: Regenerate.
1323
13242005-07-18 Nick Clifton <nickc@redhat.com>
1325
1326 * config.bfd: Move m32c entry to correct location.
9e8cc8b4
AM
1327 * archures.c: Likewise.
1328 * configure.in: Likewise.
1329 * configure: Regenerate.
1330 * targets.c: Move ms1 vector to correct location.
85da3a56 1331
ac2aa337
JB
13322005-07-18 Jan Beulich <jbeulich@novell.com>
1333
1334 * elf32-i386.c (elf_howto_table): Adjust overflow complaint handler
1335 for R_386_PC16.
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.
1338
9a20ed6e 13392005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
cc86ff91
EB
1340
1341 PR ld/1021
1342 PR ld/1031
1343 * elflink.c (elf_link_add_object_symbols): Also append the version
1344 name to non-hidden absolute symbols that are functions.
1345
42fa7765
AM
13462005-07-16 Alan Modra <amodra@bigpond.net.au>
1347
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.
1351
0f82ff91
AM
13522005-07-16 Alan Modra <amodra@bigpond.net.au>
1353
1354 * Makefile.am: Run "make dep-am".
1355 * Makefile.in: Regenerate.
1356
2db662be
BW
13572005-07-15 Bob Wilson <bob.wilson@acm.org>
1358
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.
1363
eaae8ded
AM
13642005-07-15 Alan Modra <amodra@bigpond.net.au>
1365
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.
1371
49f58d10
JB
13722005-07-14 Jim Blandy <jimb@redhat.com>
1373
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.
1393
a3c2b96a
AM
13942005-07-14 Alan Modra <amodra@bigpond.net.au>
1395
1396 * bfd-in.h (_bfd_elf_fix_excluded_sec_syms): Declare.
1397 (_bfd_elf_provide_section_bound_symbols): Remove param name.
1398 Formatting.
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.
1409
1787c340
NC
14102005-07-14 Paul Woegerer <paul.woegerer@nsc.com>
1411
cb4aa473 1412 PR 1063
1787c340
NC
1413 * cache.c (bfd_last_cache): Initialise to NULL.
1414
15ac1d4f
NC
14152005-07-14 Daniel Marques <marques@cs.cornell.edu>
1416 Nick Clifton <nickc@redhat.com>
1417
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
a3c2b96a 1422 compilers.
15ac1d4f 1423
d4909375
SE
14242005-07-13 Steve Ellcey <sje@cup.hp.com>
1425
1426 * bfd.m4 (BFD_NEED_DECLARATION): Remove.
1427
15b552e9
AM
14282005-07-12 Alan Modra <amodra@bigpond.net.au>
1429
1430 * elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub
1431 when !can_plt_call.
1432
70961b9d
AM
14332005-07-12 Alan Modra <amodra@bigpond.net.au>
1434
1435 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Warning fix.
1436
632a56fd
AM
14372005-07-12 Alan Modra <amodra@bigpond.net.au>
1438
1439 * elf32-ppc.c (ppc_elf_set_sdata_syms): Correct __sbss_start value.
1440
49ff44d6
L
14412005-07-11 H.J. Lu <hongjiu.lu@intel.com>
1442
1443 * elflink.c (_bfd_elf_symbol_refs_local_p): Revert the last
1444 change.
1445
0af4cd7c
PK
14462005-07-08 Paul Koning <pkoning@equallogic.com>
1447
1448 * dwarf2.c (read_address): Check sign_extend_vma to handle targets
1449 where addresses are sign extended.
1450
7e4e2059
NC
14512005-07-08 Ralf Corsepius <ralf.corsepius@rtems.org>
1452
1453 * config.bfd: Mark i960-*-rtems*, or32-*-rtems* as obsolete.
a3c2b96a 1454 Mark a29k-*rtems*, hppa*-*-rtems*, *-go32-rtems*,
7e4e2059
NC
1455 i[3-7]86*-*-rtemscoff*, mips*el-*-rtems*, powerpcle-*-rtems*,
1456 sparc*-*-rtemsaout* as removed
1457
c456f082
AM
14582005-07-08 Alan Modra <amodra@bigpond.net.au>
1459
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
1468 .dynsbss.
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
1474 it is zero size.
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
1478 too.
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
1489 reloc section.
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.
1499
6c98dd1e
BE
15002005-07-08 Ben Elliston <bje@au.ibm.com>
1501
1502 * elf32-xtensa.c: Include <stdarg.h> unconditionally, not only
1503 when ANSI_PROTOTYPES is defined. Remove #ifdef logic.
1504
29ef7005
L
15052005-07-07 H.J. Lu <hongjiu.lu@intel.com>
1506
1507 * elf-bfd.h (elf_backend_data): Add special_sections.
1508
1509 * elf.c (_bfd_elf_get_sec_type_attr): Check special_sections
1510 first.
1511
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.
1528
1529 * elfxx-target.h (elf_backend_special_sections): New.
1530 (elfNN_bed): Initialize special_sections.
1531
074f5109
BW
15322005-07-07 Bob Wilson <bob.wilson@acm.org>
1533
1534 * xtensa-modules.c: Update tables with Xtensa MMU features.
1535
0fd3a477
JW
15362005-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1537
1538 * elf32-xtensa.c (vsprint_msg): Add format attribute. Fix
1539 format bugs.
1540 * vms.h (_bfd_vms_debug): Add format attribute.
1541 (_bfd_vms_debug, _bfd_hexdump): Fix typos.
1542
9968d831
L
15432005-07-07 H.J. Lu <hongjiu.lu@intel.com>
1544
1545 PR 975
1546 * elflink.c (_bfd_elf_symbol_refs_local_p): Only undefined
1547 symbol with default visibility is local.
1548
3b1fcf96
BE
15492005-07-07 Ben Elliston <bje@gnu.org>
1550
1551 * config.bfd: Mark m68*-*-rtemscoff as obsolete.
1552
5cf2e3f0
L
15532005-07-06 H.J. Lu <hongjiu.lu@intel.com>
1554
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.
1559
0adc9281
NC
15602005-07-06 Nick Clifton <nickc@redhat.com>
1561
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.
1565
1566 * ecoff.c (_bfd_ecoff_write_object_contents): Cope with a reloc
1567 with a missing howto field.
1568
cfbe541f
AM
15692005-07-06 Alan Modra <amodra@bigpond.net.au>
1570
1571 * po/SRC-POTFILES.in: Add cpu-ms1.c, elf32-ms1.c, elf-vxworks.c,
1572 elfxx-sparc.c.
1573
d5e3d971
PB
15742005-07-05 Paul Brook <paul@codesourcery.com>
1575
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.
1580
3ec2b351
NC
15812005-07-05 Nick Clifton <nickc@redhat.com>
1582
1583 * elf64-ppc.c (ppc64_elf_info_to_howto): Fix typo.
1584
d5e3d971 15852005-07-05 Paul Brook <paul@codesourcery.com>
9d8504b1
PB
1586
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
1591 .rela.plt.unloaded.
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.
1618
c6c60d09
JJ
16192005-07-05 Jakub Jelinek <jakub@redhat.com>
1620
9e492e05
JJ
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
1634 is not terminated.
1635
d0fb9a8d
JJ
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
1645 where appropriate.
1646 * bfd-in2.h: Rebuilt.
1647 * libbfd.h: Rebuilt.
1648
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.
1660
c6c60d09
JJ
1661 * elf.c (bfd_elf_get_str_section): Allocate an extra byte after
1662 the end of strtab and clear it.
1663 (elf_read): Remove.
1664
dcd4b381
NC
16652005-07-05 Nick Clifton <nickc@redhat.com>
1666
1667 * po/vi.po: New Vietnamese translation.
1668 * configure.in (ALL_LINGUAS): Add vi.
1669 * configure: Regenerate.
1670
8532796c
NC
16712005-07-05 Peter S. Mazinger <ps.m@gmx.net>
1672
1673 * elf32-arm.c (elf32_arm_size_dynamic_sections): Fix a typo and
1674 touchup logic like i386/ppc.
1675
b35d266b
AM
16762005-07-05 Alan Modra <amodra@bigpond.net.au>
1677
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
1681 const.
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.
1697
80447b21
NC
16982005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1699
1700 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Use
1701 info->executable instead of !info->shared where appropriate.
1702
540b09cb
AM
17032005-07-04 Alan Modra <amodra@bigpond.net.au>
1704
1705 PR 1042
1706 * elf.c (assign_file_positions_for_segments): Remove excluded
1707 sections from the segment map.
1708
551b43fd
AM
17092005-07-04 Alan Modra <amodra@bigpond.net.au>
1710
1711 PR 1004
1712 * elf-bfd.h (struct elf_backend_data): Add get_sec_type_attr. Delete
1713 special_sections.
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.
1751
47b0e7ad
NC
17522005-07-01 Nick Clifton <nickc@redhat.com>
1753
1754 * cpu-d10v.c: Update to ISO C90 style function declarations and
1755 fix formatting.
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.
1773
85d162e6
AM
17742005-07-01 Alan Modra <amodra@bigpond.net.au>
1775
1776 * elf64-alpha.c (elf64_alpha_create_got_section): Always create
1777 a new .got section.
1778 (elf64_alpha_create_dynamic_sections): Always make new sections
1779 by using bfd_make_section_anyway_with_flags. Check that .got not
1780 already created.
1781 (elf64_alpha_check_relocs): Delete "got_created". Use tdata->gotobj
1782 instead.
1783
b116d4a7
AM
17842005-06-30 Alan Modra <amodra@bigpond.net.au>
1785
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.
1791
7f41b278
BE
17922005-06-30 Ben Elliston <bje@gnu.org>
1793
1794 * config.bfd: Mark as obsolete:
1795 m68*-apollo-*
1796 m68*-apple-aux*
1797 m68*-bull-sysv*
1798
39c2f51b
AM
17992005-06-29 Alan Modra <amodra@bigpond.net.au>
1800
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.
1810
e8aaee2a
AM
18112005-06-29 Alan Modra <amodra@bigpond.net.au>
1812
1813 * elflink.c (elf_gc_sweep): Do not refcount on sections that have
1814 not been processed by check_relocs.
1815
3b2175db
PB
18162005-06-29 Paul Brook <paul@codesourcery.com>
1817
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
1821 relative.
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.
1825
a63e02c7
DA
18262005-06-27 Carlos O'Donell <carlos@systemhalted.org>
1827
c456f082 1828 * bfd/elf32-hppa.c (struct elf32_hppa_stub_hash_entry):
a63e02c7
DA
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.
1857
5f1cb353
L
18582005-06-27 H.J. Lu <hongjiu.lu@intel.com>
1859
1860 * elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): Remove
1861 the extra `;'.
1862
875c0872
DA
18632005-06-21 Carlos O'Donell <carlos@systemhalted.org>
1864
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.
1894
973a3492
L
18952005-06-20 H.J. Lu <hongjiu.lu@intel.com>
1896
1897 PR 1025
1898 * elf-m10300.c (mn10300_elf_check_relocs): Handle indirect
1899 symbol.
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.
1927
71cb9464
L
19282005-06-20 H.J. Lu <hongjiu.lu@intel.com>
1929
f7c5057a
L
1930 PR 1022
1931 * elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect
1932 symbol.
1933
19342005-06-20 H.J. Lu <hongjiu.lu@intel.com>
1935
1936 PR 1025
71cb9464
L
1937 * elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol.
1938 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
1939
73d147dc
L
19402005-06-18 H.J. Lu <hongjiu.lu@intel.com>
1941
1942 * reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and
1943 BFD_RELOC_X86_64_GOTPC32.
1944 * bfd-in2.h: Regenerated.
1945
a50b2160
JJ
19462005-06-17 Jakub Jelinek <jakub@redhat.com>
1947
aa2ca951
JJ
1948 * elf.c (bfd_section_from_shdr): Kill bogus warning.
1949
a50b2160
JJ
1950 * elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for
1951 symbol, relocation, group or versym sections.
1952
1953 * coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs
1954 is NULL.
1955 * peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address
1956 doesn't point into the section.
1957
d6ab8113
JB
19582005-06-17 Jan Beulich <jbeulich@novell.com>
1959
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.
1972
b820f1e4
MK
19732005-06-15 Mark Kettenis <kettenis@gnu.org>
1974
1975 * archive.c: Include "libiberty.h".
1976
46767561
NC
19772005-06-15 Nick Clifton <nickc@redhat.com>
1978
1979 * elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries
1980 produced by the GreenHills toolchain can be assimilated.
1981
580a09db
DA
19822005-06-14 Steve Ellcey <sje@cup.hp.com>
1983
1984 * som.c (som_find_inliner_info): New.
1985
91134c82
L
19862005-06-14 H.J. Lu <hongjiu.lu@intel.com>
1987
1988 * elflink.c (_bfd_elf_merge_symbol): Fix a typo in comment.
1989
933d961a
JJ
19902005-06-14 Jakub Jelinek <jakub@redhat.com>
1991
1992 * elf.c (bfd_section_from_shdr): Fail if name is NULL.
1993 Prevent endless recursion on broken objects.
1994
1995 * archive.c (do_slurp_coff_armap): Check for overflows.
1996
9a44bbd9
DJ
19972005-06-10 Daniel Jacobowitz <dan@codesourcery.com>
1998
1999 * elfcode.h (elf_write_relocs): Do nothing if there are no
2000 relocations.
2001
75758e9d
AM
20022005-06-10 Alan Modra <amodra@bigpond.net.au>
2003
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
2006 been set.
2007
2ae0844c
CF
20082005-06-09 Christopher Faylor <cgf@timesys.com>
2009
2010 * coffcode.h (sec_to_styp_flags): Set appropriate section flags when
2011 either SEC_ALLOC OR SEC_LOAD.
2012
3b137b9a
CF
20132005-06-09 Christopher Faylor <cgf@timesys.com>
2014
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
2017 a valid PE flag.
2018
6bd00c5d
L
20192005-06-09 H.J. Lu <hongjiu.lu@intel.com>
2020
2021 PR 1000
2022 * dwarf2.c (lookup_address_in_line_info_table): Restore code
2023 handling NULL function info, removed with 2005-04-03 change.
2024
a366f4ff
MM
20252005-06-08 Mark Mitchell <mark@codesourcery.com>
2026
2027 * opncls.c (bfd_fopen): Mark returned BFD as cacheable if FD == -1.
2028
0e58fcf3
AM
20292005-06-09 Alan Modra <amodra@bigpond.net.au>
2030
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.
2035
92a7c1b8
AM
20362005-06-08 Alan Modra <amodra@bigpond.net.au>
2037
2038 * opncls.c (bfd_fopen): Don't set bfd_error unconditionally.
d83747fa 2039 (bfd_fdopenr): Same.
92a7c1b8 2040
dfab97d6
MM
20412005-06-07 Mark Mitchell <mark@codesourcery.com>
2042
2043 * opncls.c (bfd_fdopenr): Add missing break statements.
2044
2d0123b7
MM
20452005-06-07 Mark Mitchell <mark@codesourcery.com>
2046
2047 * opncls.c (bfd_fopen): New API.
2048 (bfd_openr): Use it.
2049 (bfd_fdopenr): Likewise.
2050 * bfd-in2.h: Regenerated.
2051
de33e640
AH
20522005-06-07 Aldy Hernandez <aldyh@redhat.com>
2053 Michael Snyder <msnyder@redhat.com>
2054 Stan Cox <scox@redhat.com>
2055
2056 * Makefile.am (ALL_MACHINES): Add ms1 support.
2057 (ALL_MACHINES_CFILES): Same.
2058 (BFD32_BACKENDS): Same.
2059 (BFD32_BACKENDS_CFILES): Same.
2060
2061 * Makefile.in: Regenerate.
2062
2063 * archures.c (bfd_architecture): Add ms1 entries.
2064 Externalize bfd_ms1_arch.
2065 (bfd_archures_list): Add bfd_ms1_arch.
2066
2067 * bfd-in2.h: Regenerate.
2068
2069 * cpu-ms1.c: New file.
2070
2071 * elf32-ms1.c: New file.
2072
2073 * targets.c: Define extern of bfd_elf32_ms1_vec.
2074 Add bfd_elf32_ms1_vec to _bfd_target_vector.
2075
2076 * configure.in: Add bfd_elf32_ms1_vec case.
2077
2078 * configure: Regenerate.
2079
2080 * config.bfd: Add ms1-*-elf to table.
2081
55cf6793
ZW
20822005-06-07 Zack Weinberg <zack@codesourcery.com>
2083
2084 * coff-i386.c: Change md_apply_fix3 to md_apply_fix in comment.
2085
4575b1b5
AM
20862005-06-07 Alan Modra <amodra@bigpond.net.au>
2087
2088 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Init _bfd_find_line.
2089 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
2090
5420f73d
L
20912005-06-06 H.J. Lu <hongjiu.lu@intel.com>
2092
2093 PR 990
2094 * bfd.c (bfd_find_line): New.
2095
2096 * dwarf2.c (comp_unit): Add variable_table.
2097 (funcinfo): Add file, line, and sec.
2098 (varinfo): New.
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
2103 DW_TAG_variable.
2104 (comp_unit_find_nearest_line): Updated.
2105 (comp_unit_find_line): New.
2106 (_bfd_dwarf2_find_line): New.
2107
2108 * elf-bfd.h (_bfd_elf_find_line): New.
2109 (_bfd_generic_find_line): New. Defined.
2110
2111 * elf.c (_bfd_elf_find_line): New.
2112
2113 * libbfd-in.h (_bfd_dwarf2_find_line): New.
2114 (_bfd_generic_find_line): New.
2115
2116 * bfd-in2.h: Regenerated.
2117 * libbfd.h: Likewise.
2118
2119 * libbfd.c (_bfd_generic_find_line): New.
2120
2121 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize _bfd_find_line
2122 with _bfd_generic_find_line.
2123 (bfd_target): Add _bfd_find_line.
2124
b42f9a05
L
21252005-06-06 H.J. Lu <hongjiu.lu@intel.com>
2126
2127 * dwarf2.c (decode_line_info): Properly set low_pc.
2128
b4f4e59f
AM
21292005-06-06 Alan Modra <amodra@bigpond.net.au>
2130
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.
46de2a7c
AM
2135 Ignore zero size .opd. Check bfd_alloc return value.
2136 (ppc_stub_name): Return immediately on bfd_malloc fail.
b4f4e59f
AM
2137 * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
2138
2ae727ad
L
21392005-06-04 H.J. Lu <hongjiu.lu@intel.com>
2140
2141 * dwarf2.c (comp_unit): Fix a typo in comment.
2142
ce71b576
NC
21432005-06-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2144
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.
2170
9635fe29
AM
21712005-06-03 Alan Modra <amodra@bigpond.net.au>
2172
e1fffbe6
AM
2173 PR 568
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.
2180
9635fe29
AM
2181 * elf32-i386.c (elf_i386_relocate_section): Handle zero symndx
2182 for all reloc types.
2183
e87d886e
AM
21842005-06-02 Alan Modra <amodra@bigpond.net.au>
2185
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
2188 as defined.
2189
b2b09913
JB
21902005-05-31 Jim Blandy <jimb@redhat.com>
2191
2192 * Makefile.am: Regenerate dependencies with 'make dep-am'.
2193 * Makefile.in: Regenerate.
2194
8288a39e
RH
21952005-05-31 Richard Henderson <rth@redhat.com>
2196
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.
2203
f1c71a59
ZW
22042005-05-31 Zack Weinberg <zack@codesourcery.com>
2205
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.
2209
653bb2de
JW
22102005-05-31 James E Wilson <wilson@specifixinc.com>
2211
2212 * elfcode.h (NAME(bfd_elf,bfd_from_remote_memory)): Check for program
2213 header PF_R flag on PT_LOAD segments.
2214
f915360b
RH
22152005-05-30 Richard Henderson <rth@redhat.com>
2216
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.
2219
6ec7057a
RH
22202005-05-29 Richard Henderson <rth@redhat.com>
2221
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
2242 plt entries here.
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
2246 got subsection.
2247 (elf64_alpha_size_plt_section): Size .got.plt section.
2248 (elf64_alpha_size_rela_got_1): Don't allocate relocations if
2249 plt entries used.
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.
2254
3133ddbf
DJ
22552005-05-28 David Daney <ddaney@avtrex.com>
2256
2257 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Move
2258 calculation of DT_RELSZ to occur after all dynamic relocations
2259 are created.
2260
36527912
AJ
22612005-05-28 Eli Zaretskii <eliz@gnu.org>
2262
2263 * configure.in: Add snprintf and vsnprintf to AC_CHECK_DECLS.
2264 * config.in, configure: Regenerate.
2265
1bc8074d 22662005-05-26 Mark Kettenis <kettenis@gnu.org>
6ec7057a 2267 Maciej W. Rozycki <macro@linux-mips.org>
1bc8074d
MR
2268
2269 * elfxx-mips.c (_bfd_mips_elf_section_processing): Warn and
2270 stop processing of options if one of invalid size is
2271 encountered.
2272 (_bfd_mips_elf_section_from_shdr): Likewise.
2273 (_bfd_mips_elf_fake_sections): Reset the type of empty special
2274 sections.
2275
75fed80d
RH
22762005-05-26 Richard Henderson <rth@redhat.com>
2277
36527912 2278 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Remove
75fed80d
RH
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.
2282
24639c7d
JJ
22832005-05-26 Jakub Jelinek <jakub@redhat.com>
2284
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.
2289
a7519a3c
RH
22902005-05-25 Richard Henderson <rth@redhat.com>
2291
2292 * elf64-alpha.c: Update all function definitions to ISO C. Remove
2293 all function prototypes; rearrange functions into def-use order.
2294
308da68f
RH
22952005-05-25 Richard Henderson <rth@redhat.com>
2296
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.
2300
4ab527b0
FF
23012005-05-23 Fred Fish <fnf@specifixinc.com>
2302
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
2309 table.
2310 (lookup_address_in_function_table): Traverse the function list to
2311 create a chain of inlined functions back to the first non inlined
2312 function.
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.
2321
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.
2327
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.
36527912 2332
4ab527b0
FF
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.
2336
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.
2344
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.
2350
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.
36527912 2359
4ab527b0
FF
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.
2377
2378 * ieee.c (ieee_find_inliner_info): New function that always
2379 returns FALSE.
2380 * oasys.c (oasys_find_inliner_info): Ditto.
2381 * vms.c (vms_find_inliner_info): Ditto.
2382
9edfd1af
AM
23832005-05-24 Alan Modra <amodra@bigpond.net.au>
2384
2385 * elf32-ppc.c (ppc_elf_check_relocs): For old gcc -fPIC code
2386 force old plt layout.
2387
3241278a
RH
23882005-05-22 Richard Henderson <rth@redhat.com>
2389
2390 * elf64-alpha.c (elf64_alpha_relax_section): Ignore non-allocated
2391 sections.
2392 (elf64_alpha_check_relocs): Likewise.
2393 (elf64_alpha_relocate_section): Don't emit dynamic relocations to
2394 non-allocated sections.
2395
d6ad34f6
RH
23962005-05-22 Richard Henderson <rth@redhat.com>
2397
36527912 2398 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr to
d6ad34f6
RH
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.
2406
487c4353
RH
24072005-05-22 Richard Henderson <rth@redhat.com>
2408
2409 * elf64-alpha.c (elf64_alpha_relax_section): Only operate
2410 on SEC_CODE sections.
2411
a96afa0f
DA
24122005-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2413
2414 * som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to
2415 unsigned int *.
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
2418 char *comp[4].
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
2422 char *.
2423 * som.h (struct som_section_data_struct): Change type of reloc_stream
2424 field to unsigned char *.
2425
643796e3
DJ
24262005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
2427
2428 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
2429 copy relocations for VxWorks.
2430
4dc4a9a5
DJ
24312005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
2432
2433 * bfd/elf32-ppc.c (struct ppc_elf_link_hash_entry): Add new field
2434 has_sda_refs.
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
2440 .sbss.
2441
dd1a320b
BW
24422005-05-20 Bob Wilson <bob.wilson@acm.org>
2443
2444 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
2445 xtensa_default_isa is initialized.
2446
28e99bb6
AM
24472005-05-20 Alan Modra <amodra@bigpond.net.au>
2448
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.
2454
e3e71e27
ZW
24552005-05-19 Zack Weinberg <zack@codesourcery.com>
2456
2457 * Makefile.am: Have 'all' depend on 'info'.
2458 * Makefile.in: Regenerate.
2459
a6aa5195
AM
24602005-05-19 Alan Modra <amodra@bigpond.net.au>
2461
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
2493 pic resolver stub.
2494
a49e53ed
AM
24952005-05-19 Alan Modra <amodra@bigpond.net.au>
2496
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.
2500
cb1afa5c
ZW
25012005-05-18 Zack Weinberg <zack@codesourcery.com>
2502
2503 * elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks
2504 unconditional.
2505
13792e9d
L
25062005-05-18 H.J. Lu <hongjiu.lu@intel.com>
2507
2508 * elf.c (group_signature): Undo the last change. Check if the
2509 symbol table section is correct.
2510
c19d1205
ZW
25112005-05-17 Zack Weinberg <zack@codesourcery.com>
2512
2513 * elf32-arm.c: Wherever possible, use official reloc names
2514 from AAELF.
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.
2531
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.
2539
26ae6d5e
DJ
25402005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
2541
2542 * elf.c (_bfd_elf_write_object_contents): Check for non-NULL
2543 elf_shstrtab.
2544 * format.c (bfd_check_format_matches): Set output_has_begun
2545 for both_direction.
2546 * section.c (bfd_set_section_contents): Use bfd_write_p. Remove
2547 special case for both_direction.
2548
5982e3c7
NC
25492005-05-17 Nick Clifton <nickc@redhat.com>
2550
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.
2554
fc3ab699
L
25552005-05-17 H.J. Lu <hongjiu.lu@intel.com>
2556
2557 * elfxx-ia64.c (elfNN_ia64_relax_brl): Undo the change made on
2558 2005-02-16.
2559
5e27d427
L
25602005-05-17 H.J. Lu <hongjiu.lu@intel.com>
2561
2562 * elfxx-ia64.c (elfNN_ia64_relax_br): Keep the original
2563 predicate on slot 0 only if slot 0 isn't br.
2564
75ff4589
L
25652005-05-17 H.J. Lu <hongjiu.lu@intel.com>
2566
2567 PR 797
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.
2571
8e0ed13f
NC
25722005-05-17 Tavis Ormandy <taviso@gentoo.org>
2573
2574 * elf.c (bfd_section_from_shdr): Add sanity check when parsing
2575 dynamic sections.
2576
7e8aeb9a
AM
25772005-05-17 Alan Modra <amodra@bigpond.net.au>
2578
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.
2583
641bd093
NC
25842005-05-17 Nick Clifton <nickc@redhat.com>
2585
10dbd1f3
NC
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
2589 OS.
2590
641bd093
NC
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
2593 actually used.
2594
83b6bd86
L
25952005-05-16 H.J. Lu <hongjiu.lu@intel.com>
2596
2597 PR 834
2598 * elfxx-ia64.c (elfNN_ia64_relax_br): New.
2599 (elfNN_ia64_relax_section): Use it.
2600
06084812
MK
26012005-05-14 Mark Kettenis <kettenis@gnu.org>
2602
2603 * elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead
2604 of basename.
2605
1fe44d79
AM
26062005-05-14 Alan Modra <amodra@bigpond.net.au>
2607
2608 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set DT_PPC_GOT,
2609 not DT_PPC_GLINK.
2610 (ppc_elf_finish_dynamic_sections): Likewise.
2611
2db3311b
FF
26122005-05-13 Fred Fish <fnf@specifixinc.com>
2613
2614 * libbfd-in.h: Fix a comment typo, 'neaderst' -> 'nearest'
2615 * libbfd.h: Rebuilt.
2616
7db48a12
BW
26172005-05-13 Bob Wilson <bob.wilson@acm.org>
2618
2619 * elf32-xtensa.c (xtensa_get_property_section_name): Add missing
2620 periods in linkonce_kind values.
2621
8fe76924
L
26222005-05-12 H.J. Lu <hongjiu.lu@intel.com>
2623
2624 * elf32-i386.c (elf_i386_relocate_section): Allow R_386_GOTOFF
2625 against protected function when building executable.
2626
86b9da88
AM
26272005-05-12 Alan Modra <amodra@bigpond.net.au>
2628
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
2633 table.
2634 (ppc_elf_finish_dynamic_symbol): Point .plt entries into the branch
2635 table.
2636 (ppc_elf_finish_dynamic_sections): Adjust DT_PPC_GLINK value.
2637 Generate .glink branch table and updated stubs.
2638
d7128ce4
AM
26392005-05-11 Alan Modra <amodra@bigpond.net.au>
2640
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
2665 of R_PPC_PLTREL24.
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.
2673
4c9b0de6
AS
26742005-05-11 Andreas Schwab <schwab@suse.de>
2675
2676 * elf32-i386.c (elf_i386_finish_dynamic_sections): Fix signedness
2677 warning.
2678
3d2b39cf
L
26792005-05-10 H.J. Lu <hongjiu.lu@intel.com>
2680
2681 * elf.c (_bfd_elf_make_section_from_shdr): Only check debug
2682 section if SEC_ALLOC isn't set.
2683
2ba49b59
KC
26842005-05-09 Kelley Cook <kcook@gcc.gnu.org>
2685
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.
2689
433817dd
AM
26902005-05-09 Alan Modra <amodra@bigpond.net.au>
2691
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.
2698
0560d0f7
AM
26992005-05-09 Alan Modra <amodra@bigpond.net.au>
2700
2701 * elfcode.h (elf_object_p): Add more sanity checks on elf header.
2702
74cc7600
DK
27032005-05-08 Dave Korn <dave.korn@artimi.com>
2704
2705 * coff-tic80.c: Undefine _CONST after system headers to prevent
2706 clash with tic80-specific definition in include/coff/tic80.h
2707
cfca085c
L
27082005-05-08 H.J. Lu <hongjiu.lu@intel.com>
2709
2710 PR 939
2711 * elflink.c (elf_link_output_extsym): Use output_bfd if
2712 h->root.u.def.section is bfd_abs_section_ptr when reporting
2713 error.
2714
7f4d3958
L
27152005-05-07 H.J. Lu <hongjiu.lu@intel.com>
2716
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.
2736
2737 * elf.c (get_special_section): Updated.
2738
3b36f7e6
AM
27392005-05-07 Alan Modra <amodra@bigpond.net.au>
2740
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
2744 got_symbol_offset.
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
2751 and got_gap.
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-
2763 coded 4.
2764 (ppc_elf_finish_dynamic_sections): Likewise.
2765 (elf_backend_got_symbol_offset): Don't define.
2766 (elf_backend_got_header_size): Ditto.
2767
2e0fbf77
JW
27682005-05-05 Steve Ellcey <sje@cup.hp.com>
2769
2770 * configure.in (ACX_HEADER_STRING): New.
2771 * configure: Regenerate.
2772 * config.in: Regenerate.
2773 * sysdep.h (STRING_WITH_STRINGS): Use.
2774
6f140a15
L
27752005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2776
2777 * elf.c (_bfd_elf_close_and_cleanup): Only call
2778 _bfd_dwarf2_cleanup_debug_info on bfd_object.
2779
01d9ad14
L
27802005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2781
2782 * elflink.c (_bfd_elf_provide_section_bound_symbols): Use
2783 "__bss_start" instead of "_edata" as fallback.
2784
b36b76cb
L
27852005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2786
2787 * bfd-in2.h: Regenerated.
2788
eac338cf
PB
27892005-05-05 Paul Brook <paul@codesourcery.com>
2790
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
2793 elf-vxworks.lo.
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
d7128ce4 2821 if we have exported symbols from them.
eac338cf
PB
2822 (elf_i386_finish_dynamic_symbol): Fill in VxWorks PLT static
2823 relocation section. Don't mark _GLOBAL_OFFSET_TABLE_ as absolute on
2824 VxWorks.
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.
2830
3496cb2a
L
28312005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2832
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.
2837
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.
2909
2910 * elf.c (_bfd_elf_new_section_hook): Call _bfd_elf_get_sec_type_attr
2911 on linker created sections.
2912
59fef9e7
L
29132005-05-05 H.J. Lu <hongjiu.lu@intel.com>
2914
2915 PR 882
2916 * elflink.c (_bfd_elf_link_assign_sym_version): Allow version
2917 script on executable.
2918
35330cce
NC
29192005-05-05 John Levon <levon@movementarian.org>
2920
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.
6f140a15 2927 * elf.c (_bfd_elf_close_and_cleanup): Call
35330cce
NC
2928 _bfd_dwarf2_cleanup_debug_info.
2929
4a2a2686
HPN
29302005-05-05 Hans-Peter Nilsson <hp@axis.com>
2931
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.
2936
0baace35
HPN
29372005-05-05 Hans-Peter Nilsson <hp@axis.com>
2938
2939 * sysdep.h (stpcpy): Wrap declaration in parentheses.
2940
5a260b66
L
29412005-05-04 H.J. Lu <hongjiu.lu@intel.com>
2942
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.
2956
29572005-05-04 H.J. Lu <hongjiu.lu@intel.com>
2958
2959 * configure.in: Add AC_CHECK_DECLS(stpcpy).
2960 * configure: Regenerate.
2961 * config.in: Likewise.
2962
2963 * sysdep.h (stpcpy): New.
2964
3e110533
NC
29652005-05-04 Nick Clifton <nickc@redhat.com>
2966
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,
11d02c41 3039 hosts/alphavms.h
3e110533 3040
f652615e
L
30412005-05-04 H.J. Lu <hongjiu.lu@intel.com>
3042
3043 * bfd-in.h (_bfd_elf_provide_section_bound_symbols): New.
3044 * bfd-in2.h: Regenerated.
3045
3046 * elflink.c (bfd_elf_set_symbol): New.
3047 (_bfd_elf_provide_symbol): Call it.
3048 (_bfd_elf_provide_section_bound_symbols): New.
3049
c5e2cead
L
30502005-05-04 H.J. Lu <hongjiu.lu@intel.com>
3051
3052 * elflink.c (_bfd_elf_merge_symbol): Only skip weak definitions
3053 at the end, if a strong definition has already been seen.
3054
8423293d
AM
30552005-05-04 Alan Modra <amodra@bigpond.net.au>
3056
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.
3067 * elf.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.
3098
04dd1667
AM
30992005-05-04 Alan Modra <amodra@bigpond.net.au>
3100
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.
3112
5daa8fe7
L
31132005-05-02 H.J. Lu <hongjiu.lu@intel.com>
3114
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.
3120
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.
3130
3131 * ecoff.c (bfd_debug_section): Initialize prev.
3132
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.
3143
3144 * bfd-in2.h: Regenerated.
3145
a31501e9
L
31462005-05-02 H.J. Lu <hongjiu.lu@intel.com>
3147
3148 * elf.c (_bfd_elf_new_section_hook): Don't call
3149 _bfd_elf_get_sec_type_attr on sections from input files.
3150
d05da6a8
L
31512005-05-02 H.J. Lu <hongjiu.lu@intel.com>
3152
3153 * merge.c (sec_merge_init): Call bfd_hash_table_init_n with
3154 hash table size 16699 instead of bfd_hash_table_init.
3155
a67b080b
PB
31562005-05-01 Paul Brook <paul@codesourcery.com>
3157
3158 * elflink.c (_bfd_elf_merge_symbol): Skip weak definitions if a strong
3159 definition has already been seen.
3160
c6596c5e
PB
31612005-05-01 Paul Brook <paul@codesourcery.com>
3162
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.
3166
9a813b7a
DJ
31672005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
3168
3169 * config.bfd: Add h8300*-*-rtemscoff.
3170 Switch h8300*-*-rtems* to elf.
3171
aa7eb06d
DJ
31722005-04-29 Daniel Jacobowitz <dan@codesourcery.com>
3173
3174 * aclocal.m4, Makefile.in: Regnerated.
3175
fa0d1cab
PB
31762005-04-28 Paul Brook <paul@codesourcery.com>
3177
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.
3184
0291d291
NC
31852005-04-28 Julian Brown <julian@codesourcery.com>
3186
3187 * elflink.c (_bfd_elf_provide_symbol): Provide symbol for weak
3188 import.
3189
26c61ae5
L
31902005-04-27 H.J. Lu <hongjiu.lu@intel.com>
3191
3192 * elf-bfd.h (bfd_elf_sym_name): Also take "asection *".
3193
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.
3202
3203 * elfxx-ia64.c (elfNN_ia64_relocate_section): Call
3204 bfd_elf_sym_name to get local symbol name when reporting errors.
3205
8c19749a
NC
32062005-04-27 Nick Clifton <nickc@redhat.com>
3207
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
3210 global symbol.
3211
8e5b6e16
JG
32122005-04-26 Jerome Guitton <guitton@gnat.com>
3213
3214 * bfd.m4 (BFD_NEED_DECLARATION): Restore.
3215
e459dc7b
DM
32162005-04-25 David S. Miller <davem@davemloft.net>
3217
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):
3221 Likewise.
3222
6d633fd2
L
32232005-04-25 H.J. Lu <hongjiu.lu@intel.com>
3224
3225 PR 858
3226 * elflink.c (elf_link_input_bfd): Make non-debugging reference
3227 to discarded section an error.
3228
d34a2b1d
JG
32292005-04-21 Jerome Guitton <guitton@gnat.com>
3230
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
3234 HAVE_DECL_*.
3235 * bfd.m4 (BFD_NEED_DECLARATION): Remove, obsolete.
3236 * configure: Regenerate.
3237 * config.in: Ditto.
3238
ff01938b
AS
32392005-04-21 Andreas Schwab <schwab@suse.de>
3240
c2e70a82
AS
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
3244 casts again.
3245
ff01938b
AS
3246 * elf.c (assign_section_numbers): Fix comment.
3247
0858d3ec
JG
32482005-04-21 Jerome Guitton <guitton@gnat.com>
3249
3250 * som.c (som_bfd_print_private_bfd_data): Add explicit cast to long
3251 for struct som_exec_auxhdr fields.
3252
7920ce38
NC
32532005-04-21 Nick Clifton <nickc@redhat.com>
3254
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.
3287
3288 * coffgen.c (coff_print_symbol): Restore correct formatting of
3289 output.
3290
e8be8da4
DM
32912005-04-20 David S. Miller <davem@davemloft.net>
3292
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.
3296
ec7b76fe
JG
32972005-04-20 Jerome Guitton <guitton@gnat.com>
3298
3299 * configure.in: Fix the check for basename declaration. Add check
3300 for declarations of ftello, ftello64, fseeko, fseeko64.
3301 * configure: Regenerate.
3302 * config.in: Ditto.
3303 * sysdep.h: If needed, declare ftello, ftello64, fseeko, fseeko64.
3304
22b75d0a
DM
33052005-04-19 David S. Miller <davem@davemloft.net>
3306
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
3320
a008ac03
DJ
33212005-04-19 Daniel Jacobowitz <dan@codesourcery.com>
3322
3323 * elfxx-mips.c (struct mips_elf_link_hash_entry): Update comment.
3324 (mips_elf_create_local_got_entry): Check h->root.forced_local.
3325
c87b5a93
AM
33262005-04-19 Alan Modra <amodra@bigpond.net.au>
3327
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.
3333
7cefacd3
NC
33342005-04-18 Nick Clifton <nickc@redhat.com>
3335
3336 * aix5ppc-core.c (xcoff64_core_p): Fix compile time warning
3337 assigning a value to return_value.
3338
278d8f37
L
33392005-04-17 H.J. Lu <hongjiu.lu@intel.com>
3340
3341 PR 855
3342 * elf.c (_bfd_elf_copy_private_section_data): Don't copy linker
3343 created group data.
3344
20dbb49d
L
33452005-04-17 H.J. Lu <hongjiu.lu@intel.com>
3346
3347 PR 855
3348 * elf.c (setup_group): Properly handle zero group count.
3349
6a808a40
MK
33502005-04-17 Mark Kettenis <kettenis@gnu.org>
3351
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
3355 protoypes.
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
3362 defines.
3363
33bfe774
JB
33642004-04-15 Julian Brown <julian@codesourcery.com>
3365
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
3378 for SymbianOS.
3379
745c12f8
NC
33802005-04-15 Nick Clifton <nickc@redhat.com>
3381
3382 * coffgen.c (coff_print_symbol): Use fprintf_vma to print vma
3383 values.
3384
2e8b3a61
AM
33852005-04-15 Alan Modra <amodra@bigpond.net.au>
3386
3387 PR ld/815
3388 * elflink.c (elf_smash_syms): Clear undef.next if it's not being
3389 used as a list pointer.
3390
9e9b66a9
AM
33912005-04-14 Alan Modra <amodra@bigpond.net.au>
3392
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.
3399
8699aa54
AM
34002005-04-14 Alan Modra <amodra@bigpond.net.au>
3401
92ceba1e
AM
3402 * merge.c (sec_merge_emit): Tidy. Check for bfd_zmalloc errors.
3403 Write trailing padding.
3404
8699aa54
AM
3405 * merge.c (merge_strings): Round up section size for alignment.
3406
40937810
JJ
34072005-04-14 David S. Miller <davem@davemloft.net>
3408
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
3426 if not-shared.
3427 (sparc64_elf_copy_indirect_symbol, sparc64_elf_tls_transition):
3428 New functions.
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
3447 accepted.
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
3456 helpers.
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.
3470
e75a280b
L
34712005-04-13 Daniel Jacobowitz <dan@codesourcery.com>
3472
3473 * elflink.c (elf_link_input_bfd): Update check for removed
3474 sections.
3475
ceae3e33
AM
34762005-04-12 Alan Modra <amodra@bigpond.net.au>
3477
3478 * Makefile.am: Run "make dep-am".
3479 * Makefile.in: Regenerate.
3480 * aclocal.m4: Regenerate.
3481 * libcoff.h: Regenerate.
3482
ab82c5b9
L
34832005-04-11 H.J. Lu <hongjiu.lu@intel.com>
3484
3485 * linker.c (_bfd_generic_link_output_symbols): Also check if
3486 the output section of an input section has been removed from
3487 the output file.
3488
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.
3493
bd695bcc
JJ
34942005-04-11 David S. Miller <davem@davemloft.net>
3495
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.
3503
b5b2699c
L
35042005-04-11 H.J. Lu <hongjiu.lu@intel.com>
3505
3506 * coffcode.h (STRING_SIZE_SIZE): Updated to match libcoff-in.h.
3507
116c20d2 35082005-04-11 Nick Clifton <nickc@redhat.com>
d7128ce4 3509
116c20d2
NC
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.
3544
8f6277f5
PB
35452005-04-08 Paul Brook <paul@codesourcery.com>
3546
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
3553 images.
3554
8c1d1bb8
AM
35552005-04-05 Alan Modra <amodra@bigpond.net.au>
3556
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.
3561
8c101720
NC
35622005-04-05 Mark Kettenis <kettenis@gnu.org>
3563
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.
3568
429cc0ae
NC
35692005-04-05 Nick Clifton <nickc@redhat.com>
3570
3571 * po/rw.po: New translation: Kinyarwanda
3572 * configure.in (ALL_LINGUAS): Add rw
3573 * configure: Regenerate.
3574
cc2e31b9
RS
35752005-04-05 Richard Sandiford <rsandifo@redhat.com>
3576
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
3580 section flags.
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.
3584
8236346f
EC
35852005-04-04 Eric Christopher <echristo@redhat.com>
3586
3587 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents):
3588 Clean up gp handling code.
3589
7e4111ad
L
35902005-04-04 H.J. Lu <hongjiu.lu@intel.com>
3591
3592 * elf.c (bfd_elf_set_group_contents): Ignore linker created
d7128ce4 3593 group section.
da9f89d4
L
3594 (assign_section_numbers): Accept link_info. Check SHT_GROUP
3595 sections for relocatable files only. Remove the linker created
3596 group sections.
3597 (_bfd_elf_compute_section_file_positions): Pass link_info to
3598 assign_section_numbers.
3599
3600 * elfxx-ia64.c (elfNN_ia64_object_p): New.
3601 (elf_backend_object_p): Defined.
7e4111ad 3602
96982dc9
L
36032005-04-04 H.J. Lu <hongjiu.lu@intel.com>
3604
3605 * elf-bfd.h (elf_section_data): Use (sec) instead of sec.
3606
a13afe8e
FF
36072005-04-03 Fred Fish <fnf@specifixinc.com>
3608
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
3616 pointers.
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
3623 matches.
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
3629 attribute.
3630
2796fd96
L
36312005-04-01 H.J. Lu <hongjiu.lu@intel.com>
3632
3633 * elf.c (assign_section_numbers): Really use the kept section.
3634
01b3c8ab
L
36352005-03-31 H.J. Lu <hongjiu.lu@intel.com>
3636
3637 * elf-bfd.h (_bfd_elf_check_kept_section): New.
3638
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.
3643
3644 * elflink.c (_bfd_elf_check_kept_section): New.
3645 (elf_link_input_bfd): Use it.
3646
35090471
AM
36472005-04-01 Alan Modra <amodra@bigpond.net.au>
3648
3649 * elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocs
3650 that we no longer need.
3651
7356fed5
AM
36522005-04-01 Alan Modra <amodra@bigpond.net.au>
3653
3654 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors
3655 rather than 0.
77623a34 3656 (ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
7356fed5 3657
28b13744
L
36582005-03-31 H.J. Lu <hongjiu.lu@intel.com>
3659
3660 * elf.c (assign_section_numbers): Fix a typo.
3661
c93625e2
L
36622005-03-31 H.J. Lu <hongjiu.lu@intel.com>
3663
3664 * elflink.c (elf_link_input_bfd): Remove the extra `\n' in
3665 error message.
3666 (_bfd_elf_section_already_linked): Likewise.
3667
fddc4048
JG
36682005-03-31 Jerome Guitton <guitton@gnat.com>
3669
3670 * config.in: Regenerate.
3671
2e9ebff5
JG
36722005-03-31 Jerome Guitton <guitton@gnat.com>
3673
c93625e2
L
3674 * config.in (HAVE_DECL_BASENAME): New configure macro.
3675 * configure.in: Check for basename.
3676 * configure: Regenerate.
2e9ebff5 3677
05ea83ed
JB
36782005-03-30 Julian Brown <julian@codesourcery.com>
3679
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.
3689
9d2da7ca
JB
36902005-03-30 Julian Brown <julian@codesourcery.com>
3691
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
3698 mapping symbols.
3699 (is_arm_mapping_symbol_name): Function moved from here...
3700 * cpu-arm.c (bfd_elf32_is_arm_mapping_symbol_name): ...to here, renamed
3701 and made global.
3702
efa9bda4
AL
37032005-03-29 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
3704
3705 * configure.in: Check for ffs decl and alphabetize.
3706 * config.in: Regenerate.
3707 * configure: Regenerate.
d7128ce4 3708 * sysdep.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
efa9bda4 3709
09a9d560
FF
37102005-03-29 Fred Fish <fnf@specifixinc.com>
3711
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.
3715
ba93b8ac
DJ
37162005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
3717 Phil Blundell <philb@gnu.org>
3718
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
3722 relocations.
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.
3729 (TCB_SIZE): Define.
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
3749 calls.
3750 (elf32_arm_size_dynamic_sections): Handle TLS.
3751 (elf32_arm_finish_dynamic_symbol): Likewise.
3752 (bfd_elf32_mkobject): Define.
3753
71a976dd
DJ
37542005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
3755
3756 * elf32-arm.c (elf32_arm_check_relocs): Increment count for all
3757 relocation types. Don't count relocations which will use a PLT.
3758
7e7353ed
JB
37592005-03-29 Joel Brobecker <brobecker@gnat.com>
3760
3761 * elf.c (elfcore_grok_nto_status): Print tid as long.
3762 (elfcore_grok_nto_regs): Likewise.
3763
166856d7
JB
37642005-03-29 Joel Brobecker <brobecker@gnat.com>
3765
40937810 3766 * irix-core.c: Remove some unnecessary prototypes.
166856d7 3767
40f85900
JB
37682005-03-28 Joel Brobecker <brobecker@adacore.com>
3769
3770 * irix-core.c: Convert to ISO C.
3771
aa2e06ba
JB
37722005-03-28 Joel Brobecker <brobecker@adacore.com>
3773
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.
3777
832bc186
MK
37782005-03-28 Mark Kettenis <kettenis@gnu.org>
3779
3780 * netbsd-core.c: Convert to ISO C. Fix formatting.
3781
82f0cfbd
EC
37822005-03-24 Eric Christopher <echristo@redhat.com>
3783
3784 * elfxx-mips.c: Revert previous patch.
3785
d7b9976f
NC
37862005-03-24 Nick Clifton <nickc@redhat.com>
3787
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.
3791
074d327a
NC
37922005-03-24 James E Wilson <wilson@specifixinc.com>
3793
3794 * Makefile.am (BFD32_BACKENDS): Delete elf32-ia64.lo.
3795 (BFD64_BACKENDS): Add elf32-ia64.lo.
3796 * Makefile.in: Regenerate.
3797
cc27e1dc
EC
37982005-03-23 Eric Christopher <echristo@redhat.com>
3799
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
3805 and readonly_reloc.
3806
ed84e695
NC
38072005-03-23 Mike Frysinger <vapier@gentoo.org>
3808 Nick Clifton <nickc@redhat.com>
3809
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.
3814
81e1b023
L
38152005-03-22 H.J. Lu <hongjiu.lu@intel.com>
3816
3817 * bfd-in.h (_bfd_elf_provide_symbol): New.
3818 * bfd-in2.h: Regenerated.
3819
3820 * elf32-ppc.c (set_linker_sym): Moved to elflink.c.
3821 (ppc_elf_set_sdata_syms): Call _bfd_elf_provide_symbol instead
3822 of set_linker_sym.
3823
3824 * elflink.c (_bfd_elf_provide_symbol): New. Moved and renamed
3825 from elf32-ppc.c.
3826
672c2d7e
HPN
38272005-03-22 Hans-Peter Nilsson <hp@axis.com>
3828
3829 * hash.c (strtab_hash_newfunc): Fix typo in allocated size.
3830
1fbc7e7a
BW
38312005-03-22 Bob Wilson <bob.wilson@acm.org>
3832
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.
3837
c8e7bf0d
NC
38382005-03-22 Nick Clifton <nickc@redhat.com>
3839
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.
3847
28a094c2
DJ
38482005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
3849
3850 * elf32-arm.c (elf32_arm_final_link_relocate): Don't fail for
3851 unresolved symbols in R_ARM_NONE relocations.
3852
0945cdfd
DJ
38532005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
3854
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.
3860
11d2f718
AM
38612005-03-23 Alan Modra <amodra@bigpond.net.au>
3862
3863 * elflink.c (elf_link_add_object_symbols): Set SEC_EXCLUDE on
3864 .gnu.warning.* sections.
3865
76750a2f
AM
38662005-03-22 Alan Modra <amodra@bigpond.net.au>
3867
3868 * elf32-ppc.c (elf_linker_section_pointers_t): Remove
3869 written_address_p.
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
3879 calls.
3880
f85f57ad
AM
38812005-03-22 Alan Modra <amodra@bigpond.net.au>
3882
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
3885 and end syms.
3886
2dc773a0
NC
38872005-03-21 Nick Clifton <nickc@redhat.com>
3888
3889 * coff-arm.c (coff_link_hash_entry): Only define for non WINCE
3890 targets.
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.
3902
644285ef
AM
39032005-03-22 Alan Modra <amodra@bigpond.net.au>
3904
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.
3908
c9a2f333
AM
39092005-03-21 Alan Modra <amodra@bigpond.net.au>
3910
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.
3927
8853c3d3
AM
39282005-03-21 Alan Modra <amodra@bigpond.net.au>
3929
3930 * elf32-ppc.c (is_ppc_elf_target): Move to linker part of file.
3931 (ppc_elf_merge_private_bfd_data): Likewise.
3932
2bb04cf2
AM
39332005-03-21 Alan Modra <amodra@bigpond.net.au>
3934
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.
3942
d2663f46
AM
39432005-03-21 Alan Modra <amodra@bigpond.net.au>
3944
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.
3950
6dc132d9
L
39512005-03-20 H.J. Lu <hongjiu.lu@intel.com>
3952
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.
3958
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.
3965
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.
3977
cabd4ccc
DS
39782005-03-19 Danny Smith <dannysmith@users.sourceforge.net>
3979 Ross Ridge <rridge@csclub.uwaterloo.ca>
3980
3981 * peicode.h (pe_ILF_build_a_bfd): Strip only one prefix
3982 character in IMPORT_NAME_UNDECORATE and IMPORT_NAME_NOPREFIX
3983 cases. Add comment.
3984
7451fd89
L
39852005-03-18 H.J. Lu <hongjiu.lu@intel.com>
3986
3987 * elflink.c (elf_mark_used_section): Remove check for special
3988 sections.
3989
b4677f03
AS
39902005-03-18 Andreas Schwab <schwab@suse.de>
3991
3992 * elfxx-ia64.c (elfNN_ia64_install_value): Change type of insn
3993 from bfd_vma to ia64_insn, remove broken cast.
3994
238d258f
NC
39952005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
3996
8853c3d3 3997 * elf32-m68k.c (elf_cfv4e_plt0_entry): plt entry for coldfire v4e.
238d258f
NC
3998 (elf_m68k_adjust_dynamic_symbol,elf_m68k_finish_dynamic_symbol,
3999 elf_m68k_finish_dynamic_sections): Use it.
4000
b294bdf8
MM
40012005-03-17 Paul Brook <paul@codesourcery.com>
4002 Dan Jacobowitz <dan@codesourcery.com>
4003 Mark Mitchell <mark@codesourcery.com>
4004
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.
4011
257a4820
L
40122005-03-18 H.J. Lu <hongjiu.lu@intel.com>
4013
4014 * elflink.c (elf_mark_used_section): Check bfd_is_const_section
4015 for special sections.
4016
554220db
AM
40172005-03-18 Alan Modra <amodra@bigpond.net.au>
4018
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.
4028
36868d45
NC
40292005-03-16 Fred Fish <fnf@specifixinc.com>
4030
4031 PR binutils/790
4032 * dwarf2.c (read_indirect_string): Fix apparent typo, check
4033 dwarf_str_buffer allocation, not dwarf_abbrev_buffer.
4034
57316bff
L
40352005-03-16 H.J. Lu <hongjiu.lu@intel.com>
4036
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.
4040
1ad12f97
NC
40412005-03-16 Nick Clifton <nickc@redhat.com>
4042 Ben Elliston <bje@au.ibm.com>
4043
569acd2c 4044 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 4045 compiler command line. Enabled by default. Disable via
569acd2c 4046 --disable-werror.
1ad12f97
NC
4047 * configure: Regenerate.
4048
3b5d3310
NC
40492005-03-16 Nick Clifton <nickc@redhat.com>
4050
4051 * ecoff.c: Convert to ISO C90 formatting.
4052
25dbc73a
AM
40532005-03-16 Alan Modra <amodra@bigpond.net.au>
4054
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.
4058
cb2d1ef2
AM
40592005-03-16 Alan Modra <amodra@bigpond.net.au>
4060
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.
4067
34723071
NC
40682005-03-15 Mikkel Krautz <krautz@gmail.com>
4069
4070 * config.bfd (x86_64-elf): Add target.
4071
729ae8d2
AM
40722005-03-15 Alan Modra <amodra@bigpond.net.au>
4073
4074 * po/es.po: Commit new Spanish translation.
4075
f0581930
L
40762005-03-14 H.J. Lu <hongjiu.lu@intel.com>
4077
4078 * elfxx-ia64.c (elfNN_ia64_relocate_section): Set symbo name
4079 for global symbol when reporting overflow.
4080
390c0e42
JJ
40812005-03-11 Jakub Jelinek <jakub@redhat.com>
4082
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
4090 uid/gid support.
4091 * archive64.c (bfd_elf64_archive_write_armap): Use _bfd_ar_spacepad.
4092
a2633f4e
MK
40932005-03-10 Mark Kettenis <kettenis@gnu.org>
4094
4095 * archive.c (_bfd_look_for_bfd_in_cache): Move declaration of
4096 has_table to the start of the function.
4097
109f7096
BE
40982005-03-10 Ben Elliston <bje@au.ibm.com>
4099
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.
4109
664fe1be
DJ
41102005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
4111
4112 * configure.in: Bump version to 2.16.90.
4113 * configure: Regenerated.
4114
0709bb22
JJ
41152005-03-07 Jakub Jelinek <jakub@redhat.com>
4116
4117 * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp.
4118 close is a function like macro in system headers.
4119
b18e2ae5
AM
41202005-03-07 Alan Modra <amodra@bigpond.net.au>
4121
4122 PR ld/778
4123 * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Reinstate
4124 _GLOBAL_OFFSET_TABLE_ as a normal dynamic symbol.
4125
1f170678
AM
41262005-03-06 Alan Modra <amodra@bigpond.net.au>
4127
4128 * elf.c (elfcore_grok_win32pstatus): Warning fixes.
4129
06647dfd
AM
41302005-03-05 Alan Modra <amodra@bigpond.net.au>
4131
4132 * po/bfd.pot: Regenerate.
4133
93f3fa99
AM
41342005-03-05 Alan Modra <amodra@bigpond.net.au>
4135
4136 * elf64-ppc.c (update_plt_info): Don't mark new ABI call syms
4137 with is_func.
4138 (func_desc_adjust): Force dot-syms local in executables as well
4139 as shared libs.
4140
bbe506e8
TS
41412005-03-04 David Daney <ddaney@avtrex.com>
4142
4143 * elfxx-mips.c (mips_elf_calculate_relocation): Handle special
4144 '__gnu_local_gp' symbol used by gas -mno-shared.
4145
d27f5fa1
L
41462005-03-03 H.J. Lu <hongjiu.lu@intel.com>
4147
4148 * elf-bfd.h (elf_backend_data): Add "const char *" to
4149 elf_backend_section_from_phdr.
4150
4151 * elf.c (bfd_section_from_phdr): Pass "proc" to the
4152 elf_backend_section_from_phdr hook.
4153
0f20cc35
DJ
41542005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
4155 Joseph Myers <joseph@codesourcery.com>
4156
4157 * elfxx-mips.c (struct mips_got_entry): Add tls_type.
4158 (struct mips_got_info): Add tls_gotno, tls_assigned_gotno,
4159 and tls_ldm_offset.
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
4172 TLS entries.
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
4179 mips_tls_got_index.
4180 (mips_elf_global_got_index): Add new R_TYPE and INFO arguments.
4181 Handle TLS entries.
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
4188 TLS entries.
4189 (mips_elf_record_global_got_symbol): Likewise.
4190 (mips_elf_make_got_per_bfd): Initialize new mips_got_info members.
4191 Count TLS entries.
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
4201 mips_got_info.
4202 (mips_elf_calculate_relocation): Handle TLS relocs.
4203 (_bfd_mips_elf_check_relocs): Likewise. Update calls to changed
4204 functions.
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
4208 changed functions.
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.
4218
bb14f524
JB
42192005-03-02 Jan Beulich <jbeulich@novell.com>
4220
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.
4224
8c1acd09
ZW
42252005-03-01 Zack Weinberg <zack@codesourcery.com>
4226
4227 * elf.c (bfd_section_from_shdr <default case>): Call
4228 elf_backend_section_from_shdr hook unconditionally, and return
4229 what it returns.
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
4234 respectively.
4235
70bfecec
AM
42362005-03-01 Alan Modra <amodra@bigpond.net.au>
4237
a67a7b8b
AM
4238 * targets.h: Typo fix.
4239 * bfd-in2.h: Regenerate.
4240
70bfecec
AM
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.
4246
ceb1f1ef
AM
42472005-03-01 Alan Modra <amodra@bigpond.net.au>
4248
4249 * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym
4250 entry points with the func descriptor as well as undefweak.
4251
f67e617a
NC
42522005-02-28 Ross Ridge <rridge@csclub.uwaterloo.ca>
4253
4254 * peicode.h (pe_ILF_build_a_bfd): Do not assume that an @ will be
4255 present when IMPORT_NAME_UNDOECRATE is used.
4256
af44c138
L
42572005-02-28 H.J. Lu <hongjiu.lu@intel.com>
4258
4259 PR 757
4260 * elf-bfd.h (_bfd_elf_merge_symbol): Add a pointer to unsigned
4261 int.
4262
4263 * elf32-sh-symbian.c (sh_symbian_relocate_section): Pass NULL
4264 to _bfd_elf_merge_symbol.
4265
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.
4274
10adf131
BE
42752005-02-24 Ben Elliston <bje@au.ibm.com>
4276
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.
4282
60b779bf
L
42832005-02-24 H.J. Lu <hongjiu.lu@intel.com>
4284
4285 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.95.
4286 * configure: Regenerate.
4287
1f02cbd9
JB
42882005-02-24 Julian Brown <julian@sirius.codesourcery.com>
4289
4290 * elflink.c (elf_link_add_object_symbols): Force symbols in discarded
4291 COMDAT group sections to have default visibility.
4292
f60ca5e3
AM
42932005-02-24 Alan Modra <amodra@bigpond.net.au>
4294
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
4302 warning.
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.
4309
9a5d8e72
L
43102005-02-23 H.J. Lu <hongjiu.lu@intel.com>
4311
4312 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Defined.
4313 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Likewise.
4314
4b6c0f2f
NC
43152005-02-23 Nick Clifton <nickc@redhat.com>
4316
abc0f8d0
NC
4317 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Initialise
4318 the relvaddr field of the Elf32_crinfo structure.
4319
9b69b847
NC
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
4323 initialise them.
4324
90e868ac
NC
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.
4328
4b6c0f2f
NC
4329 * elf.c (_bfd_elf_compute_section_file_positions): Initialise
4330 strtab to avoid compile time warning.
4331
c3e8c140
BE
43322005-02-23 Ben Elliston <bje@au.ibm.com>
4333
4334 * opncls.c (bfd_zalloc): Document this function.
4335
ebe372c1
L
43362005-02-21 H.J. Lu <hongjiu.lu@intel.com>
4337
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.
4342
4343 * elfxx-target.h (TARGET_BIG_SYM): Remove SEC_ARCH_BIT_0.
4344 (TARGET_LITTLE_SYM): Likewise.
4345
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
4357 end.
4358 * bfd-in2.h: Regenerated.
4359
26bf4e33
FF
43602005-02-21 Fred Fish <fnf@specifixinc.com>
4361
4362 * dwarf2.c (find_abstract_instance_name): Call recursively
4363 to handle a DW_AT_specification.
4364
e6daada3
TS
43652005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4366
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.
4371
d25604af
AM
43722005-02-21 Alan Modra <amodra@bigpond.net.au>
4373
4374 * Makefile.am: Run "make dep-am"
4375 * Makefile.in: Regenerate.
4376
fedf8d51
AM
43772005-02-21 Alan Modra <amodra@bigpond.net.au>
4378
4379 * coffgen.c (bfd_coff_get_comdat_section): Check that
4380 coff_section_data isn't NULL.
4381
f075ee0c
AM
43822005-02-21 Alan Modra <amodra@bigpond.net.au>
4383
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.
4394 Warning fixes.
4395 * dwarf2.c: Warning fixes.
4396 * elf-bfd.h: Likewise.
4397 * elf-eh-frame.c: Likewise.
4398 * elf-strtab.c: Likewise.
4399 * elf.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.
4413 * mmo.c: Likewise.
4414 * opncls.c: Likewise.
4415 * pef.c: Likewise.
4416 * srec.c: Likewise.
4417 * vms-hdr.c: Likewise.
4418 * vms-tir.c: Likewise.
4419 * xtensa-isa.c: Likewise.
4420 * xtensa-modules.c: Likewise.
4421 * xsym.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.
4426
68320ddb
AO
44272005-02-17 Alexandre Oliva <aoliva@redhat.com>
4428
4429 * elf32-frv.c (elf32_frv_relocate_section): Remove warning from
fedf8d51 4430 uninitialized check_segment[1] in TLSMOFF case.
68320ddb
AO
4431 Reported by Alan Modra.
4432 (elf32_frv_relocate_section): Improve errors and warnings.
4433
1808e341
AM
44342005-02-17 Alan Modra <amodra@bigpond.net.au>
4435
4436 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning.
4437
5ff625e9
AM
44382005-02-16 Alan Modra <amodra@bigpond.net.au>
4439
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.
7e3102a7
AM
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.
5ff625e9 4449
92b7a70f
AM
44502005-02-16 Alan Modra <amodra@bigpond.net.au>
4451
4452 * elf64-ppc.c (ppc64_elf_edit_toc): Skip toc if size is zero.
4453 Skip toc reloc adjust if reloc_count is zero.
4454
d6f16593 44552005-02-15 Nigel Stephens <nigel@mips.com>
fedf8d51 4456 Maciej W. Rozycki <macro@mips.com>
d6f16593
MR
4457
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
4463 dst_mask.
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
4469 relocs.
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
4477 dst_mask.
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
4481 placeholders.
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
4487 relocs.
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
4495 dst_mask.
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
4501 relocs.
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
4511 and R_MIPS16_LO16.
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()
4515 instead.
4516 (_bfd_mips_elf_relocate_section): Likewise. Handle R_MIPS16_HI16
4517 and R_MIPS16_LO16.
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.
4525
0ca3e455
JB
45262005-02-15 Jan Beulich <jbeulich@novell.com>
4527
4528 * elfxx-ia64.c (ia64_howto_table): Correct strings for
4529 R_IA64_DTPMOD64[LM]SB.
4530
c5509b92
L
45312005-02-14 H.J. Lu <hongjiu.lu@intel.com>
4532
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.
4539
5cba516c
NC
45402005-02-14 Orjan Friberg <orjanf@axis.com>
4541
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.
4545
b59a68e1
NC
45462005-02-14 Nick Clifton <nickc@redhat.com>
4547
4548 PR binutils/716
4549 * peicode.h (pe_bfd_copy_private_bfd_data): Copy the large address
4550 aware flag from the input bfd to the output bfd.
4551
254f0426
MR
45522005-02-11 Maciej W. Rozycki <macro@mips.com>
4553
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.
4558
e91cdea7
L
45592005-02-11 H.J. Lu <hongjiu.lu@intel.com>
4560
4561 * bfd-in2.h: Rebuilt.
4562
67687978
PB
45632005-02-11 Paul Brook <paul@codesourcery.com>
4564
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.
4582
ca724bf2
NC
45832005-02-11 Nick Clifton <nickc@redhat.com>
4584
4b74b983
NC
4585 * libbfd.c (read_signed_leb128): Use an unsigned type for 'shift'
4586 to avoid a compile time warning.
4587
ca724bf2
NC
4588 * coff-alpha.c (alpha_adjust_reloc_in): Remove redundant test from
4589 BFD_ASSERT.
4590
3e25964f
NC
4591 * coff-tic4x.c (coff_rtype_to_howto): Move definition before
4592 inclusion of coffcode.h so that it is actually picked up.
4593
cb7a88a4
NC
4594 * coffcode.h (coff_std_swap_table): Add an unused attribute in
4595 case it is not used.
4596
596c83ec
NC
4597 * elf32-ip2k.c (ip2k_call_opcode, IS_CALL_OPCODE): Remove unused
4598 structure and macro.
4599
6c408f53
NC
4600 * elf32-iq2000.c (iq2000_reloc_map): Remove unused structure and
4601 array.
4602
d5b2f13b
NC
4603 * elf32-m32r.c (m32r_reloc_map_old): Use #ifdef USE_M32R_OLD_RELOC
4604 to protect the declaration of this array.
4605
169a6afd
NC
4606 * xsym.c (bfd_sym_parse_contained_variables_table_entry_v32):
4607 Avoid call to memcpy with a size of 0.
4608
2917689a
AM
46092005-02-12 Alan Modra <amodra@bigpond.net.au>
4610
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.
4614
40d16e0b
AM
46152005-02-11 Alan Modra <amodra@bigpond.net.au>
4616
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.
4620
e37c699c
PB
46212005-02-10 Paul Brook <paul@codesourcery.com>
4622
4623 * elf32-arm.c (elf32_arm_final_link_relocate): Handle R_ARM_THM_PC9.
4624
6fa3860b
PB
46252005-02-10 Paul Brook <paul@codesourcery.com>
4626
4627 * elflink.c (bfd_elf_record_link_assignment): Make hidden and internal
4628 symbols local.
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.
4632
d457dcf6
JJ
46332005-02-10 Jakub Jelinek <jakub@redhat.com>
4634
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.
4640
7f05722e
MR
46412005-02-10 Maciej W. Rozycki <macro@mips.com>
4642
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.
4646
ccf5f610
PB
46472005-02-08 Paul Brook <paul@codesourcery.com>
4648
4649 * elflink.c (elf_link_input_bfd): Ignore symbols from null input
4650 sections.
4651
370a0e1b
HPN
46522005-02-08 Hans-Peter Nilsson <hp@axis.com>
4653
4654 * elflink.c (elf_link_add_object_symbols): Don't add "warning: "
4655 prefix here.
4656
99277196
MR
46572005-02-07 Maciej W. Rozycki <macro@mips.com>
4658
4659 * elf64-mips.c: Fix formatting throughout.
4660
6422fbef
MR
46612005-02-07 Maciej W. Rozycki <macro@mips.com>
4662
4663 * elfn32-mips.c (elf_mips_howto_table_rela): Fix a comment typo.
4664
303e4c21
AO
46652005-02-07 Alexandre Oliva <aoliva@redhat.com>
4666
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.
4672
c3864421
HPN
46732005-02-07 Hans-Peter Nilsson <hp@axis.com>
4674
4675 * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO
4676 being the last symbol.
9f400ee9
HPN
4677 (aout_link_add_symbols): Just return TRUE if a warning
4678 symbol was last.
c3864421 4679
765f2ef6
MR
46802005-02-07 Maciej W. Rozycki <macro@mips.com>
4681
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
4685 comment.
4686
1b3a8575
AM
46872005-02-07 Alan Modra <amodra@bigpond.net.au>
4688
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
4699 specially.
4700
90f487df
L
47012005-02-06 H.J. Lu <hongjiu.lu@intel.com>
4702
4703 * elf32-i386.c (elf_i386_relocate_section): Disallow R_386_GOTOFF
4704 against protected function when building shared library.
4705
4706 PR 584
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.
4711
c4f68ce3
AM
47122005-02-06 Alan Modra <amodra@bigpond.net.au>
4713
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
4717 at u.def.section.
4718 (ppc64_elf_tls_setup): Likewise.
4719 (ppc64_elf_edit_opd): Don't use an undefined func desc sym.
4720
908b32fc
AM
47212005-02-04 Alan Modra <amodra@bigpond.net.au>
4722
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.
4731
4ea42fb7
AM
47322005-02-04 Alan Modra <amodra@bigpond.net.au>
4733
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.
4737
10d86c8a
AM
47382005-02-03 Alan Modra <amodra@bigpond.net.au>
4739
4740 * linker.c (_bfd_link_hash_newfunc): Set all local fields.
4741
11f25ea6
AM
47422005-02-03 Alan Modra <amodra@bigpond.net.au>
4743
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.
4747
4f40114d
AM
47482005-02-02 Alan Modra <amodra@bigpond.net.au>
4749
ec13b3bb
AM
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.
4753
4f40114d
AM
4754 * elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear
4755 everything, just the field specific to ia64.
336549c1 4756 * elf64-hppa.c (elf64_hppa_new_dyn_hash_entry): Likewise.
4f40114d 4757
bb700d78
AM
47582005-02-01 Alan Modra <amodra@bigpond.net.au>
4759
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
4762 undefined syms.
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
4767 isn't defined.
4768 (ppc64_elf_check_directives): Adjust call to add_symbol_adjust,
4769 and return status.
4770
1ffd1c2f
HPN
47712005-02-01 Hans-Peter Nilsson <hp@axis.com>
4772
4773 * cpu-cris.c (get_compatible): Rearrange disabled code and comment
4774 for clarity.
4775
77cfaee6
AM
47762005-02-01 Alan Modra <amodra@bigpond.net.au>
4777
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
4782 existing _DYNAMIC.
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
4795 symbols.
4796 * elfxx-mips.c (mips_elf_output_extsym): Likewise.
4797
b15c48d1
BE
47982005-02-01 Ben Elliston <bje@au.ibm.com>
4799
4800 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Redefine.
4801
0983f4eb 48022005-02-01 Ben Elliston <bje@au.ibm.com>
0e71e495
BE
4803
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,
11d02c41 4815 sparclynx.c, targets.c, vms-misc.c, vms-tir.c, xsym.c,
0e71e495
BE
4816 hosts/delta68.h, hosts/vaxbsd.h: Remove #if 0'd code
4817 throughout. Similarly, collapse #if 1'd code.
4818
48192005-02-01 Ben Elliston <bje@au.ibm.com>
4820
0983f4eb
BE
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.
4824
8c946ed5
RS
48252005-01-31 Richard Sandiford <rsandifo@redhat.com>
4826
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.
4838
c46f8c51
AC
48392005-01-31 Andrew Cagney <cagney@gnu.org>
4840
4841 * configure: Regenerate to track ../gettext.m4.
4842
5cd3778d
MM
48432005-01-31 Mark Mitchell <mark@codesourcery.com>
4844
4845 * elf32-arm.c (elf32_arm_symbian_special_sections): Do not set
4846 SHF_WRITE for .init_array, .fini_array, and .preinit_array.
ec13b3bb 4847
d6486796
NC
48482005-01-31 Nick Clifton <nickc@redhat.com>
4849
4850 * confg.bfd: Make targets scheduled for obsoletion (m68k-lynxos,
4851 sparc-lynxos, vax-vms) be obsolete.
4852
b1342370
DJ
48532005-01-28 Daniel Jacobowitz <dan@codesourcery.com>
4854
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
4859 maxpagesize.
4860 * elfxx-target.h (ELF_MINPAGESIZE): Default to ELF_MAXPAGESIZE.
4861 (elfNN_bed): Include ELF_MINPAGESIZE.
4862
319850b4
JB
48632005-01-28 Julian Brown <julian@codesourcery.com>
4864
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
ec13b3bb 4869 passing flag value from ld. Set flag value in global hash table entry.
319850b4 4870 (elf32_arm_final_link_relocate): Add code to implement R_ARM_V4BX
ec13b3bb 4871 relocation.
319850b4 4872
a53bf506
AC
48732005-01-27 Andrew Cagney <cagney@gnu.org>
4874
4875 * configure: Regenerate to track ../gettext.m4 change.
4876
dc4c9c19
MM
48772005-01-25 Mark Mitchell <mark@codesourcery.com>
4878
4879 * elf32-arm.c (elf_backend_default_use_rela_p): Define to zero for
ec13b3bb 4880 SymbianOS.
dc4c9c19 4881
90219bd0
AO
48822005-01-25 Alexandre Oliva <aoliva@redhat.com>
4883
4884 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
4885 * elf32-frv.c (elf32_frv_relocate_section): Force local binding
4886 for TLSMOFF.
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
4898 symbols.
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
4913 reloc information.
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
4920 section as local.
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
4928 relocations.
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
4938 support.
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.
4953
8615f3f2
AM
49542005-01-25 Alan Modra <amodra@bigpond.net.au>
4955
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.
4960
7e9f0867
AM
49612005-01-25 Alan Modra <amodra@bigpond.net.au>
4962
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.
4973
45181ed1
AC
49742005-01-24 Andrew Cagney <cagney@gnu.org>
4975
4976 * configure: Regenerate, ../gettext.m4 was updated.
4977
753e3eb6
BE
49782005-01-21 Ben Elliston <bje@au.ibm.com>
4979
4980 * aout-encap.c: Remove unused file.
4981
1c16dfa5
L
49822005-01-19 H.J. Lu <hongjiu.lu@intel.com>
4983
4984 PR 679
4985 * elflink.c (_bfd_elf_dynamic_symbol_p): Only protected
4986 non-function symbols are local.
4987 (_bfd_elf_symbol_refs_local_p): Likewise.
4988
1449d79b
AM
49892005-01-18 Alan Modra <amodra@bigpond.net.au>
4990
4991 * bfd.c (bfd_link_just_syms): Add abfd param.
4992 * bfd-in2.h: Regenerate.
4993
dcf507a6
RS
49942005-01-17 Richard Sandiford <rsandifo@redhat.com>
4995
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.
5000
2c42be65
RS
50012005-01-17 Richard Sandiford <rsandifo@redhat.com>
5002
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
5010 sanity checking.
5011 (_bfd_elf_write_section_eh_frame): Use new functions.
5012
acfe5567
RS
50132005-01-17 Richard Sandiford <rsandifo@redhat.com>
5014
5015 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use an
5016 assert-style REQUIRE() macro to handle sanity checks.
5017
c0c28ab8
L
50182005-01-17 H.J. Lu <hongjiu.lu@intel.com>
5019
5020 * dwarf2.c (dwarf2_debug): Move info_ptr_unit to ...
5021 (comp_unit): Here.
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.
5028
5029 * elf-eh-frame.c (read_unsigned_leb128): Moved to ...
5030 (read_signed_leb128): Moved to ...
5031 * libbfd.c: Here.
5032
5033 * libbfd-in.h (read_unsigned_leb128): New prototype.
5034 (read_signed_leb128): Likewise.
5035 * libbfd.h: Regenerated.
5036
e38bc3b5
NC
50372005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
5038 Nick Clifton <nickc@redhat.com>
5039
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
5045 names.
5046 * bfd-in2.h: Regenerate.
5047
8fb84ecc
AC
50482005-01-15 Andrew Cagney <cagney@gnu.org>
5049
5050 * bfd.m4: New file.
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.
8615f3f2 5055
b4a38de6
AM
50562005-01-12 Alan Modra <amodra@bigpond.net.au>
5057
5058 * elf32-ppc.c (ppc_elf_howto_raw): Delete RELAX32* entries.
5059 (ppc_elf_relax_section): Use PLT variants of RELAX32 relocs for
5060 reaching PLT.
5061 (ppc_elf_relocate_section): Handle R_PPC_RELAX32_PLT and
5062 R_PPC_RELAX32PC_PLT.
5063
3eb128b2
AM
50642005-01-11 Alan Modra <amodra@bigpond.net.au>
5065
5066 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Follow indirect and warning
5067 symbols.
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.
5082
264a1fe0
AM
50832005-01-11 Alan Modra <amodra@bigpond.net.au>
5084
5085 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Correct
5086 .dynsbss flags.
5087
5c4504f7
NC
50882005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
5089
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
5095 the maxq10.
5096 (bfd_maxq_arch): Update values for the maxq20.
5097
669460c7
EB
50982005-01-10 Eric Botcazou <ebotcazou@libertysurf.fr>
5099
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.
5103
a51a7930
EB
51042005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5105
01aac484
EB
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.
a51a7930
EB
5109 * elf64-sparc.c (struct sparc64_elf_link_hash_table): New 'sgot' and
5110 'srelgot' fields.
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.
5121
151e5294
EB
51222005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5123
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.
5128
6f79b219
JJ
51292005-01-07 Jakub Jelinek <jakub@redhat.com>
5130
5131 * bfd/elf.c (INCLUDE_SECTION_IN_SEGMENT): Don't put empty sections into
5132 PT_DYNAMIC segment, unless .dynamic.
5133
4e7fd91e
PB
51342005-01-06 Paul Brook <paul@codesourcery.com>
5135
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.
5140 (USE_REL): Remove.
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.
5151
4c52953f
AM
51522005-01-06 Alan Modra <amodra@bigpond.net.au>
5153
5154 * elf64-ppc.c (struct ppc_link_hash_table): Add no_multi_toc and
5155 multi_toc_needed.
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.
5169
f03d65b4
AM
51702005-01-06 Alan Modra <amodra@bigpond.net.au>
5171
5172 * elf64-ppc.c (ppc64_elf_size_stubs): When determining need for
5173 toc adjusting stub, do not test source section flags.
5174
8af139b3
EB
51752005-01-05 Eric Botcazou <ebotcazou@libertysurf.fr>
5176
5177 * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
5178 from STABS debugging sections again.
5179
06f22d7e
FF
51802005-01-05 Fred Fish <fnf@specifixinc.com>
5181
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.
5187
83a358aa
PB
51882004-12-31 Paul Brook <paul@copdesourcery.com>
5189
5190 * elf32-arm.c (elf32_arm_symbian_plt_entry): Fix comment typo.
5191
b996922c
AM
51922004-12-31 Alan Modra <amodra@bigpond.net.au>
5193
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.
5197
17a83432
TL
51982004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
5199
5200 * elf32-crx.c (elf32_crx_relax_section): Support 'bcop' relaxation.
5201
d69f560c
KW
52022004-12-21 Kris Warkentin <kewarken@qnx.com>
5203
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.
4c52953f 5208
750bce0e
NC
52092004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
5210
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.
5216
a5db907e
AM
52172004-12-22 Alan Modra <amodra@bigpond.net.au>
5218
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.
5223
8860955f
AM
52242004-12-20 Alan Modra <amodra@bigpond.net.au>
5225
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.
5231
1e50d24d
RS
52322004-12-16 Richard Sandiford <rsandifo@redhat.com>
5233
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.
5244
2fbd2a87
NC
52452004-12-14 P.J. Darcy <darcypj@us.ibm.com>
5246
5247 * config.bfd: Add s390x-ibm-tpf support.
5248
06302770
TL
52492004-12-14 Tomer Levi <Tomer.Levi@nsc.com>
5250
8860955f 5251 * elf32-crx.c (elf32_crx_relax_delete_bytes): Add 'struct bfd_link_info *'
06302770
TL
5252 to prototype, to make hash info available.
5253 Prevent wrapped symbols from being adjusted twice.
5254
c314987d
RS
52552004-12-14 Richard Sandiford <rsandifo@redhat.com>
5256
5257 * elfxx-mips.c (mips_elf_calculate_relocation): Don't report an
5258 overflow for calls to undefined weak symbols.
5259
5c799c07
AM
52602004-12-11 Alan Modra <amodra@bigpond.net.au>
5261
5262 * elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
5263 canonical sections syms have a name.
5264
645ea6a9
AM
52652004-12-11 Alan Modra <amodra@bigpond.net.au>
5266
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.
5270
0e2cfdce
AM
52712004-12-10 Alan Modra <amodra@bigpond.net.au>
5272
be8dd2ca
AM
5273 * elf.c (bfd_elf_sym_name): Rename from bfd_elf_local_sym_name and
5274 add symtab_hdr param.
0e2cfdce
AM
5275 (group_signature): Update calls.
5276 * elf-bfd.h (bfd_elf_sym_name): Update.
5277 * elf32-ppc.c (ppc_elf_relocate_section): Update.
8860955f
AM
5278 * elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Update.
5279 (ppc64_elf_relocate_section): Update.
0e2cfdce
AM
5280 * elflink.c (elf_link_input_bfd): Update.
5281
138f35cc
JJ
52822004-12-10 Jakub Jelinek <jakub@redhat.com>
5283
5284 * elf.c (bfd_elf_local_sym_name): Avoid crashes with invalid
5285 st_shndx on STT_SECTION sections.
5286
f9cfae62
DJ
52872004-12-09 Daniel Jacobowitz <dan@codesourcery.com>
5288
5289 * elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalize
5290 ELF section symbols.
5291
0d2e43ed
ILT
52922004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
5293
1367d393
ILT
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
5297 bal if possible.
5298
74f79d8d
ILT
5299 * elfn32-mips.c (elf_mips_howto_table_rela): Change dst_mask of
5300 R_MIPS_JALR entry to 0.
5301
0d2e43ed
ILT
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.
5309
728b2f21
ILT
53102004-12-08 Ian Lance Taylor <ian@wasabisystems.com>
5311
5312 * elfxx-mips.c (mips_elf_calculate_relocation): Test for R_MIPS_26
5313 overflow.
5314
45ab555d
BE
53152004-12-07 Ben Elliston <bje@gnu.org>
5316
5317 * netbsd-core.c (netbsd_core_file_p): Make `i' unsigned.
5318
1511ddaf
DJ
53192004-12-06 Daniel Jacobowitz <dan@debian.org>
5320
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.
5324
53252004-12-03 Jan Beulich <jbeulich@novell.com>
57426232
JB
5326
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
5330 be ambiguous/wrong.
5331
94a3258f
PB
53322004-12-01 Paul Brook <paul@codesourcery.com>
5333
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
5336 version.
5337
529fcb95
PB
53382004-12-01 Paul Brook <paul@codesourcery.com>
5339
5340 * elflink.c (elf_link_add_object_symbols): Make symbols from discarded
5341 sections undefined.
5342
dea514f5
PB
53432004-11-30 Paul Brook <paul@codesourcery.com>
5344
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
5350 handling.
5351 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
5352 prototype.
5353 * bfd-in2.h: Regenerate.
5354
edfc032f
AM
53552004-11-30 Randolph Chung <tausq@debian.org>
5356
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.
5361
0be9069d
L
53622004-11-24 H.J. Lu <hongjiu.lu@intel.com>
5363
5364 PR 574:
5365 * elfcode.h (elf_slurp_symbol_table): Handle STT_TLS.
5366
47cc2cf5
PB
53672004-11-24 Paul Brook <paul@codesourcery.com>
5368
5369 * elf.c (assign_section_numbers): Number SHT_GROUP sections first.
5370
0beaef2b
PB
53712004-11-24 Paul Brook <paul@codesourcery.com>
5372
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.
5377
3dd2fcf0
DA
53782004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5379
5380 * hpux-core.c (hpux_core_core_file_p): Use offsetof macro in calls to
5381 make_bfd_asection.
5382
de52dba4
AM
53832004-11-19 Alan Modra <amodra@bigpond.net.au>
5384
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.
5388
288f74fa
BW
53892004-11-18 Bob Wilson <bob.wilson@acm.org>
5390
5391 * elf32-xtensa.c (ebb_propose_action): Fix argument order.
5392
b7693d02
DJ
53932004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
5394
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
5398 and plt_got_offset.
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
5413 plt_thumb_refcount.
5414 (elf32_arm_check_relocs): Likewise.
5415 (elf32_arm_adjust_dynamic_symbol): Handle Thumb functions and
5416 plt_thumb_refcount.
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.
5421
353057a5
RS
54222004-11-16 Richard Sandiford <rsandifo@redhat.com>
5423
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.
5438
b32d3aa2
MM
54392004-11-15 Mark Mitchell <mark@codesourcery.com>
5440
5441 * elf32-arm.c (elf32_arm_relocate_section): Use
5442 arm_real_reloc_type.
5443
5d41f0b6
RS
54442004-11-16 Richard Sandiford <rsandifo@redhat.com>
5445
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
5448 of .rel.dyn.
5449
fc0e6df6
PB
54502004-11-04 Paul Brook <paul@codesourcery.com>
5451
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
5459 imported symbols.
5460
b23e50e2
PB
54612004-11-15 Paul Brook <paul@codesourcery.com>
5462
5463 * elflink.c (elf_link_add_object_symbols): Don't assume version
5464 indices are consecutive.
5465
f4a6705c
RS
54662004-11-14 Richard Sandiford <rsandifo@redhat.com>
5467
5468 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal with
5469 composite relocations against the personality data.
5470
ee06dc07
PB
54712004-11-13 Paul Brook <paul@codesourcery.com>
5472
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.
5477
a1ace8d8
BW
54782004-11-12 Bob Wilson <bob.wilson@acm.org>
5479
5480 * xtensa-isa.c (xtensa_interface_class_id): New.
5481
e4115460
BW
54822004-11-11 Bob Wilson <bob.wilson@acm.org>
5483
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.
5487
6366ff1e
MM
54882004-11-11 Mark Mitchell <mark@codesourcery.com>
5489
5490 * elf32-arm.c (elf32_arm_final_link_relocate): Correct logic for
5491 R_ARM_RELATIVE on Symbian OS.
5492
b34af79c
MM
54932004-11-09 Mark Mitchell <mark@codesourcery.com>
5494
e6dc21b6
MM
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.
5499
b34af79c
MM
5500 * elf32-arm.c (elf32_arm_begin_write_processing): Do not use a K&R
5501 declaration.
5502 (elf32_arm_symbian_modify_segment_map): Likewise.
5503
08d1f311
DJ
55042004-11-09 Daniel Jacobowitz <dan@debian.org>
5505
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.
5509
0306b3bf
AM
55102004-11-09 Alan Modra <amodra@bigpond.net.au>
5511
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.
5516
a16385dc
MM
55172004-11-08 Mark Mitchell <mark@codesourcery.com>
5518
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.
5522
0306b3bf
AM
55232004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
5524 Vineet Sharma <vineets@noida.hcltech.com>
7499d566
NC
5525
5526 * coff-maxq.c: New File.
0306b3bf
AM
5527 * cpu-maxq.c: New File.
5528 * coffcode.h: Likewise.
5529 * config.bfd: Likewise.
5530 * configure.in (maxqcoff_vec): New target vector.
7499d566
NC
5531 * Makefile.am: Add support for maxq target.
5532 * configure.in: Likewise.
0306b3bf
AM
5533 * archures.c:. Likewise.
5534 * targets.c: Likewise.
5535 * bfd_in2.h : Regenerated.
7499d566
NC
5536 * Makefile.in: Regenerated.
5537 * configure: Regenerated.
5538 * doc/Makefile.in: Regenerated.
5539
977cdf5a
NC
55402004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
5541
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
5546 aliases.
5547
9dfe8738
AS
55482004-11-07 Andreas Schwab <schwab@suse.de>
5549
5550 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Use
5551 SYMBOL_CALLS_LOCAL and check for undefweak symbols with
5552 non-default visibility.
5553
c3c76620
MM
55542004-11-01 Mark Mitchell <mark@codesourcery.com>
5555
5556 * elf32-arm.c (elf32_arm_symbian_begin_write_processing): Clear
0306b3bf 5557 D_PAGED.
c3c76620
MM
5558 (elf32_arm_symbian_modify_segment_map): Don't
5559 reset includes_filehdr and includes_phdrs here.
5560
7f266840
DJ
55612004-11-04 Daniel Jacobowitz <dan@debian.org>
5562
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
5566 dependency.
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.
5579
bac23f82
HPN
55802004-11-04 Hans-Peter Nilsson <hp@axis.com>
5581
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.
5587 (N): New macro.
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
5592 next.
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
5603 PLT initializers.
5604 (cris_elf_relocate_section): Change all "%B(%A)" messages to
5605 "%B, section %A".
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,
5610 section %A".
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
5624 objects.
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.
5630
c5614fa4
AM
56312004-11-04 Alan Modra <amodra@bigpond.net.au>
5632
5633 * elf64-ppc.h (ppc64_elf_edit_toc): Declare.
5634 * elf64-ppc.c (struct ppc_link_hash_entry <adjust_done>): Update
5635 comment.
5636 (struct adjust_toc_info): New.
5637 (adjust_toc_syms, ppc64_elf_edit_toc): New functions.
5638
0ebdbb83
BW
56392004-11-03 Bob Wilson <bob.wilson@acm.org>
5640
5641 * elf.c (assign_file_positions_for_segments): Set next_file_pos even
5642 if there are no segments.
5643
675b2ace
DJ
56442004-11-02 Daniel Jacobowitz <dan@debian.org>
5645
5646 * config.bfd: Mark arm-*-oabi and thumb-*-oabi as obsolete.
5647
58852c27
NC
56482004-11-02 Nick Clifton <nickc@redhat.com>
5649
5650 * elf32-iq2000.c: Convert to ISO C90 formatting.
5651
e6857c0c
HPN
56522004-11-02 Hans-Peter Nilsson <hp@axis.com>
5653
20288ed6 5654 * elflink.c (_bfd_elf_create_got_section): Hide _GLOBAL_OFFSET_TABLE_.
e6857c0c 5655
bf718458
L
56562004-10-28 H.J. Lu <hongjiu.lu@intel.com>
5657
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.
5661
044ad7e3
KK
56622004-10-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
5663
5664 * elf32-sh.c (tpoff): Take alignment into account.
5665
d5cb4bb8
NC
56662004-10-28 Nick Clifton <nickc@redhat.com>
5667
5668 * elf32-iq2000.c (iq2000_elf_relocate_section): Do nothing when
0d48eab6 5669 performing a relocatable link.
d5cb4bb8
NC
5670 (iq2000_elf_object_p): Do not set elf_bad_symtab. This is only
5671 for MIPS ports under Irix.
5672
5b5bb741
PB
56732004-10-27 Richard Earnshaw <rearnsha@arm.com>
5674
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.
5685
97ecf322
L
56862004-10-26 H.J. Lu <hongjiu.lu@intel.com>
5687
5688 PR 475
5689 * elfxx-ia64.c (elfNN_ia64_relocate_section): Correct
5690 R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, R_IA64_SECREL64MSB
5691 and R_IA64_SECREL64LSB.
5692
3e3b46e5
PB
56932004-10-26 Paul Brook <paul@codesourcery.com>
5694
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.
5698
aa69fe43
HPN
56992004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
5700
278b4623
HPN
5701 * mmo.c: Adjust to ISO C.
5702
aa69fe43
HPN
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.
5711
ed040321
DJ
57122004-10-24 Daniel Jacobowitz <dan@debian.org>
5713
5714 * opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY.
5715
830866af
HPN
57162004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
5717
5718 * mmo.c (File Layout): Correct place of misplaced blurb about
5719 special data.
5720
5f417ca3
MK
57212004-10-22 Mark Kettenis <kettenis@gnu.org>
5722
5723 * config.bfd: Add mips64*-*-openbsd.
5724
823fc61f
BW
57252004-10-21 Bob Wilson <bob.wilson@acm.org>
5726
5727 * elf32-xtensa.c (ebb_propose_action): Put declarations before
5728 statements.
5729
8697aafb
L
57302004-10-21 H.J. Lu <hongjiu.lu@intel.com>
5731
5732 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.94.
5733 * configure: Regenerate.
5734
dfeffb9f
L
57352004-10-21 H.J. Lu <hongjiu.lu@intel.com>
5736
5737 PR 463
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):
5744 Likewise.
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):
5809 Likewise.
5810 * xcofflink.c (xcoff_reloc_link_order): Likewise.
5811 * simple.c (simple_dummy_reloc_overflow): Updated.
5812
1715e0e3
AS
58132004-10-20 Andreas Schwab <schwab@suse.de>
5814
5815 * elf32-m68k.c (elf_m68k_plt_sym_val): New function.
5816 (elf_backend_plt_sym_val): Define.
5817
db3d41a8
DS
58182004-10-19 Danny Smith <dannysmith@users.sourceforege.net>
5819
5820 * config.bfd: Set targ_underscore=yes for PE COFF targets
5821
4b85d634
AM
58222004-10-19 Alan Modra <amodra@bigpond.net.au>
5823
5824 * elf64-ppc.c (opd_entry_value): Handle --just-symbols objects.
5825 (ppc64_elf_edit_opd): Likewise.
5826
6df4d94c
MM
58272004-10-18 Mark Mitchell <mark@codesourcery.com>
5828
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.
5832
00d962d1
NC
58332004-10-18 Nick Clifton <nickc@redhat.com>
5834
5835 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Compute
5836 'name' for relocs against both local and global symbols.
5837
b58f81ae
DJ
58382004-10-16 Daniel Jacobowitz <dan@debian.org>
5839
5840 * bfd-in2.h: Regenerate.
5841 * bfd.c (struct bfd): Add no_export.
5842 * elflink.c (elf_link_add_object_symbols): Handle no_export.
5843
7d3f158f
AM
58442004-10-15 Alan Modra <amodra@bigpond.net.au>
5845
5846 * config.bfd: Whitespace cleanup.
5847 * Makefile.am: Run "make dep-am"
5848 * Makefile.in: Regenerate.
5849
6d2cd210
JJ
58502004-10-15 Jakub Jelinek <jakub@redhat.com>
5851
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.
5858
92e4ec35
AM
58592004-10-15 Alan Modra <amodra@bigpond.net.au>
5860
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.
5867
7bf6dede
L
58682004-10-13 H.J. Lu <hongjiu.lu@intel.com>
5869
5870 PR 440
5871 * coffcode.h (coff_compute_section_file_positions): Cast to
5872 bfd_vma when computing page alignment.
5873
c0042f5d
MM
58742004-10-13 Mark Mitchell <mark@codesourcery.com>
5875
5876 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
5877 offsets, not VMAs, for DT_VERSYM, DT_VERDEF, DT_VERNEED.
5878
2a1b9a48
MM
58792004-10-12 Mark Mitchell <mark@codesourcery.com>
5880
5881 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.plt
5882 relocations use a virtual address, not a section offset.
5883
b08b5071
BW
58842004-10-12 Bob Wilson <bob.wilson@acm.org>
5885
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.
5891
7fa3d080
BW
58922004-10-12 Bob Wilson <bob.wilson@acm.org>
5893
5894 * elf32-xtensa.c: Use ISO C90 formatting.
5895
3656d5e3
PB
58962004-10-12 Paul Brook <paul@codesourcery.com>
5897
5898 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Rephrase error
5899 message.
5900
8cb51566
PB
59012004-10-12 Paul Brook <paul@codesourcery.com>
5902
5903 * elf32-arm.h: Support EABI version 4 objects.
5904
1abc8597
AM
59052004-10-12 Alan Modra <amodra@bigpond.net.au>
5906
5907 PR 325
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.
5911
9e66c942
AM
59122004-10-12 Alan Modra <amodra@bigpond.net.au>
5913
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.
1abc8597 5918 (elf_link_input_bfd): Use it.
9e66c942 5919
7f1204bb
JJ
59202004-10-11 Jakub Jelinek <jakub@redhat.com>
5921
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.
5925
87e5235d
AM
59262004-10-11 Alan Modra <amodra@bigpond.net.au>
5927
5928 PR 233
5929 * elflink.c (elf_link_input_bfd): Try harder to support
5930 relocations against symbols in removed linkonce sections.
5931
2ad770c3
AM
59322004-10-11 Alan Modra <amodra@bigpond.net.au>
5933
029446c4
AM
5934 * elflink.c (elf_link_input_bfd): Revert PR 354 change.
5935
2ad770c3
AM
5936 PR 354
5937 * elflink.c (elf_link_input_bfd): Check that relocs in SEC_ALLOC
5938 sections do not reference symbols in non-SEC_ALLOC sections.
5939
1da212d6
AM
59402004-10-11 Alan Modra <amodra@bigpond.net.au>
5941
5942 PR 437
5943 * elflink.c (elf_link_sort_relocs): Don't bomb on unusual sections.
5944 (_bfd_elf_link_omit_section_dynsym): Formatting.
5945
f12123c0
AM
59462004-10-10 Alan Modra <amodra@bigpond.net.au>
5947
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.
5957
fda3ecf2
AM
59582004-10-10 Alan Modra <amodra@bigpond.net.au>
5959
3472e2e9
AM
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
5963 work.
5964
fda3ecf2
AM
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.
5978
7db6994f
AM
59792004-10-09 Alan Modra <amodra@bigpond.net.au>
5980
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.
5985
3c9458e9
NC
59862004-10-08 Nick Clifton <nickc@redhat.com>
5987
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.
7db6994f 5993 * targets.c (bfd_target): Include bfd_is_target_special_symbol in
3c9458e9
NC
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.
873d03ee 6002 * binary.c: Likewise.
3c9458e9
NC
6003 * coffcode.h: Likewise.
6004 * i386msdos.c: Likewise.
6005 * ieee.c: Likewise.
873d03ee 6006 * ihex.c: Likewise.
3c9458e9
NC
6007 * libaout.h: Likewise.
6008 * libbfd-in.h: Likewise
6009 * libecoff.h: Likewise.
6010 * mach-o.c: Likewise.
6011 * mmo.c: Likewise.
6012 * nlm-target.h: Likewise.
6013 * oasys.c: Likewise.
6014 * pef.c: Likewise.
6015 * ppcboot.c: Likewise.
6016 * srec.c: Likewise.
6017 * tekhex.c: Likewise.
6018 * versados.c: Likewise.
6019 * vms.c: Likewise.
6020 * xcoff-target.h: Likewise.
6021 * xsym.c: Likewise.
6022 * libbfd.h: Regenerate.
6023
d2b2c203
DJ
60242004-10-08 Daniel Jacobowitz <dan@debian.org>
6025
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.
6029
864274b0
AM
60302004-10-08 Alan Modra <amodra@bigpond.net.au>
6031
6032 * syms.c (bfd_is_local_label): Return false for file symbols.
6033
43cd72b9 60342004-10-07 Bob Wilson <bob.wilson@acm.org>
85a5ac80 6035 David Heine <dlheine@tensilica.com>
43cd72b9
BW
6036
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
6120 translated field.
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):
6131 New.
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
6135 needed.
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
fda3ecf2 6148 pcrel_reloc_fits. Handle weak symbols conservatively.
43cd72b9
BW
6149 (find_associated_l32r_irel): Add bfd parameter and pass it to
6150 is_l32r_relocation.
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
fda3ecf2 6161 identify_literal_placement functions.
43cd72b9
BW
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
6181 variables.
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
6191 function symbols.
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
6198 relocations.
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
6259 "sout" operands.
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.
6264 Add error handling.
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.
6307
99022dfb
RS
63082004-10-07 Richard Sandiford <rsandifo@redhat.com>
6309
6310 * elf64-mips.c (mips_elf64_write_rel): Use STN_UNDEF for relocs
6311 against the absolute section.
6312 (mips_elf64_write_rela): Likewise.
6313
b67ae299
NC
63142004-10-07 Jan Beulich <jbeulich@novell.com>
6315
6316 * elf.c (elf_find_function): Don't generally check for matching
6317 section, just for non-file symbols. Remove redunant comparison
6318 for the latter.
6319 * elf32-arm.h (arm_elf_find_function): Likewise.
6320
8fdd7217
NC
63212004-10-07 Jeff Baker <jbaker@qnx.com>
6322
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
6325 was specified.
6326
073a2dc3
RM
63272004-10-04 Roland McGrath <roland@redhat.com>
6328
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.
6331
7785be14
AM
63322004-10-05 Alan Modra <amodra@bigpond.net.au>
6333
6334 PR 425
6335 * syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs.
6336
40a18ebd
NC
63372004-10-01 Paul Brook <paul@codesourcery.com>
6338
6339 * elf32-arm.h (elf32_arm_fake_sections,
6340 is_arm_elf_unwind_section_name, elf32_arm_section_from_shdr): New
6341 functions.
6342 (elf_backend_fake_sections, elf_backend_section_from_shdr): Define.
6343
8935b81f
AM
63442004-10-01 Alan Modra <amodra@bigpond.net.au>
6345
6346 * elf-bfd.h (struct eh_cie_fde): Add need_relative and
6347 need_lsda_relative.
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
6351 respectively.
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.
6355
eeac373a
PB
63562004-09-30 Paul Brook <paul@codesourcery.com>
6357
6358 * elf32-arm.h (bfd_elf32_arm_set_target_relocs): Handle "abs"
6359 target2 relocation type.
6360
7479dfd4
L
63612004-09-30 H.J. Lu <hongjiu.lu@intel.com>
6362
6363 PR 414
6364 * elflink.c (_bfd_elf_merge_symbol): Check TLS symbol.
6365
0dd132b6
NC
63662004-09-30 Paul Brook <paul@codesourcery.com>
6367
6368 * reloc.c: Add BFD_RELOC_ARM_SMI.
6369 * bfd-in2.h: Regenerate.
6370 * libbfd.h: Ditto.
6371
1ba54ee0
AM
63722004-09-24 Alan Modra <amodra@bigpond.net.au>
6373
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
6378 the linker.
6379 (bfd_simple_get_relocated_section_contents): Update comment.
6380
5efb6261
AM
63812004-09-24 Alan Modra <amodra@bigpond.net.au>
6382
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
6386 to 2004-09-22.
6387
fca870e4
AM
63882004-09-23 Alan Modra <amodra@bigpond.net.au>
6389
6390 PR gas/396
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.
6394
c86696a3
BF
63952004-09-22 Brian Ford <ford@vss.fsi.com>
6396
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
6399 constants.
6400 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6401
73adb214
AM
64022004-09-22 Alan Modra <amodra@bigpond.net.au>
6403
6404 * elf32-ppc.c (ppc_elf_modify_segment_map): Delete.
6405 (elf_backend_modify_segment_map): Don't define.
6406
b301b248
AM
64072004-09-22 Alan Modra <amodra@bigpond.net.au>
6408
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,
073a2dc3 6420 test for alloc-only sections other than .tbss consistently.
b301b248
AM
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.
6424
3f85e526
L
64252004-09-17 H.J. Lu <hongjiu.lu@intel.com>
6426
6427 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.9.
6428 (CONFIG_STATUS_DEPENDENCIES): New.
6429 (Makefile): Removed.
6430 (config.status): Likewise.
6431 * Makefile.in: Regenerated.
6432
eb043451
PB
64332004-09-17 Paul Brook <paul@codesourcery.com>
6434
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
6449 R_ARM_GOT_TARGET2.
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.
6457
f6e332e6
AM
64582004-09-17 Alan Modra <amodra@bigpond.net.au>
6459
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.
6465
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
6495 indirection.
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.
6500
90c0a373
AM
65012004-09-17 Alan Modra <amodra@bigpond.net.au>
6502
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.
6508
f5385ebf
AM
65092004-09-16 Alan Modra <amodra@bigpond.net.au>
6510
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.
6523 * elf.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.
6553
b6ee372a
AM
65542004-09-16 Alan Modra <amodra@bigpond.net.au>
6555
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.
6559
9c504268
PB
65602004-09-13 Paul Brook <paul@codesourcery.com>
6561
6562 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
6563 prototype.
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.
6572 * reloc.c: Ditto.
6573
94ea025a
JB
65742004-09-10 Joel Brobecker <brobecker@gnat.com>
6575
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
6580 all sections.
6581
24443139
AS
65822004-09-11 Andreas Schwab <schwab@suse.de>
6583
6584 * acinclude.m4: Fix spelling of ACX_NONCANONICAL_*.
6585 * aclocal.m4: Rebuild.
6586 * configure: Rebuild.
6587
f4eae89c
JB
65882004-09-10 Joel Brobecker <brobecker@gnat.com>
6589
6590 * section.c (bfd_sections_find_if): Fix parameter name in
6591 comment to match code.
6592
e0638f70
AM
65932004-09-10 Alan Modra <amodra@bigpond.net.au>
6594
6595 * elf.c (assign_file_positions_except_relocs): Assign relocs
6596 stored in a bfd section.
6597
5e0f5ae3
HPN
65982004-09-08 Hans-Peter Nilsson <hp@axis.com>
6599
6600 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset
6601 h->gotplt_refcount to 0, not -1.
6602
ada1953e
HPN
66032004-09-07 Hans-Peter Nilsson <hp@axis.com>
6604
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
6607 symname.
6608 (cris_elf_check_relocs) <case R_CRIS_32_PLT_PCREL>: Don't try to
6609 handle symbol visibility here.
6610
ee75fd95
AM
66112004-09-07 Alan Modra <amodra@bigpond.net.au>
6612
6613 * elf64-ppc.c (struct ppc_link_hash_table): Add stub_globals.
6614 (is_ppc64_elf_target): Rename from is_ppc64_target. Update all
6615 callers.
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
6622 symbol name.
6623 (ppc_size_one_stub): Size long branch stub relocs. Adjust relbrlt
6624 test.
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.
6631
229fcec5
MM
66322004-09-06 Mark Mitchell <mark@codesourcery.com>
6633
6634 * elf-bfd.h (_bfd_elf_make_dynamic_segment): Declare it.
6635 * elf.c (_bfd_elf_make_dynamic_segment): New function, split out
6636 from ...
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
6644 PT_DYNAMIC segment.
6645 (elf_backend_want_got_plt): Define to zero for Symbian OS.
073a2dc3 6646
9a0789ec
NC
66472004-09-06 Nick Clifton <nickc@redhat.com>
6648
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
6651 output format.
6652
7b53ace3
AM
66532004-09-06 Alan Modra <amodra@bigpond.net.au>
6654
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.
6660
3e540f25
AM
66612004-09-04 Alan Modra <amodra@bigpond.net.au>
6662
6663 * bfd.c (_bfd_default_error_handler): Correct loop exit.
6664
e5a52504
MM
66652004-09-03 Mark Mitchell <mark@codesourcery.com>
6666
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
6675 variable.
6676 (elf32_arm_link_hash_table): Add plt_header_size, plt_entry_size,
6677 and symbian_p.
6678 (create_got_section): Don't create sections when generating BPABI
6679 objects.
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.
6697
6e3b6835
NC
66982004-09-03 Nick Clifton <nickc@redhat.com>
6699
6700 PR 360
6701 * coffcode.h (handle_COMDAT): Replace abort with an warning
6702 message and allow the scan to continue.
6703
595da8c5
AM
67042004-09-02 Alan Modra <amodra@bigpond.net.au>
6705
6706 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Use static_syms passed
6707 in when reading relocs, not our sorted syms. Remove unnecessary
6708 var.
6709
6723a9f4
EB
67102004-08-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6711
6712 * elf.c (special_sections): Add .gnu.linkonce.b modelled on .bss.
6713
5464f5a1
NN
67142004-08-30 Nathanael Nerode <neroden@gcc.gnu.org>
6715
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.
6725
a7535cf3
AM
67262004-08-28 Alan Modra <amodra@bigpond.net.au>
6727
6728 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Copy input
6729 symbol pointer arrays before modifying.
6730
c9727e01
AM
67312004-08-28 Alan Modra <amodra@bigpond.net.au>
6732
b91e2ae2 6733 * bfd.c (bfd_get_synthetic_symtab): Pass counts and both symbol tables.
c9727e01
AM
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.
b91e2ae2
AM
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.
c9727e01
AM
6741 * libbfd.h: Regenerate.
6742 * bfd-in2.h: Regenerate.
6743
699733f6
AM
67442004-08-28 Alan Modra <amodra@bigpond.net.au>
6745
6746 * elf64-ppc.c (ppc64_elf_branch_reloc): Check .opd is in a regular
6747 object file.
6748 (struct sfpr_def_parms): Save some space.
6749 (sfpr_define): Here too.
6750
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.
6756
deb0e272
AM
67572004-08-27 Alan Modra <amodra@bigpond.net.au>
6758
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.
6771
85a84e7a
PB
67722004-08-26 Paul Brook <paul@codesourcery.com>
6773
deb0e272 6774 * elf32-arm.h (INTERWORK_FLAG): Return true for EABIv3 objects.
85a84e7a 6775
688c58f3
AM
67762004-08-26 Alan Modra <amodra@bigpond.net.au>
6777
6778 * elf32-m32r.c (m32r_elf_relocate_section): Don't compare with
6779 TRUE or FALSE.
6780
3e95eabc
AM
67812004-08-26 Alan Modra <amodra@bigpond.net.au>
6782
6783 * elf32-i386.c (elf_i386_relocate_section): Tweak last change so
6784 that pcrel correction is applied for R_386_PC32.
6785
f855931b
AM
67862004-08-25 Alan Modra <amodra@bigpond.net.au>
6787
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
6790 discarded sections.
6791
b18c562e
NC
67922004-08-25 Dmitry Diky <diwil@spec.ru>
6793
6794 * reloc.c (BFD_RELOC_MSP430_2X_PCREL,BFD_RELOC_MSP430_RL_PCREL):
6795 Add new relocations.
6796 * bfd-in2.h: Regenerate.
f855931b 6797 * libbfd.h: Regenerate.
b18c562e
NC
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.
6804
af705ba8
NC
68052004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6806
6807 * elf32-m32r.c (m32r_elf_relocate_section): Handle
6808 R_M32R_SDA16_RELA in the same way as R_M32R_SDA16.
6809
ea5158d8
DJ
68102004-08-20 Daniel Jacobowitz <dan@debian.org>
6811
6812 * elflink.c (_bfd_elf_section_already_linked): Handle
6813 SEC_LINK_DUPLICATES_SAME_CONTENTS.
6814
49d934f1
MM
68152004-08-19 Mark Mitchell <mark@codesourcery.com>
6816
6817 * config.bfd (arm*-*-symbianelf*): New target.
6818 (arm*-*-eabi*): Likewise.
6819
039b3fef
AM
68202004-08-19 Alan Modra <amodra@bigpond.net.au>
6821
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.
6826
3f764659
JJ
68272004-08-19 Jakub Jelinek <jakub@redhat.com>
6828
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.
6837
c09bdfe5
AM
68382004-08-18 Alan Modra <amodra@bigpond.net.au>
6839
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.
6842
271d0fc3
NC
68432004-08-18 Nick Clifton <nickc@redhat.com>
6844
6845 PR 324
6846 * cofflink.c (coff_link_add_symbols): Check that the comdat
6847 pointer in the coff_section_data structure has been initialised
6848 before using it.
6849
a010d60f
AM
68502004-08-18 Alan Modra <amodra@bigpond.net.au>
6851
6852 PR 338
6853 * elflink.c (bfd_elf_record_link_assignment): Add comment about
6854 changing bfd_link_hash_undefined to bfd_link_hash_new.
6855
90e3cdf2
JJ
68562004-08-17 Jakub Jelinek <jakub@redhat.com>
6857
6858 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Only define
6859 if not yet defined.
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
6865 to relsyms.
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.
6869
7c2c8505
AM
68702004-08-17 Alan Modra <amodra@bigpond.net.au>
6871
6872 * elflink.h (elf_gc_sweep): Keep non-alloc, non-load sections.
6873
0367ecfb
NC
68742004-08-17 Nick Clifton <nickc@redhat.com>
6875
6876 * (is_arm_mapping_symbol_name): New function - return true
6877 when a symbol name matches the requirements for an ARM mapping
6878 symbol name.
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.
6884
2441e016
AM
68852004-08-17 Alan Modra <amodra@bigpond.net.au>
6886
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.
6890
35b0ce59
AM
68912004-08-17 Alan Modra <amodra@bigpond.net.au>
6892
6893 * elf64-ppc.c (add_symbol_adjust): Correct mismatched function
6894 symbol visibility.
6895 (ppc64_elf_check_directives): Check that we have the right hash
6896 table before proceeding.
6897
81688140
AM
68982004-08-17 Alan Modra <amodra@bigpond.net.au>
6899
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.
6903
327c1315
AM
69042004-08-16 Alan Modra <amodra@bigpond.net.au>
6905
6906 * elflink.c (elf_section_complain_discarded): Ignore .fixup.
6907
45fc9e4a
AM
69082004-08-16 Alan Modra <amodra@bigpond.net.au>
6909
6910 * bfd.c (_bfd_default_error_handler): Account for doubled '%' in
6911 free space available.
6912
9dadfa79
AM
69132004-08-16 Alan Modra <amodra@bigpond.net.au>
6914
6915 * pdp11.c (struct pdp11_aout_reloc_external): Delete. Replace
f89c4dec 6916 occurrences with bfd_byte * thoughout file.
9dadfa79
AM
6917
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.
6922
6923 * elf64-mmix.c (mmix_elf_get_section_contents): Delete declaration.
6924
57e8b36a
NC
69252004-08-13 Nick Clifton <nickc@redhat.com>
6926
6927 * elf32-arm.h: Convert to ISO C90.
6928
a005f94e
AM
69292004-08-13 Alan Modra <amodra@bigpond.net.au>
6930
6931 PR 293
6932 * elf32-hppa.c (elf32_hppa_hide_symbol): Use init_refcount to
6933 zero the plt field.
6934
d003868e
AM
69352004-08-13 Alan Modra <amodra@bigpond.net.au>
6936
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.
7058
6ba842b6
L
70592004-08-12 H.J. Lu <hongjiu.lu@intel.com>
7060
7061 * elf32-i386.c (elf_i386_relocate_section): Report unrecognized
7062 relocation.
7063
99877b66
AM
70642004-08-10 Alan Modra <amodra@bigpond.net.au>
7065
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.
7069 Add twiddled_syms.
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
7075 references.
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.
7079
ba3bee0b
JJ
70802004-08-09 Jakub Jelinek <jakub@redhat.com>
7081
7082 * elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic
7083 error, test input_section flags rather than sec.
7084
8387904d
AM
70852004-08-09 Alan Modra <amodra@bigpond.net.au>
7086
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
7092 backend version.
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.
7099 (get_fdh): Move.
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
7107 descriptor symbols.
7108
b25116a9
AM
71092004-08-09 Alan Modra <amodra@bigpond.net.au>
7110
8843416a
AM
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
7115 stub target_value.
7116
b25116a9
AM
7117 * elf64-ppc.c (ppc64_elf_relocate_section): Combine handling of
7118 long branch stubs with code handling plt and r2off branch stubs.
7119
ccfa59ea
AM
71202004-08-09 Alan Modra <amodra@bigpond.net.au>
7121
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
7125 all callers.
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.
7133
4025353c
AM
71342004-08-09 Alan Modra <amodra@bigpond.net.au>
7135
4f800a42
AM
7136 * elf64-ppc.c (adjust_opd_syms): Fix merge error.
7137
06da1e8e
AM
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.
7142
34814b9f
AM
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.
7146
4025353c
AM
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
7154 opd symbols.
7155 (ppc64_elf_output_symbol_hook): Likewise.
7156
db6579d4
PB
71572004-08-06 Paul Brook <paul@codesourcery.com>
7158
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.
7165
a4d0f181
TS
71662004-08-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7167
7168 * elfxx-mips.c (mips_elf_calculate_relocation): Test only for
7169 the dynamic link symbol actually in use.
7170
83774818
SC
71712004-08-01 Stephane Carrez <stcarrez@nerim.fr>
7172
7173 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Handle bfd_link_hash_new
7174
a4d0f181 71752004-07-31 Joel Brobecker <brobecker@gnat.com>
00b4930b
TS
7176 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7177
7178 * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle
7179 SHN_MIPS_TEXT and SHN_MIPS_DATA.
7180
185d09ad
L
71812004-07-30 H.J. Lu <hongjiu.lu@intel.com>
7182 Nick Clifton <nickc@redhat.com>
7183
7184 PR 290
7185 * bfd.c (_bfd_default_error_handler): Make it global.
7186
7187 * elf-bfd.h (elf_backend_data): Add link_order_error_handler.
7188
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.
7192
7193 * elfxx-ia64.c (elf_backend_link_order_error_handler): New. Set
7194 it to NULL.
7195
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.
7199
7200 * libbfd-in.h (_bfd_default_error_handler): New.
7201
7202 * libbfd.h: Regenerated.
7203
7946e94a
JJ
72042004-07-30 Jakub Jelinek <jakub@redhat.com>
7205
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.
7209
1d70c7fb
AO
72102004-07-29 Alexandre Oliva <aoliva@redhat.com>
7211
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.
7227 (SH2A_NEXT): New.
7228 (arch_info_struct): Add sh2a.
7229 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a.
7230
404ed0cf
DA
72312004-07-28 Nick Clifton <nickc@redhat.com>
7232 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7233
7234 PR 273
7235 * som.c (setup_sections): Improve estimation of space sizes in
7236 relocatable objects.
7237
225247f0
JT
72382004-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
7241 to targ_selvecs.
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,
7249 set OSABI=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.
7254
3d7f7666
L
72552004-07-27 H.J. Lu <hongjiu.lu@intel.com>
7256
7257 PR 161/251
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.
7262
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.
7270
7271 * elfcode.h (elf_object_p): Call _bfd_elf_setup_group_pointers.
7272
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.
7279
7280 * libbfd-in.h (bfd_section_already_linked_table_traverse): New.
7281 * linker.c (bfd_section_already_linked_table_traverse): New.
7282
7283 * libbfd.h: Regenerated.
7284
670ec21d
NC
72852004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
7286
7287 * reloc.c: Add BFD_RELOC_CRX_SWITCH8, BFD_RELOC_CRX_SWITCH16,
7288 BFD_RELOC_CRX_SWITCH32.
7289 * bfd-in2.h: Regenerate.
6cd7f07e 7290 * libbfd.h: Regenerate.
670ec21d
NC
7291 * elf32-crx.c: Support relocation/relaxation of
7292 BFD_RELOC_CRX_SWITCH* types.
7293
2c66dc6c
AM
72942004-07-27 Alan Modra <amodra@bigpond.net.au>
7295
7296 * elf64-ppc.c: Correct "Linker stubs" comment.
7297
38ce5b11
L
72982004-07-26 H.J. Lu <hongjiu.lu@intel.com>
7299
7300 * elf-bfd.h (bfd_elf_section_data): Add a pointer for the
7301 linked-to section.
7302 (elf_linked_to_section): New.
7303
7304 * elf.c (assign_section_numbers): Set up sh_link for
7305 SHF_LINK_ORDER.
7306
7307 * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info
7308 to sh_link for SHT_IA_64_UNWIND sections.
7309
65da361f
L
73102004-07-22 H.J. Lu <hongjiu.lu@intel.com>
7311
7312 * elflink.c (elf_fixup_link_order): Add _() to error message.
7313
08ccf96b
L
73142004-07-22 H.J. Lu <hongjiu.lu@intel.com>
7315
7316 * elflink.c (elf_fixup_link_order): Issue a warning and flag
7317 an error if failed.
7318
082b7297
L
73192004-07-21 H.J. Lu <hongjiu.lu@intel.com>
7320
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.
7346
7347 * bfd-in.h (bfd_section_already_linked_table_init): New.
7348 (bfd_section_already_linked_table_free): Likewise.
7349
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.
7355
7356 * elf-bfd.h (_bfd_elf_section_already_linked): New prototype.
7357 * elflink.c (_bfd_elf_section_already_linked): New function.
7358
7359 * elfxx-target.h (bfd_elfNN_section_already_linked): Defined.
7360
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.
7367
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.
7376
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.
7386
7387 * targets.c (bfd_target): Add _section_already_linked.
7388 (BFD_JUMP_TABLE_LINK): Updated.
7389
7390 * bfd-in2.h: Regenerated.
7391 * libbfd.h: Likewise.
7392 * libcoff.h: Likewise.
7393
0b52efa6
PB
73942003-07-21 Paul Brook <paul@codesourcery.com>
7395
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.
7399
7e2294f9
AO
74002004-07-21 Alexandre Oliva <aoliva@redhat.com>
7401
7402 * elf-bfd.h (ELF_COMMON_DEF_P): New.
7403 * elflink.c (_bfd_elf_symbol_refs_local_p): Use it to handle
7404 common definitions.
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
7408 symbols.
7409
e56f61be
L
74102004-07-19 H.J. Lu <hongjiu.lu@intel.com>
7411
7412 * bfd-in.h (dynamic_lib_link_class): Add DYN_NO_ADD_NEEDED and
7413 DYN_NO_NEEDED.
7414 (bfd_elf_get_dyn_lib_class): New prototype.
7415 * elf.c (bfd_elf_get_dyn_lib_class): New function.
7416
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
7422 for DT_NEEDED tags.
7423
7424 * bfd-in2.h: Regenerated.
7425
27b56da8
DA
74262004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7427
7428 * elflink.c (elf_section_complain_discarded): Don't complain in
7429 .PARISC.unwind.
7430
bbb268c3
JW
74312004-07-10 James E Wilson <wilson@specifixinc.com>
7432
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):
7437 Fix callers.
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.
2c66dc6c 7441
e525914f
L
74422004-07-09 H.J. Lu <hongjiu.lu@intel.com>
7443
7444 PR 240
7445 * elfxx-ia64.c (elfNN_ia64_relax_section): Only warn br in
7446 .init/.fini sections when trying to relax it.
7447
b1a6d0b1
NC
74482004-07-09 Jie Zhang <zhangjie@magima.com.cn>
7449
7450 * elf.c (assign_file_positions_for_segments): Make sure the
7451 .dynamic section is the first section in the PT_DYNAMIC segment.
7452
1a320fbb
NC
74532004-07-09 Nick Clifton <nickc@redhat.com>
7454
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.
7462
1fe1f39c
NC
74632004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
7464
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.
7489
85fbca6a
NC
74902004-07-06 Nick Clifton <nickc@redhat.com>
7491
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
7496 'check_directives'.
1fe1f39c 7497 * elflink.c (elf_link_add_object_symbols): Invoke the
85fbca6a 7498 check_directives function, if defined.
1fe1f39c 7499 * elfxx-target.h: Provide a default, NULL definition for
85fbca6a 7500 check_directives.
1fe1f39c
NC
7501 * targets.c: Add bfd_elf32_shl_symbian_vec.
7502 * elf32-sh.c (sh_elf_swap_insns): Protect against unnecessary
85fbca6a 7503 definition.
1fe1f39c 7504 (elf32_shlin_grok_prstatus, elf32_shlib_grok_psinfo,
85fbca6a 7505 * sh_elf_get_flags_from_mach, sh_elf_find_flags): Likewise.
1fe1f39c 7506 (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Only define if they have
85fbca6a 7507 not already been defined.
1fe1f39c
NC
7508 * elf32-sh64.c: Use SH_TARGET_ALREADY_DEFINED.
7509 * sh-symbian.c: New file. Provide functions to support the
85fbca6a
NC
7510 * sh-symbian-elf target.
7511 * Makefile.am: Add elf32-sh-symbian.c
7512 * Makefile.in: Regenerate.
1fe1f39c 7513
871ec896
JR
75142004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
7515
1fe1f39c
NC
7516 * elf32-sh.c: Include ../opcodes/sh-opc.h.
7517 * Makefile.am: Ran make dep-am.
7518 * Makefile.in: Ran make dep-in.
871ec896 7519
c87db184
CF
75202004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
7521
7522 * cofflink.c (_bfd_coff_generic_relocate_section): Resolve PE weak
7523 externals properly.
7524
06f2f6af
MS
75252004-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
7526
7527 * config.bfd: Add want64 to configuration target s390-*-linux*.
7528
b602c853
L
75292004-07-01 H.J. Lu <hongjiu.lu@intel.com>
7530
7531 * bfd.c (bfd_get_section_ident): New.
7532
7533 * elflink.c (elf_link_read_relocs_from_section): Call
7534 bfd_get_section_ident to identify the section when reporting
7535 error.
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.
7540
7541 * bfd-in2.h: Regenerated.
7542
7a2a6943
NC
75432004-07-01 Jie Zhang <zhangjie@magima.com.cn>
7544 Nick Clifton <nickc@redhat.com>
7545
7546 PR 204
7547 * elfxx-mips.c (_bfd_mips_elf_final_link): Pass the correct number
7548 of section symbols to mips_elf_sort_hash_table ().
7549
cdd3575c
AM
75502004-07-01 Alan Modra <amodra@bigpond.net.au>
7551
7552 * elflink.c (elf_section_ignore_discarded_relocs): Revert last
7553 change. Comment.
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.
7559
21a8f7fa
JW
75602004-06-30 James E Wilson <wilson@specifixinc.com>
7561
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.
7564
2de26f35
L
75652004-06-30 H.J. Lu <hongjiu.lu@intel.com>
7566
7567 PR 233
7568 * elflink.c (elf_link_input_bfd): Issue an error for non-debug
7569 local references to discarded sections and report their
7570 locations.
7571
72d7a15c
AM
75722004-06-30 Alan Modra <amodra@bigpond.net.au>
7573
7574 * elflink.c (elf_section_ignore_discarded_relocs): Don't test
7575 sec_info_type, test section name instead.
7576
e7f0a167
L
75772004-06-29 H.J. Lu <hongjiu.lu@intel.com>
7578
7579 PR 240
7580 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't relax branch
7581 in .init/.fini sections.
7582
bff5f93a
BW
75832004-06-29 Bob Wilson <bob.wilson@acm.org>
7584
7585 * elf32-xtensa.c (elf_xtensa_relocate_section): Use
7586 bfd_get_section_limit.
7587
b54d4b07
BW
75882004-06-29 Bob Wilson <bob.wilson@acm.org>
7589
7590 * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Don't change the
7591 output section size.
7592
e87a64e1
AM
75932004-06-29 Alan Modra <amodra@bigpond.net.au>
7594
1a23a9e6
AM
7595 * elf64-mmix.c (mmix_set_relaxable_size): Save original size in
7596 rawsize.
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
7604 and rawsize.
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.
7609
e87a64e1
AM
7610 * reloc16.c (bfd_coff_reloc16_relax_section): Set rawsize.
7611
07515404
AM
76122004-06-29 Alan Modra <amodra@bigpond.net.au>
7613
7614 * bfd-in.h (bfd_get_section_limit): Define.
1fe1f39c 7615 * reloc.c (bfd_perform_relocation, bfd_install_relocation)
07515404
AM
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.
1fe1f39c 7624 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc)
07515404 7625 (i860_howto_highadj_reloc, i860_howto_splitn_reloc): Likewise.
1fe1f39c 7626 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc)
07515404
AM
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.
1fe1f39c
NC
7646 * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp)
7647 (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc)
07515404
AM
7648 (_bfd_mips_elf_generic_reloc): Likewise.
7649 * bfd-in2.h: Regenerate.
7650
3722b82f
AM
76512004-06-28 Alan Modra <amodra@bigpond.net.au>
7652
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
7666 in place.
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.
7676
727e493d
MK
76772004-06-27 Mark Kettenis <kettenis@gnu.org>
7678
7679 From Miod Vallat <miod@online.fr>:
7680 * aoutx.h (NAME(aout,machine_type)): Handle bfd_arch_m88k.
7681
146ccdbb
AO
76822004-06-26 Alexandre Oliva <aoliva@redhat.com>
7683
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.
7699
a5fd0812
MK
77002004-06-26 Mark Kettenis <kettenis@gnu.org>
7701
7702 * config.bfd: Replace m88k-*-openbsd* with m88*-*-openbsd*.
7703
22bfad37
JB
77042004-06-25 Joel Brobecker <brobecker@gnat.com>
7705
7706 * som.c (som_set_reloc_info): Correct small typo.
7707
097f809a
NC
77082004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7709
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.
f9f2cf5d
NC
7718 * bfd-in2.h: Regenerated.
7719 * libbfd.h: Regenerated.
097f809a 7720
6610a52d
L
77212004-06-24 H.J. Lu <hongjiu.lu@intel.com>
7722
7723 * elf64-x86-64.c (elf64_x86_64_check_relocs): Warn overflow
7724 relocation symbol.
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.
7728
eea6121a
AM
77292004-06-24 Alan Modra <amodra@bigpond.net.au>
7730
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.
7751
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.
8089
bf8b15af
L
80902004-06-21 H.J. Lu <hongjiu.lu@intel.com>
8091
8092 * elfxx-ia64.c (elfNN_ia64_relax_section): Add addend when
8093 calling _bfd_merged_section_offset only for section symbols.
8094
d1c6de6f
AM
80952004-06-22 Alan Modra <amodra@bigpond.net.au>
8096
8097 * elf32-ppc.c (ppc_elf_relax_section): Implement reference code
8098 for handling SEC_MERGE symbols in relax_section.
8099
aa02cc63
AO
81002004-06-21 Alexandre Oliva <aoliva@redhat.com>
8101
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.
8105
aee6f5b4
AO
81062004-06-21 Alexandre Oliva <aoliva@redhat.com>
8107
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.
8118
05576f10
NC
81192004-06-21 Nick Clifton <nickc@redhat.com>
8120
8121 * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED
8122 flags.
8123
02d5a37b
JG
81242004-06-17 Jerome Guitton <guitton@gnat.com>
8125
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.
8129
d2bef492
MK
81302004-06-16 Mark Kettenis <kettenis@gnu.org>
8131
8132 * configure.in: Don't set COREFILE to trad-core.lo for FreeBSD
8133 4.10 and beyond.
8134 * configure: Regenerate.
8135
8528d62e
DJ
81362004-06-16 Daniel Jacobowitz <dan@debian.org>
8137
8138 * elf32-ppc.c (ppc_elf_create_linker_section): Create symbols in
8139 the pre-existing section.
8140
911d08a7
AM
81412004-06-15 Alan Modra <amodra@bigpond.net.au>
8142
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
8151 reloc_done.
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.
8170
092dcd75
CD
81712004-06-14 Chris Demetriou <cgd@broadcom.com>
8172
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
8176 BFD_RELOC_32_PCREL.
8177 (mips_elf32_rtype_to_howto): Add back case for R_MIPS_PC32.
8178 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
8179
3ffa5234
AM
81802004-06-12 Alan Modra <amodra@bigpond.net.au>
8181
8182 * elf64-x86-64.c (elf64_x86_64_relocate_section): Ignore reloc
8183 overflow on branches to undefweaks.
8184
e9edc808
MR
81852004-06-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8186
8187 * coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly
8188 as ecoff_section_data() does not return a valid lvalue.
8189
a873f25a
AO
81902004-06-09 Alexandre Oliva <aoliva@redhat.com>
8191
a9b881be
AO
8192 * elflink.c (elf_sort_symbol): Compare section id, not pointers.
8193 (elf_link_add_object_symbols): Likewise.
8194
a873f25a
AO
8195 * elf-m10300.c (_bfd_mn10300_elf_reloc_type_class): New.
8196 (elf_backend_reloc_type_class): New.
8197
eef0f186
MK
81982004-06-08 Mark Kettenis <kettenis@gnu.org>
8199
8200 * configure.in (hppa*-*-netbsd*, hppa*-*-openbsd): Set COREFILE to
8201 netbsd-core.lo.
8202 * configure: Regenerate.
8203
822392ce
DJ
82042004-06-07 Daniel Jacobowitz <dan@debian.org>
8205
8206 From: Albert Chin-A-Young <china@thewrittenword.com>
8207 * bfd/elf-bfd.h (struct eh_cie_fde): Convert unsigned char bitfields
8208 to unsigned int.
8209
9f2e92c5
L
82102004-05-29 H.J. Lu <hongjiu.lu@intel.com>
8211
8212 * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last
8213 change.
8214
dd90f1b2
DD
82152004-05-28 DJ Delorie <dj@redhat.com>
8216
8217 * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend
8218 for linking, but otherwise adjust reloc for merged sections.
8219
5dd23ec1
L
82202004-05-28 H.J. Lu <hongjiu.lu@intel.com>
8221
8222 * elfxx-ia64.c (elfNN_ia64_relax_section): Properly call
8223 _bfd_merged_section_offset for local symbols.
8224
f6f9408f
JR
82252004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
8226
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() .
8243
d866f350
MC
82442004-05-27 Michael Chastain <mec.gnu@mindspring.com>
8245
8246 * Makefile.am (bfdver.h): Use explicit filename, not $< .
8247 * Makefile.in: Regenerate.
8248
1055df0f
AO
82492004-05-27 Alexandre Oliva <aoliva@redhat.com>
8250
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.
8255
b3096250
L
82562004-05-26 H.J. Lu <hongjiu.lu@intel.com>
8257
8258 * elf.c (_bfd_elf_make_section_from_shdr): Undo the last
8259 change.
8260
9bb351fd
AO
82612004-05-27 Alexandre Oliva <aoliva@redhat.com>
8262
8263 * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
8264 loop over hashes.
8265
e49f5022
AM
82662004-05-26 Alan Modra <amodra@bigpond.net.au>
8267
8268 * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
8269 for SHT_GROUP sections.
8270
57ceae94
AM
82712004-05-25 Alan Modra <amodra@bigpond.net.au>
8272
8273 * elflink.c (elf_link_add_object_symbols): Don't set up merge
8274 section data here..
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
8283 and alignment.
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.
8289
c6f8758f 82902004-05-24 Mark Kettenis <kettenis@gnu.org>
d34436e8
MK
8291
8292 * netbsd-core.c: Correctly indent section that sets architecture
8293 from machine ID.
8294
c6f8758f
NC
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.
8304 Run "make dep-am".
8305 * Makefile.in: Regenerate.
8306 * po/SRC-POTFILES.in: Regenerate.
8307
7d7e6bc4
NC
83082004-05-24 Nick Clifton <nickc@redhat.com>
8309
8310 * hash.c: Remove bogus node "Changing the default Hash Table Size"
8311 introduced by hash table size patch.
8312
bc286f95
BE
83132004-05-22 Ben Elliston <bje@au.ibm.com>
8314
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.
8323
8b89a4eb
BE
83242004-05-22 Ben Elliston <bje@au.ibm.com>
8325
8326 * Makefile.am (config.status): Don't depend on version.h.
8327 * Makefile.in: Regenerate.
8328
753731ee
AM
83292004-05-22 Alan Modra <amodra@bigpond.net.au>
8330
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.
8342
2d643429
NC
83432004-05-21 Andy Chittenden <achittenden@bluearc.com>
8344
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
8349 function.
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.
8354
8377c19c
MK
83552004-05-21 Mark Kettenis <kettenis@gnu.org>
8356
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.
8360
69fd4758
NC
83612004-05-21 Nick Clifton <nickc@redhat.com>
8362
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.
8371
cd917290
BE
83722004-05-19 Ben Elliston <bje@au.ibm.com>
8373
8374 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
8375
1b09e940
NC
83762004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
8377
8378 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
8379 (bfd_generic_openr_next_archived_file): Likewise.
8380
096c35a7
BW
83812004-05-17 Bob Wilson <bob.wilson@acm.org>
8382
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.
8386
eea6121a 83872004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
8388
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.
8393
80fccad2
BW
83942004-05-17 David Heine <dlheine@tensilica.com>
8395
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
8400 interface.
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.
8418
c5ae1840
TS
84192004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
8420
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.
8426
a99cf92b
DA
84272004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8428
8429 * som.c (log2): Rename to exact_log2. Adjust all callers.
8430
0da76f83
NC
84312004-05-13 Paul Brook <paul@codesourcery.com>
8432
c273895f 8433 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
336b9722
NC
8434 dwarf3 format CIE entries. Remove comment about the size of the
8435 ra_column field. It is now correctly deduced.
0da76f83 8436
4b363073
NC
84372004-05-13 Joel Sherrill <joel@oarcorp.com>
8438
8439 * config.bfd (or32-*-rtems*): Switch to elf.
8440
9598fbe5
NC
84412004-05-13 Nick Clifton <nickc@redhat.com>
8442
8443 * po/fr.po: Updated French translation.
8444
8c37241b
JJ
84452004-05-11 Jakub Jelinek <jakub@redhat.com>
8446
0306b3bf 8447 * elflink.c (bfd_elf_final_link): Don't output STT_SECTION symbol
8c37241b
JJ
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.
8453
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
8457 to .got.plt.
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.
8474
3f980e41
AO
84752004-05-08 Alexandre Oliva <aoliva@redhat.com>
8476
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.
8480
d70270c5 84812004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 8482 DJ Delorie <dj@redhat.com>
d70270c5
BF
8483
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.
8488
7e9f3bd6
AO
84892004-05-07 Alexandre Oliva <aoliva@redhat.com>
8490
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.
8495
eb61d2d6
ZW
84962004-05-06 Zack Weinberg <zack@codesourcery.com>
8497
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.
8500
ecb2d096
DJ
85012004-05-06 Daniel Jacobowitz <drow@mvista.com>
8502
8503 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
8504 special case.
8505
43850d5b
AO
85062004-05-05 Alexandre Oliva <aoliva@redhat.com>
8507
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
8512 on the latter.
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
8516 vector.
8517 (bfd_elf32_frvfdpic_vec): Declare.
8518 (IS_FDPIC): New.
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
8525 linker script.
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.
8540
06fc8a8c
NC
85412004-05-05 Nick Clifton <nickc@redhat.com>
8542
8543 PR/136
8544 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
8545 returning NULL as most users of this function do not check its
8546 return value.
33216455
NC
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.
06fc8a8c
NC
8551
85522004-05-05 Nick Clifton <nickc@redhat.com>
8553
8554 * cache.c (bfd_cache_lookup): Improve formatting.
8555 * archive.c: Fix formatting.
8556
6b6e92f4
NC
85572004-05-05 Peter Barada <peter@the-baradas.com>
8558
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.
8562
6a8d1586
AM
85632004-05-03 Alan Modra <amodra@bigpond.net.au>
8564
8565 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
8566 SEC_MERGE sections.
8567 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
8568 those against discarded link-once and SEC_MERGE section symbols.
8569
fafe6678
L
85702004-05-02 H.J. Lu <hongjiu.lu@intel.com>
8571
8572 * section.c (bfd_get_section_by_name_if): New.
8573 * bfd-in2.h: Regenerated.
8574
ad7b9a36
AM
85752004-05-02 Alan Modra <amodra@bigpond.net.au>
8576
8577 * som.c (som_bfd_is_group_section): Define.
8578
73499ab8
AM
85792004-05-01 Alan Modra <amodra@bigpond.net.au>
8580
8581 * section.c (bfd_make_section_anyway): Copy the whole
8582 bfd_hash_entry, not just "next" from existing entry.
8583
45c5e9ed
L
85842004-04-30 H.J. Lu <hongjiu.lu@intel.com>
8585
8586 * elf.c (bfd_section_from_shdr): Maintain the section order in
8587 a section group.
8588 (special_sections): Add ".note.GNU-stack".
8589 (elf_fake_sections): Handle section group for relocatable
8590 link..
8591
bc87dd2e
L
85922004-04-30 H.J. Lu <hongjiu.lu@intel.com>
8593
8594 * section.c (bfd_sections_find_if): New.
8595 * bfd-in2.h: Regenerated.
8596
72adc230
AM
85972004-04-30 Alan Modra <amodra@bigpond.net.au>
8598
8599 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
8600
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.
8636
20f0a1ad
AM
86372004-04-30 Alan Modra <amodra@bigpond.net.au>
8638
8639 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
8640
f7458fc9 86412004-04-30 Hans-Peter Nilsson <hp@axis.com>
7dfb3b6b
HPN
8642
8643 * configure.in: Update version to 2.15.91.
8644 * configure: Regenerate.
8645
8a7140c3
NC
86462004-04-29 Brian Ford <ford@vss.fsi.com>
8647
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
8656 .gnu.linkonce.wi..
8657 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
8658 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
8659
3e722fb5
CD
86602004-04-28 Chris Demetriou <cgd@broadcom.com>
8661
8662 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
8663 * bfd-in2.h: Regenerate.
8664 * libbfd.h: Likewise.
8665
351e2b5a
DA
86662004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8667
8668 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
8669 dup_common fields.
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
8675 copy_data.
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
8681 function.
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
8687 symbol table.
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
8691 dup_common fields.
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.
8695
3ba3bc8c
BW
86962004-04-27 Bob Wilson <bob.wilson@acm.org>
8697
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.
8704
beb8df56
L
87052004-04-27 H.J. Lu <hongjiu.lu@intel.com>
8706
8707 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
8708 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
8709 section.
8710 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
8711 section.
8712
1829f4b2
AM
87132004-04-27 Alan Modra <amodra@bigpond.net.au>
8714
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.
8718
8719 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
8720 Constify hdr arg.
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.
8726
4030e8f6
CD
87272004-04-24 Chris Demetriou <cgd@broadcom.com>
8728
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
8739 relocations to...
8740 (_bfd_mips_elf_relocate_section): Here. Remove handling for
8741 R_MIPS_GNU_REL_HI16.
8742
3e27568f
CD
87432004-04-23 Chris Demetriou <cgd@broadcom.com>
8744
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
8752 for MIPS_R_PCREL16.
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'.
8772
b32de0bc 87732004-04-23 Chris Demetriou <cgd@broadcom.com>
8472310d
CD
8774
8775 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
8776
955af222
PB
87772004-04-21 Philip Blundell <pb@nexus.co.uk>
8778
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.
8782
47a9f7b3
JJ
87832004-04-22 Jakub Jelinek <jakub@redhat.com>
8784
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
8791 SHN_UNDEF symbols.
8792
1f1799d5
KK
87932004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8794
8795 * elf32-sh.c (sh_elf_plt_sym_val): New function.
8796 (elf_backend_plt_sym_val): Define.
8797
0fdea5ce
AC
87982004-04-22 Andrew Cagney <cagney@redhat.com>
8799
8800 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
8801
5198ba8b
DA
88022004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8803
eb61d2d6 8804 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
5198ba8b
DA
8805 make_bfd_asection.
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):
8810 Likewise.
8811
fe2e161a
AC
88122004-04-22 Andrew Cagney <cagney@redhat.com>
8813
8814 * cache.c (bfd_cache_close): Check for a previously closed file.
8815
4c45e5c9
JJ
88162004-04-22 Jakub Jelinek <jakub@redhat.com>
8817
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
8824 relplt_name fields.
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.
8857
d2f7ecac
NC
88582004-04-22 Nick Clifton <nickc@redhat.com>
8859
8860 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
8861
fd99574b
NC
88622004-04-22 Peter Barada <peter@the-baradas.com>
8863
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[].
8867
23867d67
CD
88682004-04-21 Chris Demetriou <cgd@broadcom.com>
8869
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.
8875
2c8c90bc
BW
88762004-04-21 Bob Wilson <bob.wilson@acm.org>
8877
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.
8883
40838a72
AC
88842004-04-21 Andrew Cagney <cagney@redhat.com>
8885
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.
8904
7f919c84
AC
89052004-04-21 Andrew Cagney <cagney@redhat.com>
8906
8907 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
8908
715df9b8
EB
89092004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
8910
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.
8917
6482c264
NC
89182004-04-20 DJ Delorie <dj@redhat.com>
8919
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.
8926
4dc570c2
JJ
89272004-04-19 Jakub Jelinek <jakub@redhat.com>
8928
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.
8932
0b60d5d3
MK
89332004-04-18 Mark Kettenis <kettenis@gnu.org>
8934
8935 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
8936 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
8937 core files.
8938
d48bdb99
AM
89392004-04-17 Brian Ford <ford@vss.fsi.com>
8940
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
8944 overflow.
8945 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
8946
57a1784e
AM
89472004-04-16 Alan Modra <amodra@bigpond.net.au>
8948
8949 * simple.c (bfd_simple_get_relocated_section_contents): Don't
8950 change reloc_done. Set and restore _cooked_size.
8951 (RETURN): Delete.
8952
d1ad3f6f
MK
89532004-04-15 Mark Kettenis <kettenis@gnu.org>
8954
8955 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
8956 core files.
8957
3d1bca9d
NC
89582004-04-15 Nick Clifton <nickc@redhat.com>
8959
8960 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
8961
019b892f
AM
89622004-04-15 Alan Modra <amodra@bigpond.net.au>
8963
8964 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
8965
15b43f48
AM
89662004-04-15 H.J. Lu <hongjiu.lu@intel.com>
8967
8968 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
8969 when it is a definition.
8970
6de00a78
AM
89712004-04-14 Alan Modra <amodra@bigpond.net.au>
8972
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.
8976
279500de
TS
89772004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
8978
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.
8983
ccf2f652
RS
89842004-04-08 Richard Sandiford <rsandifo@redhat.com>
8985
8986 * elflink.c: Include libiberty.h.
8987 * Makefile.am (elflink.lo): Depend on libiberty.h.
8988 * Makefile.in: Regenerate.
8989
ca07892d
DJ
89902004-04-06 Daniel Jacobowitz <drow@mvista.com>
8991
8992 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
8993 ".MIPS.stubs".
8994
a5a58ba4
L
89952004-04-05 H.J. Lu <hongjiu.lu@intel.com>
8996
8997 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
8998 reserve the memory for dynamic linker
8999
24d18d30
MK
90002004-04-05 Mark Kettenis <kettenis@gnu.org>
9001
9002 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
9003 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
9004
a4d7b4b5
L
90052004-04-02 H.J. Lu <hongjiu.lu@intel.com>
9006
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.
9010
1f433d93
L
90112004-04-02 H.J. Lu <hongjiu.lu@intel.com>
9012
9013 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
9014 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
9015
e489d0ae
PB
90162004-04-01 Paul Brook <paul@codesourcery.com>
9017
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.
9030
66a695f0
NC
90312004-04-01 Andy Chittenden <achittenden@bluearc.com>
9032
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.
9040
8375c36b
PB
90412004-03-31 Paul Brook <paul@codesourcery.com>
9042
9043 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
9044 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
9045
a56b48eb
NC
90462004-03-31 Andy Chittenden <achittenden@bluearc.com>
9047
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.
9055
1fbc7e7a 90562004-03-31 Mattias Engdegård <mattias@virtutech.se>
3d456464
NC
9057
9058 * stabs.c (_bfd_link_section_stabs): Do not skip N_EXCL stabs.
9059
0949843d 90602004-03-30 Galit Heller <Galit.Heller@nsc.com>
eb61d2d6 9061 Tomer Levi <Tomer.Levi@nsc.com>
0949843d
NC
9062
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.
9101
baaff79e
JJ
91022004-03-30 Jakub Jelinek <jakub@redhat.com>
9103
9104 * elf.c (map_sections_to_segments): Fix handling of .tbss.
9105
c152c796
AM
91062004-03-27 Alan Modra <amodra@bigpond.net.au>
9107
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
9153 code here.
9154 * elflink.h: Delete file.
9155 * po/SRC-POTFILES.in: Regenerate.
9156 * po/bfd.pot: Regenerate.
9157
6a9cae7f
AM
91582004-03-27 Alan Modra <amodra@bigpond.net.au>
9159
9160 * elf64-mmix.c (mmix_elf_relocate_section): Restore code setting
9161 "name" for global syms accidentally removed in 2004-03-20 change.
9162
140f6c8e
AM
91632004-03-27 Alan Modra <amodra@bigpond.net.au>
9164
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
9196 ELF_R_SYM macro.
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.
9206
14bde378
SS
92072004-03-26 Stan Shebs <shebs@apple.com>
9208
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.
9213
555cd476
AM
92142004-03-26 Alan Modra <amodra@bigpond.net.au>
9215
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.
9237
4ad4eba5
AM
92382004-03-26 Alan Modra <amodra@bigpond.net.au>
9239
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,
9249 make static.
9250 (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static.
9251 (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make
9252 static.
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.
9264
5a580b3a
AM
92652004-03-25 Alan Modra <amodra@bigpond.net.au>
9266
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.
c152c796 9269
5a580b3a
AM
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.
9290 Update all users.
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.
9315
d507cf36
PB
93162004-03-23 Paul Brook <paul@codesourcery.com>
9317
9318 * elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
9319
88d65ad6
BW
93202004-03-22 Bob Wilson <bob.wilson@acm.org>
9321
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
9326 set DF_TEXTREL.
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.
c152c796 9330
b9cf773d
AM
93312004-03-23 Alan Modra <amodra@bigpond.net.au>
9332
9333 PR 51.
9334 * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char.
9335
e4a2175c
HPN
93362004-03-22 Hans-Peter Nilsson <hp@axis.com>
9337
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
9343 executable.
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
b9cf773d 9348 .got for a DSO and explain why.
e4a2175c
HPN
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.
9353
b2a8e766
AM
93542004-03-22 Alan Modra <amodra@bigpond.net.au>
9355
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.
9367
59c2e50f
L
93682004-03-20 H.J. Lu <hongjiu.lu@intel.com>
9369
9370 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if
9371 unresolved symbols in objects aren't allowed.
9372
9373 * elf-hppa.h (elf_hppa_relocate_section): Properly handle
9374 unresolved symbols.
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.
9385
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.
9400
9992270f
DA
94012004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9402
36751eee
DA
9403 * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
9404 (final_link_relocate): Likewise.
9992270f
DA
9405 * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
9406 R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
9407
05864e2a
AM
94082004-03-19 Alan Modra <amodra@bigpond.net.au>
9409
9410 * Makefile.am: Run "make dep-am".
9411 * Makefile.in: Regenerate.
9412 * aclocal.m4: Regenerate.
9413 * config.in: Regenerate.
9414 * po/bfd.pot: Regenerate.
9415
f218a464 94162004-03-19 Alan Modra <amodra@bigpond.net.au>
0f8a2703
AM
9417 H.J. Lu <hongjiu.lu@intel.com>
9418
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
9424 comments.
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.
f218a464
AM
9431
9432 * elflink.c (_bfd_elf_merge_symbol): Reinstate code to handle
9433 strong syms in one shared object overriding weak syms in another.
9434
79349b09
AM
94352004-03-18 Alan Modra <amodra@bigpond.net.au>
9436
4a43e768
AM
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
9449 elf_dt_soname.
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.
9454
79349b09
AM
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.
9459
d13d89fa
NS
94602004-03-17 Nathan Sidwell <nathan@codesourcery.com>
9461
9462 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
9463 logic for null_input_bfd detection.
9464
9183ed4b
AM
94652004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
9466
9467 * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
9468
021d7868
MK
94692004-03-16 Mark Kettenis <kettenis@gnu.org>
9470
9471 * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
9472 code.
9473
51992aec
AM
94742004-03-16 Alan Modra <amodra@bigpond.net.au>
9475
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.
9480
ccba357f
AM
94812004-03-16 Alan Modra <amodra@bigpond.net.au>
9482
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.
9492
41978308
AM
94932004-03-16 Alan Modra <amodra@bigpond.net.au>
9494
9495 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
9496 aliasing warning. Remove trailing whitespace throughout file.
9497
d63b5ed9
DA
94982004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9499
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
9503 local symbols.
9504 (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
9505
8ce8c090
AM
95062004-03-15 Alan Modra <amodra@bigpond.net.au>
9507
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
9515 when using long.
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.
9536
edeb6e24
AM
95372004-03-15 Alan Modra <amodra@bigpond.net.au>
9538
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.
9581
c1b954e2
AM
95822004-03-15 Matt Thomas <matt@3am-software.com>
9583
9584 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
9585 selected.
9586
85cfd8d3
MK
95872004-03-13 Mark Kettenis <kettenis@gnu.org>
9588
9589 * config.bfd: Add x86_64-*-openbsd*.
9590 * configure.in (x86_64-*-openbsd*): Set COREFILE to
9591 netbsd-core.lo.
9592 * configure: Regenerate.
9593
d1f161ea
NC
95942004-03-12 Nick Clifton <nickc@redhat.com>
9595 Dave Murphy <wintermute2k4@ntlworld.com>
c1b954e2 9596
d1f161ea
NC
9597 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
9598 if the input bfd does not contain any code.
9599
8b6f2683
JW
96002004-03-09 Steve Ellcey <sje@cup.hp.com>
9601
9602 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
9603
79cda7cf
FF
96042004-03-05 Fred Fish <fnf@redhat.com>
9605
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.
9609
e5caec89
NS
96102004-03-05 Nathan Sidwell <nathan@codesourcery.com>
9611
9612 * elf.c (map_sections_to_segments): Ignore .tbss sections for
9613 layout purposes.
9614
02bb6eae
AO
96152004-03-03 Alexandre Oliva <aoliva@redhat.com>
9616
9617 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
9618 undefined symbols as hash_new.
9619
ae51a426
JR
96202003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
9621
9622 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
9623 * cpu-sh.c: Ditto.
9624 * elf32-sh.c: Ditto.
9625 * bfd-in2.h: Regenerate.
9626
3b712a1a
AO
96272004-03-02 Alexandre Oliva <aoliva@redhat.com>
9628
9629 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
9630 dynrelocs.
9631 (_frv_count_got_plt_entries): Initialize them.
9632 (frv_pic_relocs_info_find): Add insert argument. Adjust all
9633 callers.
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
9638 another.
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.
9645
676a64f4
RS
96462004-03-01 Richard Sandiford <rsandifo@redhat.com>
9647
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.
9656
0ad989f9
L
96572004-02-28 H.J. Lu <hongjiu.lu@intel.com>
9658
9659 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
9660
9661 * elflink.h (is_global_data_symbol_definition): Moved to
9662 elflink.c.
9663 (elf_link_is_defined_archive_symbol): Likewise.
9664 (elf_link_add_archive_symbols): Likewise. Renamed to
9665 _bfd_elf_link_add_archive_symbols.
9666
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.
9671
ec3391e7
AO
96722004-02-27 Alexandre Oliva <aoliva@redhat.com>
9673
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
9682 make_lsda_relative.
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.
9691 * elfxx-target.h
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.
9696
e6deed0a
AO
96972004-02-27 Alexandre Oliva <aoliva@redhat.com>
9698
9699 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
9700 complain_on_overflow to signed.
9701
b60d7a1a
L
97022004-02-27 H.J. Lu <hongjiu.lu@intel.com>
9703
9704 * elflink.h (sort_symbol): New.
9705 (elf_link_add_object_symbols): Use a sorted symbol array for
9706 weakdef.
9707
1c3ff0f2
MS
97082004-02-27 Jakub Jelinek <jakub@redhat.com>
9709
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.
9716
de9811af
L
97172004-02-26 H.J. Lu <hongjiu.lu@intel.com>
9718
9719 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
9720 count_dyn_reloc.
9721
ac33696c
L
97222004-02-25 H.J. Lu <hongjiu.lu@intel.com>
9723
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.
9730
072c8903
AO
97312004-02-24 Alexandre Oliva <aoliva@redhat.com>
9732
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.
9738
aca305d9
NC
97392004-02-23 Mark Kettenis <kettenis@gnu.org>
9740
9741 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
9742 M_X86_64_NETBSD.
9743 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
9744 (netbsd_core_file_p): Set architecture from machine ID for
9745 selected machines.
9746
646411fb
JJ
97472004-02-23 Jakub Jelinek <jakub@redhat.com>
9748
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.
9751
1de1a317
L
97522004-02-21 H.J. Lu <hongjiu.lu@intel.com>
9753
9754 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
9755 symbols with non-default visibility.
9756
3c9d0484
DS
97572004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
9758
9759 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
9760 IMAGE_SCN_MEM_WRITE on known sections only.
9761
a876ecf9
JJ
97622004-02-20 Jakub Jelinek <jakub@redhat.com>
9763
9764 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
9765 symbols used in PIE relocs.
9766
a8a6d7ce
JJ
97672004-02-19 Jakub Jelinek <jakub@redhat.com>
9768
9769 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
9770 .plt sh_entsize.
9771
d080fcd2
DJ
97722004-02-18 Daniel Jacobowitz <drow@mvista.com>
9773
9774 * configure.in: Update version to 2.15.90.
9775 * configure: Regenerate.
9776
d25aed71 97772004-02-17 Daniel Jacobowitz <drow@mvista.com>
c1b954e2 9778 Richard Sandiford <rsandifo@redhat.com>
d25aed71
RS
9779
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.
9786
d7ce59e3
AC
97872004-02-16 Andrew Cagney <cagney@redhat.com>
9788
9789 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
9790 @bfd_file_ptr@.
9791 * bfd-in2.h: Re-generate.
9792
ca0b7686
AC
97932004-02-14 Andrew Cagney <cagney@redhat.com>
9794
9795 * configure.host (HDEFINES): When hppa*-*-hpux*, define
9796 _LARGEFILE64_SOURCE.
9797
340b6d91
AC
97982004-02-13 Andrew Cagney <cagney@redhat.com>
9799
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.
9804
1012372a
AC
98052004-02-11 Andrew Cagney <cagney@redhat.com>
9806
7c192733
AC
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
9812 parameter.
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
9817 file_ptr.
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.
9823
1012372a
AC
9824 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
9825 fseeko and fseeko64. Determine bfd_file_ptr.
9826 * configure: Re-generate.
c1ea0c09 9827 * config.in: Re-generate.
c1b954e2 9828
3255318a
NC
98292004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
9830
9831 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
9832 * elf32-h8300.c: Likewise.
9833
0d5f9994
NC
98342004-02-09 Christian Vogel <vogelchr@vogel.cx>
9835 Nick Clifton <nickc@redhat.com>
9836
9837 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
9838 GOT entries with no associated GOT subsection.
9839
174fd7f9
RS
98402004-02-09 Richard Sandiford <rsandifo@redhat.com>
9841
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.
9849
03609792
L
98502004-01-30 H.J. Lu <hongjiu.lu@intel.com>
9851
9852 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
9853 (elfNN_ia64_relax_section): Optimize brl to br during the relax
9854 finalize pass.
9855
ea01195e
AO
98562004-01-30 Alexandre Oliva <aoliva@redhat.com>
9857
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.
9861
838e70c5
L
98622004-01-25 H.J. Lu <hongjiu.lu@intel.com>
9863
9864 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
9865 relocations against dynamic symbols.
9866
4f199be3
DJ
98672004-01-23 Daniel Jacobowitz <drow@mvista.com>
9868
9869 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
9870 change.
9871
28d39d1a
NC
98722004-01-21 Tom Rix <tcrix@worldnet.att.net>
9873
9874 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
9875 * bfd-in2.h, libbfd.h: Rebuilt.
9876
66bed356
DS
98772004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
9878
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.
9882
7e89635a
KH
98832004-01-19 Kazu Hirata <kazu@cs.umass.edu>
9884
9885 * coff-h8300.c: Add and adjust comments about relaxation.
9886 * elf32-h8300.c: Likewise.
9887
e804e836
KH
98882004-01-16 Kazu Hirata <kazu@cs.umass.edu>
9889
9890 * coff-h8300.c: Fix comment typos.
9891 * elf32-h8300.c: Likewise.
9892
630a7b0a
KH
98932004-01-16 Kazu Hirata <kazu@cs.umass.edu>
9894
9895 * coff-h8300.c: Add comments about relaxation.
9896 * elf32-h8300.c: Likewise.
9897
f8b73030
MR
98982004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
9899
9900 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
9901 throughout.
9902 * aclocal.m4: Regenerate.
9903 * configure: Regenerate.
9904
32159579
ILT
99052004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
9906
9907 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
9908 mips_elf64_rtype_to_howto instead of using howto_table.
9909
c84cd8ee
DJ
99102004-01-13 Daniel Jacobowitz <drow@mvista.com>
9911
9912 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
9913 the .plt section.
9914 (elf32_arm_check_relocs): Don't increment the PLT refcount for
9915 relocs which would not use the PLT.
9916
680a3378
AM
99172004-01-13 Alan Modra <amodra@bigpond.net.au>
9918
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.
9922
faca21e5
NC
99232004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
9924
9925 Adds linker relaxation support for bit manipulation insns like
680a3378 9926 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
faca21e5 9927 bst, btst, bxor.
680a3378 9928 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
faca21e5 9929 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
680a3378 9930 * coff-h8300.c: Opcode for bit manipulation insn is checked in
faca21e5
NC
9931 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
9932
818a27ac
AM
99332004-01-12 Alan Modra <amodra@bigpond.net.au>
9934
9935 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
9936
96ef1419
KH
99372004-01-11 Kazu Hirata <kazu@cs.umass.edu>
9938
9939 * elf32-h8300.c: Fix formatting.
9940
babfd660
KH
99412004-01-11 Kazu Hirata <kazu@cs.umass.edu>
9942
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
9945 scope.
9946 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
9947
7359ea65
DJ
99482004-01-09 Daniel Jacobowitz <drow@mvista.com>
9949
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.
9962
44e88952
NC
99632004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
9964
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
9971 offset.
9972 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
9973 requested.
9974
1e7fef1d
NC
99752004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
9976
9977 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
9978 are not partial_inplace during a relocatable link.
9979
4f075348
KH
99802004-01-08 Kazu Hirata <kazu@cs.umass.edu>
9981
babfd660 9982 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
4f075348
KH
9983 if no dynamic object is present. Declare r_symndx and h in an
9984 inner scope.
9985
de0d9f33
L
99862004-01-07 H.J. Lu <hongjiu.lu@intel.com>
9987
9988 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
9989 trampoline if it is known out of range.
9990
51532845
AO
99912004-01-06 Alexandre Oliva <aoliva@redhat.com>
9992
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
9996 undefweak symbol.
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
10036 executables.
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
10043 sections.
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
10073 is not FDPIC.
10074 (_frv_create_got_section): Define _gp symbol in the rofixup
10075 section.
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
10094 and relocsfdv.
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
10107 sizing of gotrel.
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
10111 relocsfdv.
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
10140 dynamic libraries.
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):
10151 New.
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
10172 whole thing works.
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.
10205
4301eeb1
MR
102062004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
10207
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.
10220
0647ed71
MK
102212004-01-04 Mark Kettenis <kettenis@gnu.org>
10222
10223 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
10224
61adc1a4
NC
102252004-01-02 Mark Kettenis <kettenis@gnu.org>
10226
10227 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
10228 (elf_i386_grok_psinfo): Likewise.
10229
b50c15dc
NC
102302004-01-02 Bernardo Innocenti <bernie@develer.com>
10231
10232 * config.bfd: Add m68k-uClinux target.
10233
2627de83
AM
102342004-01-01 Grant Edwards <grante@visi.com>
10235
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.
10242
c9e214e5 10243For older changes see ChangeLog-0203
56882138
AM
10244\f
10245Local Variables:
10246mode: change-log
10247left-margin: 8
10248fill-column: 74
10249version-control: never
10250End:
This page took 0.787416 seconds and 4 git commands to generate.