diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-09-07 10:19:44 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-09-07 10:19:44 +0000 |
commit | 51da9c717861d5e5d58133723db5817c5ccbff88 (patch) | |
tree | 5eb2824646b689fbc9cd295bbad4979a1025d781 /lld/ELF/ScriptParser.cpp | |
parent | 1ed49fd384c82354856be64385b4197a8474710b (diff) | |
download | bcm5719-llvm-51da9c717861d5e5d58133723db5817c5ccbff88.tar.gz bcm5719-llvm-51da9c717861d5e5d58133723db5817c5ccbff88.zip |
[ELF] - Fix for: PR29093 - version script does not support [chars] wildcards
GNU ld supports [chars] wildcards in version scripts, to match a single instance of any of the chars.
Here is an extern example from libstdc++'s version script in FreeBSD:
extern "C++"
{
...
std::locale::_[T-Za-z]*;
std::[A-Zm]*;
std::n[^u]*;
std::nu[^m]*;
std::num[^e]*;
...
}
Patch adds support for scripts above. This is PR29093.
Differential revision: https://reviews.llvm.org/D23803
llvm-svn: 280799
Diffstat (limited to 'lld/ELF/ScriptParser.cpp')
-rw-r--r-- | lld/ELF/ScriptParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/ScriptParser.cpp b/lld/ELF/ScriptParser.cpp index 671a2726103..19e20b653bc 100644 --- a/lld/ELF/ScriptParser.cpp +++ b/lld/ELF/ScriptParser.cpp @@ -76,7 +76,7 @@ std::vector<StringRef> ScriptParserBase::tokenize(StringRef S) { // so that you can write "file-name.cpp" as one bare token, for example. size_t Pos = S.find_first_not_of( "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" - "0123456789_.$/\\~=+[]*?-:!<>"); + "0123456789_.$/\\~=+[]*?-:!<>^"); // A character that cannot start a word (which is usually a // punctuation) forms a single character token. |