This enables us to reason about whether a given address can be
executable, for instance during unwinding.
Details
Details
- Reviewers
amccarth mstorsjo - Commits
- rGf1e0ae3420b6: COFF: Set section permissions
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp | ||
---|---|---|
800 ↗ | (On Diff #225403) | Are these the right permissions for the header? |
source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp | ||
---|---|---|
800 ↗ | (On Diff #225403) | I've dug around in some minidumps I have around and this does appear to be correct. It looks like the entire block of memory for the object is first allocated with PAGE_EXECUTE_WRITE_COPY, and the permissions for the header region are later changed to PAGE_READ_ONLY. |
source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp | ||
---|---|---|
800 ↗ | (On Diff #225403) | I haven't checked, but I certainly would expect it to be readonly. |
source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp | ||
---|---|---|
800 ↗ | (On Diff #225403) | I wrote the last comment before seeing the preceding update, which is why it seems odd here. |