We want to convince the NT loader not to map these sections into memory.
A good first step is to move them to the end of the executable.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
COFF/Writer.cpp | ||
---|---|---|
405 ↗ | (On Diff #31049) | I'd check for S->getPermissions() & DISCARDABLE. |
Comment Actions
LGTM with a nit.
COFF/Writer.cpp | ||
---|---|---|
401 ↗ | (On Diff #31067) | Please add a comment saying that the code is to move DISCARDABLE (or non-memory-mapped) sections to the end of file because the loader cannnot handle holes. |