FEXLoader/ELFCodeLoader: Use const ref auto to avoid copy

This commit is contained in:
Ryan Houdek 2024-09-08 19:52:29 -07:00
parent fbe817f1c4
commit 8cf23eba9c
No known key found for this signature in database

View File

@ -358,7 +358,7 @@ public:
};
bool MapMemory(FEX::HLE::SyscallHandler* const Handler) {
for (auto Header : MainElf.phdrs) {
for (const auto& Header : MainElf.phdrs) {
if (Header.p_type == PT_GNU_STACK) {
if (Header.p_flags & PF_X) {
ExecutableStack = true;