2018-07-05 21:39:39 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
|
|
# RUN: echo "FOO { global: extern \"C++\" { \"abb(int)\"; }; };" > %t.script
|
|
|
|
# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
|
|
|
|
# RUN: llvm-readobj -V %t.so | FileCheck %s
|
|
|
|
|
2019-10-17 18:23:59 +08:00
|
|
|
# CHECK: VersionSymbols [
|
2018-07-05 21:39:39 +08:00
|
|
|
# CHECK-NEXT: Symbol {
|
|
|
|
# CHECK-NEXT: Version: 0
|
2019-01-08 18:50:59 +08:00
|
|
|
# CHECK-NEXT: Name:
|
2018-07-05 21:39:39 +08:00
|
|
|
# CHECK-NEXT: }
|
|
|
|
# CHECK-NEXT: Symbol {
|
|
|
|
# CHECK-NEXT: Version: 1
|
2019-01-08 18:50:59 +08:00
|
|
|
# CHECK-NEXT: Name: _Z3abbi
|
2018-07-05 21:39:39 +08:00
|
|
|
# CHECK-NEXT: }
|
|
|
|
# CHECK-NEXT: ]
|
|
|
|
|
|
|
|
.globl _Z3abbi
|