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