summaryrefslogtreecommitdiffstats
path: root/reloc.S
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-08-14 13:53:19 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-08-14 13:53:19 -0700
commite0899f0bcaabdf40c1275cecf1d68531c7d6b970 (patch)
treef79aba3d504fde339b435d3af562cd7df2727d48 /reloc.S
parentfe81587002fc04ec97fdfa83e50eba9fa66f750e (diff)
downloadwraplinux-e0899f0bcaabdf40c1275cecf1d68531c7d6b970.tar.gz
wraplinux-e0899f0bcaabdf40c1275cecf1d68531c7d6b970.tar.xz
wraplinux-e0899f0bcaabdf40c1275cecf1d68531c7d6b970.zip
reloc.S: don't prevent !exec stack
Set the bit that allows the linker to generate the GNU_STACK annotation, thus preventing the stack from execution. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'reloc.S')
-rw-r--r--reloc.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/reloc.S b/reloc.S
index ddf20ab..09ea410 100644
--- a/reloc.S
+++ b/reloc.S
@@ -15,3 +15,9 @@ reloc:
.incbin "reloc/reloc.bin"
.size reloc,.-reloc
.L_reloc_end:
+
+/*
+ * This is necessary to keep the whole executable
+ * from needing a writable stack.
+ */
+ .section .note.GNU-stack,"",@progbits