diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-12-04 18:54:47 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-12-04 18:54:47 -0800 |
commit | 7e45e7a9ab38ee904ca62ed9934e933fdb1d6e9c (patch) | |
tree | 685148c069150cb4bd123fd31be9ef7267951971 /ld/testsuite/ld-x86-64/x86-64.exp | |
parent | 4979ae6a9edb63b2b4c466bf247e4b85706efb18 (diff) | |
download | gdb-7e45e7a9ab38ee904ca62ed9934e933fdb1d6e9c.zip gdb-7e45e7a9ab38ee904ca62ed9934e933fdb1d6e9c.tar.gz gdb-7e45e7a9ab38ee904ca62ed9934e933fdb1d6e9c.tar.bz2 |
x86-64: Convert load to mov only for GOTPCRELX relocations
Since converting load to mov needs to rewrite the REX byte and we don't
know if there is a REX byte with GOTPCREL relocation, do it only for
GOTPCRELX relocations.
bfd/
PR ld/27016
* elf64-x86-64.c (elf_x86_64_convert_load_reloc): Convert load
to mov only for GOTPCRELX relocations.
ld/
PR ld/27016
* testsuite/ld-x86-64/x86-64.exp: Run pr27016a and pr27016b.
* testsuite/ld-x86-64/pr27016a.d: New file.
* testsuite/ld-x86-64/pr27016a.s: Likewise.
* testsuite/ld-x86-64/pr27016b.d: Likewise.
* testsuite/ld-x86-64/pr27016b.s: Likewise.
Diffstat (limited to 'ld/testsuite/ld-x86-64/x86-64.exp')
-rw-r--r-- | ld/testsuite/ld-x86-64/x86-64.exp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index 99c8a33..41d385b 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -661,6 +661,8 @@ run_dump_test "pr22048" run_dump_test "pr22929" run_dump_test "pr26939" run_dump_test "pr26939-x32" +run_dump_test "pr27016a" +run_dump_test "pr27016b" proc undefined_weak {cflags ldflags} { set testname "Undefined weak symbol" |