Date: Thu, 18 Jan 2018 21:39:19 +0000 (UTC) From: Ed Maste <emaste@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r328143 - head/contrib/llvm/tools/lld/ELF Message-ID: <201801182139.w0ILdJFG010826@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801182139.w0ILdJFG010826>