rp2: Modify linker script to run MP3 decoder from RAM

This commit is contained in:
2025-03-04 22:57:09 +01:00
committed by Stefan Kratochwil
parent f498a16c7d
commit 074dd7ac06

View File

@@ -69,7 +69,7 @@ SECTIONS
* FLASH ... we will include any thing excluded here in .data below by default */ * FLASH ... we will include any thing excluded here in .data below by default */
*(.init) *(.init)
/* Change for MicroPython... exclude gc.c, parse.c, vm.c from flash */ /* Change for MicroPython... exclude gc.c, parse.c, vm.c from flash */
*(EXCLUDE_FILE(*libgcc.a: *libc.a: *lib_a-mem*.o *libm.a: *gc.c.obj *vm.c.obj *parse.c.obj) .text*) *(EXCLUDE_FILE(*libgcc.a: *libc.a: *lib_a-mem*.o *libm.a: *gc.c.obj *vm.c.obj *parse.c.obj *libhelix_mp3.a:) .text*)
*(.fini) *(.fini)
/* Pull all c'tors into .text */ /* Pull all c'tors into .text */
*crtbegin.o(.ctors) *crtbegin.o(.ctors)
@@ -89,7 +89,7 @@ SECTIONS
} > FLASH } > FLASH
.rodata : { .rodata : {
*(EXCLUDE_FILE(*libgcc.a: *libc.a:*lib_a-mem*.o *libm.a:) .rodata*) *(EXCLUDE_FILE(*libgcc.a: *libc.a:*lib_a-mem*.o *libm.a: *libhelix_mp3.a:) .rodata*)
. = ALIGN(4); . = ALIGN(4);
*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.flashdata*))) *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.flashdata*)))
. = ALIGN(4); . = ALIGN(4);