aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-01-11Only discard space for pc-relative relocs symbolsH.J. Lu7-3/+53
When building PIE, we should only discard space for pc-relative relocs symbols which turn out to need copy relocs. bfd/ 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. ld/testsuite/ PR ld/17827 * ld-x86-64/pr17689.out: Updated. * ld-x86-64/pr17689b.S: Likewise. * ld-x86-64/pr17827.rd: New file. * ld-x86-64/x86-64.exp: Run PR ld/17827 test.
2015-01-11Automatic date update in version.inGDB Administrator1-1/+1
2015-01-10Automatic date update in version.inGDB Administrator1-1/+1
2015-01-09Automatic date update in version.inGDB Administrator1-1/+1
2015-01-08Automatic date update in version.inGDB Administrator1-1/+1
2015-01-06Handle stack split for x32H.J. Lu12-16/+357
X32 uses cmp %fs:NN,%esp, lea NN(%rsp),%r10d, lea NN(%rsp),%r11d, instead of cmp %fs:NN,%rsp, lea NN(%rsp),%r10, lea NN(%rsp),%r11. This patch handles it. PR gold/17729 * configure.ac (DEFAULT_TARGET_X86_64): Don't set for x32. (DEFAULT_TARGET_X32): Set for x32. * x86_64.cc (cmp_insn_32): New. (lea_r10_insn_32): Likewise. (lea_r11_insn_32): Likewise. (cmp_insn_64): Likewise. (lea_r10_insn_64): Likewise. (lea_r11_insn_64): Likewise. (Target_x86_64<size>::do_calls_non_split): Handle x32. * testsuite/Makefile.am (check_SCRIPTS): Add split_x32.sh. (check_DATA): Add split_x32 files. (split_x32_[1234n].o): New targets. (split_x32_[124]): New targets. (split_x32_[1234r].stdout): New targets. * testsuite/split_x32.sh: New file. * testsuite/split_x32_1.s: Likewise. * testsuite/split_x32_2.s: Likewise. * testsuite/split_x32_3.s: Likewise. * testsuite/split_x32_4.s: Likewise. * testsuite/split_x32_n.s: Likewise. * configure: Regenerated. * testsuite/Makefile.in: Likewise.
2015-01-07Automatic date update in version.inGDB Administrator1-1/+1
2015-01-06Handle Initial-Exec to Local-Exec for x32H.J. Lu2-0/+12
PR gold/17809 * x86_64.cc (Target_x86_64<size>::Relocate::tls_ie_to_le): Handle x32.
2015-01-06Automatic date update in version.inGDB Administrator1-1/+1
2015-01-05Assign file position for .strtab only if neededH.J. Lu5-24/+47
bfd/ PR ld/17773 * elflink.c (bfd_elf_final_link): Assign the file position for the symbol string table only there are symbols to be emitted. ld/testsuite/ PR ld/17773 * ld-elf/binutils.exp (binutils_test): Add an optional readelf_options. Replace -l with $readelf_options. Add a gap test. * ld/testsuite/ld-elf/gap.s: New file.
2015-01-05Automatic date update in version.inGDB Administrator1-1/+1
2015-01-04Automatic date update in version.inGDB Administrator1-1/+1
2015-01-03Automatic date update in version.inGDB Administrator1-1/+1
2015-01-02Automatic date update in version.inGDB Administrator1-1/+1
2015-01-01Automatic date update in version.inGDB Administrator1-1/+1
2014-12-31Automatic date update in version.inGDB Administrator1-1/+1
2014-12-30Automatic date update in version.inGDB Administrator1-1/+1
2014-12-29Automatic date update in version.inGDB Administrator1-1/+1
2014-12-28Automatic date update in version.inGDB Administrator1-1/+1
2014-12-27Automatic date update in version.inGDB Administrator1-1/+1
2014-12-26Automatic date update in version.inGDB Administrator1-1/+1
2014-12-25Automatic date update in version.inGDB Administrator1-1/+1
2014-12-24Automatic date update in version.inGDB Administrator1-1/+1
2014-12-23Bump to version 2.25.0Tristan Gingold13-61/+86
bfd/ 2014-12-23 Tristan Gingold <gingold@adacore.com> * version.m4: Bump version to 2.25.0 * configure: Regenerate. binutils/ 2014-12-23 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. gas/ 2014-12-23 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. gprof/ 2014-12-23 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. ld/ 2014-12-23 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. opcodes/ 2014-12-23 Tristan Gingold <gingold@adacore.com> * configure: Regenerate.
2014-12-23Add generated files.binutils-2_25Tristan Gingold190-0/+143649
2014-12-23Version 2.25Tristan Gingold13-61/+86
bfd/ 2014-12-23 Tristan Gingold <gingold@adacore.com> * version.m4: Bump version to 2.25 * configure: Regenerate. binutils/ 2014-12-23 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. gas/ 2014-12-23 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. gprof/ 2014-12-23 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. ld/ 2014-12-23 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. opcodes/ 2014-12-23 Tristan Gingold <gingold@adacore.com> * configure: Regenerate.
2014-12-23Automatic date update in version.inGDB Administrator1-1/+1
2014-12-22Automatic date update in version.inGDB Administrator1-1/+1
2014-12-21Automatic date update in version.inGDB Administrator1-1/+1
2014-12-20Automatic date update in version.inGDB Administrator1-1/+1
2014-12-19Rework the alignment check for BFD_RELOC_MIPS_18_PCREL_S3.Matthew Fortune9-26/+93
gas/ * config/tc-mips.c (md_apply_fix): Apply alignment check to the symbol and offset rather than *valP for BFD_RELOC_MIPS_18_PCREL_S3. Also update the error message for BFD_RELOC_MIPS_19_PCREL_S2. gas/testsuite/ * gas/mips/r6-64.s: Remove .align directives from LDPC instructions and add further tests for LDPC. * gas/mips/r6-64-n32.d: remove the NOPs from LDPC expected output and update for new tests. * gas/mips/r6-64-n64.d: Likewise. * gas/mips/ldpc-unalign.l: New file. * gas/mips/ldpc-unalign.s: Likewise. * gas/mips/mips.exp: Run ldpc-unalign test.
2014-12-19Fix all failing FPXX tests for tx39-elf.Matthew Fortune16-15/+33
ld/testsuite/ * ld-mips-elf/attr-gnu-4-00.d: Relax check for ISA extension. * ld-mips-elf/attr-gnu-4-01.d: Likewise. * ld-mips-elf/attr-gnu-4-02.d: Likewise. * ld-mips-elf/attr-gnu-4-03.d: Likewise. * ld-mips-elf/attr-gnu-4-08.d: Likewise. * ld-mips-elf/attr-gnu-4-10.d: Likewise. * ld-mips-elf/attr-gnu-4-11.d: Likewise. * ld-mips-elf/attr-gnu-4-18.d: Likewise. * ld-mips-elf/attr-gnu-4-20.d: Likewise. * ld-mips-elf/attr-gnu-4-22.d: Likewise. * ld-mips-elf/attr-gnu-4-28.d: Likewise. * ld-mips-elf/attr-gnu-4-30.d: Likewise. * ld-mips-elf/attr-gnu-4-33.d: Likewise. * ld-mips-elf/attr-gnu-4-38.d: Likewise. * ld-mips-elf/attr-gnu-4-44.d: Likewise.
2014-12-19Fix undefined weak symbol reloc testsMatthew Fortune6-78/+55
ld/testsuite/ * ld-mips-elf/mips-elf.exp: Update undefweak-overflow tests. * ld-mips-elf/undefweak-overflow-n32.d: Remove. * ld-mips-elf/undefweak-overflow-n64.d: Likewise. * ld-mips-elf/undefweak-overflow.s: Set mips64r6, noreorder and add a label to mark the micromips region. * ld-mips-elf/undefweak-overflow.d: Update expected output.
2014-12-19Add in a JALRC alias and fix the NAL instruction.Matthew Fortune7-1/+26
opcodes/ * mips-opc.c (mips_builtin_opcodes): Add JALRC alias for JIALC. Remove the operand from NAL. gas/testsuite/ * gas/mips/r6.s: Test JALRC and NAL * gas/mips/r6-n32.d: Add expected output for JALRC and NAL. * gas/mips/r6-n64.d: Likewise. * gas/mips/r6.d: Likewise.
2014-12-19[MIPS] When calculating a relocation using an undefined weak symbol don't ↵Andrew Bennett8-11/+137
check for overflow. In MIPS the relocation calculation only ignores the overflow checks for undefined weak symbols on relocations associated with j/jal. This patch extends this to the relocations used by the: b* instructions; pc/gp relative symbol offsets; and the lwpc/ldpc MIPS r6 instructions. bfd/ * elfxx-mips.c (mips_elf_calculate_relocation): Only check for overflow on non-weak undefined symbols. ld/testsuite/ * ld-mips-elf/mips-elf.exp: Add in undefined weak overflow tests for o32, n32 and n64. * ld-mips-elf/undefweak-overflow.s: New test. * ld-mips-elf/undefweak-overflow.d: New test. * ld-mips-elf/undefweak-overflow-n32.d: New test. * ld-mips-elf/undefweak-overflow-n64.d: New test.
2014-12-19Automatic date update in version.inGDB Administrator1-1/+1
2014-12-18Automatic date update in version.inGDB Administrator1-1/+1
2014-12-17Automatic date update in version.inGDB Administrator1-1/+1
2014-12-16Automatic date update in version.inGDB Administrator1-1/+1
2014-12-15Check corrupt inputH.J. Lu2-0/+11
PR ld/17713 * elflink.c (_bfd_elf_gc_mark_rsec): Check corrupt input.
2014-12-15Automatic date update in version.inGDB Administrator1-1/+1
2014-12-13Handle weak alias for PIE with copy relocH.J. Lu8-7/+102
When there is a weak symbol with a real definition, the processor independent code will have arranged for us to see the real definition first. We need to copy the needs_copy bit from the real definition and check it when allowing copy reloc in PIE. bfd/ PR ld/17689 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add needs_copy. Change has_bnd_reloc to bit field. (elf_x86_64_link_hash_newfunc): Initialize needs_copy and has_bnd_reloc to 0. (elf_x86_64_check_relocs): Set has_bnd_reloc to 1 instead of TRUE. (elf_x86_64_adjust_dynamic_symbol): Copy needs_copy from the real definition to a weak symbol. (elf_x86_64_allocate_dynrelocs): Also check needs_copy of a weak symbol for PIE when discarding space for relocs against symbols which turn out to need copy relocs. (elf_x86_64_relocate_section): Also check needs_copy of a weak symbol for PIE with copy reloc. ld/testsuite/ PR ld/17689 * ld-x86-64/pr17689.out: New file. * ld-x86-64/pr17689.rd: Likewise. * ld-x86-64/pr17689a.c: Likewise. * ld-x86-64/pr17689b.S: Likewise. * ld-x86-64/x86-64.exp: Run PR ld/17689 tests.
2014-12-14Automatic date update in version.inGDB Administrator1-1/+1
2014-12-13Automatic date update in version.inGDB Administrator1-1/+1
2014-12-12Automatic date update in version.inGDB Administrator1-1/+1
2014-12-11Automatic date update in version.inGDB Administrator1-1/+1
2014-12-10Don't access elf tdata in dwarf.c without first checking for an ELF bfdAlan Modra2-2/+11
_bfd_dwarf2_find_nearest_line may be called on a COFF bfd. * dwarf2.c (read_address): Check bfd_target_elf_flavour before calling get_elf_backend_data. (_bfd_dwarf2_find_nearest_line): Fix parens.
2014-12-10Automatic date update in version.inGDB Administrator1-1/+1
2014-12-09Automatic date update in version.inGDB Administrator1-1/+1
2014-12-08Automatic date update in version.inGDB Administrator1-1/+1