aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2019-04-17 09:08:46 -0700
committerAndreas K. Hüttel <dilfridge@gentoo.org>2019-04-24 22:20:50 +0200
commitde2ddc0f19ae30dabfad3cd9afa0c42e1c09759f (patch)
tree452d8a6b6182a1ef2f8a0ae46b799188c25a1c36 /ld/testsuite/ld-x86-64/pr24458a-x32.d
parentPR24041, Invalid Memory Address Dereference in elf_link_add_object_symbols (diff)
downloadbinutils-gdb-de2ddc0f19ae30dabfad3cd9afa0c42e1c09759f.tar.gz
binutils-gdb-de2ddc0f19ae30dabfad3cd9afa0c42e1c09759f.tar.bz2
binutils-gdb-de2ddc0f19ae30dabfad3cd9afa0c42e1c09759f.zip
x86: Also check x86 linker_def for non-shared definitiongentoo/binutils-2.31.1-7gentoo/binutils-2.31.1
Since elf_x86_linker_defined sets linker_def in elf_x86_link_hash_entry for linker defined symbols, SYMBOL_DEFINED_NON_SHARED_P should also check linker_def in elf_x86_link_hash_entry. bfd/ PR ld/24458 * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86 linker_def. ld/ PR ld/24458 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests. * testsuite/ld-x86-64/pr24458.s: New file. * testsuite/ld-x86-64/pr24458a-x32.d: Likewise. * testsuite/ld-x86-64/pr24458a.d: Likewise. * testsuite/ld-x86-64/pr24458b-x32.d: Likewise. * testsuite/ld-x86-64/pr24458b.d: Likewise. * testsuite/ld-x86-64/pr24458c-x32.d: Likewise. * testsuite/ld-x86-64/pr24458c.d: Likewise. (cherry picked from commit 4e84a8f8bbeab52fa7048873655e582ceb92534d) (cherry picked from commit bca6a14c568bd63080c85a6b05c90996e2bd4a34) Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'ld/testsuite/ld-x86-64/pr24458a-x32.d')
-rw-r--r--ld/testsuite/ld-x86-64/pr24458a-x32.d5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/pr24458a-x32.d b/ld/testsuite/ld-x86-64/pr24458a-x32.d
new file mode 100644
index 00000000000..9b58786c02d
--- /dev/null
+++ b/ld/testsuite/ld-x86-64/pr24458a-x32.d
@@ -0,0 +1,5 @@
+#source: pr24458.s
+#as: --x32
+#ld: -m elf32_x86_64
+#readelf: -n
+#pass