8539e4e89e
ld-elf/gap test was failing due to the ARM backend attempting to output arch symbols when ld -s (strip all symbols) is in force. This patch stops that happening and tidies the code a little. PR 17842 * elflink.c (elf_link_output_sym): Assert elf_onesymtab set. (bfd_elf_final_link): Always create a symbol table when emit_relocs. Don't assign symtab file position unless symbols will be output. Merge blocks with condition in common. Don't call elf_backend_output_arch_local_syms or elf_backend_output_arch_syms unless other symbols are output. Move assignment of symtab_shndx file position. Localize variable.
137 lines
4.3 KiB
Plaintext
137 lines
4.3 KiB
Plaintext
2015-01-15 Alan Modra <amodra@gmail.com>
|
||
|
||
PR 17842
|
||
* elflink.c (elf_link_output_sym): Assert elf_onesymtab set.
|
||
(bfd_elf_final_link): Always create a symbol table when emit_relocs.
|
||
Don't assign symtab file position unless symbols will be output.
|
||
Merge blocks with condition in common. Don't call
|
||
elf_backend_output_arch_local_syms or elf_backend_output_arch_syms
|
||
unless other symbols are output. Move assignment of symtab_shndx
|
||
file position. Localize variable.
|
||
|
||
2015-01-14 Jiong Wang <jiong.wang@arm.com>
|
||
|
||
* elf32-arm.c (elf32_arm_final_link_relocate): Reject R_ARM_32/_NOI when
|
||
trying to defer them to runtime.
|
||
|
||
2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
|
||
|
||
* elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use SYMBOLIC_BIND
|
||
to check if a symbol should be bound symbolically.
|
||
|
||
2015-01-13 Jiong Wang <jiong.wang@arm.com>
|
||
|
||
* elfnn-aarch64.c: (elfNN_aarch64_howto_table): Enable overflow check
|
||
for TLSLE_MOVW_TPREL_G2.
|
||
|
||
2015-01-13 Jiong Wang <jiong.wang@arm.com>
|
||
|
||
PR ld/17415
|
||
* elfnn-aarch64.c (elfNN_aarch64_howto_table): Mark
|
||
R_AARCH64_TLSLE_ADD_TPREL_HI12 as complain_overflow_unsigned.
|
||
* elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Correct the
|
||
bit mask.
|
||
|
||
2015-01-12 Terry Guo <terry.guo@arm.com>
|
||
|
||
* elflink.c (_bfd_elf_gc_mark_debug_special_section_group): New
|
||
function.
|
||
(_bfd_elf_gc_mark_extra_sections): Use it.
|
||
|
||
2015-01-11 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR ld/17827
|
||
* elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): For PIE,
|
||
only discard space for pc-relative relocs symbols which turn
|
||
out to need copy relocs.
|
||
|
||
2015-01-09 Nick Clifton <nickc@redhat.com>
|
||
|
||
* tekhex.c (getvalue): Fix thinko in test for correct extraction
|
||
of value.
|
||
(getsym): Return false if there was not enough data to extract the
|
||
symbol.
|
||
|
||
2015-01-09 Anthony Green <green@moxielogic.com>
|
||
|
||
* elf32-moxie.c (ELF_MACHINE_ALT1): Define.
|
||
|
||
2015-01-08 Nick Clifton <nickc@redhat.com>
|
||
|
||
* elf32-msp430.c (msp430_elf_relax_section): Add relaxation of
|
||
16-bit absolute BR instructions to 10-bit pc-relative JMP
|
||
instructions.
|
||
|
||
2015-01-08 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/17512
|
||
* coffcode.h (coff_slurp_symbol_table): Return false if we failed
|
||
to load the line table.
|
||
* elf.c (_bfd_elf_map_sections_to_segments): Enforce a minimum
|
||
maxpagesize of 1.
|
||
* peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Fail if
|
||
the Data Directory Size is too large.
|
||
|
||
2015-01-06 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR binutils/17512
|
||
* elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocation.
|
||
* elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
|
||
|
||
2015-01-06 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/17512
|
||
* mach-o.c (bfd_mach_o_read_symtab_strtab): Zero terminate the
|
||
string table.
|
||
|
||
* reloc.c (bfd_get_reloc_size): Handle a reloc size of -1.
|
||
(bfd_perform_relocation): Include the size of the reloc in the
|
||
test for an out of range relocation.
|
||
(bfd_generic_get_relocated_section_contents): Remove reloc range
|
||
test.
|
||
|
||
* coff-i860.c (CALC_ADDEND): Always set an addend value.
|
||
* tekhex.c (getvalue): Add an end pointer parameter. Use it to
|
||
avoid reading off the end of the buffer.
|
||
(getsym): Likewise.
|
||
(first_phase): Likewise.
|
||
(pass_over): Pass an end pointer to the invoked function.
|
||
|
||
2015-01-05 H.J. Lu <hongjiu.lu@intel.com>
|
||
|
||
PR binutils/17512
|
||
* elf32-i386.c (elf_i386_get_plt_sym_val): Return NULL on corrupt
|
||
input.
|
||
* elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
|
||
|
||
2015-01-05 Nick Clifton <nickc@redhat.com>
|
||
|
||
PR binutils/17512
|
||
* archive.c (do_slurp_bsd_armap): Make sure that the parsed sized
|
||
is at least big enough for the header to be read.
|
||
* elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocs.
|
||
* mach-o.c (bfd_mach_o_get_synthetic_symtab): Add range checks.
|
||
(bfd_mach_o_read_command): Prevetn duplicate error messages about
|
||
unrecognized commands.
|
||
* syms.c (_bfd_stab_section_find_nearest_line): Add range checks
|
||
when indexing into the string table.
|
||
|
||
2015-01-01 Alan Modra <amodra@gmail.com>
|
||
|
||
Update year range in copyright notice of all files.
|
||
|
||
For older changes see ChangeLog-2014
|
||
|
||
Copyright (C) 2015 Free Software Foundation, Inc.
|
||
|
||
Copying and distribution of this file, with or without modification,
|
||
are permitted in any medium without royalty provided the copyright
|
||
notice and this notice are preserved.
|
||
|
||
Local Variables:
|
||
mode: change-log
|
||
left-margin: 8
|
||
fill-column: 74
|
||
version-control: never
|
||
End:
|