REGION_ALIAS(alias, region)
Alias names can be added to existing memory regions created with
the MEMORY command. Each name corresponds to at most one
memory region.
Used in many scripts that can be found in the wild.
Patch implements it.
Paths
| Differential D37477
[ELF] - Linkerscript: implement REGION_ALIAS. ClosedPublic Authored by grimar on Sep 5 2017, 8:07 AM.
Details Summary REGION_ALIAS(alias, region) Alias names can be added to existing memory regions created with Used in many scripts that can be found in the wild.
Diff Detail Event TimelineComment Actions
Comment Actions LGTM
This revision is now accepted and ready to land.Sep 7 2017, 12:20 PM Closed by commit rL312777: [ELF] - Linkerscript: implement REGION_ALIAS. (authored by grimar). · Explain WhySep 8 2017, 1:24 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 113862 ELF/LinkerScript.h
ELF/LinkerScript.cpp
ELF/ScriptParser.cpp
test/ELF/linkerscript/region-alias.s
|
It'll eventually fail if you call setError, so don't worry too much about ErrorCount. I'd remove this if and execute the following line unconditionally.