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