alpine 3.12 and 3.18 produce broken binaries when using default linker selection
It's known that using gold on older versions of alpine leads to a broken configuration.
* alpine-3.12 - Segfaults with default linker selection (https://gitlab.haskell.org/ghc/ghcup-ci/-/jobs/1936098)
* alpine-3.18 - Segfaults with default linker selection (https://gitlab.haskell.org/ghc/ghcup-ci/-/jobs/1936100)
* alpine-3.20 - Works with default linker selection (https://gitlab.haskell.org/ghc/ghcup-ci/-/jobs/1936102)
All configurations pass when passing `--disable-ld-override`.
We should modify the configuration script to detect when the linker is broken like this and not select it by default.
cc @benz0li
issue