]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Always pass -m to ld for converting binary files to kernel ELF objects
authorEd Maste <emaste@FreeBSD.org>
Tue, 20 Sep 2016 17:07:14 +0000 (17:07 +0000)
committerEd Maste <emaste@FreeBSD.org>
Tue, 20 Sep 2016 17:07:14 +0000 (17:07 +0000)
commit1dd50172b0d868e007f4172c778c231e13d2629c
tree888e63e843f525e2c36629cd39c0ff1b91ee9131
parent43f24e2096011899f121f4a33c7d45409f718584
Always pass -m to ld for converting binary files to kernel ELF objects

This is in preparation for linking with LLVM's lld, which does not have
a compiled-in default output emulation. lld requires that it is
specified via the -m option, or obtained from the object file(s) being
linked.

This will also allow all build targets to share a common linker binary.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7837
sys/conf/kern.mk
sys/conf/kern.pre.mk
sys/conf/kmod.mk