[gnutls-devel] GnuTLS | relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against symbol `_nettle_aes256_decrypt_c' (#1687)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Tue Mar 25 19:23:17 CET 2025
Thomas Debesse created an issue: https://gitlab.com/gnutls/gnutls/-/issues/1687
I build nettle 3.10.1 as a static library on arm64 on Debian 12 Bookworm.
Then I attempt to link the Dæmon engine against it, but I get that linkage error:
```
lib/libnettle.a(fat-arm64.o): in function `fat_init':
nettle/nettle-3.10.1/fat-arm64.c:251:(.text.startup+0x154):
relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against symbol `_nettle_aes256_decrypt_c'
defined in .text section in lib/libnettle.a(aes256-decrypt.o)
/usr/bin/ld: nettle/nettle-3.10.1/fat-arm64.c:251:
warning: too many GOT entries for -fpic, please recompile with -fPIC
```
I get the same linkage error with nettle 3.8.1 on arm64 on Debian 12 Bookworm:
```
lib/libnettle.a(fat-arm64.o): in function `fat_init':
nettle/nettle-3.8.1/fat-arm64.c:219:(.text.startup+0x154):
relocation truncated to fit: R_AARCH64_LD64_GOTPAGE_LO15 against symbol `_nettle_aes256_decrypt_c'
defined in .text section in lib/libnettle.a(aes256-decrypt.o)
/usr/bin/ld: nettle/nettle-3.8.1/fat-arm64.c:219:
warning: too many GOT entries for -fpic, please recompile with -fPIC
```
But I know I don't get this error with nettle 3.8.1 when cross-compiling to arm64 on Debian 10 Buster (the cross-compiler is running on amd64).
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1687
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20250325/809130ea/attachment.html>
More information about the Gnutls-devel
mailing list