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