]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC] Switch to PIC kernel modules on powerpc*
authorBrandon Bergren <bdragon@FreeBSD.org>
Fri, 27 Dec 2019 04:07:51 +0000 (04:07 +0000)
committerBrandon Bergren <bdragon@FreeBSD.org>
Fri, 27 Dec 2019 04:07:51 +0000 (04:07 +0000)
commitb1f8da38435573591f3a33c7c1243325017b741b
treeccf0b962b6e906af77577e0c9155ea2963244c81
parentadea0d6368dd6eb42b029ed35555ac5d7a664c2e
[PowerPC] Switch to PIC kernel modules on powerpc*

To improve reliability of kernel modules after the clang switch, switch to
-fPIC when building for now.

This bypasses some limitations to the way clang and LLD handle relocations,
and is a more robustly tested compilation regime than the
"static shared object" mode that we were previously attempting to convince
the compiler stack to use.

The kernel linker was recently augmented to be able to handle this mode.

Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D22798
sys/conf/kmod.mk