Linking failure on aarch64

Torbjörn Granlund tg at gmplib.org
Fri Jul 3 18:54:06 UTC 2020


FX <fxcoudert at gmail.com> writes:

  > Fixing that, it builds fine and all checks pass. Thanks!

  With the patch, we are seeing an issue when static linking, however:

  Undefined symbols for architecture arm64:
    "__gmpn_pi1_bdiv_q_1", referenced from:
        ___gmpn_bdiv_q_1 in libgmp.a(bdiv_q_1.o)
       (maybe you meant: ___gmpn_pi1_bdiv_q_1)
  ld: symbol(s) not found for architecture arm64
  clang: error: linker command failed with exit code 1 (use -v to see invocation)

In mpn/arm64/bdiv_q_1.asm, the tail call to mpn_pi1_bdiv_q_1 needs a
GSYM_PREFIX prepended.  Like this:

	b	GSYM_PREFIX`'mpn_pi1_bdiv_q_1

Please try and report back.

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list