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:
19 # CHECK: .bss.rel.ro {{.*}} foo
21 # CHECK: .bss.rel.ro {{.*}} bar