mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 08:44:33 +00:00
lld: Handle parsing AT(ADDR(.foo-bar)).
The problem we had with it is that anything inside an AT is an expression, so we failed to parse the section name because of the - in it. Requested by: royger Obtained from: LLVM r322801 by Rafael Espindola
This commit is contained in:
parent
d3f08be7dc
commit
cc877d7c33
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=328143
|
@ -930,7 +930,10 @@ ByteCommand *ScriptParser::readByteCommand(StringRef Tok) {
|
|||
|
||||
StringRef ScriptParser::readParenLiteral() {
|
||||
expect("(");
|
||||
bool Orig = InExpr;
|
||||
InExpr = false;
|
||||
StringRef Tok = next();
|
||||
InExpr = Orig;
|
||||
expect(")");
|
||||
return Tok;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue