Page MenuHomeFreeBSD

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

Authored by bdrewery on Jun 15 2018, 10:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 11, 6:26 AM
Unknown Object (File)
Sat, Aug 8, 5:28 PM
Unknown Object (File)
Fri, Aug 7, 2:57 AM
Unknown Object (File)
Tue, Jul 21, 10:01 AM
Unknown Object (File)
Jul 11 2026, 7:35 PM
Unknown Object (File)
Jul 5 2026, 11:04 PM
Unknown Object (File)
Jul 5 2026, 3:40 AM
Unknown Object (File)
Jul 3 2026, 12:48 PM
Subscribers

Details

Summary

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.

Sponsored by: Dell EMC

Test Plan

Did various WITHOUT_LLD and WITHOUT_LLD_IS_LD tests (with WITH_LLD_BOOTSTRAP set)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

gnu/usr.bin/binutils/ld/Makefile
11 ↗(On Diff #43854)

This is not strictly needed for make buildworld but DIRDEPS_BUILD actually will complain if 2 ld.1 files get installed.

usr.bin/clang/lld/Makefile
12 ↗(On Diff #43854)

We really need some documentation for the magic TOOLS_PREFIX tests

usr.bin/clang/lld/Makefile
12 ↗(On Diff #43854)

All it really means is that it is in the 'cross-tools' phase of buildworld and is building a cross-toolchain for the build only.

usr.bin/clang/lld/Makefile
12 ↗(On Diff #43854)

Doesn't this one need (!defined(TOOLS_PREFIX && ...) || (defined(TOOLS_PREFIX) && ...) like the other case?

Reduce duplicated logic and add missing check on TOOLS_PREFIX.

This revision is now accepted and ready to land.Jun 19 2018, 2:27 AM
This revision was automatically updated to reflect the committed changes.