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