1# REQUIRES: x86
2
3## Test SHN_ABS symbols are not copy relocated.
4
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
8
9# SYMS: [[ADDR:[0-9a-f]+]] {{.*}}   5 foo
10# SYMS: [[ADDR]]           {{.*}}   5 bar
11# SYMS: [[ADDR]]           {{.*}} ABS zed
12
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
16
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
23
24.global _start
25_start:
26.quad foo
27