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)
Sat, Nov 30, 3:24 PM
Unknown Object (File)
Sat, Nov 30, 3:24 PM
Unknown Object (File)
Sat, Nov 30, 3:24 PM
Unknown Object (File)
Sat, Nov 30, 3:24 PM
Unknown Object (File)
Sat, Nov 30, 3:10 PM
Unknown Object (File)
Nov 22 2024, 2:09 AM
Unknown Object (File)
Nov 22 2024, 2:09 AM
Unknown Object (File)
Nov 22 2024, 2:09 AM
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.