summaryrefslogtreecommitdiff
path: root/ld_script.txt
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2017-12-15 09:38:53 -0500
committerPikalaxALT <pikalaxalt@gmail.com>2017-12-15 09:39:34 -0500
commitf95a4a932476be2ba99e2fd081e8d2bc6ea12813 (patch)
tree75f67192cb2d7b7b575c94edda318e475239b63c /ld_script.txt
parentf60aca96985e68c7d8a52eb7bc955fb80e132f73 (diff)
Import newlib and create makefile
Diffstat (limited to 'ld_script.txt')
-rw-r--r--ld_script.txt90
1 files changed, 89 insertions, 1 deletions
diff --git a/ld_script.txt b/ld_script.txt
index 0df0dd3..c5cdad9 100644
--- a/ld_script.txt
+++ b/ld_script.txt
@@ -14,6 +14,7 @@ SECTIONS {
tools/agbcc/lib/libgcc.a:fp-bit.o(.bss);
. = ALIGN(4);
tools/agbcc/lib/libgcc.a:dp-bit.o(.bss);
+ . = ALIGN(8);
<EWRAM2>
. = 0x40000;
}
@@ -74,7 +75,86 @@ SECTIONS {
tools/agbcc/lib/libgcc.a:dp-bit.o(.text);
tools/agbcc/lib/libgcc.a:_lshrdi3.o(.text);
tools/agbcc/lib/libgcc.a:_negdi2.o(.text);
- asm/libc.o(.text);
+ /*
+ newlib/libc.a:memcpy.o(.text);
+ newlib/libc.a:memset.o(.text);
+ newlib/libc.a:sprintf.o(.text);
+ newlib/libc.a:strcat.o(.text);
+ newlib/libc.a:strcmp.o(.text);
+ newlib/libc.a:strcpy.o(.text);
+ newlib/libc.a:strlen.o(.text);
+ newlib/libc.a:strncpy.o(.text);
+ newlib/libc.a:vfprintf.o(.text);
+ newlib/libc.a:vsprintf.o(.text);
+ newlib/libc.a:wsetup.o(.text);
+ newlib/libc.a:dtoa.o(.text);
+ newlib/libc.a:fflush.o(.text);
+ newlib/libc.a:findfp.o(.text);
+ newlib/libc.a:mallocr_FREE.o(.text);
+ newlib/libc.a:fvwrite.o(.text);
+ newlib/libc.a:fwalk.o(.text);
+ newlib/libc.a:locale.o(.text);
+ newlib/libc.a:makebuf.o(.text);
+ newlib/libc.a:mallocr_MALLOC.o(.text);
+ newlib/libc.a:mbtowc_r.o(.text);
+ newlib/libc.a:memchr.o(.text);
+ newlib/libc.a:memmove.o(.text);
+ newlib/libc.a:mlock.o(.text);
+ newlib/libc.a:mprec.o(.text);
+ newlib/libm.a:s_isinf.o(.text);
+ newlib/libm.a:s_isnan.o(.text);
+ newlib/libc.a:sbrkr.o(.text);
+ newlib/libc.a:stdio.o(.text);
+ newlib/libc.a:syscalls.o(.text);
+ newlib/libc.a:writer.o(.text);
+ newlib/libc.a:mallocr_CALLOC.o(.text);
+ newlib/libc.a:closer.o(.text);
+ newlib/libc.a:errno.o(.text);
+ newlib/libc.a:fstatr.o(.text);
+ newlib/libc.a:abort.o(.text);
+ newlib/libc.a:libcfunc.o(.text);
+ newlib/libc.a:lseekr.o(.text);
+ newlib/libc.a:readr.o(.text);
+ */
+ asm/libc.o(.text.memcpy);
+ asm/libc.o(.text.memset);
+ asm/libc.o(.text.sprintf);
+ asm/libc.o(.text.strcat);
+ asm/libc.o(.text.strcmp);
+ asm/libc.o(.text.strcpy);
+ asm/libc.o(.text.strlen);
+ asm/libc.o(.text.strncpy);
+ asm/libc.o(.text.vfprintf);
+ asm/libc.o(.text.vsprintf);
+ asm/libc.o(.text.wsetup);
+ asm/libc.o(.text.dtoa);
+ asm/libc.o(.text.fflush);
+ asm/libc.o(.text.findfp);
+ asm/libc.o(.text.mallocr_FREE);
+ asm/libc.o(.text.fvwrite);
+ asm/libc.o(.text.fwalk);
+ asm/libc.o(.text.locale);
+ asm/libc.o(.text.makebuf);
+ asm/libc.o(.text.mallocr_MALLOC);
+ asm/libc.o(.text.mbtowc_r);
+ asm/libc.o(.text.memchr);
+ asm/libc.o(.text.memmove);
+ asm/libc.o(.text.mlock);
+ asm/libc.o(.text.mprec);
+ asm/libc.o(.text.s_isinf);
+ asm/libc.o(.text.s_isnan);
+ asm/libc.o(.text.sbrkr);
+ asm/libc.o(.text.stdio);
+ asm/libc.o(.text.syscalls);
+ asm/libc.o(.text.writer);
+ asm/libc.o(.text.mallocr_CALLOC);
+ asm/libc.o(.text.closer);
+ asm/libc.o(.text.errno);
+ asm/libc.o(.text.fstatr);
+ asm/libc.o(.text.abort);
+ asm/libc.o(.text.libcfunc);
+ asm/libc.o(.text.lseekr);
+ asm/libc.o(.text.readr);
tools/agbcc/lib/libgcc.a:_udivsi3.o(.text);
} =0
@@ -88,6 +168,14 @@ SECTIONS {
src/agb_flash_1m.o(.rodata);
src/agb_flash_mx.o(.rodata);
src/agb_flash_le.o(.rodata);
+ /*
+ newlib/libc.a:sprintf.o(.rodata);
+ newlib/libc.a:vfprintf.o(.rodata);
+ newlib/libc.a:dtoa.o(.rodata);
+ newlib/libc.a:locale.o(.rodata);
+ newlib/libc.a:mprec.o(.rodata);
+ newlib/libc.a:syscalls.o(.rodata);
+ */
data/libc_data.o(.rodata);
data/data_8270000.o(.rodata);
} =0