summaryrefslogtreecommitdiff
path: root/src/user/app/tests/tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app/tests/tests.c')
-rw-r--r--src/user/app/tests/tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/app/tests/tests.c b/src/user/app/tests/tests.c
index 2cb97cd..5cba682 100644
--- a/src/user/app/tests/tests.c
+++ b/src/user/app/tests/tests.c
@@ -3,7 +3,7 @@
#include <unistd.h>
__attribute__((visibility("hidden")))
-extern char _image_base[];
+extern char __executable_start[];
FILE *fail_trig;
@@ -15,7 +15,7 @@ void run_test(void (*fn)()) {
} else {
/* successful tests must return 0 */
if (_sys_await() != 0) {
- test_failf("%p, base %p", (void*)((void*)fn - (void*)_image_base), _image_base);
+ test_failf("%p, base %p", (void*)((void*)fn - (void*)__executable_start), __executable_start);
}
}
}