summaryrefslogtreecommitdiffstats
path: root/lld/test/ELF/relocatable-visibility.s
blob: 7cc7da3097bb11d1f2c48407574a2896708dd85e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: ld.lld -r %t.o -o %t1
# RUN: llvm-readobj -t %t1 | FileCheck --check-prefix=RELOCATABLE %s

# RELOCATABLE:      Name: foo
# RELOCATABLE-NEXT: Value: 0x0
# RELOCATABLE-NEXT: Size: 0
# RELOCATABLE-NEXT: Binding: Global
# RELOCATABLE-NEXT: Type: None
# RELOCATABLE-NEXT: Other [
# RELOCATABLE-NEXT:   STV_HIDDEN
# RELOCATABLE-NEXT: ]
# RELOCATABLE-NEXT: Section: Undefined

.global _start
_start:
 callq foo
 .hidden foo
OpenPOWER on IntegriCloud