From 064ae08e864eacd0881cb291f412ff727a5094bb Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 30 May 2019 14:16:29 +0000 Subject: [PATCH] [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. llvm-svn: 362095 --- lld/test/ELF/znotext-plt-relocations.s | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lld/test/ELF/znotext-plt-relocations.s b/lld/test/ELF/znotext-plt-relocations.s index ad305b0c1f6c..3bc1f417cb0e 100644 --- a/lld/test/ELF/znotext-plt-relocations.s +++ b/lld/test/ELF/znotext-plt-relocations.s @@ -16,5 +16,6 @@ .text _start: -callq atexit +.byte 0xe8 +.long atexit - . - 4 .quad foo