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