changeset 95:a23e6e011264

closer to passing link with abort, exit and __assert_func stubbed out
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 21 Jul 2018 01:12:48 +0000
parents e5cbc745543b
children 85a26478b7de
files components/libsys_fl src/libsys/exitstub.S
diffstat 2 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- /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	.