2016-08-19 16:31:02 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
|
|
|
# RUN: ld.lld -r %t.o -o %t1
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj --symbols %t1 | FileCheck --check-prefix=RELOCATABLE %s
|
2016-08-19 16:31:02 +08:00
|
|
|
|
|
|
|
# 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
|