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