* sysdeps/mips/dl-machine.h: Pass finalizer correctly to user
entry point. Reported by Jim Pick <jim@jimpick.com>.
This commit is contained in:
parent
594cee6c49
commit
04037dabe2
|
@ -400,15 +400,10 @@ _dl_start_user:\n\
|
||||||
# Call the function to run the initializers.\n\
|
# Call the function to run the initializers.\n\
|
||||||
jal _dl_init
|
jal _dl_init
|
||||||
addiu $29, 16\n\
|
addiu $29, 16\n\
|
||||||
# Pass our finalizer function to the user in ra.\n\
|
# Pass our finalizer function to the user in $2 as per ELF ABI.\n\
|
||||||
la $31, _dl_fini\n\
|
la $2, _dl_fini\n\
|
||||||
# Jump to the user entry point.\n\
|
# Jump to the user entry point.\n\
|
||||||
move $25, $17\n\
|
jr $17\n"\
|
||||||
lw $4, 0($29)\n\
|
|
||||||
lw $5, 4($29)\n\
|
|
||||||
lw $6, 8($29)\n\
|
|
||||||
lw $7, 12($29)\n\
|
|
||||||
jr $25\n"\
|
|
||||||
_RTLD_EPILOGUE(ENTRY_POINT)\
|
_RTLD_EPILOGUE(ENTRY_POINT)\
|
||||||
"\n.previous"\
|
"\n.previous"\
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue