git: LTO: Prevent -flto from creating crashing kernels.
Rimvydas Jasinskas
zrj at crater.dragonflybsd.org
Tue Oct 25 09:18:25 PDT 2016
commit 2d84cb505b59a587cc37b385dee4696b846fcdd3
Author: zrj <rimvydas.jasinskas at gmail.com>
Date: Mon Oct 17 20:34:19 2016 +0300
LTO: Prevent -flto from creating crashing kernels.
There is something peculiar how default count of lto partitions is created
and used when compiling them. For now just enforce the use of a single one.
GENERIC as it is right now is fine, however turning off certain features
in config, causes the kernel fatal trap 12 very early on boot and reboot.
Note that -g -flto -O2 compilations can easily slurp 1.5-1.8GB of ram!
Summary of changes:
sys/conf/kern.pre.mk | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2d84cb505b59a587cc37b385dee4696b846fcdd3
--
DragonFly BSD source repository
More information about the Commits
mailing list