Page MenuHomeFreeBSD

Use lld as the bootstrap linker on armv7 by default
ClosedPublic

Authored by emaste on Jul 31 2018, 3:39 PM.

Details

Summary

As of rS336972 lld is capable linking the armv7 kernel and userland, so enable it by default.

PR: 229050
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

emaste created this revision.Jul 31 2018, 3:39 PM
emaste edited the summary of this revision. (Show Details)Jul 31 2018, 3:40 PM

Is there some magic that should be included here (or should've been included with the cherry-picked bits) to force a bootstrap LLD to be built?

I hadn't upgraded my host yet with the cherry-picked commits from this morning and thus had to force WITHOUT_SYSTEM_LINKER for the VFP flag bits. The build hasn't finished running, so I can't say conclusively that that was the only problem, but it certainly wouldn't have helped. =)

force a bootstrap LLD to be built?

On commit when we bump the FreeBSD version number reported in ld.lld -v it should DTRT, but for testing I just did a rm -rf of the arm.armv7 obj tree.

FreeBSD version number bumped in rS337009

kevans added a comment.Aug 1 2018, 6:35 PM

Tested with: Banana Pi M3 (a83t)

kevans accepted this revision as: kevans.Aug 1 2018, 6:58 PM
This revision is now accepted and ready to land.Aug 1 2018, 6:58 PM
This revision was automatically updated to reflect the committed changes.