summaryrefslogtreecommitdiff
path: root/src/user/app
diff options
context:
space:
mode:
authordzwdz2023-02-24 22:41:50 +0100
committerdzwdz2023-02-24 22:41:50 +0100
commit5faf16e48457f3ea1dda7af76f9c59b007a054f8 (patch)
tree1ca1e620b778e6d175a7e2fb77792cc0df0d258a /src/user/app
parentfca80df9e638a7d68147d91cbffda95aed96ab5c (diff)
toolchain: partially set up the sysroot
Diffstat (limited to 'src/user/app')
-rw-r--r--src/user/app/netstack/netstack.c2
-rw-r--r--src/user/app/tests/tests.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/user/app/netstack/netstack.c b/src/user/app/netstack/netstack.c
index 296fee2..55b716a 100644
--- a/src/user/app/netstack/netstack.c
+++ b/src/user/app/netstack/netstack.c
@@ -26,8 +26,6 @@ void network_thread(void *arg) { (void)arg;
void fs_thread(void *arg);
-__attribute__((visibility("hidden")))
-extern char _image_base[];
int main(int argc, char **argv) {
if (argc < 4) {
eprintf("usage: netstack iface ip gateway");
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);
}
}
}