modern: add missing sections to linkerscript

In order to correctly link a program which uses libc functions
a few sections are required to satisfy the linker.

This currently adds 0x3C bytes to IWRAM.
This commit is contained in:
Michael Panzlaff 2021-04-17 22:46:15 +02:00
parent 0767f4b9ce
commit 7a480adafe
1 changed files with 5 additions and 1 deletions

View File

@ -27,6 +27,8 @@ SECTIONS {
/* .bss starts at 0x3000000 */
src/*.o(.bss);
gflib/*.o(.bss);
*libc.a:*.o(.bss);
*libnosys.a:*.o(.bss);
/* .bss.code starts at 0x3001AA8 */
src/m4a.o(.bss.code);
@ -34,7 +36,8 @@ SECTIONS {
/* COMMON starts at 0x30022A8 */
src/*.o(COMMON);
gflib/*.o(COMMON);
*libc.a:sbrkr.o(COMMON);
*libc.a:*.o(COMMON);
*libnosys.a:*.o(COMMON);
end = .;
. = 0x8000;
}
@ -82,6 +85,7 @@ SECTIONS {
*libagbsyscall.a:*.o(.text*);
*libgcc.a:*.o(.text*);
*libc.a:*.o(.text*);
*libnosys.a:*.o(.text*);
src/libisagbprn.o(.text);
} =0