2018-07-06 23:03:53 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: mkdir -p %t.dir
|
|
|
|
# RUN: cd %t.dir
|
|
|
|
# RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
|
|
|
|
# RUN: ld.lld %t.o -o t.so -shared -version-script %p/Inputs/empty-ver.ver
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj --version-info t.so | FileCheck %s
|
2018-07-06 23:03:53 +08:00
|
|
|
|
|
|
|
# CHECK: Symbols [
|
|
|
|
# CHECK-NEXT: Symbol {
|
|
|
|
# CHECK-NEXT: Version: 0
|
2019-01-08 18:50:59 +08:00
|
|
|
# CHECK-NEXT: Name:
|
2018-07-06 23:03:53 +08:00
|
|
|
# CHECK-NEXT: }
|
|
|
|
# CHECK-NEXT: Symbol {
|
|
|
|
# CHECK-NEXT: Version: 1
|
2019-01-08 18:50:59 +08:00
|
|
|
# CHECK-NEXT: Name: bar@
|
2018-07-06 23:03:53 +08:00
|
|
|
# CHECK-NEXT: }
|
|
|
|
# CHECK-NEXT: ]
|
|
|
|
|
|
|
|
.global bar@
|
|
|
|
bar@:
|