summaryrefslogtreecommitdiff
path: root/src/user/lib/_start2.c
diff options
context:
space:
mode:
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));
}