On Tue, Nov 24, 2020 at 6:14 AM Richard W.M. Jones <[email protected]> wrote: > > One thing I'm missing: Why does golang need gold?
The gccgo and GoLLVM compilers (which are not the most widely used Go compilers) require the gold linker for full support of stack splitting. Stack splitting is used to ensure that goroutines do not run out of stack space. Stack splitting is supported by gold and lld, but, as far as I know, is not supported by the GNU linker. However, the bulk of stack splitting support is in the compiler, At least for GCC, stack splitting is only supported on x86, PPC, and S/390. So at least until stack splitting support is added for RISC/V, there is no particular reason to require the gold linker for RISC/V. (It does seem a shame that people are thinking of deprecating gold, but it's certainly true that I have not had time to maintain it.) Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWtrfMbM%2BcxR6gkoSnFrxyNa-JFh8GaG701ukScc88RPg%40mail.gmail.com.
