diff --git a/build/core.mk b/build/core.mk index 9e16157..50f5b6d 100644 --- a/build/core.mk +++ b/build/core.mk @@ -1,7 +1,7 @@ -# Common GNU Make rules for building the project +# Common GNU Make rules for building targets (reducing boilerplate) # This makefile is expected to be included after the variables given -# have been defined: +# *have* been defined: # # NAME=name # diff --git a/rom/link.ld b/rom/link.ld index b75c158..4962398 100644 --- a/rom/link.ld +++ b/rom/link.ld @@ -1,10 +1,8 @@ _stack_size = 0x80000; _heap_size = 1024*1024*10; - ENTRY(_start); SECTIONS { -/* 0xbfc00000 */ .text 0xbfc00000 : { _text_origin = .; *start.o /* Always link reset first */ @@ -30,12 +28,15 @@ SECTIONS { _data_size = . - _data_origin; _gp = ALIGN(128) + 0x7ff0; + .lit4 ALIGN(128) : { *(.lit4) } + .lit8 ALIGN(128) : { *(.lit8) } + .sdata ALIGN(128) : { *(.sdata) }