2016-09-09 22:35:36 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
|
|
# RUN: echo "FOO { global: extern \"C++\" { \"aaa*\"; }; };" > %t.script
|
|
|
|
# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj --dyn-syms %t.so | FileCheck %s --check-prefix=NOMATCH
|
2016-09-09 22:35:36 +08:00
|
|
|
|
2017-03-02 19:03:58 +08:00
|
|
|
# NOMATCH: DynamicSymbols [
|
|
|
|
# NOMATCH-NOT: _Z3aaaPf@@FOO
|
|
|
|
# NOMATCH-NOT: _Z3aaaPi@@FOO
|
|
|
|
# NOMATCH: ]
|
|
|
|
|
|
|
|
# RUN: echo "FOO { global: extern \"C++\" { \"aaa*\"; aaa*; }; };" > %t2.script
|
|
|
|
# RUN: ld.lld --version-script %t2.script -shared %t.o -o %t2.so
|
2019-05-01 13:49:01 +08:00
|
|
|
# RUN: llvm-readobj --dyn-syms %t2.so | FileCheck %s --check-prefix=MATCH
|
2017-03-02 19:03:58 +08:00
|
|
|
# MATCH: DynamicSymbols [
|
|
|
|
# MATCH: _Z3aaaPf@@FOO
|
|
|
|
# MATCH: _Z3aaaPi@@FOO
|
|
|
|
# MATCH: ]
|
2016-09-09 22:35:36 +08:00
|
|
|
|
|
|
|
.text
|
|
|
|
.globl _Z3aaaPi
|
|
|
|
.type _Z3aaaPi,@function
|
|
|
|
_Z3aaaPi:
|
|
|
|
retq
|
|
|
|
|
|
|
|
.globl _Z3aaaPf
|
|
|
|
.type _Z3aaaPf,@function
|
|
|
|
_Z3aaaPf:
|
|
|
|
retq
|