Added note.GNU-stack to x86 assembler files. It is needed

when using non-executable stack.
This commit is contained in:
Lasse Collin 2008-01-26 21:40:23 +02:00
parent 4c7ad179c7
commit e9f6e9c075
2 changed files with 18 additions and 0 deletions

View File

@ -215,3 +215,12 @@ lzma_crc32:
ret
.size lzma_crc32, .-lzma_crc32
/*
* This is needed to support non-executable stack. It's ugly to
* use __linux__ here, but I don't know a way to detect when
* we are using GNU assembler.
*/
#if defined(__ELF__) && defined(__linux__)
.section .note.GNU-stack,"",@progbits
#endif

View File

@ -201,3 +201,12 @@ lzma_crc64:
ret
.size lzma_crc64, .-lzma_crc64
/*
* This is needed to support non-executable stack. It's ugly to
* use __linux__ here, but I don't know a way to detect when
* we are using GNU assembler.
*/
#if defined(__ELF__) && defined(__linux__)
.section .note.GNU-stack,"",@progbits
#endif