Support Hello World

This commit is contained in:
2022-08-31 10:55:25 +02:00
parent 1ef435eeb1
commit bb37343ba7
4 changed files with 17 additions and 13 deletions

View File

@@ -26,8 +26,8 @@ SOFTWARE.
OUTPUT_FORMAT("binary")
EXTERN(_start)
ENTRY(_start)
EXTERN(_ZN10JabyEngine5startEv)
ENTRY(_ZN10JabyEngine5startEv)
TLOAD_ADDR = DEFINED(TLOAD_ADDR) ? TLOAD_ADDR : 0x80010000;
@@ -97,7 +97,7 @@ SECTIONS {
LONG(0); LONG(0);
/* 0x0010 - 0x0013 : entry point */
LONG(ABSOLUTE(_start));
LONG(ABSOLUTE(_ZN10JabyEngine5startEv));
/* 0x0014 - 0x0017 : initial value of $gp */
LONG(0);