Merge pull request #2669 from emaste/gnu-stack

deps: lzma: also use .note.GNU-stack on FreeBSD
master
Richard Stanway 2020-04-12 16:48:28 +02:00 committed by GitHub
commit ba18da6959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -299,6 +299,6 @@ LZMA_CRC32:
* use __linux__ here, but I don't know a way to detect when
* we are using GNU assembler.
*/
#if defined(__ELF__) && defined(__linux__)
#if defined(__ELF__) && (defined(__FreeBSD__) || defined(__linux__))
.section .note.GNU-stack,"",@progbits
#endif

View File

@ -282,6 +282,6 @@ LZMA_CRC64:
* use __linux__ here, but I don't know a way to detect when
* we are using GNU assembler.
*/
#if defined(__ELF__) && defined(__linux__)
#if defined(__ELF__) && (defined(__FreeBSD__) || defined(__linux__))
.section .note.GNU-stack,"",@progbits
#endif