Fixed code that was not checked before on windows for me, because of testcases that are
disabled on that platform atm.
Inital commit message:
"[ELF] - Versionscript: do not treat non-wildcarded names as wildcards."
Previously we incorrectly handled cases when symbol name in extern c++ tag
was enclosed in quotes. Next case was treated as wildcard:
GLIBCXX_3.4 {
extern "C++" {
"aaa*"
}
But it should have not. Quotes around aaa here means that we should have do exact
name matching.
That is PR30268 which has name with pointer is interpreted as wildcard by lld:
extern "C++" {
"operator delete[](void*)";
Patch fixes the issue.
Differential revision: https://reviews.llvm.org/D24229
llvm-svn: 281049
23 lines
494 B
ArmAsm
23 lines
494 B
ArmAsm
# 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
|
|
# RUN: llvm-readobj -V -dyn-symbols %t.so | FileCheck %s
|
|
|
|
# CHECK: Symbol {
|
|
# CHECK: Name: _Z3aaaPf@ (1)
|
|
# CHECK: Symbol {
|
|
# CHECK: Name: _Z3aaaPi@ (10)
|
|
|
|
.text
|
|
.globl _Z3aaaPi
|
|
.type _Z3aaaPi,@function
|
|
_Z3aaaPi:
|
|
retq
|
|
|
|
.globl _Z3aaaPf
|
|
.type _Z3aaaPf,@function
|
|
_Z3aaaPf:
|
|
retq
|