aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-i386/i386.exp
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-02-07 15:22:19 -0800
committerH.J. Lu <hjl.tools@gmail.com>2022-02-07 16:04:10 -0800
commit30a954525f4e53a9cd50a1a8a6f201c7cf6595c7 (patch)
treef801035fdda0bbcbb2cf4037a1faa7e655848a8f /ld/testsuite/ld-i386/i386.exp
parenta194bde6705579ac3e767db48e0966a7f6144431 (diff)
downloadbinutils-30a954525f4e53a9cd50a1a8a6f201c7cf6595c7.zip
binutils-30a954525f4e53a9cd50a1a8a6f201c7cf6595c7.tar.gz
binutils-30a954525f4e53a9cd50a1a8a6f201c7cf6595c7.tar.bz2
i386: Allow GOT32 relocations against ABS symbols
GOT32 relocations are allowed since absolute value + addend is stored in the GOT slot. Tested on glibc 2.35 build with GCC 11.2 and -Os. bfd/ PR ld/28870 * elfxx-x86.c (_bfd_elf_x86_valid_reloc_p): Also allow GOT32 relocations. ld/ PR ld/28870 * testsuite/ld-i386/i386.exp: Run pr28870. * testsuite/ld-i386/pr28870.d: New file. * testsuite/ld-i386/pr28870.s: Likewise.
Diffstat (limited to 'ld/testsuite/ld-i386/i386.exp')
-rw-r--r--ld/testsuite/ld-i386/i386.exp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/testsuite/ld-i386/i386.exp b/ld/testsuite/ld-i386/i386.exp
index fe36b0f..82e14ab 100644
--- a/ld/testsuite/ld-i386/i386.exp
+++ b/ld/testsuite/ld-i386/i386.exp
@@ -509,6 +509,7 @@ run_dump_test "pr27491-3"
run_dump_test "pr27491-4"
run_dump_test "dt-relr-1a"
run_dump_test "dt-relr-1b"
+run_dump_test "pr28870"
if { !([istarget "i?86-*-linux*"]
|| [istarget "i?86-*-gnu*"]