build/rom: cleanup

This commit is contained in:
Lily Tsuru 2023-11-06 02:07:09 -05:00
parent d6810cf729
commit bdeb32b11c
2 changed files with 5 additions and 4 deletions

View File

@ -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 # This makefile is expected to be included after the variables given
# have been defined: # *have* been defined:
# #
# NAME=name # NAME=name
# #

View File

@ -1,10 +1,8 @@
_stack_size = 0x80000; _stack_size = 0x80000;
_heap_size = 1024*1024*10; _heap_size = 1024*1024*10;
ENTRY(_start); ENTRY(_start);
SECTIONS { SECTIONS {
/* 0xbfc00000 */
.text 0xbfc00000 : { .text 0xbfc00000 : {
_text_origin = .; _text_origin = .;
*start.o /* Always link reset first */ *start.o /* Always link reset first */
@ -30,12 +28,15 @@ SECTIONS {
_data_size = . - _data_origin; _data_size = . - _data_origin;
_gp = ALIGN(128) + 0x7ff0; _gp = ALIGN(128) + 0x7ff0;
.lit4 ALIGN(128) : { .lit4 ALIGN(128) : {
*(.lit4) *(.lit4)
} }
.lit8 ALIGN(128) : { .lit8 ALIGN(128) : {
*(.lit8) *(.lit8)
} }
.sdata ALIGN(128) : { .sdata ALIGN(128) : {
*(.sdata) *(.sdata)
} }