diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-02-23 18:14:35 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-02-24 19:40:33 +0000 |
commit | b020355f382b658b3b99e8e3575dd16f8757a148 (patch) | |
tree | 9435aa6b06a74840431fe30fa3a60e30f3cdcf52 /sysdeps/mach/hurd/dl-sysdep.c | |
parent | 48b8c7cfe863977493e11409781b978f7c0014b7 (diff) | |
download | glibc-b020355f382b658b3b99e8e3575dd16f8757a148.tar.gz glibc-b020355f382b658b3b99e8e3575dd16f8757a148.tar.xz glibc-b020355f382b658b3b99e8e3575dd16f8757a148.zip |
hurd: Simplify init-first.c further
This drops all of the return address rewriting kludges. The only remaining hack is the jump out of a call stack while adjusting the stack pointer. Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Diffstat (limited to 'sysdeps/mach/hurd/dl-sysdep.c')
-rw-r--r-- | sysdeps/mach/hurd/dl-sysdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/mach/hurd/dl-sysdep.c b/sysdeps/mach/hurd/dl-sysdep.c index 9e591708e4..a2115f6edb 100644 --- a/sysdeps/mach/hurd/dl-sysdep.c +++ b/sysdeps/mach/hurd/dl-sysdep.c @@ -207,6 +207,8 @@ _dl_sysdep_start (void **start_argptr, } } + _dl_init_first (argdata); + { extern void _dl_start_user (void); /* Unwind the stack to ARGDATA and simulate a return from _dl_start @@ -793,7 +795,7 @@ _dl_show_auxv (void) void weak_function -_dl_init_first (int argc, ...) +_dl_init_first (void *p) { /* This no-op definition only gets used if libc is not linked in. */ } |