SIZEOF_HEADERS - Return the size in bytes of the output file’s headers.
It is is a feature used in FreeBsd script, for example.
There is a discussion on PR28688 page about it.
Paths
| Differential D23165
[ELF] - Linkerscript: implement SIZEOF_HEADERS. ClosedPublic Authored by grimar on Aug 4 2016, 8:29 AM.
Details Summary SIZEOF_HEADERS - Return the size in bytes of the output file’s headers. It is is a feature used in FreeBsd script, for example.
Diff Detail Event Timelinegrimar updated this object. grimar retitled this revision from [ELF, Drawt] - Linkerscript: implement SIZEOF_HEADERS to [ELF, Draft] - Linkerscript: implement SIZEOF_HEADERS .Aug 4 2016, 8:29 AM grimar retitled this revision from [ELF, Draft] - Linkerscript: implement SIZEOF_HEADERS to [ELF] - Linkerscript: implement SIZEOF_HEADERS.. grimar updated this object. Comment Actions
ruiu edited edge metadata. Comment ActionsLGTM
This revision is now accepted and ready to land.Aug 9 2016, 10:49 AM
Closed by commit rL278204: [ELF] - Linkerscript: implement SIZEOF_HEADERS. (authored by grimar). · Explain WhyAug 10 2016, 1:07 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 66917 ELF/LinkerScript.h
ELF/LinkerScript.cpp
test/ELF/linkerscript/linkerscript-sizeofheaders.s
|
This technique is getting ugly as we have more and more functions to interact with the template class. At some point we probably should use a different technique. But for now it is fine (and probably still preferable.)