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