On Fri, 14 Oct 2011 07:38:06 +0200, Karel Gardas <[email protected]> wrote: > On 10/14/11 12:52 AM, Ben Gamari wrote: > > On Thu, 13 Oct 2011 19:02:24 +0200, Karel Gardas<[email protected]> > > wrote: > >> OK! Quick testing reveals: > >> > >> Loading package ghc-prim ... linking ... ghc-stage2: > >> /export/home/karel/vcs/ghc-src/bgamari-ghc-arm-linker/libraries/ghc-prim/dist-install/build/HSghc-prim-0.2.0.0.o: > >> ARM to Thumb transition unsupported > >> > >> ghc-stage2: unable to load package `ghc-prim' > >> > > This is fixed in the code I just pushed. I implemented both ARM -> Thumb > > and Thumb -> ARM transitions for the R_ARM_CALL and R_ARM_THM_CALL > > relocation types. As I note in the code, there are other relocation > > types which might also cause instruction set transitions, but these are > > harder, requiring the generation of veneer instructions. Hopefully we > > won't hit these cases. > > I'm afraid this is not the case. With patch: > Thanks for the fix. > applied to get it compiling, I got: > > Loading package ghc-prim ... linking ... ghc-stage2: > /export/home/karel/vcs/ghc-src/bgamari-ghc-arm-linker/libraries/ghc-prim/dist-install/build/HSghc-prim-0.2.0.0.o: > > Thumb to ARM transition with JUMP24 relocation not supported > Quite unfortunate. Well, I'll try implementing this. I know the sequence of instructions that should be used in the veneer. I just need to figure out where to place them.
- Ben _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
