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