selftests/x86: Add missing .note.GNU-stack sections

Several of the x86 selftests end up with executable stacks because
the asm was missing the annotation that says that they are modern
and don't need executable stacks.  Add the annotations.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/6f043c03e9e0e4557e1e975a63b07a4d18965a68.1604346596.git.luto@kernel.org
This commit is contained in:
Andy Lutomirski 2020-11-02 11:51:11 -08:00 committed by Borislav Petkov
parent 716572b000
commit aeaaf005da
2 changed files with 4 additions and 0 deletions

View File

@ -45,3 +45,5 @@ int80_and_ret:
.type int80_and_ret, @function
.size int80_and_ret, .-int80_and_ret
.section .note.GNU-stack,"",%progbits

View File

@ -57,3 +57,5 @@ call32_from_64:
ret
.size call32_from_64, .-call32_from_64
.section .note.GNU-stack,"",%progbits