Patch removes templated linkerscript class.
Unfortunately that required 2 additional static methods
findSymbol() and addRegularSymbol() because code
depends on Symtab<ELFT>::X
But that seems enough. I wonder if it is possible to avoid though.
Paths
| Differential D30982
[ELF] - Combine LinkerScriptBase and LinkerScript<ELFT> ClosedPublic Authored by grimar on Mar 15 2017, 7:24 AM.
Details Summary Patch removes templated linkerscript class. Unfortunately that required 2 additional static methods But that seems enough. I wonder if it is possible to avoid though.
Diff Detail Event Timelinegrimar retitled this revision from [ELF] - REmove virtual methods from linker script class. to [ELF] - Remove virtual methods from linker script class.. grimar retitled this revision from [ELF] - Remove virtual methods from linker script class. to [ELF] - Combine LinkerScriptBase and LinkerScript<ELFT>. Comment Actions
This revision is now accepted and ready to land.Mar 17 2017, 12:30 PM Closed by commit rL298241: [ELF] - Combine LinkerScriptBase and LinkerScript<ELFT> (authored by grimar). · Explain WhyMar 20 2017, 3:22 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 91870 ELF/InputSection.cpp
ELF/LinkerScript.h
ELF/LinkerScript.cpp
ELF/MapFile.cpp
ELF/Relocations.cpp
ELF/Symbols.h
ELF/Symbols.cpp
ELF/SyntheticSections.h
ELF/SyntheticSections.cpp
ELF/Target.cpp
ELF/Thunks.cpp
ELF/Writer.cpp
|
Also LinkerScriptBase should probably be renamed to LinkerScript, but I did not do that now to reduce amount of changes.