aboutsummaryrefslogtreecommitdiff
path: root/backends/plugins/elf-loader.cpp
diff options
context:
space:
mode:
authorTony Puccinelli2010-07-28 00:08:32 +0000
committerTony Puccinelli2010-07-28 00:08:32 +0000
commite8fc5f207093e8a0518dca5d815233e912945e2d (patch)
tree629bc92fa3cb6fcd8ee8853d6dffe08eb5b84a46 /backends/plugins/elf-loader.cpp
parent58f3e81f0073f55a892802b562081300345ca23d (diff)
downloadscummvm-rg350-e8fc5f207093e8a0518dca5d815233e912945e2d.tar.gz
scummvm-rg350-e8fc5f207093e8a0518dca5d815233e912945e2d.tar.bz2
scummvm-rg350-e8fc5f207093e8a0518dca5d815233e912945e2d.zip
various manual tweaks to get ds port compiling from branch again after earlier merge from trunk
svn-id: r51398
Diffstat (limited to 'backends/plugins/elf-loader.cpp')
-rw-r--r--backends/plugins/elf-loader.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/backends/plugins/elf-loader.cpp b/backends/plugins/elf-loader.cpp
index eae8bebcc7..afb69714fa 100644
--- a/backends/plugins/elf-loader.cpp
+++ b/backends/plugins/elf-loader.cpp
@@ -37,6 +37,10 @@
#include "common/fs.h"
#include "elf-loader.h"
+#ifdef __DS__
+#include <nds.h>
+#endif
+
#define __DEBUG_PLUGINS__
#ifdef __DEBUG_PLUGINS__
@@ -48,7 +52,7 @@
#define seterror(x,...) printf(x, ## __VA_ARGS__)
/**
- * Flushes the data cache.
+ * Flushes the data cache (Platform Specific).
*/
void flushDataCache() {
#ifdef __DS__
@@ -304,7 +308,7 @@ void DLObject::relocateSymbols(Elf32_Addr offset) {
#else
// Make sure we don't relocate special valued symbols
if (s->st_shndx < SHN_LOPROC) {
- relocCount++;
+ mainCount++;
s->st_value += offset;
if (s->st_value < (Elf32_Addr)_segment || s->st_value > (Elf32_Addr)_segment + _segmentSize)
seterror("Symbol out of bounds! st_value = %x\n", s->st_value);