Add stackmarkings. Required at least for Hardened Gentoo.

This commit is contained in:
Frank Denis
2015-11-04 16:46:39 +01:00
parent 20eacd0ab7
commit 950f382a9b
5 changed files with 20 additions and 0 deletions
@@ -183,3 +183,7 @@ add %r11,%rsp
mov %rdi,%rax
mov %rsi,%rdx
ret
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
@@ -159,3 +159,7 @@ movq 40(%rsp),%rbx
movq 48(%rsp),%rbp
add %r11,%rsp
ret
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
@@ -213,3 +213,7 @@ movq 0(%rsp),%r11
movq 8(%rsp),%r12
add %r11,%rsp
ret
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
@@ -1426,3 +1426,7 @@ movq 1840(%rsp),%r13
movq 1848(%rsp),%r14
add %r11,%rsp
ret
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
@@ -1281,3 +1281,7 @@ movq 1544(%rsp),%r12
movq 1552(%rsp),%r13
add %r11,%rsp
ret
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif