From d4c402d0acfb9733d07709b040bdecd97f249648 Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Thu, 7 Nov 2019 12:34:38 -0800 Subject: [PATCH] [Pal/regression] Hex.c: Define __abort() and warn() not exported by Pal Previously, Hex.c used __abort() and warn() not exported by PAL. This led to linking errors during build. --- Pal/regression/Hex.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Pal/regression/Hex.c b/Pal/regression/Hex.c index 70470af7..766deec8 100644 --- a/Pal/regression/Hex.c +++ b/Pal/regression/Hex.c @@ -1,8 +1,17 @@ +#include +#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};