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