about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S
diff options
context:
space:
mode:
authorMao Han <han_mao@c-sky.com>2019-03-11 09:51:14 +0800
committerMao Han <han_mao@c-sky.com>2019-03-11 09:51:14 +0800
commitc4e5f34bf0d818be747edf9a30e4152953cc6706 (patch)
tree5a949262e0659412ca4398ac4be1af56fe59207b /sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S
parent827e30f3a31ee294eb23dc572f8af62158049257 (diff)
downloadglibc-c4e5f34bf0d818be747edf9a30e4152953cc6706.tar.gz
glibc-c4e5f34bf0d818be747edf9a30e4152953cc6706.tar.xz
glibc-c4e5f34bf0d818be747edf9a30e4152953cc6706.zip
C-SKY: mark lr as undefined to stop unwinding
Mark the lr register as undefined at the start of execution, so unwind
will stop at this frame. run-backtrace-*.sh from elfutils testsuite will
fail without this patch.

	* sysdeps/csky/abiv2/start.S: Mark lr as undefined.
	* sysdeps/unix/sysv/linux/csky/abiv2/clone.S: Likewise.
	* sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S: Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S')
-rw-r--r--sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S b/sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S
index 6d3f04f9f0..34de6e3ab4 100644
--- a/sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S
+++ b/sysdeps/unix/sysv/linux/csky/abiv2/setcontext.S
@@ -62,6 +62,8 @@ END (setcontext)
 weak_alias (__setcontext, setcontext)
 
 ENTRY (__startcontext)
+	.cfi_label .Ldummy
+	cfi_undefined (lr)
 	mov	a0, r9
 	cmpnei	r9, 0	/* r9 was set in makecontext.  */
 	bf	1f	/* null, then exit.  */