mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] fix x86_64 sigreturn call so gdb recognizes it
@ 2016-11-12 17:07 Szabolcs Nagy
  2016-11-13  0:12 ` [PATCH v2] fix x86_64 sigreturn trampoline " Szabolcs Nagy
  0 siblings, 1 reply; 3+ messages in thread
From: Szabolcs Nagy @ 2016-11-12 17:07 UTC (permalink / raw)
  To: musl

gdb cannot unwind across signal handlers if __restore{_rt} is not aligned.
---

other targets may be affected as well, i only tried x86_64 and i386.

 src/signal/x86_64/restore.s | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/signal/x86_64/restore.s b/src/signal/x86_64/restore.s
index 682af2d..179f3ef 100644
--- a/src/signal/x86_64/restore.s
+++ b/src/signal/x86_64/restore.s
@@ -1,3 +1,4 @@
+.align 16
 .global __restore_rt
 .global __restore
 .type __restore_rt,@function
-- 
2.10.2



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

end of thread, other threads:[~2016-11-13  2:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-12 17:07 [PATCH] fix x86_64 sigreturn call so gdb recognizes it Szabolcs Nagy
2016-11-13  0:12 ` [PATCH v2] fix x86_64 sigreturn trampoline " Szabolcs Nagy
2016-11-13  2:46   ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).