# HG changeset patch # User Mychaela Falconia # Date 1532135568 0 # Node ID a23e6e011264969e8bd5e99e4ed01d58fe0ede6e # Parent e5cbc745543bbde1cca07ede4428ed16b0ad6d51 closer to passing link with abort, exit and __assert_func stubbed out diff -r e5cbc745543b -r a23e6e011264 components/libsys_fl --- a/components/libsys_fl Sat Jul 21 01:03:53 2018 +0000 +++ b/components/libsys_fl Sat Jul 21 01:12:48 2018 +0000 @@ -1,5 +1,6 @@ # gcc-only component: libsys (selective libc replacement) for flash +ASMFLAGS=-mthumb-interwork CFLAGS_gcc="-O2 -fno-builtin -mthumb-interwork -mthumb" CPPFLAGS= @@ -11,3 +12,5 @@ c_file $SRCDIR/sprintf/integer.c c_file $SRCDIR/sprintf/sprintf.c c_file $SRCDIR/sprintf/vspcore.c + +asm_file $SRCDIR/exitstub.S diff -r e5cbc745543b -r a23e6e011264 src/libsys/exitstub.S --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/libsys/exitstub.S Sat Jul 21 01:12:48 2018 +0000 @@ -0,0 +1,15 @@ +/* + * This stub is a band-aid to allow the link to proceed further; + * to be revisited later. + */ + + .text + .code 32 + + .globl abort + .globl exit + .globl __assert_func +abort: +exit: +__assert_func: + b .