diff options
author | dzwdz | 2023-06-17 17:53:23 +0200 |
---|---|---|
committer | dzwdz | 2023-06-17 17:53:23 +0200 |
commit | 657585026a375d2cb2d06ab400f9deb487d89a17 (patch) | |
tree | f777a03d136405128d1ea5b947101d863f3e81de /src/user/bootstrap | |
parent | 84fa0102c6906252999967925f32098ab6d5a259 (diff) |
libc: expand psdata into a proper struct, include executable base
this is very useful for debugging userland programs using the qemu gdb stub
Diffstat (limited to 'src/user/bootstrap')
-rw-r--r-- | src/user/bootstrap/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); } |