Page MenuHomePhabricator

[AArch64] Set execute-only flags in .text.
AbandonedPublic

Authored by ivanlozano on Jun 29 2018, 3:02 PM.

Details

Summary

The initial .text section generated in object files was missing the SHF_ARM_PURECODE flag when being built with the -mexecute-only flag. All code sections of an ELF must have the flag set for the final .text section to be execute-only, otherwise the flag gets removed.

Diff Detail