aboutsummaryrefslogtreecommitdiff
path: root/backends/plugins/shorts-segment-manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backends/plugins/shorts-segment-manager.cpp')
-rw-r--r--backends/plugins/shorts-segment-manager.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/backends/plugins/shorts-segment-manager.cpp b/backends/plugins/shorts-segment-manager.cpp
index cce93e7f86..eb2ab2d953 100644
--- a/backends/plugins/shorts-segment-manager.cpp
+++ b/backends/plugins/shorts-segment-manager.cpp
@@ -25,9 +25,20 @@
#if defined(DYNAMIC_MODULES) //TODO: && defined (MIPS target)
-//#include "MIPS-loader.h"
#include "shorts-segment-manager.h"
+extern char __plugin_hole_start; // Indicates start of hole in program file for shorts
+extern char __plugin_hole_end; // Indicates end of hole in program file
+extern char _gp[]; // Value of gp register
+
+#ifdef DEBUG_PLUGINS
+#define DBG(x,...) printf(x, ## __VA_ARGS__)
+#else
+#define DBG(x,...)
+#endif
+
+#define seterror(x,...) printf(x, ## __VA_ARGS__)
+
DECLARE_SINGLETON(ShortSegmentManager); // For singleton
ShortSegmentManager::ShortSegmentManager() {