Previously, Hex.c used __abort() and warn() not exported by PAL. This led to linking errors during build.
@@ -1,8 +1,17 @@
+#include <assert.h>
+#include "pal_debug.h"
+/* workaround: warn is not exported by pal. but pal_printf is */
+#define warn pal_printf
+
#include "hex.h"
#include "api.h"
#include "pal.h"
-#include "pal_debug.h"
+noreturn void __abort(void) {
+ // ENOTRECOVERABLE = 131
+ DkProcessExit(-131);
+}
int main() {
char x[] = {0xde, 0xad, 0xbe, 0xef};