public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* [PATCH, AArch64] Fix Call Frame Information in ffi_closure_SYSV
@ 2013-12-23 18:30 Yufeng Zhang
  2014-01-06 12:36 ` Marcus Shawcroft
  2014-01-14 12:10 ` [PING] " Yufeng Zhang
  0 siblings, 2 replies; 6+ messages in thread
From: Yufeng Zhang @ 2013-12-23 18:30 UTC (permalink / raw)
  To: libffi-discuss

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

Hi,

This patch fixes a bug in ./src/aarch64/sysv.S:ffi_closure_SYSV where 
stack unwinding information was not generated correctly.

OK for the mainline?

Thanks,
Yufeng

2013-12-23  Yufeng Zhang  <yufeng.zhang@arm.com>

	* src/aarch64/sysv.S (ffi_closure_SYSV): Use x29 as the
	main CFA reg; update cfi_rel_offset.

[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 882 bytes --]

diff --git a/src/aarch64/sysv.S b/src/aarch64/sysv.S
index 1022454..ecf6371 100644
--- a/src/aarch64/sysv.S
+++ b/src/aarch64/sysv.S
@@ -231,13 +231,13 @@ ffi_closure_SYSV:
         cfi_rel_offset (x30, 8)
 
         mov     x29, sp
+        cfi_def_cfa_register (x29)
 
         sub     sp, sp, #ffi_closure_SYSV_FS
-	cfi_adjust_cfa_offset (ffi_closure_SYSV_FS)
 
         stp     x21, x22, [x29, #-16]
-        cfi_rel_offset (x21, 0)
-        cfi_rel_offset (x22, 8)
+        cfi_rel_offset (x21, -16)
+        cfi_rel_offset (x22, -8)
 
         /* Load x21 with &call_context.  */
         mov     x21, sp
@@ -295,7 +295,7 @@ ffi_closure_SYSV:
         cfi_restore (x22)
 
         mov     sp, x29
-	cfi_adjust_cfa_offset (-ffi_closure_SYSV_FS)
+        cfi_def_cfa_register (sp)
 
         ldp     x29, x30, [sp], #16
 	cfi_adjust_cfa_offset (-16)

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-28  5:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-23 18:30 [PATCH, AArch64] Fix Call Frame Information in ffi_closure_SYSV Yufeng Zhang
2014-01-06 12:36 ` Marcus Shawcroft
2014-01-14 12:10 ` [PING] " Yufeng Zhang
2014-02-12 18:08   ` [PING^2] " Yufeng Zhang
2014-02-20 14:59     ` [PING^3] " Yufeng Zhang
2014-02-28  5:28   ` [PING] " Anthony Green

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).