[PATCH] D128573: [lld] support quoted and unquoted entry symbol

Kamlesh Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 24 21:27:05 PDT 2022


kmistryic created this revision.
kmistryic added a reviewer: MaskRay.
Herald added subscribers: StephenFan, arichardson, emaste.
Herald added a project: All.
kmistryic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Match gnu linker behavior by supporting quoted and unquoted entry symbol


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D128573

Files:
  lld/ELF/ScriptParser.cpp


Index: lld/ELF/ScriptParser.cpp
===================================================================
--- lld/ELF/ScriptParser.cpp
+++ lld/ELF/ScriptParser.cpp
@@ -351,7 +351,7 @@
   expect("(");
   StringRef tok = next();
   if (config->entry.empty())
-    config->entry = tok;
+    config->entry = unquote(tok);
   expect(")");
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128573.439950.patch
Type: text/x-patch
Size: 333 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220625/ffa72762/attachment.bin>


More information about the llvm-commits mailing list