Curle
b3e3f153b5
This was a doozy. I had to recompile gcc with a custom target to get it to output the CRT{BEGIN/END}.o files with proper 64 bit relocations. The CMakeLists.txt file was also edited to allow these files to be linked (thereby actually adding the support) as well as to automatically create the boot image upon build.
11 lines
136 B
C
11 lines
136 B
C
|
|
extern void Exit(int code);
|
|
extern int Main();
|
|
|
|
extern void _init();
|
|
|
|
void _start() {
|
|
_init();
|
|
int ex = Main();
|
|
Exit(ex);
|
|
} |