#include <stdarg.h>
#include <stdio.h>
#include <limits.h>
+#include <sys/signal.h>
#include "util.h"
#define SYS_write 64
tohost_exit(code);
}
+void abort()
+{
+ exit(128 + SIGABRT);
+}
+
void printstr(const char* s)
{
syscall(SYS_write, 1, (uintptr_t)s, strlen(s));
specifically one of the entires in bfd/cpu-mips.c */
OUTPUT_ARCH( "riscv" )
+ENTRY(_start)
/*----------------------------------------------------------------------*/
/* Sections */
-Subproject commit 3f1d04a2e8f849c306bdca7c7115462c3a60a6e0
+Subproject commit 70f5e06eef154a1eaeb65d3f034c1857771100ff