2007-04-27 H.J. Lu <hongjiu.lu@intel.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
f29f96b6
BW
12007-04-27 Bob Wilson <bob.wilson@acm.org>
2
3 * elf32-xtensa.c (relax_property_section): Remove extra irel increment.
4
2ce18a16
AM
52007-04-27 Alan Modra <amodra@bigpond.net.au>
6
7 * cpu-rs6000.c: Write Mimi's name in ASCII.
8 * coff-rs6000.c: Likewise.
9 * rs6000-core.c: Likewise.
10
eddc20ad
AM
112007-04-27 Alan Modra <amodra@bigpond.net.au>
12
13 * sysdep.h: Include config.h first.
14 Many files: Include sysdep.h before bfd.h.
15 * Makefile.am: Run "make dep-am".
16 * Makefile.in: Regenerate.
17
495443d4
AM
182007-04-25 Alan Modra <amodra@bigpond.net.au>
19
20 * sysdep.h: Revert last change.
21
40b1c6c5
NC
222007-04-24 Nick Clifton <nickc@redhat.com>
23
24 * coffcode.h (coff_slurp_reloc_table): Initialise dst.r_offset.
25 * coff-m68k.c (m68kcoff_rtype_to_howto): Initialize relent.howto.
26
64be1553
AM
272007-04-24 Alan Modra <amodra@bigpond.net.au>
28
29 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Warn if
30 eh_frame_hdr table won't be created.
31
d5efd9fc
AM
322007-04-24 Alan Modra <amodra@bigpond.net.au>
33
34 * acinclude.m4: Include config/stdint.m4.
35 * configure.in: Invoke GCC_HEADER_STDINT.
36 * sysdep.h: Don't include ansidecl.h here.
37 * configure: Regenerate.
38 * config.in: Regenerate.
39 * Makefile.in: Regenerate.
40
9a2e615a
NS
412007-04-23 Nathan Sidwell <nathan@codesourcery.com>
42
43 * archures.c (bfd_mach_mcf_isa_c, bfd_mach_mcf_isa_c_mac,
44 bfd_mach_mcf_isa_c_emac): New.
45 * elf32-m68k.c (ISAC_PLT_ENTRY_SIZE, elf_isac_plt0_entry,
46 elf_isac_plt_entry, elf_isac_plt_info): New.
47 (elf32_m68k_object_p): Add ISA_C.
48 (elf32_m68k_print_private_bfd_data): Print ISA_C.
49 (elf32_m68k_get_plt_info): Detect ISA_C.
50 * cpu-m68k.c (arch_info): Add ISAC.
51 (m68k_arch_features): Likewise,
52 (bfd_m68k_compatible): ISAs B & C are not compatible.
53
1b0b5b1b
NC
542007-04-21 Nick Clifton <nickc@redhat.com>
55
56 * ecoff.c (_bfd_ecoff_write_armap): Initialise rehash.
57 (ecoff_link_add_archive_symbols): Likewise.
58 * coff-m68k.c (m68kcoff_common_addend_rtype_to_howto): Initialise
59 relent.howto.
60 * ieee.c (parse_int): Initialise x.
61 (must_parse_int): Initialise result.
62 (ieee_slurp_external_symbols): Initialise value.
63
bd7803a9
AM
642007-04-21 Alan Modra <amodra@bigpond.net.au>
65
66 * config.bfd (spu-*-elf): Delete targ_selvecs.
67
964597d0
NC
682007-04-19 Nick Clifton <nickc@redhat.com>
69
70 * coffcode.h (coff_rtype_to_howto): Initialise genrel.howto.
71
01e76792
AM
722007-04-19 Alan Modra <amodra@bigpond.net.au>
73
74 * bfd.c (bfd_demangle): New function.
75 * Makefile.am: Run "make dep-am".
76 * Makefile.in: Regenerate.
77 * bfd-in2.h: Regenerate.
78
ee5c21a0
DJ
792007-04-18 Matthias Klose <doko@ubuntu.com>
80
81 * Makefile.am (libbfd_la_LDFLAGS): Use bfd soversion.
82 (bfdver.h): Use the date in non-release builds for the soversion.
83 * Makefile.in: Regenerate.
84
fcb93ecf
PB
852007-04-17 Paul Brook <paul@codesourcery.com>
86
87 * elf.c (_bfd_elf_is_function_type): New function.
88 * elflink.c (_bfd_elf_merge_symbol): Use bed->is_function_type.
89 (_bfd_elf_dynamic_symbol_p, _bfd_elf_symbol_refs_local_p,
90 is_global_data_symbol_definition, elf_link_add_object_symbols): Ditto.
91 * elf-bfd.h (elf_backend_data): Add is_function_type.
92 (_bfd_elf_is_function_type): Add prototype.
93 * elfxx-target.h (elf_backend_is_function_type): Add default
94 definition.
95 (elfNN_bed): Add elf_backend_is_function_type.
96 * elf32-arm.c (elf32_arm_is_function_type): New function.
97 (elf_backend_is_function_type): Define.
98
5750dcec
DJ
992007-04-17 Daniel Jacobowitz <dan@codesourcery.com>
100
101 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Put
102 DT_MIPS_RLD_MAP before DT_DEBUG again.
103
cfbc9945
SE
1042007-04-14 Steve Ellcey <sje@cup.hp.com>
105
106 * Makefile.am: Add ACLOCAL_AMFLAGS.
107 * configure.in: Change macro call order.
108 * Makefile.in: Regnerate.
109 * doc/Makefile.in: Regenerate.
110 * configure: Regenerate.
111
3fcd97f1
JJ
1122007-04-14 Jakub Jelinek <jakub@redhat.com>
113
114 * elflink.c (bfd_elf_final_link): Don't free symbuf for
115 non-elf input bfds.
116 (bfd_elf_size_dynamic_sections): Don't access elf_section_data
117 for non-elf input bfds.
118
af5978fb
RS
1192007-04-12 Richard Sandiford <richard@codesourcery.com>
120
121 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Don't add
122 DT_MIPS_RTLD_MAP for PIEs.
123
9e3313ae
RS
1242007-04-12 Richard Sandiford <richard@codesourcery.com>
125
126 * elfxx-mips.c (mips_elf_calculate_relocation): Set DT_TEXTREL
127 when creating a __GOTT_BASE__ or __GOTT_INDEX__ relocation
128 in a read-only section.
129 (_bfd_mips_elf_check_relocs): Likewise.
130
1d25768e
BW
1312007-04-12 Bob Wilson <bob.wilson@acm.org>
132
133 * elf32-xtensa.c (xtensa_is_insntable_section): New.
134 (xtensa_is_proptable_section): New.
135 (elf_xtensa_discard_info_for_section): Handle "full" .xt.prop property
136 tables with 12-byte entries, as well as tables with 8-byte entries.
137 Sort the relocations before examining them.
138 (relax_property_section): Use xtensa_is_proptable_section and
139 xtensa_is_littable_section. Rewrite code for combining table entries
140 to be more robust in case of unexpected relocations. Do not set offset
141 of unused relocations to less than zero.
142 (xtensa_is_property_section): Use other functions instead of
143 duplicating section name comparisons.
144 (xtensa_is_littable_section): Use CONST_STRNEQ for ".gnu.linkonce.p.".
145 (xtensa_get_property_predef_flags): Use xtensa_is_insntable_section.
146
e1e5c0b5
BW
1472007-04-12 Bob Wilson <bob.wilson@acm.org>
148
149 * elf32-xtensa.c (elf_xtensa_gc_mark_hook): Don't follow references
150 from Xtensa property sections.
151
2c67c5f3
AM
1522007-04-12 Alan Modra <amodra@bigpond.net.au>
153
154 * elf32-spu.c (needs_ovl_stub): Test that spu_elf_section_data
155 is non-NULL before dereferencing.
156
8776bb8a
NS
1572007-04-11 Nathan Sidwell <nathan@codesourcery.com>
158
159 * elf-vxworks.c (elf_vxworks_emit_relocs): Remap weakdef PLT slot
160 relocs too.
161
4a828aab
RH
1622007-04-10 Richard Henderson <rth@redhat.com>
163
164 * elf64-alpha.c (struct alpha_elf_link_hash_table): Add relax_trip.
165 (elf64_alpha_size_got_sections): Remove unused something_changed local.
166 (elf64_alpha_size_plt_section): Return void.
167 (elf64_alpha_size_rela_got_section): Likewise.
168 (elf64_alpha_relax_section): Only regenerate got+plt if the
169 relax_trip counter has changed.
170
91506736
DJ
1712007-04-09 Daniel Jacobowitz <dan@codesourcery.com>
172
173 * Makefile.am (bfdver.h): Do not generate doc/bfdver.texi.
174 * doc/Makefile.am (DOCFILES): Add bfdver.texi.
175 (bfdver.texi): New rule.
176 * Makefile.in, doc/Makefile.in: Regenerated.
177
da6bcfca
MT
1782007-04-03 Matt Thomas <matt@netbsd.org>
179
180 * elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc
181 in a shared object if it is not in a CODE section or if it is against
182 a section symbol. This allows DWARF2 to use pcrel format.
183
9267588c
L
1842007-04-05 H.J. Lu <hongjiu.lu@intel.com>
185
186 PR ld/4304
187 * elflink.c (bfd_elf_final_link): Call einfo callback in
188 bfd_link_info instead of _bfd_error_handler for DT_TEXTREL
189 warning.
190
c1b2796f
AM
1912007-04-05 Alan Modra <amodra@bigpond.net.au>
192
193 * elf32-spu.c (spu_elf_output_symbol_hook): New function.
194 (elf_backend_link_output_symbol_hook): Define.
195
970ccc77
NC
1962007-04-02 Nick Clifton <nickc@redhat.com>
197
198 PR binutils/4292
199 * bfd.c (bfd_fprintf_vma): Do not print addresses of 32-bit
200 targets as 64-bit values, even if running on a 64-bit host.
201 * coffgen.c (coff_print_symbol): Likewise.
202
1783205a
NC
2032007-03-29 Nick Clifton <nickc@redhat.com>
204
205 PR binutils/4110
206 * elf.c (IS_VALID_GROUP_SECTION_HEADER): New macro.
207 (setup_group): Use it. Report corrupt group section headers.
208 (bfd_section_from_shdr): Use new macro. Replace constant 4 with
209 GRP_ENTRY_SIZE. Cope with NULLs in the group section table.
210 (elf_fake_section): Replace constant 4 with GRP_ENTRY_SIZE.
211
2ce859a1
AM
2122007-03-29 Alan Modra <amodra@bigpond.net.au>
213
214 PR ld/4267
947844a3
AM
215 * elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma
216 for rel->r_info values.
217 (bfd_elf_perform_complex_relocation): Likewise.
2ce859a1
AM
218 * elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for
219 unused entries. Don't clear plt.plist in loop.
220
39817122
RS
2212007-03-28 Richard Sandiford <richard@codesourcery.com>
222
223 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Remove append_rela.
224 * elfxx-sparc.c (sparc_elf_append_rela_64, sparc_elf_append_rela_32):
225 Merge into...
226 (sparc_elf_append_rela): ...this new function.
227 (SPARC_ELF_APPEND_RELA): Delete.
228 (_bfd_sparc_elf_link_hash_table_create): Don't initialize
229 the deleted append_rela field.
230 (_bfd_sparc_elf_relocate_section): Use sparc_elf_append_rela
231 instead of SPARC_ELF_APPEND_RELA.
232 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. Use the
233 elf_size_info structure to find the size of a RELA entry and
234 the associated swap-out function.
235 (sparc64_finish_dyn, sparc64_finish_dyn): Merge into...
236 (sparc_finish_dyn): ...this new function.
237 (_bfd_sparc_elf_finish_dynamic_sections): Update calls accordingly.
238
4ecceb71
RS
2392007-03-28 Richard Sandiford <richard@codesourcery.com>
240 Phil Edwards <phil@codesourcery.com>
241
242 * doc/bfd.texinfo: Put the contents after the title page rather
243 than at the end of the document.
244
d4d2b80b
AS
2452007-03-27 Andreas Schwab <schwab@suse.de>
246
247 * elfxx-ia64.c (elf_backend_default_execstack): Define to 0.
248
831480e9 2492007-03-26 H.J. Lu <hongjiu.lu@intel.com>
5bd8253d
L
250
251 * configure: Regenerated.
252
f4b39977
AM
2532007-03-26 Alan Modra <amodra@bigpond.net.au>
254
255 * elf32-spu.c (struct stubarr): Add stub_hash_table and err fields.
256 (allocate_spuear_stubs): New function.
257 (spu_elf_size_stubs): Call allocate_spuear_stubs.
258
157090f7
AM
2592007-03-26 Alan Modra <amodra@bigpond.net.au>
260
261 * aout-adobe.c (aout_32_bfd_reloc_name_lookup): Define.
262 * aout-arm.c (MY_bfd_reloc_name_lookup): Define.
263 (MY (bfd_reloc_name_lookup)): New function.
264 * aout-ns32k.c (MY (bfd_reloc_name_lookup)): New function.
265 * aout-target.h (NAME (aout, reloc_name_lookup)): Declare.
266 (MY_bfd_reloc_name_lookup): Define.
267 * aout-tic30.c (tic30_aout_reloc_name_lookup): New function.
268 (MY_bfd_reloc_name_lookup): Define.
269 * aoutx.h (NAME (aout, reloc_type_lookup)): Don't declare.
270 (NAME (aout, reloc_name_lookup)): New function.
271 * bout.c (b_out_bfd_reloc_name_lookup): New function.
272 * coff-alpha.c (alpha_bfd_reloc_name_lookup): New function.
273 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
274 * coff-arm.c (coff_arm_reloc_name_lookup): New function.
275 (coff_bfd_reloc_name_lookup): Define.
276 * coff-i386.c (coff_bfd_reloc_name_lookup): Define.
277 (coff_i386_reloc_name_lookup): New function.
278 * coff-i860.c (coff_i860_reloc_name_lookup): New function.
279 (coff_bfd_reloc_name_lookup): Define.
280 * coff-i960.c (coff_i960_reloc_name_lookup): New function.
281 (coff_bfd_reloc_name_lookup): Define.
282 * coff-m68k.c (m68k_reloc_name_lookup): New function.
283 (coff_bfd_reloc_name_lookup): Define.
284 * coff-maxq.c (maxq_reloc_name_lookup): New function.
285 (coff_bfd_reloc_name_lookup): Define.
286 * coff-mcore.c (mcore_coff_reloc_name_lookup): New function.
287 (coff_bfd_reloc_name_lookup): Define.
288 * coff-mips.c (mips_bfd_reloc_name_lookup): New function.
289 (_bfd_ecoff_bfd_reloc_name_lookup): Define.
290 * coff-ppc.c (ppc_coff_reloc_name_lookup): New function.
291 (coff_bfd_reloc_name_lookup): Define.
292 * coff-rs6000.c (coff_bfd_reloc_name_lookup): Define.
293 (_bfd_xcoff_reloc_name_lookup): New function.
294 (rs6000coff_vec, pmac_xcoff_vec): Init new field.
295 * coff-sh.c (coff_bfd_reloc_name_lookup): Define.
296 (sh_coff_reloc_name_lookup): New function.
297 * coff-sparc.c (coff_sparc_reloc_name_lookup): New function.
298 (coff_bfd_reloc_name_lookup): Define.
299 * coff-tic30.c (coff_bfd_reloc_name_lookup): Define.
300 (tic30_coff_reloc_name_lookup): New function.
301 * coff-tic4x.c (coff_bfd_reloc_name_lookup): Define.
302 (tic4x_coff_reloc_name_lookup): New function.
303 * coff-tic54x.c (coff_bfd_reloc_name_lookup): Define.
304 (tic54x_coff_reloc_name_lookup): New function.
305 * coff-x86_64.c (coff_bfd_reloc_name_lookup): Define.
306 (coff_amd64_reloc_name_lookup): New function.
307 * coff-z80.c (coff_z80_reloc_name_lookup): New function.
308 (coff_bfd_reloc_name_lookup): Define.
309 * coff-z8k.c (coff_z8k_reloc_name_lookup): New function.
310 (coff_bfd_reloc_name_lookup): Define.
311 * coff64-rs6000.c (coff_bfd_reloc_name_lookup): Define.
312 (xcoff64_reloc_name_lookup): New function.
313 (rs6000coff64_vec, aix5coff64_vec): Init new field.
314 * coffcode.h (coff_bfd_reloc_name_lookup): Define.
315 * elf-hppa.h (elf_hppa_reloc_name_lookup): New function.
316 * elf-m10200.c (bfd_elf32_bfd_reloc_name_lookup): New function.
317 * elf-m10300.c (bfd_elf32_bfd_reloc_name_lookup): New function.
318 * elf32-arc.c (bfd_elf32_bfd_reloc_name_lookup): New function.
319 * elf32-arm.c (elf32_arm_reloc_name_lookup): New function.
320 (bfd_elf32_bfd_reloc_name_lookup): Define.
321 * elf32-avr.c (bfd_elf32_bfd_reloc_name_lookup): New function.
322 * elf32-bfin.c (bfin_bfd_reloc_name_lookup): New function.
323 (bfd_elf32_bfd_reloc_name_lookup): Define.
324 * elf32-cr16c.c (elf_cr16c_reloc_name_lookup): New function.
325 (bfd_elf32_bfd_reloc_name_lookup): Define.
326 * elf32-cris.c (cris_reloc_name_lookup): New function.
327 (bfd_elf32_bfd_reloc_name_lookup): Define.
328 * elf32-crx.c (elf_crx_reloc_name_lookup): New function.
329 (bfd_elf32_bfd_reloc_name_lookup): Define.
330 * elf32-d10v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
331 * elf32-d30v.c (bfd_elf32_bfd_reloc_name_lookup): New function.
332 * elf32-dlx.c (elf32_dlx_reloc_name_lookup): New function.
333 (bfd_elf32_bfd_reloc_name_lookup): Define.
334 * elf32-fr30.c (fr30_reloc_name_lookup): New function.
335 (bfd_elf32_bfd_reloc_name_lookup): Define.
336 * elf32-frv.c (frv_reloc_name_lookup): New function.
337 (bfd_elf32_bfd_reloc_name_lookup): Define.
338 * elf32-gen.c (bfd_elf32_bfd_reloc_name_lookup): Define.
339 * elf32-h8300.c (elf32_h8_reloc_name_lookup): New function.
340 (bfd_elf32_bfd_reloc_name_lookup): Define.
341 * elf32-hppa.c (bfd_elf32_bfd_reloc_name_lookup): Define.
342 * elf32-i370.c (i370_elf_reloc_name_lookup): New function.
343 (bfd_elf32_bfd_reloc_name_lookup): Define.
344 * elf32-i386.c (elf_i386_reloc_name_lookup): New function.
345 (bfd_elf32_bfd_reloc_name_lookup): Define.
346 * elf32-i860.c (elf32_i860_reloc_name_lookup): New function.
347 (bfd_elf32_bfd_reloc_name_lookup): Define.
348 * elf32-i960.c (elf32_i960_reloc_name_lookup): New function.
349 (bfd_elf32_bfd_reloc_name_lookup): Define.
350 * elf32-ip2k.c (ip2k_reloc_name_lookup): New function.
351 (bfd_elf32_bfd_reloc_name_lookup): Define.
352 * elf32-iq2000.c (iq2000_reloc_name_lookup): New function.
353 (bfd_elf32_bfd_reloc_name_lookup): Define.
354 * elf32-m32c.c (m32c_reloc_name_lookup): New function.
355 (bfd_elf32_bfd_reloc_name_lookup): Define.
356 * elf32-m32r.c (bfd_elf32_bfd_reloc_name_lookup): New function.
357 * elf32-m68hc11.c (bfd_elf32_bfd_reloc_name_lookup): New function.
358 * elf32-m68hc12.c (bfd_elf32_bfd_reloc_name_lookup): New function.
359 * elf32-m68k.c (reloc_name_lookup): New function.
360 (bfd_elf32_bfd_reloc_name_lookup): Define.
361 * elf32-m88k.c (bfd_elf32_bfd_reloc_name_lookup): Define.
362 * elf32-mcore.c (mcore_elf_reloc_name_lookup): New function.
363 (bfd_elf32_bfd_reloc_name_lookup): Define.
364 * elf32-mep.c (mep_reloc_name_lookup): New function.
365 (bfd_elf32_bfd_reloc_name_lookup): Define.
366 * elf32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
367 (mips_vxworks_bfd_reloc_name_lookup): Likewise.
368 (bfd_elf32_bfd_reloc_name_lookup): Define.
369 * elf32-msp430.c (bfd_elf32_bfd_reloc_name_lookup): New function.
370 * elf32-mt.c (mt_reloc_name_lookup): New function.
371 (bfd_elf32_bfd_reloc_name_lookup): Define.
372 * elf32-openrisc.c (openrisc_reloc_name_lookup): New function.
373 (bfd_elf32_bfd_reloc_name_lookup): Define.
374 * elf32-or32.c (bfd_elf32_bfd_reloc_name_lookup): New function.
375 * elf32-pj.c (pj_elf_reloc_name_lookup): New function.
376 (bfd_elf32_bfd_reloc_name_lookup): Define.
377 * elf32-ppc.c (ppc_elf_reloc_name_lookup): New function.
378 (bfd_elf32_bfd_reloc_name_lookup): Define.
379 * elf32-s390.c (elf_s390_reloc_name_lookup): New function.
380 (bfd_elf32_bfd_reloc_name_lookup): Define.
381 * elf32-score.c (elf32_score_reloc_name_lookup): New function.
382 (bfd_elf32_bfd_reloc_name_lookup): Define.
383 * elf32-sh.c (sh_elf_reloc_name_lookup): New function.
384 (bfd_elf32_bfd_reloc_name_lookup): Define.
385 * elf32-sparc.c (bfd_elf32_bfd_reloc_name_lookup): Define.
386 * elf32-spu.c (spu_elf_reloc_name_lookup): New function.
387 (bfd_elf32_bfd_reloc_name_lookup): Define.
388 * elf32-v850.c (v850_elf_reloc_name_lookup): New function.
389 (bfd_elf32_bfd_reloc_name_lookup): Define.
390 * elf32-vax.c (reloc_name_lookup): New function.
391 (bfd_elf32_bfd_reloc_name_lookup): Define.
392 * elf32-xc16x.c (xc16x_reloc_name_lookup): New function.
393 (bfd_elf32_bfd_reloc_name_lookup): Define.
394 * elf32-xstormy16.c (xstormy16_reloc_name_lookup): New function.
395 (bfd_elf32_bfd_reloc_name_lookup): Define.
396 * elf32-xtensa.c (elf_xtensa_reloc_name_lookup): New function.
397 (bfd_elf32_bfd_reloc_name_lookup): Define.
398 * elf64-alpha.c (elf64_alpha_bfd_reloc_name_lookup): New function.
399 (bfd_elf64_bfd_reloc_name_lookup): Define.
400 * elf64-gen.c (bfd_elf64_bfd_reloc_name_lookup): Define.
401 * elf64-hppa.c (bfd_elf64_bfd_reloc_name_lookup): Define.
402 * elf64-mips.c (bfd_elf64_bfd_reloc_name_lookup): New function.
403 * elf64-mmix.c (bfd_elf64_bfd_reloc_name_lookup): New function.
404 * elf64-ppc.c (ppc64_elf_reloc_name_lookup): New function.
405 (bfd_elf64_bfd_reloc_name_lookup): Define.
406 * elf64-s390.c (elf_s390_reloc_name_lookup): New function.
407 (bfd_elf64_bfd_reloc_name_lookup): Define.
408 * elf64-sh64.c (sh_elf64_reloc_name_lookup): New function.
409 (bfd_elf64_bfd_reloc_name_lookup): Define.
410 * elf64-sparc.c (bfd_elf64_bfd_reloc_name_lookup): Define.
411 * elf64-x86-64.c (elf64_x86_64_reloc_name_lookup): New function.
412 (bfd_elf64_bfd_reloc_name_lookup): Define.
413 * elfn32-mips.c (bfd_elf32_bfd_reloc_name_lookup): New function.
414 * elfxx-ia64.c (elfNN_ia64_reloc_name_lookup): New function.
415 (bfd_elfNN_bfd_reloc_name_lookup): Define.
416 * elfxx-sparc.c (_bfd_sparc_elf_reloc_name_lookup): New function.
417 * elfxx-sparc.h (_bfd_sparc_elf_reloc_name_lookup): Declare.
418 * i386msdos.c (msdos_bfd_reloc_name_lookup): Define.
419 * i386os9k.c (aout_32_bfd_reloc_name_lookup): Define.
420 * ieee.c (ieee_bfd_reloc_name_lookup): Define.
421 * libaout.h (NAME (aout, reloc_name_lookup)): Declare.
422 * libbfd-in.h (_bfd_norelocs_bfd_reloc_name_lookup): Declare.
423 * mipsbsd.c (MY_bfd_reloc_name_lookup): Define.
424 (MY(reloc_type_lookup)): Rename from MY(reloc_howto_type_lookup).
425 (MY(reloc_name_lookup)): New function.
426 * nlm-target.h (nlm_bfd_reloc_name_lookup): Define.
427 * oasys.c (oasys_bfd_reloc_name_lookup): Define.
428 * pdp11.c (NAME (aout, reloc_name_lookup)): New function.
429 * pe-mips.c (coff_mips_reloc_name_lookup): New function.
430 (coff_bfd_reloc_name_lookup): Define.
431 * reloc.c (bfd_reloc_name_lookup): New function.
432 * riscix.c (riscix_reloc_name_lookup): New function.
433 (MY_bfd_reloc_name_lookup): Define.
434 * som.c (som_bfd_reloc_name_lookup): New function.
435 * targets.c (struct bfd_target): Add reloc_name_lookup.
436 (BFD_JUMP_TABLE_RELOCS): Add NAME##_bfd_reloc_name_lookup.
437 * versados.c (versados_bfd_reloc_name_lookup): Define.
438 * vms.c (vms_bfd_reloc_name_lookup): New function.
439 * bfd-in2.h: Regenerate.
440 * libbfd.h: Regenerate.
441
2d82d84d
TS
4422007-03-26 Thiemo Seufer <ths@mips.com>
443
a5cb1fd7 444 PR ld/4208
2d82d84d
TS
445 * elfxx-mips.c (mips_elf_next_relocation): Don't signal an error if no
446 matching relocation is found.
447 (_bfd_mips_elf_relocate_section): Only warn about missing relocations.
448
831480e9 4492007-03-23 H.J. Lu <hongjiu.lu@intel.com>
1a27db7d
L
450
451 * configure: Regenerated.
452
a1ac8190
JM
4532007-03-23 Joseph Myers <joseph@codesourcery.com>
454
455 * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
456 * configure: Regenerate.
457
aa7a0635
AM
4582007-03-23 Alan Modra <amodra@bigpond.net.au>
459
460 * elf32-spu.c (spu_stub_name): Don't put input section in stub name.
461 Remove input_sec param. Adjust all calls.
462 (write_one_stub): Adjust stub symbol.
463 (needs_ovl_stub): New function, extracted from..
464 (spu_elf_size_stubs): ..here.
465 (spu_elf_relocate_section): Use needs_ovl_stub.
466
e49e529d
JM
4672007-03-22 Joseph Myers <joseph@codesourcery.com>
468
469 * Makefile.am (bfdver.h): Only set VERSION_PACKAGE in bfdver.texi
470 if nonempty.
471 * configure.in (REPORT_BUGS_TO): Do not use "URL:" prefix.
472 * Makefile.in, configure, doc/Makefile.in: Regenerate.
473
831480e9 4742007-03-22 H.J. Lu <hongjiu.lu@intel.com>
50572669
L
475
476 PR ld/4210
477 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the virtual
478 address and virtual size of the last section for the image
479 size.
480
0920dee7
L
4812007-03-22 H.J. Lu <hongjiu.lu@intel.com>
482
483 PR ld/4007
484 * elf.c (assign_file_positions_for_load_sections): Check if
485 all sections are in the segment.
486
831480e9 4872007-03-20 H.J. Lu <hongjiu.lu@intel.com>
749b8d9d
L
488
489 PR ld/4208
490 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Report missing
491 matching LO16 relocation for HI16 relocation.
492
27e55c4d
PB
4932007-03-20 Paul Brook <paul@codesourcery.com>
494
495 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
496 * bfd-in2.h: Regenerate.
497 * elf32-arm.c (elf32_arm_link_hash_table): Add pic_veneer.
498 (record_arm_to_thumb_glue): Use globals->pic_veneer.
499 (elf32_arm_create_thumb_stub): Ditto.
500 (bfd_elf32_arm_set_target_relocs): Set globals->pic_veneer.
501
bf21ed78
MS
5022007-03-18 Mark Shinwell <shinwell@codesourcery.com>
503
504 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add "bfd *"
505 argument and extra last argument.
506 * bfd-in2.h: Regenerate.
507 * elf32-arm.c (elf32_arm_obj_tdata): Add no_enum_size_warning
508 member.
509 (bfd_elf32_arm_set_target_relocs): Add "bfd *" argument and
510 extra last argument. Set no_enum_size_warning appropriately.
511 (elf32_arm_merge_eabi_attributes): Improve enum sizes
512 diagnostic, suppressing it when no_enum_size_warning dictates.
513
5f6999aa
NC
5142007-03-20 Nick Clifton <nickc@redhat.com>
515
516 PR binutils/3535
517 * elf.c (copy_private_bfd_data): Widen the scope of Solaris
518 specific conditions that need the program headers to be
519 rewritten.
520
831480e9 5212007-03-19 H.J. Lu <hongjiu.lu@intel.com>
d13c9dc6
L
522
523 * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Store Magic,
524 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
525 SizeOfInitializedData, SizeOfUninitializedData,
526 AddressOfEntryPoint, BaseOfCode and BaseOfData in internal
527 extra PE a.out header.
528 (IMAGE_NT_OPTIONAL_HDR_MAGIC): Defined as 0x10b if not defined.
529 (IMAGE_NT_OPTIONAL_HDR64_MAGIC): Defined as 0x20b if not
530 defined.
531 (IMAGE_NT_OPTIONAL_HDRROM_MAGIC): Defined as 0x107 if not
532 defined.
533 (_bfd_XX_print_private_bfd_data_common): Also print Magic,
534 MajorLinkerVersion, MinorLinkerVersion, SizeOfCode,
535 SizeOfInitializedData, SizeOfUninitializedData,
536 AddressOfEntryPoint, BaseOfCode and BaseOfData from internal
537 extra PE a.out header.
538
831480e9 5392007-03-18 H.J. Lu <hongjiu.lu@intel.com>
739bb57e
L
540
541 * targets.c (_bfd_target_vector): Add bfd_efi_app_x86_64_vec
542 only if BFD64 is defined.
543
5384511f
AM
5442007-03-17 Alan Modra <amodra@bigpond.net.au>
545
546 * elf32-spu.c (spu_elf_size_stubs): Always use an overlay stub
547 on setjmp calls.
548
187b3d5d
L
5492007-03-15 H.J. Lu <hongjiu.lu@intel.com>
550
551 * doc/Makefile.in: Regenerated.
552
c428fa83
L
5532007-03-15 H.J. Lu <hongjiu.lu@intel.com>
554
555 * Makefile.am (bfdver.h): Substitute report_bugs_to. Also
556 create doc/bfdver.texi.
557 * Makefile.in: Regenerated.
558
559 * configure.in (--with-bugurl): New option.
560 * configure: Regenerated.
561
562 * version.h (REPORT_BUGS_TO): New.
563
d1036acb
L
5642007-03-13 H.J. Lu <hongjiu.lu@intel.com>
565
566 PR binutils/3826
567 * elf-bfd.h (elf_backend_data): Add elf_osabi.
568 (_bfd_elf_set_osabi): New.
569
570 * elf.c (_bfd_elf_set_osabi): New.
571
572 * elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
573 (elf_backend_post_process_headers): Defined with
574 _bfd_elf_set_osabi.
575 (ELF_OSABI): Properly defined for each target.
576
577 * elf32-i370.c (i370_elf_post_process_headers): Removed.
578 (ELF_OSABI): Defined.
579 (elf_backend_post_process_headers): Defined with
580 _bfd_elf_set_osabi.
581
582 * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
583 freebsd.
584 (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi.
585
586 * elf32-msp430.c (elf32_msp430_post_process_headers): Removed.
587 (ELF_OSABI): Defined.
588 (elf_backend_post_process_headers): Defined with
589 _bfd_elf_set_osabi.
590
591 * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
592 freebsd.
593 (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with
594 elf_osabi.
595
596 * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI
597 with elf_osabi.
598 (ELF_OSABI): Properly defined for each target.
599 (elf_backend_post_process_headers): Defined with
600 _bfd_elf_set_osabi for Linux.
601
602 * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed.
603 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
604 (elf_backend_post_process_headers): Defined with
605 _bfd_elf_set_osabi.
606
607 * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed.
608 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
609 (elf_backend_post_process_headers): Defined with
610 _bfd_elf_set_osabi.
611
612 * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target
613 with any ELF target of the compatible machine for which we do not
614 have a specific backend.
615
616 * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI
617 with elf_osabi.
618
619 * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE.
620 (elfNN_bed): Initialize elf_osabi with ELF_OSABI.
621
d4c87fc1
AM
6222007-03-08 Alan Modra <amodra@bigpond.net.au>
623
624 * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out
625 V850_OTHER_* bits.
626
9c6fc49d
AM
6272007-03-08 Alan Modra <amodra@bigpond.net.au>
628
629 * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo.
630 (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c.
631 Run "make dep-am".
632 * Makefile.in: Regenerate.
633 * po/SRC-POTFILES.in: Regenerate.
634
faed74d6
L
6352007-03-07 H.J. Lu <hongjiu.lu@intel.com>
636
637 * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec.
638 (x86_64-*-kfreebsd*-gnu): Likewise.
639 (x86_64-*-netbsd*): Likewise.
640 (x86_64-*-openbsd*): Likewise.
641 (x86_64-*-linux-*): Likewise.
642
643 * configure.in: Support bfd_efi_app_x86_64_vec.
644 * configure: Regenerated.
645
646 * efi-app-x86_64.c: New file.
647
648 * targets.c (bfd_efi_app_x86_64_vec): New.
649 (_bfd_target_vector): Add bfd_efi_app_x86_64_vec.
650
15344ad7
L
6512007-03-07 Kai Tietz <kai.tietz@onevision.com>
652
653 * reloc.c (bfd_generic_get_relocated_section_contents): Remove
654 const for type reloc_howto_type.
655
ab96bf03
AM
6562007-03-07 Alan Modra <amodra@bigpond.net.au>
657
658 PR 3958
659 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
660 (elf_discarded_section): Move..
661 * bfd-in.h: ..to here.
662 * bfd-in2.h: Regenerate.
663 * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
664 from discarded sections before relocate_section has done its job.
665 * reloc.c (bfd_generic_get_relocated_section_contents): Handle
666 relocs against symbols from discarded sections.
667 * elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on
668 SECREL32.
669 (elf_hppa_relocate_section): Handle relocatable link after setting
670 sec, sym, h etc. for final link. Squash error messages for
671 relocatable link. Clear section contents for relocs against
672 symbols in discarded sections, and zero reloc. Remove existing
673 zero r_symndx code.
674 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
675 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
676 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
677 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
678 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
679 (bfin_relocate_section): Likewise.
680 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
681 * elf32-cris.c (cris_elf_relocate_section): Likewise.
682 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
683 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
684 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
685 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
686 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
687 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
688 * elf32-i370.c (i370_elf_relocate_section): Likewise.
689 * elf32-i386.c (elf_i386_relocate_section): Likewise.
690 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
691 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
692 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
693 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
694 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
695 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
696 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
697 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
698 * elf32-mep.c (mep_elf_relocate_section): Likewise.
699 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
700 * elf32-mt.c (mt_elf_relocate_section): Likewise.
701 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
702 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
703 * elf32-s390.c (elf_s390_relocate_section): Likewise.
704 * elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
705 * elf32-sh.c (sh_elf_relocate_section): Likewise.
706 * elf32-spu.c (spu_elf_relocate_section): Likewise.
707 * elf32-v850.c (v850_elf_relocate_section): Likewise.
708 * elf32-vax.c (elf_vax_relocate_section): Likewise.
709 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
710 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
711 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
712 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
713 (elf64_alpha_relocate_section): Likewise.
714 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
715 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
716 * elf64-s390.c (elf_s390_relocate_section): Likewise.
717 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
718 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
719 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
720 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
721 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
722
723 * elf32-arm.c (elf32_arm_relocate_section): Always adjust section
724 symbols for relocatable link. Don't use always-zero st_value.
725 (elf_backend_rela_normal): Don't define.
726 * elf32-bfin.c (bfinfdpic_relocate_section): Use
727 RELOC_FOR_GLOBAL_SYMBOL.
728 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
729 * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
730 section symbol adjustments with same for relocatable link.
731 * elf32-i386.c (elf_i386_relocate_section): Likewise.
732 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
733 (elf32_m68hc11_check_relocs): ..to here.
734 * elf32-score.c (score_elf_final_link_relocate): Remove zero
735 r_symndx code.
736 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
737
0e922b77
AM
7382007-03-07 Alan Modra <amodra@bigpond.net.au>
739
740 PR 4144
741 * elf.c (assign_file_positions_for_load_sections): Don't
742 adjust p_memsz for !SEC_LOAD section vma modulo page size.
743 Instead, use the same lma based adjustment for SEC_LOAD
744 sections.
745
25c6282a
BW
7462007-03-01 Bob Wilson <bob.wilson@acm.org>
747
748 * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing.
749 (find_relaxable_sections): Do not increment src_count for unknown
750 opcodes. Decode only once instead of calling is_l32r_relocation.
751 (compute_text_actions): Remove unused no_insn_move flag. Assert that
752 src_next matches src_count in relax_info.
753
066c2a57
JM
7542007-03-01 Joseph Myers <joseph@codesourcery.com>
755
756 * Makefile.am (bfdver.h): Use "." not " " between version number
757 and date.
758 * Makefile.in: Regenerate.
759 * configure.in (PKGVERSION): Default to "(GNU Binutils) ".
760 * configure: Regenerate.
761
ed6ba298
NS
7622007-02-28 Nathan Sidwell <nathan@codesourcery.com>
763
764 * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
765
7a8757b3
AM
7662007-02-27 Alan Modra <amodra@bigpond.net.au>
767
768 * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
769 * elf32-spu.c (ovl_mgr_pread): Add const to casts.
770
024b2372
CD
7712007-02-23 Carlos O'Donell <carlos@codesourcery.com>
772
773 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
774 DWARF even with 64-bit addresses.
775 (_bfd_dwarf2_find_nearest_line): Likewise.
776
cb3ff1e5
NC
7772007-02-23 Nick Clifton <nickc@redhat.com>
778
779 PR binutils/3535
780 * elf.c (copy_private_bfd_data): Always rewrite the program
781 headers when a Solaris interpreter segment is involved.
782
6a5bb875
PB
7832007-02-22 Paul Brook <paul@codesourcery.com>
784
785 * elflink.c (gc_mark_hook_fn): Remove.
786 (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
787 (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
788 * elf-bfd.h (elf_gc_mark_hook_fn): Define.
789 (elf_backend_data): Add gc_mark_extra_sections.
790 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
791 definition.
792 (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
793 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
794 (elf_backend_gc_mark_extra_sections): Define.
795
2889e75b
NC
7962007-02-21 Nick Clifton <nickc@redhat.com>
797
798 * elf.c (_bfd_elf_map_sections_to_segments): If the
799 override_segment_assignment callback is defined then call it.
800
78859468
AM
8012007-02-21 Alan Modra <amodra@bigpond.net.au>
802
803 * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
804
ae0d2616
TS
8052007-02-19 Thiemo Seufer <ths@mips.com>
806
807 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
808 translation marker from untranslatable strings.
809
6bfdb61b
AM
8102007-02-19 Alan Modra <amodra@bigpond.net.au>
811
812 * elf-bfd.h (struct elf_backend_data): Add default_execstack.
813 * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
814 * elfxx-target.h (elf_backend_default_execstack): Define to 1.
815 (elfNN_bed): Init new field.
816 * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
817
92f01d61
JM
8182007-02-17 Mark Mitchell <mark@codesourcery.com>
819 Nathan Sidwell <nathan@codesourcery.com>
820 Vladimir Prus <vladimir@codesourcery.com
821 Joseph Myers <joseph@codesourcery.com>
822
823 * configure.in (--with-pkgversion): New option.
824 * configure: Regenerate.
825 * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
826 * Makefile.in: Regenerate.
827 * version.h (BFD_VERSION_STRING): Define using
828 @bfd_version_package@.
829
c0e3f241
CD
8302007-02-16 Carlos O'Donell <carlos@codesourcery.com>
831
832 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
833 Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
834 and EF_MIPS_UCODE.
835
72f6ea61
AM
8362007-02-15 Alan Modra <amodra@bigpond.net.au>
837
838 * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
839 declare.
840 (_bfd_norelocs_canonicalize_reloc): Likewise.
841 * libbfd.h: Regenerate.
842 * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
843 (_bfd_norelocs_canonicalize_reloc): Likewise.
844 * binary.c (binary_bfd_reloc_type_lookup): Don't define.
845 (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
846 (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
847 * ihex.c: Similarly.
848 * mach-o-target.c: Similarly.
849 * mach-o.c: Similarly.
850 * mmo.c: Similarly.
851 * pef.c: Similarly.
852 * ppcboot.c: Similarly.
853 * srec.c: Similarly.
854 * xsym.c: Similarly.
855
fab4a87f
L
8562007-02-14 H.J. Lu <hongjiu.lu@intel.com>
857
858 PR ld/3953
859 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
860 when adding default symbol.
861
e4e0193e
AM
8622007-02-13 Alan Modra <amodra@bigpond.net.au>
863
864 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
865 for branch lookup table.
866
84f5d08e
AM
8672007-02-12 Alan Modra <amodra@bigpond.net.au>
868
869 * elf64-ppc.c (create_linkage_sections): Don't create
870 .rela.rodata.brlt for --emit-relocs.
871 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
872 (ppc_size_one_stub): Count them. Simplify test of stub type
873 when counting stub relocs. Set SEC_RELOC too.
874 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
875 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
876
4aac632e
AM
8772007-02-12 Alan Modra <amodra@bigpond.net.au>
878
879 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
880 with a zero symbol index.
881
8da3dbc5
AM
8822007-02-12 Alan Modra <amodra@bigpond.net.au>
883
884 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
885
b31847af
DB
8862007-02-05 Dave Brolley <brolley@redhat.com>
887 Stan Cox <scox@redhat.com>
888
889 PR ld/3972
890 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
891
722b0ff7 8922007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
893 Richard Sandiford <rsandifo@redhat.com>
894 Stan Cox <scox@redhat.com>
895 Nick Clifton <nickc@redhat.com>
896 DJ Delorie <dj@redhat.com>
897 Frank Ch. Eigler <fche@redhat.com>
898 Ben Elliston <bje@redhat.com>
899 Richard Henderson <rth@redhat.com>
900
901 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
902 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
903 (BFD32_BACKENDS): Add elf32-mep.lo.
904 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
905 (cpu-mep.lo,elf32-mep.lo): New targets.
906 * archures.c (bfd_arch_mep): New enumerator.
907 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
908 (bfd_mep_arch): New external variable.
909 (bfd_archures_list): Add bfd_mep_arch.
910 * config.bfd: Support mep-*-elf.
911 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
912 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
913 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
914 declarations.
915 (_bfd_target_vector): Add bfd_elf32_mep_vec and
916 bfd_elf32_mep_little_vec.
722b0ff7
DB
917 * mep-relocs.pl: New file.
918 * cpu-mep.c: New file.
919 * elf32-mep.c: New file.
920 * bfd-in2.h: Regenerate.
e382d174 921 * po/POTFILES.in: Regenerate.
722b0ff7
DB
922 * libbfd.h: Regenerate.
923 * Makefile.in: Regenerate.
924 * configure: Regenerate.
925
d9352518
DB
9262007-02-05 Dave Brolley <brolley@redhat.com>
927
928 * elflink.c (evaluate_complex_relocation_symbols): Check for
929 STT_SRELC for global symbols.
930 (perform_complex_relocations): Renamed to
931 perform_complex_relocation and now examines only one relocation.
932 (elf_link_input_bfd): Don't call perform_complex_relocations.
74e880a7 933 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
d9352518
DB
934 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
935 (OD,OS,OU): #undefs corrected to N, S and U repectively.
936 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
937 (complex_reloc_installation_howto): Removed.
938 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
939 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
940
d9352518 9412007-02-05 Dave Brolley <brolley@redhat.com>
e382d174
DB
942 Richard Sandiford <rsandifo@redhat.com>
943 DJ Delorie <dj@redhat.com>
944 Graydon Hoare <graydon@redhat.com>
945 Nick Clifton <nickc@cambridge.redhat.com>
946 Jeff Holcomb <jeffh@redhat.com>
947 Frank Ch. Eigler <fche@redhat.com>
948
949 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
950 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
951 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
952 * elflink.c (set_symbolValue): New static function.
d9352518
DB
953 (resolve_symbol): Likewise.
954 (resolve_section): Likewise.
955 (undefined_reference): Likewise.
956 (eval_symbol): Likewise.
957 (evaluate_complex_relocation_symbols): Likewise.
958 (put_value): Likewise.
959 (get_value): Likewise.
e382d174
DB
960 (decode_complex_addend):
961 (bfd_elf_perform_complex_relocation): New function.
962 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
963 * reloc.c (BFD_RELOC_RELC): New relocation number.
964 * syms.c (BSF_RELC,BSF_SRELC): New macros.
d9352518 965
f1ab2340 9662007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 967
f1ab2340
BW
968 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
969 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
970 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
971 (elf_xtensa_allocate_got_size): Replace these with...
972 (elf_xtensa_allocate_dynrelocs): ...this new function.
973 (elf_xtensa_size_dynamic_sections): Use it.
74e880a7 974
e5f131d1 9752007-02-05 Bob Wilson <bob.wilson@acm.org>
74e880a7 976
e5f131d1
BW
977 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
978 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
979 Set src_mask to zero.
980 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
981 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
74e880a7 982
4608f3d9
BW
9832007-02-02 Bob Wilson <bob.wilson@acm.org>
984
985 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
986 (elf_xtensa_dynamic_symbol_p): ...this.
987
f0e6fdb2
BW
9882007-02-02 Bob Wilson <bob.wilson@acm.org>
989
990 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
991 (struct elf_xtensa_link_hash_table): New.
992 (elf_xtensa_hash_table): New.
993 (elf_xtensa_link_hash_table_create): New.
994 (elf_xtensa_check_relocs): Update plt_reloc_count references.
995 Update arguments to add_extra_plt_sections.
996 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
997 table. Update for plt_reloc_count and add_extra_plt_sections.
998 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
999 argument with link info. Update calls to elf_xtensa_get_plt_section
1000 and elf_xtensa_get_gotplt_section.
1001 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
1002 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
1003 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
1004 (relax_property_section): Get sections from the hash table and update
1005 function calls.
1006 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
1007 dynobj argument with link info. Get sections for first plt chunk from
1008 the hash table.
1009 (bfd_elf32_bfd_link_hash_table_create): Define.
1010
c15f73f9
JJ
10112007-02-02 Jakub Jelinek <jakub@redhat.com>
1012
1013 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
1014 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
1015 (struct elf_symbol): Change first member into union.
1016 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
1017 internal syms. Only compare st_shndx fields.
1018 (elf_create_symbuf): New function.
1019 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
1020 for bfds, use a binary search, otherwise don't qsort symbols
1021 unnecessarily only to select which symbols are for the particular
1022 shndx.
1023
effdf42a
NC
10242007-02-01 Nick Clifton <nickc@redhat.com>
1025
1026 PR ld/3852
1027 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
1028 in the elf_link_hash_table structure.
1029
183e98be
AM
10302007-02-01 Alan Modra <amodra@bigpond.net.au>
1031
1032 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
1033 * elfxx-target.h (elf_backend_write_core_note): Define and use.
1034 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
1035 32-bit core note on 64-bit target.
1036 (elfcore_write_prstatus): Likewise.
1037 (elfcore_write_lwpstatus): Make note_name const.
1038 (elfcore_write_prfpreg): Likewise.
1039 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
1040 target.
1041 * elf32-ppc.c (ppc_elf_write_core_note): New function.
1042 (elf_backend_write_core_note): Define.
1043 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
1044 (elf_backend_write_core_note): Define.
1045
fc523535 10462007-01-31 H.J. Lu <hongjiu.lu@intel.com>
16cecee5
L
1047
1048 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
1049 (elf32_bed): Defined for elf32-us-cris.
1050
1051 * elf64-sh64.c (elf64_bed): Defined for Linux.
1052 (INCLUDED_TARGET_FILE): Removed.
1053
1054 * elfxx-target.h (elfNN_bed): Always define. Don't check
1055 INCLUDED_TARGET_FILE.
1056
c9b57b7e
DD
10572007-01-31 DJ Delorie <dj@redhat.com>
1058
1059 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
1060 message for dangerous relocs, special case the common user error.
1061
53020534
L
10622007-01-30 H.J. Lu <hongjiu.lu@intel.com>
1063
1064 * elf.c (copy_elf_program_header): Start from the first section
1065 in a segment and stop when all sections in a segment are
1066 accounted for.
1067
c7b8f16e
JB
10682007-01-29 Julian Brown <julian@codesourcery.com>
1069
1070 * bfd-in2.h: Regenerate.
1071 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
1072 instruction scanning should be done.
1073 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
1074 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
1075 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
1076 prototype.
1077 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
1078 argument.
1079 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
1080 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
1081 (elf32_vfp11_erratum_type): New enum.
1082 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
1083 veneers.
1084 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
1085 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
1086 vfp11_fix and num_vfp11_fixes fields.
1087 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
1088 vfp11_erratum_glue_size, num_vfp11_fixes fields.
1089 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
1090 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
1091 glue section.
1092 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
1093 to a section's map.
1094 (record_vfp11_erratum_veneer): Create a single veneer, and its
1095 associated symbols.
1096 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
1097 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
1098 BFDs.
1099 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
1100 required.
1101 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
1102 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
1103 (bfd_arm_vfp11_write_mask): Update write mask according to coded
1104 register number.
1105 (bfd_arm_vfp11_antidependency): New function.
1106 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
1107 (elf32_arm_compare_mapping): Declare.
1108 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
1109 BFD for potential erratum-triggering insns. Record results.
1110 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
1111 and branches to veneers have been placed in virtual memory after
1112 layout.
1113 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
1114 hash table.
1115 (elf32_arm_output_symbol_hook): Remove.
1116 (elf32_arm_write_section): Output veneers, and branches to veneers.
1117 Use maps from input sections, not output sections, for code
1118 byte-swapping.
1119 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
1120 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
1121 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
1122 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
1123
11242007-01-27 H.J. Lu <hongjiu.lu@intel.com>
83d1651b
L
1125
1126 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
b8210914 1127 (INCLUDED_TARGET_FILE): Removed.
83d1651b 1128
914dfb0f
DA
11292007-01-27 Mike Frysinger <vapier@gentoo.org>
1130
1131 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
1132 (INCLUDED_TARGET_FILE): Remove.
1133
78eba9b6
DD
11342007-01-25 DJ Delorie <dj@redhat.com>
1135
1136 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
1137 R_M32C_16 or R_M32C_24 relocs.
1138
64ee10b6
NC
11392007-01-25 Nick Clifton <nickc@redhat.com>
1140
1141 PR binutils/3874
1142 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
1143 hash table was created by elf32_avr_link_hash_table_create before
1144 using it.
1145 (elf32_avr_link_hash_newfunc): New function. Just pass the call
1146 through to _bfd_elf_link_hash_newfunc.
1147 (elf32_avr_link_hash_table_create): Use
1148 elf32_avr_link_hash_newfunc instead of
1149 _bfd_elf_link_hash_newfunc.
1150 (elf32_avr_relocate_section): Check for the hash table pointer
1151 being NULL.
1152 (elf32_avr_relax_section, avr_build_one_stub,
1153 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
1154 elf32_avr_build_stubs): Likewise.
1155
40b36307
L
11562007-01-16 H.J. Lu <hongjiu.lu@intel.com>
1157
1158 PR ld/3831
1159 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
1160 argument, Elf_Internal_Sym *.
1161
1162 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
1163 symbol dynamic if info->dynamic_data is TRUE.
1164 (bfd_elf_record_link_assignment): Updated call to
1165 bfd_elf_record_link_assignment.
1166 (_bfd_elf_merge_symbol): Likewise. Always call
1167 bfd_elf_link_mark_dynamic_symbol.
1168
fc523535 11692007-01-12 H.J. Lu <hongjiu.lu@intel.com>
a454209d
L
1170
1171 * Makefile.am (BFD_LIBS): Removed.
1172 * Makefile.in: Regenerated.
1173
fc523535 11742007-01-11 H.J. Lu <hongjiu.lu@intel.com>
21e40a48
L
1175
1176 PR binutils/3631
1177 * Makefile.am (OFILES): Add @bfd64_libs@.
1178 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
1179 * Makefile.in: Regenerated.
1180
1181 * configure.in (bfd_libs): Replaced by ...
1182 (bfd64_libs): This.
1183 * configure: Regenerated.
1184
59e0647f
NS
11852007-01-11 Nathan Sidwell <nathan@codesourcery.com>
1186
1187 * elf.c (assign_file_positions_for_load_sections): We can
1188 require fewer phdrs than expected.
1189
3bdcfdf4
KH
11902007-01-08 Kazu Hirata <kazu@codesourcery.com>
1191
1192 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
1193 * bfd-in2.h: Regenerate.
1194 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
1195 bfd_mach_cpu32_fido.
1196 (m68k_arch_features): Use fido_a instead of cpu32.
1197 (bfd_m68k_compatible): Reject the combination of Fido and
1198 ColdFire. Accept the combination of CPU32 and Fido with a
1199 warning.
1200 * elf32-m68k.c (elf32_m68k_object_p,
1201 elf32_m68k_merge_private_bfd_data,
1202 elf32_m68k_print_private_bfd_data): Treat Fido as an
1203 architecture by itself.
1204
42037fe5
NC
12052007-01-08 Kai Tietz <kai.tietz@onevision.com>
1206
1207 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
1208
ebe8b991
JJ
12092007-01-05 Jakub Jelinek <jakub@redhat.com>
1210
1211 * texhex.c (first_phase): Don't fall through into the default
1212 case.
1213 (pass_over): Replace abort () calls with return FALSE. Fix
1214 buffer overflow.
1215
b327f31f
AM
12162007-01-04 Jie Zhang <jie.zhang@analog.com>
1217
1218 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
1219 SEC_EXCLUDE on zero size .eh_frame.
1220
10a2343e 1221For older changes see ChangeLog-2006
56882138
AM
1222\f
1223Local Variables:
1224mode: change-log
1225left-margin: 8
1226fill-column: 74
1227version-control: never
1228End:
This page took 0.401033 seconds and 4 git commands to generate.