mirror of git://sourceware.org/git/glibc.git
RISC-V: Add _dl_start_user.
This is required for the debugglibc.sh script to work. Tested by successfully using this patched script, and a riscv64-linux testsuite run. We could perhaps call RTLD_EPILOGUE for ENTRY_POINT before calling RTLD_PROLOGUE for _dl_start_user, but I don't think it matters. OK? Jim
This commit is contained in:
parent
75a193b761
commit
1f67f23fdf
|
@ -105,6 +105,7 @@ elf_machine_load_address (void)
|
||||||
" _RTLD_PROLOGUE (ENTRY_POINT) "\
|
" _RTLD_PROLOGUE (ENTRY_POINT) "\
|
||||||
mv a0, sp\n\
|
mv a0, sp\n\
|
||||||
jal _dl_start\n\
|
jal _dl_start\n\
|
||||||
|
" _RTLD_PROLOGUE (_dl_start_user) "\
|
||||||
# Stash user entry point in s0.\n\
|
# Stash user entry point in s0.\n\
|
||||||
mv s0, a0\n\
|
mv s0, a0\n\
|
||||||
# See if we were run as a command with the executable file\n\
|
# See if we were run as a command with the executable file\n\
|
||||||
|
@ -131,7 +132,8 @@ elf_machine_load_address (void)
|
||||||
lla a0, _dl_fini\n\
|
lla a0, _dl_fini\n\
|
||||||
# Jump to the user entry point.\n\
|
# Jump to the user entry point.\n\
|
||||||
jr s0\n\
|
jr s0\n\
|
||||||
" _RTLD_EPILOGUE (ENTRY_POINT) "\
|
" _RTLD_EPILOGUE (ENTRY_POINT) \
|
||||||
|
_RTLD_EPILOGUE (_dl_start_user) "\
|
||||||
.previous" \
|
.previous" \
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue