Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / canonical-plt-symbolic.s
blobd6ea093caf5da44b7ea7efc3977dd79402269648
1 # REQUIRES: x86
3 ## Test canonical PLT can be created for -no-pie and -pie.
5 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
6 # RUN: llvm-mc -filetype=obj -triple=x86_64 %p/Inputs/canonical-plt-pcrel.s -o %t1.o
7 # RUN: ld.lld %t1.o -o %t1.so -shared -soname=so
9 # RUN: ld.lld %t.o %t1.so -o %t
10 # RUN: llvm-readobj -r %t | FileCheck %s
12 # RUN: ld.lld %t.o %t1.so -o %t -pie
13 # RUN: llvm-readobj -r %t | FileCheck %s
15 # CHECK: Relocations [
16 # CHECK-NEXT: .rela.plt {
17 # CHECK-NEXT: R_X86_64_JUMP_SLOT func 0x0
18 # CHECK-NEXT: R_X86_64_JUMP_SLOT ifunc 0x0
19 # CHECK-NEXT: }
20 # CHECK-NEXT: ]
22 .rodata
23 .quad func # STT_FUNC
24 .quad ifunc # STT_GNU_IFUNC