[PATCH] D23598: [ELF] Linkerscript: support assignment outside SECTIONS
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 17 12:34:30 PDT 2016
ruiu added inline comments.
================
Comment at: ELF/LinkerScript.cpp:641-643
@@ -640,3 +640,5 @@
(this->*Fn)();
- else
- setError("unknown directive: " + Tok);
+ } else {
+ SymbolAssignment *Cmd = readProvideOrAssignment(Tok, false);
+ if (Cmd)
+ Opt.Commands.emplace_back(Cmd);
----------------
} else if (SymbolAssignment *Cmd = readProvideOrAssignment(Tok, false)) {
https://reviews.llvm.org/D23598
More information about the llvm-commits
mailing list