Hi Matthias, On Tue, Aug 20, 2024 at 09:35AM, Matthias Klose wrote: > CCing debian-mips, what the correct configuration option should be. Is > there a good reason to still use the gold linker instead of the default BFD > linker? That probably should be fixed on the GHC side.
GHC depends on gold since this is the default configuration upstream provides. I will look into moving to BFD, but this needs testing to ensure nothing breaks. Since GHC depends on itself to build, and since the current version of GHC uses gold on mips64el, right now we need a working gold on mips64el to be able to move forward. I still believe this bug should have a severity of critical, since gold is broken on mips64el due to a configuration change. In case it helps, here is a simple reproducer that doesn't involve GHC at all: $ echo 'int main() {return 0;}' > foo.c $ gcc -fuse-ld=gold foo.c /usr/bin/ld.gold: error: .gnu.hash is incompatible with the MIPS ABI collect2: error: ld returned 1 exit status Would it help if I try to revert the following change made in version 2.43-1 * Configure with --enable-default-hash-style=gnu. and provide a patch on this bug report? Thanks, -- Ilias