summaryrefslogtreecommitdiff
path: root/Mk/Features/relro.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Mk/Features/relro.mk')
-rw-r--r--Mk/Features/relro.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/Mk/Features/relro.mk b/Mk/Features/relro.mk
index 6ceb68d5d668..8074ce09edd7 100644
--- a/Mk/Features/relro.mk
+++ b/Mk/Features/relro.mk
@@ -1,4 +1,9 @@
# RELRO Support
+#
+# Tells the linker to emit RELocation Read-Only (RELRO) protection for certain
+# sections of your ELF file. In short, it makes parts of the binary read-only
+# after relocations have been applied at program startup, helping to prevent
+# GOT- and PLT-based overwrite attacks.
.if !defined(_RELRO_MK_INCLUDED)
_RELRO_MK_INCLUDED= yes