aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-02-20Don't add DT_NEEDED for unmatched symbolusers/hjl/pr19553/binutils-2_26-branchH.J. Lu12-2/+94
Don't add DT_NEEDED if a symbol from a library loaded via DT_NEEDED doesn't match the symbol referenced by regular object. Backport from master bfd/ PR ld/19553 * elflink.c (elf_link_add_object_symbols): Don't add DT_NEEDED if a symbol from a library loaded via DT_NEEDED doesn't match the symbol referenced by regular object. ld/testsuite/ PR ld/19553 * testsuite/ld-elf/indirect.exp: Run tests for PR ld/19553. * testsuite/ld-elf/pr19553.map: New file. * testsuite/ld-elf/pr19553.map: Likewise. * testsuite/ld-elf/pr19553a.c: Likewise. * testsuite/ld-elf/pr19553b.c: Likewise. * testsuite/ld-elf/pr19553b.out: Likewise. * testsuite/ld-elf/pr19553c.c: Likewise. * testsuite/ld-elf/pr19553c.out: Likewise. * testsuite/ld-elf/pr19553d.c: Likewise. * testsuite/ld-elf/pr19553d.out: Likewise.
2016-02-20[i386] Check RegVRex in register_numberH.J. Lu5-0/+20
Increment register number by 16 if RegVRex is set. Backport from master * config/tc-i386.c (register_number): Check RegVRex. * testsuite/gas/i386/x86-64-avx512f.s: Add a test for vgatherqpd with %zmm19 and %zmm3. * testsuite/gas/i386/x86-64-avx512f-intel.d: Updated. * testsuite/gas/i386/x86-64-avx512f.d: Likewise.
2016-02-20Automatic date update in version.inGDB Administrator1-1/+1
2016-02-19Automatic date update in version.inGDB Administrator1-1/+1
2016-02-18Automatic date update in version.inGDB Administrator1-1/+1
2016-02-17Automatic date update in version.inGDB Administrator1-1/+1
2016-02-15Add parentheses to prevent truncated addressesH.J. Lu2-2/+11
Backport from master * i386-dis.c (print_insn): Parenthesize expression to prevent truncated addresses. (OP_J): Likewise.
2016-02-16Automatic date update in version.inGDB Administrator1-1/+1
2016-02-15Automatic date update in version.inGDB Administrator1-1/+1
2016-02-14Automatic date update in version.inGDB Administrator1-1/+1
2016-02-13Automatic date update in version.inGDB Administrator1-1/+1
2016-02-12Fix a typo in objcopy manualH.J. Lu2-1/+8
For objcopy, --compress-debug-sections=none is the same as --decompress-debug-sections, not --nocompress-debug-sections. Backport from master * doc/binutils.texi: Fix a typo.
2016-02-11Enable -Bsymbolic and -Bsymbolic-functions to PIEH.J. Lu9-9/+84
Before binutils 2.26, -Bsymbolic and -Bsymbolic-functions were also applied to PIE so that "ld -pie -Bsymbolic -E" can be used to export symbols in PIE with local binding. This patch re-enables -Bsymbolic and -Bsymbolic-functions for PIE. Backport from master PR ld/19615 * ld.texinfo: Document -Bsymbolic and -Bsymbolic-functions for PIE. * lexsup.c (parse_args): Enable -Bsymbolic and -Bsymbolic-functions for PIE. * testsuite/ld-i386/i386.exp: Run pr19615. * testsuite/ld-i386/pr19615.d: New file. * testsuite/ld-i386/pr19615.s: Likewise. * testsuite/ld-x86-64/pr19615.d: Likewise. * testsuite/ld-x86-64/pr19615.s: Likewise.
2016-02-12Automatic date update in version.inGDB Administrator1-1/+1
2016-02-10Mask off the least significant bit in GOT offsetH.J. Lu2-2/+13
The least significant bit in GOT offset is to record whether we have initialized the GOT entry in R_386_GOT32 processing. We need to mask it off for R_386_GOT32X. Backport from master PR ld/19601 * elf32-i386.c (elf_i386_relocate_section): Mask off the least significant bit in GOT offset for R_386_GOT32X.
2016-02-11Automatic date update in version.inGDB Administrator1-1/+1
2016-02-10Automatic date update in version.inGDB Administrator1-1/+1
2016-02-09Automatic date update in version.inGDB Administrator1-1/+1
2016-02-08Automatic date update in version.inGDB Administrator1-1/+1
2016-02-07Automatic date update in version.inGDB Administrator1-1/+1
2016-02-06Automatic date update in version.inGDB Administrator1-1/+1
2016-02-05Automatic date update in version.inGDB Administrator1-1/+1
2016-02-04Automatic date update in version.inGDB Administrator1-1/+1
2016-02-03Add -mrelax-relocations= to x86 assemblerH.J. Lu59-52/+320
The x86 relax relocations introduced in binutils 2.26 aren't supported by linker on Solaris older than Solaris 12. To use x86 assembler with older Solaris linker, this patch adds 1. A command line option -mrelax-relocations= to x86 assembler to control whether to generate relax relocations. 2. A configure option --enable-x86-relax-relocations to decide whether x86 assembler should generate relax relocations by default. It is defaulted to yes, except for x86 Solaris targets older than Solaris 12. Backport from master gas/ PR gas/19520 * NEWS: Mention new command line option -mrelax-relocations and new configure option --enable-x86-relax-relocations for x86 target. * config.in: Regenerated. * configure.ac: Add --enable-x86-relax-relocations. (ac_default_x86_relax_relocations): New. Default to 1 except for x86 Solaris targets older than Solaris 12. (DEFAULT_GENERATE_X86_RELAX_RELOCATIONS): Define. * configure: Likewise. * config/tc-i386.c (generate_relax_relocations): New. (OPTION_MRELAX_RELOCATIONS): Likewise. (output_disp): Don't generate relax relocations if generate_relax_relocations is 0. (md_longopts): Add -mrelax-relocations. (md_show_usage): Likewise. (md_parse_option): Handle OPTION_MRELAX_RELOCATIONS. * doc/c-i386.texi: Document -mrelax-relocations=. * testsuite/gas/i386/got-no-relax.d: New file. * testsuite/gas/i386/x86-64-gotpcrel-no-relax.d: Likewise. * testsuite/gas/i386/got.d: Pass -mrelax-relocations=yes to as. * testsuite/gas/i386/localpic.d: Likewise. * testsuite/gas/i386/mixed-mode-reloc32.d: Likewise. * testsuite/gas/i386/reloc32.d: Likewise. * testsuite/gas/i386/x86-64-gotpcrel.d: Likewise. * testsuite/gas/i386/x86-64-localpic.d: Likewise. * testsuite/gas/i386/ilp32/x86-64-gotpcrel.d: Likewise. * testsuite/gas/i386/ilp32/x86-64-localpic.d: Likewise. * testsuite/gas/i386/i386.exp: Run got-no-relax and x86-64-gotpcrel-no-relax. ld/ PR gas/19520 * testsuite/ld-i386/branch1.d: Pass -mrelax-relocations=yes to as. * testsuite/ld-i386/call1.d: Likewise. * testsuite/ld-i386/call2.d: Likewise. * testsuite/ld-i386/call3a.d: Likewise. * testsuite/ld-i386/call3b.d: Likewise. * testsuite/ld-i386/call3c.d: Likewise. * testsuite/ld-i386/call3d.d: Likewise. * testsuite/ld-i386/call3e.d: Likewise. * testsuite/ld-i386/call3f.d: Likewise. * testsuite/ld-i386/call3g.d: Likewise. * testsuite/ld-i386/call3h.d: Likewise. * testsuite/ld-i386/jmp1.d: Likewise. * testsuite/ld-i386/jmp2.d: Likewise. * testsuite/ld-i386/lea1c.d: Likewise. * testsuite/ld-i386/load1.d: Likewise. * testsuite/ld-i386/load2.d: Likewise. * testsuite/ld-i386/load3.d: Likewise. * testsuite/ld-i386/load4a.d: Likewise. * testsuite/ld-i386/load5a.d: Likewise. * testsuite/ld-i386/mov2b.d: Likewise. * testsuite/ld-i386/mov3.d: Likewise. * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise. * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise. * testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise. * testsuite/ld-x86-64/call1a.d: Likewise. * testsuite/ld-x86-64/call1b.d: Likewise. * testsuite/ld-x86-64/call1c.d: Likewise. * testsuite/ld-x86-64/call1d.d: Likewise. * testsuite/ld-x86-64/call1e.d: Likewise. * testsuite/ld-x86-64/call1f.d: Likewise. * testsuite/ld-x86-64/call1h.d: Likewise. * testsuite/ld-x86-64/call1i.d: Likewise. * testsuite/ld-x86-64/load1a.d: Likewise. * testsuite/ld-x86-64/load1b.d: Likewise. * testsuite/ld-i386/got1a.S: Load GOT into %ecx and use it. * testsuite/ld-i386/got1.dd: Updated. * testsuite/ld-i386/got1d.S (1): Removed. * testsuite/ld-i386/i386.exp: Add -Wa,-mrelax-relocations=yes. * testsuite/ld-x86-64/x86-64.exp: Likewise.
2016-02-03Remove duplicated marker for 2.26 in gas/NEWSH.J. Lu2-2/+7
Backport from master * NEWS: Remove duplicated marker for 2.26.
2016-02-03Automatic date update in version.inGDB Administrator1-1/+1
2016-02-02Store estimated distances in compressed_sizeH.J. Lu2-15/+32
elf_x86_64_convert_load is very time consuming since it is called on each input section and has a loop over input text sections to estimate the branch distrance. We can store the estimated distances in the compressed_size field of the output section, which is only used to decompress the compressed input section. Before the patch, linking clang 3.9 takes 52 seconds. After the patch, it only takes 2.5 seconds. Backport from master PR ld/19542 * elf64-x86-64.c (elf_x86_64_convert_load): Store the estimated distances in the compressed_size field of the output section.
2016-02-02Add a testcase for PR ld/18591H.J. Lu4-0/+31
Backport from master PR ld/18591 * testsuite/ld-x86-64/pr18591.d: New file. * testsuite/ld-x86-64/pr18591.s: Likewise. * testsuite/ld-x86-64/x86-64.exp: Run pr18591.
2016-02-02Automatic date update in version.inGDB Administrator1-1/+1
2016-02-01Fix /usr/bin/ld: final link failed: File truncated error on hppaJohn David Anglin3-5/+29
2016-02-01Automatic date update in version.inGDB Administrator1-1/+1
2016-01-31Automatic date update in version.inGDB Administrator1-1/+1
2016-01-29Replace == with = in gas/configure.acH.J. Lu3-2/+11
Backport from master PR gas/19532 * configure.ac (compressed_debug_sections): Replace == with =. * configure: Regenerated.
2016-01-29Replace == with = in ld/configure.acH.J. Lu3-2/+11
Backport from master PR ld/19533 * configure.ac (compressed_debug_sections): Replace == with =. * configure: Regenerated.
2016-01-30Automatic date update in version.inGDB Administrator1-1/+1
2016-01-29Automatic date update in version.inGDB Administrator1-1/+1
2016-01-28Automatic date update in version.inGDB Administrator1-1/+1
2016-01-27Automatic date update in version.inGDB Administrator1-1/+1
2016-01-26Automatic date update in version.inGDB Administrator1-1/+1
2016-01-25Bump to 2.26.0Tristan Gingold13-61/+86
bfd/ 2016-01-25 Tristan Gingold <gingold@adacore.com> * version.m4: Bump version to 2.26.0 * configure: Regenerate. binutils/ 2016-01-25 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. gas/ 2016-01-25 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. gprof/ 2016-01-25 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. ld/ 2016-01-25 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. opcodes/ 2016-01-25 Tristan Gingold <gingold@adacore.com> * configure: Regenerate.
2016-01-25Add generated filesbinutils-2_26Tristan Gingold196-0/+146491
2016-01-25Bump version to 2.26Tristan Gingold13-61/+86
bfd/ 2016-01-25 Tristan Gingold <gingold@adacore.com> * version.m4: Bump version to 2.26 * configure: Regenerate. binutils/ 2016-01-25 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. gas/ 2016-01-25 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. gprof/ 2016-01-25 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. ld/ 2016-01-25 Tristan Gingold <gingold@adacore.com> * configure: Regenerate. opcodes/ 2016-01-25 Tristan Gingold <gingold@adacore.com> * configure: Regenerate.
2016-01-25Automatic date update in version.inGDB Administrator1-1/+1
2016-01-24Automatic date update in version.inGDB Administrator1-1/+1
2016-01-23Automatic date update in version.inGDB Administrator1-1/+1
2016-01-22Automatic date update in version.inGDB Administrator1-1/+1
2016-01-21Automatic date update in version.inGDB Administrator1-1/+1
2016-01-20Automatic date update in version.inGDB Administrator1-1/+1
2016-01-19Fix PR18735 test for RL78.Nick Clifton2-0/+6
* ld-elf/pr18735.d: Allow for extra symbols between foo@FOO and bar@@FOO.
2016-01-19Automatic date update in version.inGDB Administrator1-1/+1