Details
Diff Detail
Event Timeline
r286100 was reverted, so I rebased this patch. Changes are:
- added new input section type (Synthetic) and class SyntheticSection
- added checks for Synthetic section type in InputSection<ELFT>::writeTo() and InputSection<ELFT>::getSize()
Overall looking good.
ELF/InputSection.cpp | ||
---|---|---|
86 ↗ | (On Diff #77198) | Remove else because the last if ends with return. |
ELF/InputSection.h | ||
49 ↗ | (On Diff #77198) | nit: add ',' at end of the last enum. |
ELF/OutputSections.h | ||
599 | You are not using InSecAddr. What is this? | |
ELF/SyntheticSections.h | ||
27 | If all derived classes define this method, use = 0 instead of providing the default empty function. | |
ELF/Writer.cpp | ||
824 | I want to avoid calling assignOffsets more than once to redo it. It is not only inefficient but also confusing. Could you add this section earlier than this to avoid this function call? |
LGTM with my previous comments addressed.
ELF/Writer.cpp | ||
---|---|---|
824 | OK. Please add this as a comment. |
You are not using InSecAddr. What is this?