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:
parent
4e530debd2
commit
58f3e81f00
18 changed files with 389 additions and 985 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue