Linking failure on aarch64

Torbjörn Granlund tg at
Fri Jul 3 08:43:02 UTC 2020

FX <fxcoudert at> writes:

  If I don’t disable assembly, the compiler’s not happy with the asm code:

  libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP
  -I.. -DOPERATION_dcpi1_bdiv_q -O2 -pedantic -march=armv8-a -c
  dcpi1_bdiv_q.c -o dcpi1_bdiv_q.o >/dev/null 2>&1
  tmp-bdiv_q_1.s:75:2: error: ADR/ADRP relocations must be GOT relative
   adrp x7, :got:__gmp_binvert_limb_table
  tmp-bdiv_q_1.s:75:2: error: unknown AArch64 fixup kind!
   adrp x7, :got:__gmp_binvert_limb_table
  tmp-bdiv_q_1.s:77:2: error: unknown AArch64 fixup kind!
   ldr x7, [x7, #:got_lo12:__gmp_binvert_limb_table]

  which happens in both tmp-bdiv_q_1.s and tmp-invert_limb.s

Could you please try again with the attached patch, doing just a plain
.../configure && make && make check?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm64-darwin.diff
Type: text/x-patch
Size: 5463 bytes
Desc: not available
URL: <>
-------------- next part --------------

Please encrypt, key id 0xC8601622

More information about the gmp-bugs mailing list