-2007-02-05 Dave Brolley <brolley@redhat.com>
-
- * elflink.h: Add support for Toshiba MeP.
- * reloc.c: Likewise.
- * Makefile.am: Likewise.
- * config.bfd: Likewise.
- * configure.in: Likewise.
- * archures.c: Likewise.
- * targets.c: Likewise.
- * elf.c: Likewise.
- * mep-relocs.pl: New file.
- * cpu-mep.c: New file.
- * elf32-mep.c: New file.
- * bfd-in2.h: Regenerate.
- * po/POTFILES.in: Likewise.
- * libbfd.h: Regenerate.
- * Makefile.in: Regenerate.
- * configure: Regenerate.
-
-2007-02-05 Dave Brolley <brolley@redhat.com>
-
- * elflink.c (evaluate_complex_relocation_symbols): Check for
- STT_SRELC for global symbols.
- (perform_complex_relocations): Renamed to
- perform_complex_relocation and now examines only one relocation.
- (elf_link_input_bfd): Don't call perform_complex_relocations.
- * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.:
- * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
- (OD,OS,OU): #undefs corrected to N, S and U repectively.
- (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
- (complex_reloc_installation_howto): Removed.
- (mep_info_to_howto_rela): Remove special case for r_type==0xff.
- (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
-
-2007-02-05 Dave Brolley <brolley@redhat.com>
-
- * Contribute the following changes:
- 2004-07-23 Richard Sandiford <rsandifo@redhat.com>
-
- * elflink.c (perform_complex_relocation): Detect relocations against
- undefined symbols.
-
- 2002-04-02 DJ Delorie <dj@redhat.com>
+2007-02-22 Paul Brook <paul@codesourcery.com>
- * elflink.h (resolve_symbol): Handle weak symbols.
+ * elflink.c (gc_mark_hook_fn): Remove.
+ (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
+ (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
+ * elf-bfd.h (elf_gc_mark_hook_fn): Define.
+ (elf_backend_data): Add gc_mark_extra_sections.
+ * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
+ definition.
+ (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
+ * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
+ (elf_backend_gc_mark_extra_sections): Define.
- 2002-03-07 Graydon Hoare <graydon@redhat.com>
+2007-02-21 Nick Clifton <nickc@redhat.com>
- * elflink.h (perform_complex_relocations): Minor debug message
- touchup.
+ * elf.c (_bfd_elf_map_sections_to_segments): If the
+ override_segment_assignment callback is defined then call it.
- 2002-01-23 Graydon Hoare <graydon@redhat.com>
+2007-02-21 Alan Modra <amodra@bigpond.net.au>
- * bfd-in2.h: Add signed RELC (SRELC) symbols.
- * elf.c (swap_out_syms): Likewise.
- * elfcode.h (elf_slurp_symbol_table): Likewise.
- (elf_symbol_flags): Likewise.
- * syms.c: Likewise.
- * elflink.h (eval_symbol): Introduce signed RELC evaluation.
- (evaluate_complex_relocation_symbols): Likewise.
- (perform_complex_relocations): Remove sign-extension logic,
- which was broken anyways.
+ * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
- 2002-01-15 Graydon Hoare <graydon@redhat.com>
+2007-02-19 Thiemo Seufer <ths@mips.com>
- * elflink.h (decode_complex_addend): Add oplen, signed_p, trunc_p
- params.
- (perform_complex_relocations): Call decode with new args,
- Sign extend leftmost signed fields, delegate overflow check to
- bfd_check_overflow in reloc.c, enhance overflow error messages.
+ * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
+ translation marker from untranslatable strings.
- 2002-01-08 Graydon Hoare <graydon@redhat.com>
+2007-02-19 Alan Modra <amodra@bigpond.net.au>
- * elflink.h (resolve_symbol): Fix symbol -> section relationship.
- (resolve_symbol): Remove unused parameter.
- (eval_symbol): Remove unused arg from resolve_symbol call.
+ * elf-bfd.h (struct elf_backend_data): Add default_execstack.
+ * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
+ * elfxx-target.h (elf_backend_default_execstack): Define to 1.
+ (elfNN_bed): Init new field.
+ * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
- 2002-01-01 Graydon Hoare <graydon@redhat.com>
+2007-02-17 Mark Mitchell <mark@codesourcery.com>
+ Nathan Sidwell <nathan@codesourcery.com>
+ Vladimir Prus <vladimir@codesourcery.com
+ Joseph Myers <joseph@codesourcery.com>
- * elflink.h (perform_complex_relocations): Add overflow
- checking for RELC fragments.
+ * configure.in (--with-pkgversion): New option.
+ * configure: Regenerate.
+ * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
+ * Makefile.in: Regenerate.
+ * version.h (BFD_VERSION_STRING): Define using
+ @bfd_version_package@.
- 2001-12-15 Nick Clifton <nickc@cambridge.redhat.com>
+2007-02-16 Carlos O'Donell <carlos@codesourcery.com>
- * elflink.h (evaluate_complex_relocation_symbols): Formatting
- tidy ups. Process all symbols, even if an error is
- encountered.
+ * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
+ Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
+ and EF_MIPS_UCODE.
- 2001-12-10 Graydon Hoare <graydon@redhat.com>
+2007-02-15 Alan Modra <amodra@bigpond.net.au>
- * elflink.h (evaluate_complex_relocation_symbols): Resolve
- global RELC symbols using separate logic from local symbols.
+ * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
+ declare.
+ (_bfd_norelocs_canonicalize_reloc): Likewise.
+ * libbfd.h: Regenerate.
+ * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
+ (_bfd_norelocs_canonicalize_reloc): Likewise.
+ * binary.c (binary_bfd_reloc_type_lookup): Don't define.
+ (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
+ (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
+ * ihex.c: Similarly.
+ * mach-o-target.c: Similarly.
+ * mach-o.c: Similarly.
+ * mmo.c: Similarly.
+ * pef.c: Similarly.
+ * ppcboot.c: Similarly.
+ * srec.c: Similarly.
+ * xsym.c: Similarly.
- 2001-12-10 Nick Clifton <nickc@cambridge.redhat.com>
+2007-02-14 H.J. Lu <hongjiu.lu@intel.com>
- Various formatting tidy ups and compile time warning removals,
- plus:
-
- * elflink.h (eval_symbol): Set bfd_error for failure returns.
- (evaluate_complex_relocation_symbols): Only evaluate local
- symbols.
+ PR ld/3953
+ * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
+ when adding default symbol.
- 2001-11-24 Graydon Hoare <graydon@redhat.com>
+2007-02-13 Alan Modra <amodra@bigpond.net.au>
- * elflink.h.c (resolve_symbol): Skip non-local syms in
- local lookup loop; get section offset from section
- symbol occurs in (rather than reloc section); handle
- common symbols.
+ * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
+ for branch lookup table.
- 2001-11-24 Graydon Hoare <graydon@redhat.com>
+2007-02-12 Alan Modra <amodra@bigpond.net.au>
- * elflink.h.c (resolve_symbol): Use
- bfd_elf_string_from_elf_section to look up local symbols in
- current bfd.
- (eval_symbol): Add input_bfd parameter for resolve_symbol's
- use.
- (evaluate_complex_relocation_symbols): Pass parameter.
- (resolve_section) Fix silly typo.
+ * elf64-ppc.c (create_linkage_sections): Don't create
+ .rela.rodata.brlt for --emit-relocs.
+ (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
+ (ppc_size_one_stub): Count them. Simplify test of stub type
+ when counting stub relocs. Set SEC_RELOC too.
+ (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
+ (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
- 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
+2007-02-12 Alan Modra <amodra@bigpond.net.au>
- * elflink.h (eval_symbol): Buffer size needs to be an integer for
- Solaris cc.
+ * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
+ with a zero symbol index.
- 2001-11-15 graydon hoare <graydon@redhat.com>
+2007-02-12 Alan Modra <amodra@bigpond.net.au>
- * elf32-mep.c (mep_info_to_howto_rela): Add complex reloc
- howto.
- * elflink.h (resolve_section): Add support for pseudo-sections
- in complex symbols.
- (evaluate_complex_relocation_symbols): Permit evaluating RELC
- symbols on non-RELC relocs. They are distinct issues.
+ * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
- 2001-10-15 graydon hoare <graydon@redhat.com>
+2007-02-05 Dave Brolley <brolley@redhat.com>
+ Stan Cox <scox@redhat.com>
- * reloc.c (bfd_reloc_code_type): Define BFD_RELOC_RELC,
- in the _correct_ place.
+ PR ld/3972
+ * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
- 2001-10-11 graydon hoare <graydon@redhat.com>
+2007-02-05 Dave Brolley <brolley@redhat.com>
+ Richard Sandiford <rsandifo@redhat.com>
+ Stan Cox <scox@redhat.com>
+ Nick Clifton <nickc@redhat.com>
+ DJ Delorie <dj@redhat.com>
+ Frank Ch. Eigler <fche@redhat.com>
+ Ben Elliston <bje@redhat.com>
+ Richard Henderson <rth@redhat.com>
+
+ * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
+ (ALL_MACHINES_CFILES): Add CPU_MEP.c.
+ (BFD32_BACKENDS): Add elf32-mep.lo.
+ (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
+ (cpu-mep.lo,elf32-mep.lo): New targets.
+ * archures.c (bfd_arch_mep): New enumerator.
+ (bfd_mach_mep, bfd_mach_mep_h1): New macros.
+ (bfd_mep_arch): New external variable.
+ (bfd_archures_list): Add bfd_mep_arch.
+ * config.bfd: Support mep-*-elf.
+ * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
+ * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
+ * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
+ declarations.
+ (_bfd_target_vector): Add bfd_elf32_mep_vec and
+ bfd_elf32_mep_little_vec.
+ * mep-relocs.pl: New file.
+ * cpu-mep.c: New file.
+ * elf32-mep.c: New file.
+ * bfd-in2.h: Regenerate.
+ * po/POTFILES.in: Regenerate.
+ * libbfd.h: Regenerate.
+ * Makefile.in: Regenerate.
+ * configure: Regenerate.
- * elflink.h (eval_symbol): Fix strtol calls with undefined
- behavior.
+2007-02-05 Dave Brolley <brolley@redhat.com>
- 2001-10-03 graydon hoare <graydon@redhat.com>
+ * elflink.c (evaluate_complex_relocation_symbols): Check for
+ STT_SRELC for global symbols.
+ (perform_complex_relocations): Renamed to
+ perform_complex_relocation and now examines only one relocation.
+ (elf_link_input_bfd): Don't call perform_complex_relocations.
+ * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
+ * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
+ (OD,OS,OU): #undefs corrected to N, S and U repectively.
+ (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
+ (complex_reloc_installation_howto): Removed.
+ (mep_info_to_howto_rela): Remove special case for r_type==0xff.
+ (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
- * elflink.h (set_symbol_value): New function for relc.
+2007-02-05 Dave Brolley <brolley@redhat.com>
+ Richard Sandiford <rsandifo@redhat.com>
+ DJ Delorie <dj@redhat.com>
+ Graydon Hoare <graydon@redhat.com>
+ Nick Clifton <nickc@cambridge.redhat.com>
+ Jeff Holcomb <jeffh@redhat.com>
+ Frank Ch. Eigler <fche@redhat.com>
+
+ * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
+ * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
+ * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
+ * elflink.c (set_symbolValue): New static function.
(resolve_symbol): Likewise.
(resolve_section): Likewise.
(undefined_reference): Likewise.
(evaluate_complex_relocation_symbols): Likewise.
(put_value): Likewise.
(get_value): Likewise.
- (decode_complex_addend): Likewise.
- (perform_complex_relocations): Likewise.
- (elf_link_input_bfd): Insert hook into
- evaluate_complex_relocation_symbols.
- (elf_link_input_bfd): Insert hook into
- perform_complex_relocations.
-
- * bfd-in2.h: Define BFD_RELOC_RELC, BSF_RELC.
-
- * elf.c (swap_out_syms): Add BSF_RELC / STT_RELC support.
-
- * elfcode.h (elf_slurp_symbol_table): Likewise.
- (elf_symbol_flags): Likewise.
-
- * libbfd.h: Add "BFD_RELOC_RELC" to bfd_reloc_code_real_names
- table.
-
- 2001-06-20 Frank Ch. Eigler <fche@redhat.com>
-
- * syms.c (BSF_RELC): New symbol flag.
- * elf.c (swap_out_syms): Map BSF_RELC -> STT_RELC.
- * elfcode.h (elf_slurp_symbol_table): Map STT_RELC -> BSF_RELC.
- (elf_symbol_flags): Display BSF_RELC as "relc".
- * bfd-in2.h: Regenerated.
+ (decode_complex_addend):
+ (bfd_elf_perform_complex_relocation): New function.
+ (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
+ * reloc.c (BFD_RELOC_RELC): New relocation number.
+ * syms.c (BSF_RELC,BSF_SRELC): New macros.
2007-02-05 Bob Wilson <bob.wilson@acm.org>
-
+
* elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
(elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
(elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
(elf_xtensa_allocate_got_size): Replace these with...
(elf_xtensa_allocate_dynrelocs): ...this new function.
(elf_xtensa_size_dynamic_sections): Use it.
-
+
2007-02-05 Bob Wilson <bob.wilson@acm.org>
-
+
* elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
<R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
Set src_mask to zero.
<R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
<R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
-
+
2007-02-02 Bob Wilson <bob.wilson@acm.org>
* elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...