File: submitted-makecontext.diff

package info (click to toggle)
glibc 2.41-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 300,384 kB
  • sloc: ansic: 1,050,583; asm: 238,243; makefile: 20,379; python: 13,537; sh: 11,827; cpp: 5,197; awk: 1,795; perl: 317; yacc: 292; pascal: 182; sed: 19
file content (30 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (23)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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.


--- a/sysdeps/unix/sysv/linux/alpha/makecontext.S
+++ b/sysdeps/unix/sysv/linux/alpha/makecontext.S
@@ -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