[lld] r362095 - [ELF][test] Update znotext-plt-relocations.s to emit R_X86_64_PC32

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu May 30 07:16:29 PDT 2019

Author: maskray
Date: Thu May 30 07:16:29 2019
New Revision: 362095

URL: http://llvm.org/viewvc/llvm-project?rev=362095&view=rev
[ELF][test] Update znotext-plt-relocations.s to emit R_X86_64_PC32

This is a leftover from r325379.

The intention of this test was to check in a non-pic link, R_X86_64_PC32
to a STT_FUNC created a PLT. However, after the llvm-mc change in
r325569, this code path is no longer exercised. Use the r325379 trick to
keep testing R_X86_64_PC32.


Modified: lld/trunk/test/ELF/znotext-plt-relocations.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/znotext-plt-relocations.s?rev=362095&r1=362094&r2=362095&view=diff
--- lld/trunk/test/ELF/znotext-plt-relocations.s (original)
+++ lld/trunk/test/ELF/znotext-plt-relocations.s Thu May 30 07:16:29 2019
@@ -16,5 +16,6 @@
-callq atexit
+.byte 0xe8
+.long atexit - . - 4
 .quad foo

More information about the llvm-commits mailing list