From 3f6431c9c00a21a55fd7aca1ec5e8b8f652650e1 Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Thu, 29 May 2025 11:50:32 +0200 Subject: [PATCH] remove unneeded thigns from ld script modern --- ld_script_modern.ld | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/ld_script_modern.ld b/ld_script_modern.ld index 4cba17eae..9a73a4f69 100644 --- a/ld_script_modern.ld +++ b/ld_script_modern.ld @@ -21,13 +21,10 @@ SECTIONS { data/sound_data.o(.bss); INCLUDE "sym_ewram.ld" src/agb_flash.o(.bss); - *libgcc.a:fp-bit.o(.bss); - *libgcc.a:dp-bit.o(.bss); - *libc.a:syscalls.o(.bss); + . = ALIGN(16); src/m4a.o(ewram_lib); src/agb_flash.o(ewram_lib); - *libc.a:sbrkr.o(COMMON); ewram_end = .; } > EWRAM @@ -71,12 +68,8 @@ SECTIONS { ewram_init_start = .; INCLUDE "sym_ewram_init.ld" - *libc.a:impure.o(.data); - *libc.a:locale.o(.data); - *libc.a:mallocr.o(.data); ewram_init_end = .; - . = 0x2724; /* This doesn't really do anything other than setting following 0x2724 bytes to 0 in rom */ } > EWRAM AT>ROM EWRAM_INIT_ROM_START = LOADADDR(ewram_init);