HomeFreeBSD

MFC r330366 (by emaste):

Description

MFC r330366 (by emaste):

When lld is ld, install bfd's man page as ld.bfd.1

When WITH_LLD_IS_LD is set, lld's man page is installed as ld.1.gz, as
was GNU BFD's man page prior to this change.

Reported by: Tobias Kortkamp
Sponsored by: The FreeBSD Foundation

MFC r335447 (by bdrewery):

Rework how the ld link is handled in WORLDTMP from r322811.

LLD_BOOTSTRAP (build) is independent of LLD_IS_LD (installed) so they
should not be based on each other.

This is related to upcoming WITH_SYSTEM_LINKER work.

Reviewed by: emaste
Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D15836

MFC r335448 (by bdrewery):

Rework WITHOUT_LLD/TOOLCHAIN fix from r327892 for cross-tools.

MK_LLD is for the installed lld while MK_LLD_BOOTSTRAP is for the build
tool. For WITH_SYSTEM_LINKER it is necesarry to separate the logic of
these two. When building libllvm TOOLS_PREFIX will be defined and
MK_LLD_BOOTSTRAP should be checked instead.

Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D15837

MFC r335449 (by bdrewery):

Fix sources needed for lld.

lld always needs these DWARF sources, as well as other default and extra
tools. XDL seems to be the best fit list.

Remove MK_LLD_IS_LD check from SRCS_MIW which is now reduced to just a
few files for llvm-objdump.

Sponsored by: Dell EMC
Differential Revision: https://reviews.freebsd.org/D15915

MFC r335560 (by bdrewery):

Revert r335449 and add needed MK_LLD_BOOTSTRAP check for SRCS_MIW.

This effectively reverts r335449 and changes the previous MK_LLD_IS_LD
to a MK_LLD_BOOTSTRAP check. If !TOOLS_PREFIX then these sources are
always built for llvm-objdump, lld, and llvm-cov. When TOOLS_PREFIX
is set then they are only needed if lld is being bootstrapped.

Reported by: dim
Pointyhat to: bdrewery
Sponsored by: Dell EMC