Continued abstraction of generic ELF-loader, splitting off MIPS-processor specific things into their own files and testing on the PS2

svn-id: r51345
This commit is contained in:
Tony Puccinelli 2010-07-27 06:27:45 +00:00
parent 4e530debd2
commit 58f3e81f00
18 changed files with 389 additions and 985 deletions

View file

@ -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() {