This patch implements parsing of the GNU ld EXTERN command [1].
Evaluation will be added at a later point in time.
[1] https://sourceware.org/binutils/docs-2.25/ld/Miscellaneous-Commands.html#Miscellaneous-Commands
Paths
| Differential D8271
LinkerScript: Add parsing of the EXTERN command ClosedPublic Authored by meadori on Mar 11 2015, 3:12 PM.
Details Summary This patch implements parsing of the GNU ld EXTERN command [1]. [1] https://sourceware.org/binutils/docs-2.25/ld/Miscellaneous-Commands.html#Miscellaneous-Commands
Diff Detail Event Timelinemeadori updated this object. Comment Actions I see no problems with the patch as-is, but I'm more and more concerned about the direction LinkerScript is taking. Comment Actions
I did exactly that for this series. See D8272. I did *not* do it with the MEMORY command because I believe that will take quite a bit of infrastructure to implement, but I plan to do it. For cases like MEMORY (where the eval piece is much more complicated) I think it is better to get the parsing bit out. For cases like EXTERN I think both sides should be submitted at the same time. I plan to always split the parse and eval portions into separate patches. Comment Actions Seems fine to me, but I would be happier if somebody else can take a look as well (also the semantic action). This revision is now accepted and ready to land.Mar 11 2015, 5:02 PM
Revision Contents
Diff 21777 include/lld/ReaderWriter/LinkerScript.h
lib/ReaderWriter/LinkerScript.cpp
test/LinkerScript/extern-bad-symbol.test
test/LinkerScript/extern-empty.test
test/LinkerScript/extern-valid.test
|