diff options
author | Yotam Barnoy | 2010-09-16 17:37:31 +0000 |
---|---|---|
committer | Yotam Barnoy | 2010-09-16 17:37:31 +0000 |
commit | 09cb9416907e621b531c29f18620db29c8f7510e (patch) | |
tree | e98e48813b2c57b5ed1a6be79d9b27b916e576eb | |
parent | 251151eb1dcdf10faa19219e9d508248e71d8bfa (diff) | |
download | scummvm-rg350-09cb9416907e621b531c29f18620db29c8f7510e.tar.gz scummvm-rg350-09cb9416907e621b531c29f18620db29c8f7510e.tar.bz2 scummvm-rg350-09cb9416907e621b531c29f18620db29c8f7510e.zip |
PLUGINS: Fix function arguments in MIPS loader
Derived virtual function wasn't overwriting base function.
svn-id: r52749
-rw-r--r-- | backends/plugins/elf/mips-loader.cpp | 2 | ||||
-rw-r--r-- | backends/plugins/elf/mips-loader.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/backends/plugins/elf/mips-loader.cpp b/backends/plugins/elf/mips-loader.cpp index 75db067158..5317dbbe6d 100644 --- a/backends/plugins/elf/mips-loader.cpp +++ b/backends/plugins/elf/mips-loader.cpp @@ -249,7 +249,7 @@ bool MIPSDLObject::relocateRels(Elf32_Ehdr *ehdr, Elf32_Shdr *shdr) { return true; } -void MIPSDLObject::relocateSymbols(Elf32_Addr offset) { +void MIPSDLObject::relocateSymbols(ptrdiff_t offset) { // Loop over symbols, add relocation offset Elf32_Sym *s = _symtab; diff --git a/backends/plugins/elf/mips-loader.h b/backends/plugins/elf/mips-loader.h index ef6efda21f..f8f31f1e7a 100644 --- a/backends/plugins/elf/mips-loader.h +++ b/backends/plugins/elf/mips-loader.h @@ -41,7 +41,7 @@ protected: virtual bool relocate(Elf32_Off offset, Elf32_Word size, byte *relSegment); virtual bool relocateRels(Elf32_Ehdr *ehdr, Elf32_Shdr *shdr); - virtual void relocateSymbols(Elf32_Addr offset); + virtual void relocateSymbols(ptrdiff_t offset); virtual bool loadSegment(Elf32_Phdr *phdr); virtual void unload(); |