Hi Ben,
first of all, thank you very much for your progress. No, I don't see crash, but in fact infinite loop. As far as I understand the linker message '..linking...done' is printed when all the relocations are processed -- so it does not necessarily mean that all the relocations are processed correctly. My bet is that some of your relocation processing might not be correct.
If you don't get to this sooner (or any other interested developer), then in about 2 weeks I'll check your code to see if I see any obvious problem with your implementation in comparison with what ARM suggest in their ELF doc...
Thanks! Karel On 10/21/11 07:51 PM, Ben Gamari wrote:
After much debugging, I've put up a new version of my ARM linker support patchset on Github[1]. While the relocation code seems to work insofar as it gets past linking and begins running code without SIGILL or SIGSEGV, clearly something is amiss, $ inplace/bin/ghc-stage2 -Binplace/lib --interactive GHCi, version 7.3.20111018: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. ghc-stage2: main thread exited (uncaught exception) ghc-stage2: internal error: invalid closure, info=0x404fc010 (GHC version 7.3.20111018 for arm_unknown_linux) Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Aborted Any ideas what might be behind this? Looks nasty. Karel, do you see this as well? Cheers, - Ben [1] https://github.com/bgamari/ghc/tree/arm-ghci
_______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
