about summary refs log tree commit diff
path: root/sysdeps/csky
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/csky
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/csky')
-rw-r--r--sysdeps/csky/abiv2/start.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/csky/abiv2/start.S b/sysdeps/csky/abiv2/start.S
index 324ed69d32..b1e61520a8 100644
--- a/sysdeps/csky/abiv2/start.S
+++ b/sysdeps/csky/abiv2/start.S
@@ -46,6 +46,9 @@
 	.type _start,@function;
 	.align 4;
 _start:
+	cfi_startproc
+	.cfi_label .Ldummy
+	cfi_undefined (lr)
 	subi	sp, 8
 	/* Clear the link register since this is the outermost frame.  */
 	movi	lr, 0
@@ -96,6 +99,7 @@ _start:
 	/* Should never get here.  */
 	jsri	abort
 #endif	/* !SHARED */
+	cfi_endproc
 	.size _start,.-_start