Mercurial > pub > dyncall > dyncall
diff dyncallback/dyncall_callback_arch.S @ 268:03f0b683918a
- reintroduced .note.GNU-stack section, as mentioned in prev commit
author | Tassilo Philipp |
---|---|
date | Sat, 27 May 2017 19:57:34 +0200 |
parents | b11b0735b09f |
children | 3581366858a6 |
line wrap: on
line diff
--- a/dyncallback/dyncall_callback_arch.S Sat May 27 19:18:23 2017 +0200 +++ b/dyncallback/dyncall_callback_arch.S Sat May 27 19:57:34 2017 +0200 @@ -79,3 +79,11 @@ # endif #endif + +/* Use .note.GNU-stack to explicitly indicate a non-exec stack, b/c of bad */ +/* default behaviour when translating handwritten assembly files (needed on */ +/* GNU/* platforms, Android and FreeBSD, as tests have shown). */ +#if (defined(DC__C_CLANG) || defined(DC__C_GNU)) && defined(__ELF__) && (defined(DC__OS_Linux) || defined(DC__OS_FreeBSD)) +.section .note.GNU-stack,"",%progbits +#endif +