]> sourceware.org Git - glibc.git/commitdiff
alpha: Fix signal thunk unwind info
authorRichard Henderson <rth@twiddle.net>
Fri, 15 Nov 2013 20:34:39 +0000 (06:34 +1000)
committerRichard Henderson <rth@twiddle.net>
Sun, 17 Nov 2013 04:58:30 +0000 (14:58 +1000)
ports/ChangeLog.alpha
ports/sysdeps/unix/sysv/linux/alpha/rt_sigaction.S

index 4a4db09fb86e27c5a387ff72f2392416bc8b59aa..0fc0a4b775435ac494d6f936ac87b88de94c9f96 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-16  Richard Henderson  <rth@redhat.com>
+
+       * sysdeps/unix/sysv/linux/alpha/rt_sigaction.S: Include a nop
+       before each signal thunk.
+
 2013-07-02  Richard Henderson  <rth@redhat.com>
 
         * sysdeps/alpha/fpu/libm-test-ulps: Update.
index 3d291fd0b4ba253cccd00b8d7900707737ccf759..6efa7386d58a9fef153ff455b76dc8093c39f2b6 100644 (file)
@@ -83,14 +83,21 @@ PSEUDO_END(__syscall_rt_sigaction)
        cfi_offset (64, \base + 2 * 8)
        .endm
 
-       .align  4
-
        cfi_startproc
        cfi_return_column (64)
        .cfi_signal_frame
        SIGCONTEXT_REGS -648
-
        cfi_def_cfa_offset (648)
+
+       /* While this frame is marked as a signal frame, that only applies
+          to how this return address is handled for the outer frame.
+          The return address that arrived here, from the inner frame, is
+          not marked as a signal frame and so the unwinder still tries to
+          subtract 1 to examine the presumed call insn.  Thus we must
+          extend the unwind info to a nop before the start.  */
+       nop
+       .align 4
+
 __syscall_sigreturn:
        mov     sp, a0
        ldi     v0, __NR_sigreturn
@@ -98,8 +105,11 @@ __syscall_sigreturn:
        .size   __syscall_sigreturn, .-__syscall_sigreturn
        .type   __syscall_sigreturn, @function
 
-       .align 4
+       /* See above wrt including the nop.  */
        cfi_def_cfa_offset (176 + 648)
+       nop
+       .align 4
+
 __syscall_rt_sigreturn:
        mov     sp,a0
        ldi     v0,__NR_rt_sigreturn
This page took 0.046689 seconds and 5 git commands to generate.