git: LTO: Prevent -flto from creating crashing kernels.
zrj at crater.dragonflybsd.org
Tue Oct 25 09:18:25 PDT 2016
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(-)
DragonFly BSD source repository
More information about the Commits