summaryrefslogtreecommitdiff
path: root/src/core/loader/elf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/loader/elf.cpp')
-rw-r--r--src/core/loader/elf.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/loader/elf.cpp b/src/core/loader/elf.cpp
index e7e5df408..773eaf771 100644
--- a/src/core/loader/elf.cpp
+++ b/src/core/loader/elf.cpp
@@ -212,7 +212,7 @@ public:
212 return GetPtr(segments[segment].p_offset); 212 return GetPtr(segments[segment].p_offset);
213 } 213 }
214 u32 GetSectionAddr(SectionID section) const { return sectionAddrs[section]; } 214 u32 GetSectionAddr(SectionID section) const { return sectionAddrs[section]; }
215 int GetSectionSize(SectionID section) const { return sections[section].sh_size; } 215 unsigned int GetSectionSize(SectionID section) const { return sections[section].sh_size; }
216 SectionID GetSectionByName(const char *name, int firstSection = 0) const; //-1 for not found 216 SectionID GetSectionByName(const char *name, int firstSection = 0) const; //-1 for not found
217 217
218 bool DidRelocate() const { 218 bool DidRelocate() const {
@@ -298,7 +298,7 @@ bool ElfReader::LoadSymbols() {
298 298
299 //We have a symbol table! 299 //We have a symbol table!
300 Elf32_Sym* symtab = (Elf32_Sym *)(GetSectionDataPtr(sec)); 300 Elf32_Sym* symtab = (Elf32_Sym *)(GetSectionDataPtr(sec));
301 int numSymbols = sections[sec].sh_size / sizeof(Elf32_Sym); 301 unsigned int numSymbols = sections[sec].sh_size / sizeof(Elf32_Sym);
302 for (unsigned sym = 0; sym < numSymbols; sym++) { 302 for (unsigned sym = 0; sym < numSymbols; sym++) {
303 int size = symtab[sym].st_size; 303 int size = symtab[sym].st_size;
304 if (size == 0) 304 if (size == 0)