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