]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[PowerPC] Switch to PIC kernel modules on powerpc*
authorbdragon <bdragon@FreeBSD.org>
Fri, 27 Dec 2019 04:07:51 +0000 (04:07 +0000)
committerbdragon <bdragon@FreeBSD.org>
Fri, 27 Dec 2019 04:07:51 +0000 (04:07 +0000)
commit1bcfc75d85695cf8a9707390d8d3fdb5ca53ab6c
treeccf0b962b6e906af77577e0c9155ea2963244c81
parent1e71d4b57b233e47195eed266e8f0f766a15cca9
[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