reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
# REQUIRES: x86

## Test SHN_ABS symbols are not copy relocated.

# RUN: llvm-mc -filetype=obj -triple=x86_64 %p/Inputs/copy-rel-abs.s -o %t1.o
# RUN: ld.lld -shared %t1.o -o %t1.so
# RUN: llvm-readelf --dyn-syms %t1.so | FileCheck --check-prefix=SYMS %s

# SYMS: [[ADDR:[0-9a-f]+]] {{.*}}   5 bar
# SYMS: [[ADDR]]           {{.*}}   5 foo
# SYMS: [[ADDR]]           {{.*}} ABS zed

# RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t2.o
# RUN: ld.lld %t2.o %t1.so -o %t2
# RUN: llvm-objdump -t %t2 | FileCheck %s

# CHECK: SYMBOL TABLE:
# CHECK-NOT: zed
# CHECK: .bss.rel.ro {{.*}} foo
# CHECK-NOT: zed
# CHECK: .bss.rel.ro {{.*}} bar
# CHECK-NOT: zed

.global _start
_start:
.quad foo