HomeFreeBSD

pass -fPIC to the assembler, not linker

Description

pass -fPIC to the assembler, not linker

-fPIC has no effect on linking although it seems to be ignored by
GNU ld.bfd. However, it causes ld.lld to terminate with an invalid
argument error.

Reviewed by: dchagin, kib
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D5444

Details

Provenance
emasteAuthored on
Reviewer
dchagin
Differential Revision
D5444: remove -fPIC from linux modules link commandline
Parents
rS296056: MFC r295273:
Branches
Unknown
Tags
Unknown