aboutsummaryrefslogtreecommitdiff
path: root/backends/plugins
diff options
context:
space:
mode:
authorYotam Barnoy2010-09-16 17:37:31 +0000
committerYotam Barnoy2010-09-16 17:37:31 +0000
commit09cb9416907e621b531c29f18620db29c8f7510e (patch)
treee98e48813b2c57b5ed1a6be79d9b27b916e576eb /backends/plugins
parent251151eb1dcdf10faa19219e9d508248e71d8bfa (diff)
downloadscummvm-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
Diffstat (limited to 'backends/plugins')
-rw-r--r--backends/plugins/elf/mips-loader.cpp2
-rw-r--r--backends/plugins/elf/mips-loader.h2
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();