[s390x] 9.12/9.14 segfaults when compiling simple executable
## Summary
I have been working on building 9.12 for Fedora for a while now.
Today I finally got a full build to complete,
however the sanity executable I compile with it seemed to segfault
immediately.
GHC build log: https://kojipkgs.fedoraproject.org/work/tasks/5070/126455070/build.log (2,600kB)
## Steps to reproduce
Compile `main = putStrLn "Foo"` on Fedora Linux Rawhide s390x
```
+ echo 'main = putStrLn "Foo"'
+ /builddir/build/BUILD/ghc9.12-9.12.0.20241128-build/BUILDROOT/usr/lib64/ghc-9.12.0.20241128/bin/ghc testghc/foo.hs -o testghc/foo
[1 of 2] Compiling Main ( testghc/foo.hs, testghc/foo.o )
/var/tmp/rpm-tmp.GpbaAY: line 55: 247057 Segmentation fault (core dumped) $GHC testghc/foo.hs -o testghc/foo
```
## Expected behavior
No crash
## Environment
* GHC version used: 9.12.1 rc1
Optional:
* Operating System: Fedora Linux
* System Architecture: s390x
issue