mirror of https://git.tukaani.org/xz.git
Added note.GNU-stack to x86 assembler files. It is needed
when using non-executable stack.
This commit is contained in:
parent
4c7ad179c7
commit
e9f6e9c075
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue