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
F112031291: D15836.diff
Tue, Mar 11, 8:09 PM
Unknown Object (File)
Fri, Feb 21, 4:34 AM
Unknown Object (File)
Fri, Feb 21, 2:02 AM
Unknown Object (File)
Wed, Feb 19, 2:14 AM
Unknown Object (File)
Jan 13 2025, 11:28 PM
Unknown Object (File)
Jan 13 2025, 10:28 PM
Unknown Object (File)
Jan 13 2025, 5:41 PM
Unknown Object (File)
Dec 26 2024, 4:56 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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 17431
Build 17263: arc lint + arc unit

Event Timeline

gnu/usr.bin/binutils/ld/Makefile
11

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

We really need some documentation for the magic TOOLS_PREFIX tests

usr.bin/clang/lld/Makefile
12

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

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.