diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp
index 354335014d53aa4e58b58cb8bd7840145e2321f6..3ca60c072f9736165112dbf85f212e1aa1830153 100644
--- a/src/core/loader/elf.cpp
+++ b/src/core/loader/elf.cpp
@@ -222,7 +222,7 @@ public:
     int GetSectionSize(SectionID section) const { return sections[section].sh_size; }
     SectionID GetSectionByName(const char *name, int firstSection = 0) const; //-1 for not found
 
-    bool DidRelocate() {
+    bool DidRelocate() const {
         return relocate;
     }
 };