ABSOLUTE keyword is supported only in symbol assignment expression, i.e
a = ABSOLUTE(.);
In reality it's more complex than that, but full support requires rewriting significant part of script parser.
Paths
| Differential D24135
[ELF] Linkerscript: support ABSOLUTE keyword in symbol assignment expression ClosedPublic Authored by evgeny777 on Sep 1 2016, 8:10 AM.
Details Summary ABSOLUTE keyword is supported only in symbol assignment expression, i.e a = ABSOLUTE(.); In reality it's more complex than that, but full support requires rewriting significant part of script parser.
Diff Detail
Event Timeline
Comment Actions Diff updated. Symbols defined in empty regular output sections do not work correctly in current version (you get symbol with invalid section index) ruiu edited edge metadata. Comment ActionsLGTM with a few nits.
This revision is now accepted and ready to land.Sep 6 2016, 5:47 PM Closed by commit rL280788: Support ABSOLUE keyword in symbol assignments (authored by evgeny777). · Explain WhySep 7 2016, 12:17 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 70505 lld/trunk/ELF/LinkerScript.h
lld/trunk/ELF/LinkerScript.cpp
lld/trunk/test/ELF/linkerscript/symbols-synthetic.s
|