Page MenuHomeFreeBSD

Do not install GNU ld if lld is /usr/bin/ld
ClosedPublic

Authored by emaste on Nov 26 2018, 2:15 PM.

Details

Summary

GNU bintuils ld.bfd 2.17.50 does not support ifuncs and produces broken binaries when ifuncs are in use. When LLD_IS_LD is enabled we have an ifunc-capable system linker and can just avoid installing ld.bfd.

Reported by: theraven

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.Nov 26 2018, 2:15 PM

Combined with D18307 the only binutils tool installed on amd64, arm64, armv7 will be GNU as.

bz accepted this revision.Nov 26 2018, 3:29 PM
This revision is now accepted and ready to land.Nov 26 2018, 3:29 PM
This revision was automatically updated to reflect the committed changes.