From 09cb9416907e621b531c29f18620db29c8f7510e Mon Sep 17 00:00:00 2001 From: Yotam Barnoy Date: Thu, 16 Sep 2010 17:37:31 +0000 Subject: PLUGINS: Fix function arguments in MIPS loader Derived virtual function wasn't overwriting base function. svn-id: r52749 --- backends/plugins/elf/mips-loader.cpp | 2 +- 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(); -- cgit v1.2.3