]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - ld/testsuite/ld-i386/i386.exp
Bind defined symbol locally in PIE
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Mar 2016 18:46:51 +0000 (11:46 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 15 Mar 2016 18:47:06 +0000 (11:47 -0700)
commit4e0c91e45402ebf4215066e4a61143896e831049
tree55a15e4ef85bf47a1177c6a3c8e16f9f145f5e0f
parent4c10bbaa0912742322f10d9d5bb630ba4e15dfa7
Bind defined symbol locally in PIE

Symbols defined in PIE should be bound locally, the same as -shared
-Bsymbolic.

bfd/

PR ld/19827
* elf32-i386.c (elf_i386_check_relocs): Bind defined symbol
locally in PIE.
(elf_i386_relocate_section): Likewise.
* elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
(elf_x86_64_relocate_section): Likewise.

ld/

PR ld/19827
* testsuite/ld-i386/i386.exp: Run PR ld/19827 tests.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* testsuite/ld-i386/pr19827.rd: New file.
* testsuite/ld-i386/pr19827a.S: Likewise.
* testsuite/ld-i386/pr19827b.S: Likewise.
* testsuite/ld-x86-64/pr19827.rd: Likewise.
* testsuite/ld-x86-64/pr19827a.S: Likewise.
* testsuite/ld-x86-64/pr19827b.S: Likewise.
12 files changed:
bfd/ChangeLog
bfd/elf32-i386.c
bfd/elf64-x86-64.c
ld/ChangeLog
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr19827.rd [new file with mode: 0644]
ld/testsuite/ld-i386/pr19827a.S [new file with mode: 0644]
ld/testsuite/ld-i386/pr19827b.S [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr19827.rd [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr19827a.S [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr19827b.S [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp