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