From 657585026a375d2cb2d06ab400f9deb487d89a17 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 17 Jun 2023 17:53:23 +0200 Subject: libc: expand psdata into a proper struct, include executable base this is very useful for debugging userland programs using the qemu gdb stub --- src/user/bootstrap/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/user/bootstrap') diff --git a/src/user/bootstrap/main.c b/src/user/bootstrap/main.c index c12989e..638585c 100644 --- a/src/user/bootstrap/main.c +++ b/src/user/bootstrap/main.c @@ -14,9 +14,8 @@ extern char _initrd; __attribute__((section(".text"))) int main(void) { - _sys_memflag(_libc_psdata, 1, MEMFLAG_PRESENT); + _sys_memflag(_psdata_loc, 1, MEMFLAG_PRESENT); setprogname("bootstrap"); - setproctitle(NULL); /* move everything provided by the kernel to /kdev */ MOUNT_AT("/kdev/") { fs_passthru(NULL); } -- cgit v1.2.3