about summary refs log tree commit diff
path: root/sysdeps/i386/bsd-_setjmp.S
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-28 19:13:20 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-28 19:13:20 +0000
commit272b289859eff42d77fac6cf3125b38b0ff01791 (patch)
tree0af9bdc2118abfc0f8a30e799944fa74d1383ad1 /sysdeps/i386/bsd-_setjmp.S
parent4973f319536a5dc555fe3980615677b12e5359e4 (diff)
downloadglibc-272b289859eff42d77fac6cf3125b38b0ff01791.tar.gz
glibc-272b289859eff42d77fac6cf3125b38b0ff01791.tar.xz
glibc-272b289859eff42d77fac6cf3125b38b0ff01791.zip
* sysdeps/i386/__longjmp.S [PTR_DEMANGLE]: Also demangle stack
	pointer.  Add CFI.
	* sysdeps/i386/bsd-_setjmp.S [PTR_MANGLE]: Also mangle stack pointer.
	* sysdeps/i386/bsd-setjmp.S: Likewise.
	* sysdeps/i386/setjmp.S: Likewise.
Diffstat (limited to 'sysdeps/i386/bsd-_setjmp.S')
-rw-r--r--sysdeps/i386/bsd-_setjmp.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/i386/bsd-_setjmp.S b/sysdeps/i386/bsd-_setjmp.S
index f80d239323..99cc79160a 100644
--- a/sysdeps/i386/bsd-_setjmp.S
+++ b/sysdeps/i386/bsd-_setjmp.S
@@ -44,6 +44,9 @@ ENTRY (BP_SYM (_setjmp))
 	movl %esi, (JB_SI*4)(%edx)
 	movl %edi, (JB_DI*4)(%edx)
 	leal JMPBUF(%esp), %ecx	/* Save SP as it will be after we return.  */
+#ifdef PTR_MANGLE
+	PTR_MANGLE (%ecx)
+#endif
      	movl %ecx, (JB_SP*4)(%edx)
 	movl PCOFF(%esp), %ecx	/* Save PC we are returning to now.  */
 #ifdef PTR_MANGLE