aboutsummaryrefslogtreecommitdiff
path: root/cddl
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@FreeBSD.org>2021-01-22 12:13:03 +0000
committerMarcin Wojtas <mw@FreeBSD.org>2021-02-24 23:26:11 +0000
commit9a227a2fd642ec057a0ec70d67d5699d65553294 (patch)
tree75a2faa11f6b60ebd43366f5f75d5d256bc379be /cddl
parent3aa023643e9db78f4da314ff9bfb1643533c004f (diff)
downloadsrc-9a227a2fd642ec057a0ec70d67d5699d65553294.tar.gz
src-9a227a2fd642ec057a0ec70d67d5699d65553294.zip
Enable PIE by default on 64-bit architectures
This patch adds Position Independent Executables (PIE) flags for building OS. It allows to enable the ASLR feature based only on the sysctl knobs, without need to rebuild the image. Tests showed that no problems with stability / performance degradation were seen when using PIEs with ASLR disabled. The change is limited only for 64-bit architectures. Use bsd.opts.mk instead of the src.opts.mk in order to satisfy all build dependencies related to MK_PIE. Reviewed by: emaste, imp Obtained from: Semihalf Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D28328
Diffstat (limited to 'cddl')
0 files changed, 0 insertions, 0 deletions