[ELF][test] Update znotext-plt-relocations.s to emit R_X86_64_PC32
authorFangrui Song <maskray@google.com>
Thu, 30 May 2019 14:16:29 +0000 (14:16 +0000)
committerFangrui Song <maskray@google.com>
Thu, 30 May 2019 14:16:29 +0000 (14:16 +0000)
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.

llvm-svn: 362095

lld/test/ELF/znotext-plt-relocations.s

index ad305b0..3bc1f41 100644 (file)
@@ -16,5 +16,6 @@
 
 .text
 _start:
-callq atexit
+.byte 0xe8
+.long atexit - . - 4
 .quad foo