Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108253786
D28328.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
999 B
Referenced Files
None
Subscribers
None
D28328.diff
View Options
diff --git a/share/mk/bsd.opts.mk b/share/mk/bsd.opts.mk
--- a/share/mk/bsd.opts.mk
+++ b/share/mk/bsd.opts.mk
@@ -75,7 +75,6 @@
INIT_ALL_PATTERN \
INIT_ALL_ZERO \
INSTALL_AS_USER \
- PIE \
RETPOLINE \
STALE_STAGED
@@ -85,6 +84,21 @@
STAGING_PROG/STAGING \
STALE_STAGED/STAGING \
+#
+# Default to disabling PIE on 32-bit architectures. The small address space
+# means that ASLR is of limited effectiveness, and it may cause issues with
+# some memory-hungry workloads.
+#
+.if ${MACHINE_ARCH} == "armv6" || ${MACHINE_ARCH} == "armv7" \
+ || ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "mips" \
+ || ${MACHINE_ARCH} == "mipsel" || ${MACHINE_ARCH} == "mipselhf" \
+ || ${MACHINE_ARCH} == "mipshf" || ${MACHINE_ARCH} == "mipsn32" \
+ || ${MACHINE_ARCH} == "mipsn32el" || ${MACHINE_ARCH} == "powerpc" \
+ || ${MACHINE_ARCH} == "powerpcspe"
+__DEFAULT_NO_OPTIONS+= PIE
+.else
+__DEFAULT_YES_OPTIONS+=PIE
+.endif
.include <bsd.mkopt.mk>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 3:49 AM (10 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16074130
Default Alt Text
D28328.diff (999 B)
Attached To
Mode
D28328: Enable PIE by default on 64-bit architectures
Attached
Detach File
Event Timeline
Log In to Comment