[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / copy-rel-abs.s
blob2843882816210f8ce8b813a1978b57a13a9ceb51
1 # REQUIRES: x86
3 ## Test SHN_ABS symbols are not copy relocated.
5 # RUN: llvm-mc -filetype=obj -triple=x86_64 %p/Inputs/copy-rel-abs.s -o %t1.o
6 # RUN: ld.lld -shared %t1.o -o %t1.so
7 # RUN: llvm-readelf --dyn-syms %t1.so | FileCheck --check-prefix=SYMS %s
9 # SYMS: [[ADDR:[0-9a-f]+]] {{.*}} 5 foo
10 # SYMS: [[ADDR]] {{.*}} 5 bar
11 # SYMS: [[ADDR]] {{.*}} ABS zed
13 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t2.o
14 # RUN: ld.lld %t2.o %t1.so -o %t2
15 # RUN: llvm-objdump -t %t2 | FileCheck %s
17 # CHECK: SYMBOL TABLE:
18 # CHECK-NOT: zed
19 # CHECK: .bss.rel.ro {{.*}} foo
20 # CHECK-NOT: zed
21 # CHECK: .bss.rel.ro {{.*}} bar
22 # CHECK-NOT: zed
24 .global _start
25 _start:
26 .quad foo