svn commit: r233378 - head/libexec/rtld-elf/mips

Oleksandr Tymoshenko gonzo at FreeBSD.org
Fri Mar 23 17:54:07 UTC 2012


Author: gonzo
Date: Fri Mar 23 17:54:06 2012
New Revision: 233378
URL: http://svn.freebsd.org/changeset/base/233378

Log:
  Before jumping to application's entry point set ra == pc in order
      to let backtracing routine know to go no further.

Modified:
  head/libexec/rtld-elf/mips/rtld_start.S

Modified: head/libexec/rtld-elf/mips/rtld_start.S
==============================================================================
--- head/libexec/rtld-elf/mips/rtld_start.S	Fri Mar 23 17:24:52 2012	(r233377)
+++ head/libexec/rtld-elf/mips/rtld_start.S	Fri Mar 23 17:54:06 2012	(r233378)
@@ -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)
 


More information about the svn-src-head mailing list