diff --git a/Source/Tools/FEXLoader/ELFCodeLoader.h b/Source/Tools/FEXLoader/ELFCodeLoader.h index 1fe6feb5db..8e24f75b83 100644 --- a/Source/Tools/FEXLoader/ELFCodeLoader.h +++ b/Source/Tools/FEXLoader/ELFCodeLoader.h @@ -358,7 +358,7 @@ class ELFCodeLoader final : public FEX::CodeLoader { }; 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;