Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / noplt-pie.s
blobc10959c362dd643b5da6226fec1fa9e2274ca5e0
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t1.o
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/shared.s -o %t2.o
4 # RUN: ld.lld -shared %t2.o -o %t2.so
5 # RUN: ld.lld --hash-style=sysv %t1.o %t2.so -o %t.out
6 # RUN: llvm-readobj -S -r %t.out | FileCheck %s
8 # CHECK: Section {
9 # CHECK-NOT: Name: .plt
11 # CHECK: Relocations [
12 # CHECK-NEXT: Section ({{.*}}) .rela.dyn {
13 # CHECK-NEXT: R_X86_64_GLOB_DAT bar 0x0
14 # CHECK-NEXT: R_X86_64_GLOB_DAT zed 0x0
15 # CHECK-NEXT: }
16 # CHECK-NEXT: ]
18 .global _start
19 _start:
20 movq bar@GOTPCREL(%rip), %rcx
21 movq zed@GOTPCREL(%rip), %rcx