Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 828137
Collapse All | Expand All

(-)a/arch/aarch64/getcontext.S (+3 lines)
Lines 55-57 PROC_NAME(libucontext_getcontext): Link Here
55
	mov	x0, #0
55
	mov	x0, #0
56
	ret
56
	ret
57
END(libucontext_getcontext)
57
END(libucontext_getcontext)
58
#if defined(__linux__) && defined(__ELF__)
59
.section .note.GNU-stack,"",%progbits
60
#endif
(-)a/arch/aarch64/setcontext.S (+3 lines)
Lines 47-49 PROC_NAME(libucontext_setcontext): Link Here
47
	/* jump to new PC */
47
	/* jump to new PC */
48
	br	x16
48
	br	x16
49
END(libucontext_setcontext)
49
END(libucontext_setcontext)
50
#if defined(__linux__) && defined(__ELF__)
51
.section .note.GNU-stack,"",%progbits
52
#endif
(-)a/arch/aarch64/swapcontext.S (+3 lines)
Lines 61-63 PROC_NAME(libucontext_swapcontext): Link Here
61
	mov	x30, x28
61
	mov	x30, x28
62
	ret
62
	ret
63
END(libucontext_swapcontext)
63
END(libucontext_swapcontext)
64
#if defined(__linux__) && defined(__ELF__)
65
.section .note.GNU-stack,"",%progbits
66
#endif
(-)a/arch/arm/getcontext.S (+3 lines)
Lines 26-28 FUNC(libucontext_getcontext) Link Here
26
	mov	r0, #0
26
	mov	r0, #0
27
	mov	pc, lr
27
	mov	pc, lr
28
END(libucontext_getcontext)
28
END(libucontext_getcontext)
29
#if defined(__linux__) && defined(__ELF__)
30
.section .note.GNU-stack,"",%progbits
31
#endif
(-)a/arch/arm/setcontext.S (+3 lines)
Lines 25-27 FUNC(libucontext_setcontext) Link Here
25
	/* load link register and jump to new context */
25
	/* load link register and jump to new context */
26
	ldmia	r14, {r14, pc}
26
	ldmia	r14, {r14, pc}
27
END(libucontext_setcontext)
27
END(libucontext_setcontext)
28
#if defined(__linux__) && defined(__ELF__)
29
.section .note.GNU-stack,"",%progbits
30
#endif
(-)a/arch/arm/swapcontext.S (+3 lines)
Lines 29-31 FUNC(libucontext_swapcontext) Link Here
29
	add	r14, r14, #56
29
	add	r14, r14, #56
30
	ldmia	r14, {r14, pc}
30
	ldmia	r14, {r14, pc}
31
END(libucontext_swapcontext)
31
END(libucontext_swapcontext)
32
#if defined(__linux__) && defined(__ELF__)
33
.section .note.GNU-stack,"",%progbits
34
#endif
(-)a/arch/m68k/getcontext.S (+3 lines)
Lines 28-30 FUNC(libucontext_getcontext) Link Here
28
	clr.l		%d0					/* return 0 */
28
	clr.l		%d0					/* return 0 */
29
	rts
29
	rts
30
END(libucontext_getcontext)
30
END(libucontext_getcontext)
31
#if defined(__linux__) && defined(__ELF__)
32
.section .note.GNU-stack,"",%progbits
33
#endif
(-)a/arch/m68k/setcontext.S (+3 lines)
Lines 29-31 FUNC(libucontext_setcontext) Link Here
29
29
30
	jmp		(%a1)					/* jump to *$a1 */
30
	jmp		(%a1)					/* jump to *$a1 */
31
END(libucontext_setcontext)
31
END(libucontext_setcontext)
32
#if defined(__linux__) && defined(__ELF__)
33
.section .note.GNU-stack,"",%progbits
34
#endif
(-)a/arch/m68k/swapcontext.S (+3 lines)
Lines 38-40 FUNC(libucontext_swapcontext) Link Here
38
38
39
	jmp		(%a1)					/* jump to *$a1 */
39
	jmp		(%a1)					/* jump to *$a1 */
40
END(libucontext_swapcontext)
40
END(libucontext_swapcontext)
41
#if defined(__linux__) && defined(__ELF__)
42
.section .note.GNU-stack,"",%progbits
43
#endif
(-)a/arch/mips/getcontext.S (+3 lines)
Lines 45-47 FUNC(libucontext_getcontext) Link Here
45
45
46
	jr	$ra
46
	jr	$ra
47
END(libucontext_getcontext)
47
END(libucontext_getcontext)
48
#if defined(__linux__) && defined(__ELF__)
49
.section .note.GNU-stack,"",%progbits
50
#endif
(-)a/arch/mips/makecontext.S (+3 lines)
Lines 99-101 no_more_arguments: Link Here
99
99
100
	jr	$ra
100
	jr	$ra
101
END(libucontext_makecontext)
101
END(libucontext_makecontext)
102
#if defined(__linux__) && defined(__ELF__)
103
.section .note.GNU-stack,"",%progbits
104
#endif
(-)a/arch/mips/setcontext.S (+3 lines)
Lines 49-51 FUNC(libucontext_setcontext) Link Here
49
49
50
	POP_FRAME(libucontext_setcontext)
50
	POP_FRAME(libucontext_setcontext)
51
END(libucontext_setcontext)
51
END(libucontext_setcontext)
52
#if defined(__linux__) && defined(__ELF__)
53
.section .note.GNU-stack,"",%progbits
54
#endif
(-)a/arch/mips/startcontext.S (+3 lines)
Lines 33-35 no_linked_context: Link Here
33
	jalr	$t9
33
	jalr	$t9
34
	nop
34
	nop
35
END(libucontext_trampoline)
35
END(libucontext_trampoline)
36
#if defined(__linux__) && defined(__ELF__)
37
.section .note.GNU-stack,"",%progbits
38
#endif
(-)a/arch/mips/swapcontext.S (+3 lines)
Lines 80-82 fail: Link Here
80
	move	$v0, $zero
80
	move	$v0, $zero
81
	jalr	$t9
81
	jalr	$t9
82
END(libucontext_swapcontext)
82
END(libucontext_swapcontext)
83
#if defined(__linux__) && defined(__ELF__)
84
.section .note.GNU-stack,"",%progbits
85
#endif
(-)a/arch/mips64/getcontext.S (+3 lines)
Lines 45-47 FUNC(libucontext_getcontext) Link Here
45
45
46
	jr	$ra
46
	jr	$ra
47
END(libucontext_getcontext)
47
END(libucontext_getcontext)
48
#if defined(__linux__) && defined(__ELF__)
49
.section .note.GNU-stack,"",%progbits
50
#endif
(-)a/arch/mips64/makecontext.S (+3 lines)
Lines 105-107 no_more_arguments: Link Here
105
105
106
	jr	$ra
106
	jr	$ra
107
END(libucontext_makecontext)
107
END(libucontext_makecontext)
108
#if defined(__linux__) && defined(__ELF__)
109
.section .note.GNU-stack,"",%progbits
110
#endif
(-)a/arch/mips64/setcontext.S (+3 lines)
Lines 53-55 FUNC(libucontext_setcontext) Link Here
53
53
54
	POP_FRAME(libucontext_setcontext)
54
	POP_FRAME(libucontext_setcontext)
55
END(libucontext_setcontext)
55
END(libucontext_setcontext)
56
#if defined(__linux__) && defined(__ELF__)
57
.section .note.GNU-stack,"",%progbits
58
#endif
(-)a/arch/mips64/startcontext.S (+3 lines)
Lines 33-35 no_linked_context: Link Here
33
	jalr	$t9
33
	jalr	$t9
34
	nop
34
	nop
35
END(libucontext_trampoline)
35
END(libucontext_trampoline)
36
#if defined(__linux__) && defined(__ELF__)
37
.section .note.GNU-stack,"",%progbits
38
#endif
(-)a/arch/mips64/swapcontext.S (+3 lines)
Lines 85-87 fail: Link Here
85
	move	$v0, $zero
85
	move	$v0, $zero
86
	jalr	$t9
86
	jalr	$t9
87
END(libucontext_swapcontext)
87
END(libucontext_swapcontext)
88
#if defined(__linux__) && defined(__ELF__)
89
.section .note.GNU-stack,"",%progbits
90
#endif
(-)a/arch/ppc/getcontext.S (+3 lines)
Lines 20-22 FUNC(libucontext_getcontext) Link Here
20
	li 4, 0
20
	li 4, 0
21
	b __libucontext_swapcontext@local
21
	b __libucontext_swapcontext@local
22
END(libucontext_getcontext)
22
END(libucontext_getcontext)
23
#if defined(__linux__) && defined(__ELF__)
24
.section .note.GNU-stack,"",%progbits
25
#endif
(-)a/arch/ppc/setcontext.S (+3 lines)
Lines 21-23 FUNC(libucontext_setcontext) Link Here
21
	li 3, 0
21
	li 3, 0
22
	b __libucontext_swapcontext@local
22
	b __libucontext_swapcontext@local
23
END(libucontext_setcontext)
23
END(libucontext_setcontext)
24
#if defined(__linux__) && defined(__ELF__)
25
.section .note.GNU-stack,"",%progbits
26
#endif
(-)a/arch/ppc/startcontext.S (+3 lines)
Lines 26-28 FUNC(libucontext_trampoline) Link Here
26
no_linked_context:
26
no_linked_context:
27
	b	exit@GOT
27
	b	exit@GOT
28
END(libucontext_trampoline)
28
END(libucontext_trampoline)
29
#if defined(__linux__) && defined(__ELF__)
30
.section .note.GNU-stack,"",%progbits
31
#endif
(-)a/arch/ppc/swapcontext.S (+3 lines)
Lines 27-29 FUNC(__libucontext_swapcontext) Link Here
27
.hidden __retfromsyscall
27
.hidden __retfromsyscall
28
	b __retfromsyscall@local
28
	b __retfromsyscall@local
29
END(__libucontext_swapcontext)
29
END(__libucontext_swapcontext)
30
#if defined(__linux__) && defined(__ELF__)
31
.section .note.GNU-stack,"",%progbits
32
#endif
(-)a/arch/ppc64/getcontext.S (+3 lines)
Lines 25-27 FUNC(libucontext_getcontext) Link Here
25
	li 4, 0
25
	li 4, 0
26
	b __libucontext_swapcontext
26
	b __libucontext_swapcontext
27
END(libucontext_getcontext)
27
END(libucontext_getcontext)
28
#if defined(__linux__) && defined(__ELF__)
29
.section .note.GNU-stack,"",%progbits
30
#endif
(-)a/arch/ppc64/setcontext.S (+3 lines)
Lines 26-28 FUNC(libucontext_setcontext) Link Here
26
	li 3, 0
26
	li 3, 0
27
	b __libucontext_swapcontext
27
	b __libucontext_swapcontext
28
END(libucontext_setcontext)
28
END(libucontext_setcontext)
29
#if defined(__linux__) && defined(__ELF__)
30
.section .note.GNU-stack,"",%progbits
31
#endif
(-)a/arch/ppc64/startcontext.S (+3 lines)
Lines 31-33 no_linked_context: Link Here
31
	b	exit@GOT
31
	b	exit@GOT
32
	nop
32
	nop
33
END(libucontext_trampoline)
33
END(libucontext_trampoline)
34
#if defined(__linux__) && defined(__ELF__)
35
.section .note.GNU-stack,"",%progbits
36
#endif
(-)a/arch/ppc64/swapcontext.S (+3 lines)
Lines 32-34 FUNC(__libucontext_swapcontext) Link Here
32
.hidden __retfromsyscall
32
.hidden __retfromsyscall
33
	b __retfromsyscall
33
	b __retfromsyscall
34
END(__libucontext_swapcontext)
34
END(__libucontext_swapcontext)
35
#if defined(__linux__) && defined(__ELF__)
36
.section .note.GNU-stack,"",%progbits
37
#endif
(-)a/arch/riscv32/getcontext.S (+3 lines)
Lines 43-45 FUNC(libucontext_getcontext) Link Here
43
	/* done saving, return */
43
	/* done saving, return */
44
	ret
44
	ret
45
END(libucontext_getcontext)
45
END(libucontext_getcontext)
46
#if defined(__linux__) && defined(__ELF__)
47
.section .note.GNU-stack,"",%progbits
48
#endif
(-)a/arch/riscv32/setcontext.S (+3 lines)
Lines 54-56 FUNC(libucontext_setcontext) Link Here
54
	/* done restoring, jump to new pc in S1 */
54
	/* done restoring, jump to new pc in S1 */
55
	jr t1
55
	jr t1
56
END(libucontext_setcontext)
56
END(libucontext_setcontext)
57
#if defined(__linux__) && defined(__ELF__)
58
.section .note.GNU-stack,"",%progbits
59
#endif
(-)a/arch/riscv32/swapcontext.S (+3 lines)
Lines 79-81 FUNC(libucontext_swapcontext) Link Here
79
	/* done swapping, jump to new PC in S1 */
79
	/* done swapping, jump to new PC in S1 */
80
	jr t1
80
	jr t1
81
END(libucontext_swapcontext)
81
END(libucontext_swapcontext)
82
#if defined(__linux__) && defined(__ELF__)
83
.section .note.GNU-stack,"",%progbits
84
#endif
(-)a/arch/riscv64/getcontext.S (+3 lines)
Lines 43-45 FUNC(libucontext_getcontext) Link Here
43
	/* done saving, return */
43
	/* done saving, return */
44
	ret
44
	ret
45
END(libucontext_getcontext)
45
END(libucontext_getcontext)
46
#if defined(__linux__) && defined(__ELF__)
47
.section .note.GNU-stack,"",%progbits
48
#endif
(-)a/arch/riscv64/setcontext.S (+3 lines)
Lines 54-56 FUNC(libucontext_setcontext) Link Here
54
	/* done restoring, jump to new pc in S1 */
54
	/* done restoring, jump to new pc in S1 */
55
	jr t1
55
	jr t1
56
END(libucontext_setcontext)
56
END(libucontext_setcontext)
57
#if defined(__linux__) && defined(__ELF__)
58
.section .note.GNU-stack,"",%progbits
59
#endif
(-)a/arch/riscv64/swapcontext.S (+3 lines)
Lines 79-81 FUNC(libucontext_swapcontext) Link Here
79
	/* done swapping, jump to new PC in S1 */
79
	/* done swapping, jump to new PC in S1 */
80
	jr t1
80
	jr t1
81
END(libucontext_swapcontext)
81
END(libucontext_swapcontext)
82
#if defined(__linux__) && defined(__ELF__)
83
.section .note.GNU-stack,"",%progbits
84
#endif
(-)a/arch/s390x/getcontext.S (+3 lines)
Lines 24-26 FUNC(libucontext_getcontext) Link Here
24
24
25
	br	%r14				/* return to where we came from */
25
	br	%r14				/* return to where we came from */
26
END(libucontext_getcontext)
26
END(libucontext_getcontext)
27
#if defined(__linux__) && defined(__ELF__)
28
.section .note.GNU-stack,"",%progbits
29
#endif
(-)a/arch/s390x/setcontext.S (+3 lines)
Lines 23-25 FUNC(libucontext_setcontext) Link Here
23
23
24
	br	%r14				/* return to new link register address */
24
	br	%r14				/* return to new link register address */
25
END(libucontext_setcontext)
25
END(libucontext_setcontext)
26
#if defined(__linux__) && defined(__ELF__)
27
.section .note.GNU-stack,"",%progbits
28
#endif
(-)a/arch/s390x/startcontext.S (+3 lines)
Lines 28-30 no_linked_context: Link Here
28
28
29
	j	.+2				/* crash if exit returns */
29
	j	.+2				/* crash if exit returns */
30
END(libucontext_trampoline)
30
END(libucontext_trampoline)
31
#if defined(__linux__) && defined(__ELF__)
32
.section .note.GNU-stack,"",%progbits
33
#endif
(-)a/arch/s390x/swapcontext.S (+3 lines)
Lines 28-30 FUNC(libucontext_swapcontext) Link Here
28
28
29
	br	%r14				/* return to new link register address */
29
	br	%r14				/* return to new link register address */
30
END(libucontext_swapcontext)
30
END(libucontext_swapcontext)
31
#if defined(__linux__) && defined(__ELF__)
32
.section .note.GNU-stack,"",%progbits
33
#endif
(-)a/arch/sh/getcontext.S (+3 lines)
Lines 54-56 FUNC(libucontext_getcontext) Link Here
54
	mov	#0, r0						/* set return value as zero */
54
	mov	#0, r0						/* set return value as zero */
55
	rts
55
	rts
56
END(libucontext_getcontext)
56
END(libucontext_getcontext)
57
#if defined(__linux__) && defined(__ELF__)
58
.section .note.GNU-stack,"",%progbits
59
#endif
(-)a/arch/sh/setcontext.S (+3 lines)
Lines 58-60 FUNC(libucontext_setcontext) Link Here
58
58
59
	mov.l	@r15+, r0					/* pop original r0 from stack */
59
	mov.l	@r15+, r0					/* pop original r0 from stack */
60
END(libucontext_setcontext)
60
END(libucontext_setcontext)
61
#if defined(__linux__) && defined(__ELF__)
62
.section .note.GNU-stack,"",%progbits
63
#endif
(-)a/arch/sh/swapcontext.S (+3 lines)
Lines 93-95 FUNC(libucontext_swapcontext) Link Here
93
93
94
	mov.l	@r15+, r0					/* pop original r0 from stack */
94
	mov.l	@r15+, r0					/* pop original r0 from stack */
95
END(libucontext_swapcontext)
95
END(libucontext_swapcontext)
96
#if defined(__linux__) && defined(__ELF__)
97
.section .note.GNU-stack,"",%progbits
98
#endif
(-)a/arch/x86/getcontext.S (+3 lines)
Lines 48-50 FUNC(libucontext_getcontext) Link Here
48
	xorl	%eax, %eax
48
	xorl	%eax, %eax
49
	ret
49
	ret
50
END(libucontext_getcontext)
50
END(libucontext_getcontext)
51
#if defined(__linux__) && defined(__ELF__)
52
.section .note.GNU-stack,"",%progbits
53
#endif
(-)a/arch/x86/setcontext.S (+3 lines)
Lines 43-45 FUNC(libucontext_setcontext) Link Here
43
43
44
	ret
44
	ret
45
END(libucontext_setcontext)
45
END(libucontext_setcontext)
46
#if defined(__linux__) && defined(__ELF__)
47
.section .note.GNU-stack,"",%progbits
48
#endif
(-)a/arch/x86/swapcontext.S (+3 lines)
Lines 71-73 FUNC(libucontext_swapcontext) Link Here
71
71
72
	ret
72
	ret
73
END(libucontext_swapcontext)
73
END(libucontext_swapcontext)
74
#if defined(__linux__) && defined(__ELF__)
75
.section .note.GNU-stack,"",%progbits
76
#endif
(-)a/arch/x86_64/getcontext.S (+3 lines)
Lines 47-49 FUNC(libucontext_getcontext) Link Here
47
	xorl	%eax, %eax
47
	xorl	%eax, %eax
48
	ret
48
	ret
49
END(libucontext_getcontext)
49
END(libucontext_getcontext)
50
#if defined(__linux__) && defined(__ELF__)
51
.section .note.GNU-stack,"",%progbits
52
#endif
(-)a/arch/x86_64/setcontext.S (+3 lines)
Lines 44-46 FUNC(libucontext_setcontext) Link Here
44
	xorl	%eax, %eax
44
	xorl	%eax, %eax
45
	ret
45
	ret
46
END(libucontext_setcontext)
46
END(libucontext_setcontext)
47
#if defined(__linux__) && defined(__ELF__)
48
.section .note.GNU-stack,"",%progbits
49
#endif
(-)a/arch/x86_64/swapcontext.S (-1 / +3 lines)
Lines 73-75 FUNC(libucontext_swapcontext) Link Here
73
	xorl	%eax, %eax
73
	xorl	%eax, %eax
74
	ret
74
	ret
75
END(libucontext_swapcontext)
75
END(libucontext_swapcontext)
76
- 
76
#if defined(__linux__) && defined(__ELF__)
77
.section .note.GNU-stack,"",%progbits
78
#endif

Return to bug 828137