-
Enhancement
-
Resolution: Unresolved
-
P4
-
20
The default binutils linker used by gcc, the bfd linker, is slow. The new replacement, gold, has been distributed alongside gcc for several years now, and is a well mature, and much faster, replacement. A new contender, lld, is even faster (but maybe not mature enough).
We will need a new configure argument to be able to select the linker to use. Suggested format: --with-toolchain-linker=[bfd|gold|ldd]. It will only be valid for gcc. Configure should verify that the selected linker in fact is present and runnable.
As a future improvement, gold also allows for incremental linking. Turning on that is outside the scope of this issue.
We will need a new configure argument to be able to select the linker to use. Suggested format: --with-toolchain-linker=[bfd|gold|ldd]. It will only be valid for gcc. Configure should verify that the selected linker in fact is present and runnable.
As a future improvement, gold also allows for incremental linking. Turning on that is outside the scope of this issue.
- duplicates
-
JDK-8217723 Make linker selection possible in configure
- Closed
- relates to
-
JDK-8337955 Investigate using mold for linking hotspot
- Open
-
JDK-8296499 Use incremental linking on gold for hotspot where suitable
- Open