mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-19 02:29:40 +00:00
Before jumping to application's entry point set ra == pc in order
to let backtracing routine know to go no further.
This commit is contained in:
parent
7ccd203639
commit
bbc54af80e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=233378
@ -80,7 +80,8 @@ LEAF(rtld_start)
|
||||
move a0, s0 /* stack pointer */
|
||||
move t9, v0
|
||||
PTR_SUBU sp, 4*SZREG /* ABI requires to reserve memory for 4 regs */
|
||||
jr t9 /* _start(sp, cleanup, obj); */
|
||||
move ra,t9 /* RA == PC signals backtrace routine to stop */
|
||||
j t9 /* _start(sp, cleanup, obj); */
|
||||
move a3, s3 /* restore ps_strings */
|
||||
END(rtld_start)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user