1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

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 ret
.size lzma_crc32, .-lzma_crc32 .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 ret
.size lzma_crc64, .-lzma_crc64 .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