HomeFreeBSD

[PowerPC] Switch to PIC kernel modules on powerpc*

Description

[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

Details

Provenance
bdragonAuthored on
Reviewer
jhibbits
Differential Revision
D22798: [PowerPC] Flag day parts of D22608
Parents
rS356113: Eliminate the last MI difference in AT_* definitions (for powerpc).
Branches
Unknown
Tags
Unknown