submitted-makecontext
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 5 May 2020 18:12:38 +0000 (19:12 +0100)
committerAurelien Jarno <aurel32@debian.org>
Tue, 5 May 2020 18:12:38 +0000 (19:12 +0100)
2018-03-01  Aurelien Jarno  <aurelien@aurel32.net>

[BZ #22910]
* sysdeps/unix/sysv/linux/alpha/setcontext.S (__startcontext): Set
up CFI directive to forbid further backtracing.

Gbp-Pq: Topic alpha
Gbp-Pq: Name submitted-makecontext.diff

sysdeps/unix/sysv/linux/alpha/makecontext.S

index 45f0f5c7c6a679b704f2c4096a06a71e2dacb708..bbc899a23be3f8672e0b48a636ed7d370c5afb6a 100644 (file)
@@ -138,10 +138,14 @@ weak_alias (__makecontext, makecontext)
 
        .align  4
        .ent    __startcontext
+       cfi_startproc
 __startcontext:
        .frame $31, 0, $31, 0
        .prologue 0
 
+       /* Mark ra as undefined in order to stop unwinding here.  */
+       cfi_undefined(ra)
+
        jsr     $26, ($27), 0
        ldgp    $29, 0($26)
        mov     $9, $16
@@ -160,4 +164,5 @@ __startcontext:
 
        halt
 
+       cfi_endproc
        .end __startcontext