unhandled ELF relocation(RelA) type 23
Armin Groesslinger
groessli at fmi.uni-passau.de
Thu Jul 19 04:15:09 EDT 2001
Hello,
when compiling GHC 5.00.x on Solaris with gcc 2.95.x
I get this error when trying to start GHCI:
127> ghci
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 5.00.2, For Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
Loading package std ... linking ... unhandled ELF relocation(RelA) type 23
ghc-5.00.2: fatal error: do_Elf32_Rela_relocations: unhandled ELF
relocation type
Looking at ghc/rts/Linker.c, (and finding out what "type 23" is),
I applied the following patch to Linker.c, which seems to fix the
problem. I don't know much about reloction on Sparc, so I'm not
absolutely sure, it is really correct, but I didn't experience any
problems.
Regards,
Armin
--- ghc-5.00.2/ghc/rts/Linker.c Thu Jun 7 18:36:41 2001
+++ ghc-5.00.2-p/ghc/rts/Linker.c Thu Jul 5 16:55:00 2001
@@ -1677,6 +1677,7 @@
w1 |= w2;
*pP = w1;
break;
+ case R_SPARC_UA32:
case R_SPARC_32:
w2 = (Elf32_Word)(S + A);
*pP = w2;
More information about the Glasgow-haskell-bugs
mailing list