cbc704f397
* elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj. (elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion into the PLT block. ld/ * emultempl/armelf.em (arm_elf_before_allocation): Check dynobj instead of dynamic_sections_created.
359 lines
12 KiB
Text
359 lines
12 KiB
Text
2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
|
||
|
||
* elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj.
|
||
(elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion
|
||
into the PLT block.
|
||
|
||
2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
|
||
|
||
* elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p,
|
||
may_need_local_target_p and may_become_dynamic_p to classify
|
||
the relocation type. Don't check info->symbolic or h->def_regular
|
||
when deciding whether to record a potential dynamic reloc.
|
||
Don't treat potential dynamic relocs as PLT references.
|
||
(elf32_arm_gc_sweep_hook): Update to match. Assert that we don't
|
||
try to make the PLT reference count go negative.
|
||
|
||
2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
|
||
|
||
* elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
|
||
GOT entry here, rather than leaving it to finish_dynamic_symbol.
|
||
Only create a dynamic relocation for local references if
|
||
info->shared.
|
||
(allocate_dynrelocs_for_symbol): Update dynamic relocation
|
||
allocation accordingly.
|
||
(elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.
|
||
|
||
2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
|
||
|
||
* elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
|
||
(elf32_arm_add_dynreloc): Likewise.
|
||
(elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
|
||
to allocate dynamic relocations.
|
||
(elf32_arm_size_dynamic_sections): Likewise.
|
||
(allocate_dynrelocs): Likewise. Rename to
|
||
allocate_dynrelocs_for_symbol.
|
||
(elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
|
||
create dynamic relocations.
|
||
(elf32_arm_finish_dynamic_symbol): Likewise.
|
||
|
||
2011-03-12 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
* elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
|
||
x32 GD->IE and GD->LE transitions.
|
||
(elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
|
||
and LD->LE transitions.
|
||
|
||
2011-03-10 Alan Modra <amodra@gmail.com>
|
||
|
||
* elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
|
||
for LO_DS error message and correct multiple.
|
||
|
||
2011-03-10 Alan Modra <amodra@gmail.com>
|
||
|
||
* elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
|
||
(ppc64_elf_link_just_syms): New function.
|
||
(opd_entry_value): Don't assume big-endian host.
|
||
(get_r2off): New function.
|
||
(ppc_build_one_stub, ppc_size_one_stub): Use it here.
|
||
|
||
2011-03-06 Michael Snyder <msnyder@vmware.com>
|
||
|
||
* compress.c (bfd_compress_section_contents): Check for out of mem.
|
||
|
||
* elf64-x86-64.c (elf_x86_64_relocate_section): Document
|
||
that case statement falls through intentionally.
|
||
|
||
* elf32-i386.c (elf_i386_relocate_section): Document fall through.
|
||
|
||
2011-03-04 Alan Modra <amodra@gmail.com>
|
||
|
||
* archive.c (bsd_write_armap): Don't call stat in deterministic
|
||
mode, and don't use st_mtime if stat returns error.
|
||
|
||
2011-03-03 Michael Snyder <msnyder@vmware.com>
|
||
|
||
* elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
|
||
|
||
* coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
|
||
|
||
* aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
|
||
(aout_link_write_other_symbol): Missing break statement.
|
||
|
||
* dwarf2.c (scan_unit_for_symbols): Stop memory leak.
|
||
|
||
* archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
|
||
|
||
2011-03-03 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
* elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
|
||
x32 IE->LE transition.
|
||
(elf_x86_64_relocate_section): Likewise.
|
||
|
||
2011-03-02 Bernd Schmidt <bernds@codesourcery.com>
|
||
|
||
* elflink.c (is_reloc_section): Remove function.
|
||
(get_dynamic_reloc_section_name): Construct string manually.
|
||
|
||
2011-02-28 Kai Tietz <kai.tietz@onevision.com>
|
||
|
||
* archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
|
||
(adjust_relative_path): Likewise.
|
||
(_bfd_construct_extended_name_table): Likewise.
|
||
* corefile.c (generic_core_file_matches_executable_p): Likewise.
|
||
* elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
|
||
* elf32-frv.c (elf32_frv_relocate_section): Likewise.
|
||
* elf32-spu.c (sort_bfds): Likewise.
|
||
(spu_elf_auto_overlay): Likewise.
|
||
* syms.c (_bfd_stab_section_find_nearest_line): Likewise.
|
||
* xcofflink.c (xcoff_set_import_path): Likewise.
|
||
* xtensa-isa.c (xtensa_regfile_lookup): Likewise.
|
||
(xtensa_regfile_lookup_shortname): Likewise.
|
||
|
||
2011-02-28 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 12513
|
||
* archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
|
||
stringsize. Properly sanity check symdef_count. Remove redundant
|
||
bfd_release.
|
||
|
||
2011-02-25 Rafael Ávila de Espíndola <respindola@mozilla.com>
|
||
|
||
* plugin.c (bfd_plugin_object_p): Correctly set the filesize
|
||
and handle claim_file seeking. Only try to load the plugin once.
|
||
|
||
2011-02-22 Andreas Schwab <schwab@redhat.com>
|
||
|
||
* elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
|
||
relocation read the value from the second GOT slot.
|
||
|
||
2011-02-15 Tristan Gingold <gingold@adacore.com>
|
||
|
||
* vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
|
||
|
||
2011-02-15 Alan Modra <amodra@gmail.com>
|
||
|
||
* elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
|
||
toc relocs. Fuss over free(NULL).
|
||
|
||
2011-02-14 Mike Frysinger <vapier@gentoo.org>
|
||
|
||
* elflink.c (bfd_elf_size_dynamic_sections): Add
|
||
bfd_get_symbol_leading_char to the start of newname.
|
||
|
||
2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
|
||
|
||
* configure: Regenerate.
|
||
|
||
2011-02-09 Alan Modra <amodra@gmail.com>
|
||
|
||
* elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
|
||
we are done. When optimising large toc, check that a global
|
||
symbol on a toc reloc is defined in a kept section.
|
||
|
||
2011-02-08 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/12467
|
||
* elf.c (assign_file_positions_for_load_sections): Set the program
|
||
header offset and entry size to zero if there are no program
|
||
headers.
|
||
|
||
2011-02-08 Alan Modra <amodra@gmail.com>
|
||
|
||
* elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
|
||
local_syms when looking for local symbols in .toc.
|
||
|
||
2011-02-01 Alan Modra <amodra@gmail.com>
|
||
|
||
* elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
|
||
for toc pointer on any section having makes_toc_func_call set.
|
||
(check_pasted_section): Ensure pasted .init/.fini fragments use
|
||
the same toc if any has makes_toc_func_call set.
|
||
|
||
2011-01-28 Joseph Myers <joseph@codesourcery.com>
|
||
|
||
* elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
|
||
field.
|
||
|
||
2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
|
||
|
||
* elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
|
||
common sections too.
|
||
|
||
2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
* elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
|
||
Solaris target.
|
||
|
||
2011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
|
||
|
||
Fix compilation for mingw64.
|
||
* coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
|
||
typecast to avoid warning.
|
||
* elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
|
||
usage.
|
||
* elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
|
||
of long for pointer to avoid warning.
|
||
(elfNN_ia64_relax_brl): Idem.
|
||
(elfNN_ia64_install_value): Idem.
|
||
* vms-alpha.c (_bfd_vms_slurp_etir): Idem.
|
||
|
||
2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
|
||
|
||
* elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
|
||
h->needs_plt when deciding whether to record a possible dynamic reloc.
|
||
|
||
2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
|
||
|
||
* elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
|
||
dynamic relocs for the removed section.
|
||
|
||
2011-01-15 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
* elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
|
||
relocations.
|
||
|
||
2011-01-14 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
* elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
|
||
(elf_x86_64_link_hash_table_create): Set pointer_r_type.
|
||
(elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
|
||
for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
|
||
R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
|
||
(elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
|
||
for ILP32.
|
||
|
||
2011-01-14 Alan Modra <amodra@gmail.com>
|
||
|
||
* bfd.c (bfd_perror): Flush stdout before and stderr after printing
|
||
error.
|
||
(_bfd_default_error_handler): Likewise.
|
||
* elf.c (print_segment_map): Likewise.
|
||
* libbfd.c (warn_deprecated): Likewise.
|
||
* som.c (som_sizeof_headers): No need to do so here.
|
||
* coff-i860.c: Replace use of printf for error messages with
|
||
_bfd_error_handler.
|
||
* coff-ppc.c: Likewise.
|
||
* coff-sh.c: Likewise.
|
||
* elf32-bfin.c: Likewise.
|
||
* elf32-dlx.c: Likewise.
|
||
* elf32-mep.c: Likewise.
|
||
* elf32-v850.c: Likewise.
|
||
* mach-o.c: Likewise.
|
||
* pef.c: Likewise.
|
||
|
||
2011-01-13 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
* elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
|
||
swap_reloca_out.
|
||
(elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
|
||
(elf_x86_64_check_relocs): Align relocation section to 4 byte
|
||
for 32bit.
|
||
(elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
|
||
ELF_ST_TYPE.
|
||
(elf_x86_64_finish_dynamic_symbol): Updated.
|
||
(elf_x86_64_finish_dynamic_sections): Don't use
|
||
Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
|
||
bfd_elf64_swap_dyn_out.
|
||
|
||
2011-01-14 J. Park <grassman@gmail.com>
|
||
|
||
PR ld/12339
|
||
* elf32-arm.c (allocate_dynrelocs): Don't set up eh before
|
||
following bfd_link_hash_warning symbol link.
|
||
|
||
2011-01-10 Nathan Sidwell <nathan@codesourcery.com>
|
||
Glauber de Oliveira Costa <glommer@gmail.com>
|
||
|
||
* reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
|
||
BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
|
||
BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
|
||
relocations.
|
||
* libbfd.h: Rebuilt.
|
||
* bfd-in2.h: Rebuilt.
|
||
* elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
|
||
(elf32_arm_reloc_map): Likewise.
|
||
(tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
|
||
(elf32_arm_stub_long_branch_any_tls_pic,
|
||
elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
|
||
(DEF_STUBS): Add new stubs.
|
||
(struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
|
||
(elf32_arm_local_tlsdesc_gotent): New.
|
||
(GOT_TLS_GDESC): New mask.
|
||
(GOT_TLS_GD_ANY): Define.
|
||
(struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
|
||
(elf32_arm_compute_jump_table_size): New.
|
||
(struct elf32_arm_link_hash_table): Add next_tls_desc_index,
|
||
num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
|
||
sgotplt_jump_table_size fields.
|
||
(elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
|
||
(elf32_arm_link_hash_table_create): Initialize new fields.
|
||
(arm_type_of_stub): Check TLS desc relocs too.
|
||
(elf32_arm_stub_name): TLS desc relocs can be shared.
|
||
(elf32_arm_tls_transition): Determine relaxation.
|
||
(arm_stub_required_alignment): Add tls stubs.
|
||
(elf32_arm_size_stubs): Likewise.
|
||
(elf32_arm_tls_relax): Perform TLS relaxing.
|
||
(elf32_arm_final_link_relocate): Process TLS DESC relocations.
|
||
(IS_ARM_TLS_GNU_RELOC): New.
|
||
(IS_ARM_TLS_RELOC): Use it.
|
||
(elf32_arm_relocate_section): Perform TLS relaxing.
|
||
(elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
|
||
desc relocations.
|
||
(allocate_dynrelocs): Allocate tls desc relcoations.
|
||
(elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
|
||
symbols.
|
||
(elf32_arm_size_dynamic_sections): Allocate tls trampolines and
|
||
got slots.
|
||
(elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
|
||
symbol.
|
||
(elf32_arm_finish_dynamic_symbol): Adjust.
|
||
(arm_put_trampoline): New.
|
||
(elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
|
||
trampolines.
|
||
(elf_backend_always_size_sections): Define.
|
||
|
||
2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
|
||
|
||
2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR ld/12366
|
||
PR ld/12371
|
||
* elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
|
||
handle symbols marked with regular reference, but not non-GOT
|
||
reference when building shared library.
|
||
|
||
* elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
|
||
local and global STT_GNU_IFUNC symols when building shared
|
||
library.
|
||
* elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
|
||
|
||
2011-01-05 DJ Delorie <dj@redhat.com>
|
||
|
||
* reloc.c: Add BFD_RELOC_RX_OP_NEG.
|
||
* libbfd.h: Regenerate.
|
||
* bfd-in2.h: Regenerate.
|
||
* elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
|
||
|
||
2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
* cpu-i386.c (bfd_i386_compatible): New.
|
||
(bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
|
||
with bfd_i386_compatible.
|
||
(bfd_x86_64_arch_intel_syntax): Likewise.
|
||
(bfd_i386_arch_intel_syntax): Likewise.
|
||
(i8086_arch): Likewise.
|
||
(bfd_x64_32_arch): Likewise.
|
||
(bfd_x86_64_arch): Likewise.
|
||
(bfd_i386_arch): Likewise.
|
||
|
||
For older changes see ChangeLog-2010
|
||
|
||
Local Variables:
|
||
mode: change-log
|
||
left-margin: 8
|
||
fill-column: 74
|
||
version-control: never
|
||
End:
|