[LLVMdev] failed assertion in PPCJITInfo.cpp when calling native function

Ralph Corderoy ralph at inputplus.co.uk
Wed Sep 20 03:33:52 PDT 2006


Hi Andreas,

> /llvm/lib/Target/PowerPC/PPCJITInfo.cpp:206: failed assertion
> `ResultPtr >= -(1 << 23) && ResultPtr < (1 << 23) && "Relocation out
> of range!"'
> ...
> So how is this supposed to work? Is it wrong that the memory block for
> the JIT code is allocated too far off or should a non PC relative jump
> be generated instead?

I'd guess that the author of the code generator simply coped with the
easier, more common, case and put the assert() in to catch the uncommon,
not implemented yet, case rather than stumbling blindly on making
debugging more difficult.

In other words, the code generator needs improving to cope with a jump
to an address that is too far away for a PC-relative jump.

Cheers,


Ralph.





More information about the llvm-dev mailing list