aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/plugins/elf/arm-loader.cpp7
-rw-r--r--backends/plugins/elf/elf-loader.h8
-rw-r--r--backends/plugins/elf/mips-loader.cpp7
3 files changed, 8 insertions, 14 deletions
diff --git a/backends/plugins/elf/arm-loader.cpp b/backends/plugins/elf/arm-loader.cpp
index 6aac5b5e78..388723eafb 100644
--- a/backends/plugins/elf/arm-loader.cpp
+++ b/backends/plugins/elf/arm-loader.cpp
@@ -30,13 +30,6 @@
#include "common/debug.h"
-/**
- * Follow the instruction of a relocation section.
- *
- * @param fileOffset Offset into the File
- * @param size Size of relocation section
- * @param relSegment Base address of relocated segment in memory (memory offset)
- */
bool ARMDLObject::relocate(Elf32_Off offset, Elf32_Word size, byte *relSegment) {
Elf32_Rel *rel = 0; //relocation entry
diff --git a/backends/plugins/elf/elf-loader.h b/backends/plugins/elf/elf-loader.h
index d31f678241..ac190327f7 100644
--- a/backends/plugins/elf/elf-loader.h
+++ b/backends/plugins/elf/elf-loader.h
@@ -70,6 +70,14 @@ protected:
virtual void relocateSymbols(ptrdiff_t offset);
// architecture specific
+
+ /**
+ * Follow the instruction of a relocation section.
+ *
+ * @param fileOffset Offset into the File
+ * @param size Size of relocation section
+ * @param relSegment Base address of relocated segment in memory (memory offset)
+ */
virtual bool relocate(Elf32_Off offset, Elf32_Word size, byte *relSegment) = 0;
virtual bool relocateRels(Elf32_Ehdr *ehdr, Elf32_Shdr *shdr) = 0;
diff --git a/backends/plugins/elf/mips-loader.cpp b/backends/plugins/elf/mips-loader.cpp
index 46f2ad08b0..6ad608556e 100644
--- a/backends/plugins/elf/mips-loader.cpp
+++ b/backends/plugins/elf/mips-loader.cpp
@@ -31,13 +31,6 @@
#define DEBUG_NUM 2
-/**
- * Follow the instruction of a relocation section.
- *
- * @param fileOffset Offset into the File
- * @param size Size of relocation section
- * @param relSegment Base address of relocated segment in memory (memory offset)
- */
bool MIPSDLObject::relocate(Elf32_Off offset, Elf32_Word size, byte *relSegment) {
Elf32_Rel *rel = 0; // relocation entry