svn commit: r328143 - head/contrib/llvm/tools/lld/ELF

Ed Maste emaste at FreeBSD.org
Thu Jan 18 21:39:20 UTC 2018


Author: emaste
Date: Thu Jan 18 21:39:19 2018
New Revision: 328143
URL: https://svnweb.freebsd.org/changeset/base/328143

Log:
  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

Modified:
  head/contrib/llvm/tools/lld/ELF/ScriptParser.cpp

Modified: head/contrib/llvm/tools/lld/ELF/ScriptParser.cpp
==============================================================================
--- head/contrib/llvm/tools/lld/ELF/ScriptParser.cpp	Thu Jan 18 21:39:03 2018	(r328142)
+++ head/contrib/llvm/tools/lld/ELF/ScriptParser.cpp	Thu Jan 18 21:39:19 2018	(r328143)
@@ -930,7 +930,10 @@ ByteCommand *ScriptParser::readByteCommand(StringRef T
 
 StringRef ScriptParser::readParenLiteral() {
   expect("(");
+  bool Orig = InExpr;
+  InExpr = false;
   StringRef Tok = next();
+  InExpr = Orig;
   expect(")");
   return Tok;
 }


More information about the svn-src-head mailing list