Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / relocation-relative-weak.s
blob18dcb0530a9cad1a40eb7305742db0248d6bc604
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64 /dev/null -o %t1.o
3 # RUN: ld.lld %t1.o -shared -o %t1.so
4 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t.o
5 # RUN: ld.lld %t.o %t1.so -o %t -pie
6 # RUN: llvm-readobj --dyn-relocations %t | FileCheck %s
8 # CHECK: Dynamic Relocations {
9 # CHECK-NEXT: R_X86_64_JUMP_SLOT w 0x0
10 # CHECK-NEXT: }
12 .globl _start
13 _start:
15 .weak w
16 call w@PLT