should use a native link-editor during the build
We should build a native link-editor and its dependencies in usr/src/tools and use them during the rest of the build. This way new features in the link-editor can be used immediately in our tree.
Updated by Rich Lowe about 1 month ago
We have to accomplish this via adding a flag to cw(1) to specify the link-editor to use, and then having cw(1) set LD_ALTEXEC in the environment.
This is because GCC when built using --with-ld (as is common), cannot be made to search for ld in the directories specified by -B, the configured ld is hard-coded and unavoidable.