Cross compiling for ARM: incorrect fx_r_type (8) for fx_subsy != 0

Daniel Ringwalt explodingpickle.org at explodingpickle.org
Wed Apr 30 02:35:59 CEST 2008


Line 32 of mpn/arm/invert_limb.asm seemed to be causing the problem:

    add r2, pc, #invtab-.-8

I removed it and everything else built. However I'm not sure how to go
about testing "inverting a normalized limb". I was originally hoping
to cross compile ECL for the iPhone but it seems to have its own
problems in cross compiling.

On Tue, Apr 29, 2008 at 8:31 AM, Torbjorn Granlund <tg at swox.com> wrote:
> "Daniel Ringwalt" <explodingpickle.org at explodingpickle.org> writes:
>
>   I am trying to cross compile GMP for the iPhone (arm-apple-darwin),
>   there is always this error during build:
>
>     tmp-invert_limb.s:56:FATAL:Internal error: incorrect fx_r_type (8)
>   for fx_subsy != 0 in fix_to_relocation_info()
>
>  It is good you get the assembler crash always, since non-deterministic
>  program behaviour is always annoying.
>
>  Apple has a tendency of following standards for relocations and object
>  file formats, and thus the GMP assembly code does not always work on
>  Apple systems.  Perhaps the assembler bug is triggered by unexpected
>  assembly code, perhaps not.
>
>  --
>  Torbjörn
>


More information about the gmp-bugs mailing list