chiark
/
gitweb
/
~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
base/asm-common.h: Include `.note.GNU-stack' section on ELF targets.
[catacomb]
/
base
/
asm-common.h
diff --git
a/base/asm-common.h
b/base/asm-common.h
index 08d4b548770658074f4170de3d8c48c9d3dd42ae..946f860884516eb50f07ee36e0e622a14b41c7fc 100644
(file)
--- a/
base/asm-common.h
+++ b/
base/asm-common.h
@@
-396,4
+396,9
@@
name:
# define SIZE_OBJ(name)
#endif
+#if __ELF__ && defined(WANT_EXECUTABLE_STACK)
+ .pushsection .note.GNU-stack, "", _SECTTY(progbits)
+ .popsection
+#endif
+
///----- That's all, folks --------------------------------------------------