Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
ALL
-
Platforms 2016-10-10, Platforms 2017-01-23
Description
We don't build ld.gold as part of our toolchain build on non-x86 platforms (though, perhaps we should, but that is a separate issue). When we use our toolchain on RHEL, we do not use ld.gold, as expected:
However, on Ubuntu 16.04, even though our toolchain doesn't contain ld.gold, the system does have /usr/bin/ld.gold. Since our toolchain can find an ld.gold by the default search path, our probe for support for -fuse-ld=gold succeeds, and we end up using it.
We should either start building gold in our toolchain on all platforms so that we interpose on any available system ld.gold, or we should figure out how to suppress having our toolchain search the default search path for ld.gold, or we should suppress checking for -fuse-ld=gold support on platforms where we don't currently build gold in our toolchain.