summaryrefslogtreecommitdiff
path: root/src/user/lib/_start2.c
diff options
context:
space:
mode:
authordzwdz2023-02-24 22:41:50 +0100
committerdzwdz2023-02-24 22:41:50 +0100
commit5faf16e48457f3ea1dda7af76f9c59b007a054f8 (patch)
tree1ca1e620b778e6d175a7e2fb77792cc0df0d258a /src/user/lib/_start2.c
parentfca80df9e638a7d68147d91cbffda95aed96ab5c (diff)
toolchain: partially set up the sysroot
Diffstat (limited to 'src/user/lib/_start2.c')
-rw-r--r--src/user/lib/_start2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/user/lib/_start2.c b/src/user/lib/_start2.c
index 954fcb4..f55feab 100644
--- a/src/user/lib/_start2.c
+++ b/src/user/lib/_start2.c
@@ -10,7 +10,7 @@
int main(int argc, char **argv, char **envp);
__attribute__((visibility("hidden")))
-extern char _image_base[];
+extern char __executable_start[];
const char *shortname(const char *path) {
if (!path) return "unknown program";
@@ -39,7 +39,7 @@ _Noreturn void _start2(struct execdata *ed) {
progname = shortname(ed->argv[0]);
setprogname(progname);
- _klogf("_start2 %s %p", progname, _image_base);
+ _klogf("_start2 %s %p", progname, __executable_start);
exit(main(ed->argc, ed->argv, ed->envp));
}