Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sat, 12 Nov 2016 18:07:13 +0100
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: [PATCH] fix x86_64 sigreturn call so gdb recognizes it

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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.