unit-test fail to cross-compile for aarch64
When trying to cross-compile tor for AARCH64 following error is given:
src/common/libor-crypto-testing.a(src_common_libor_crypto_testing_a-crypto_format.o): In function
crypto_write_tagged_contents_to_file': crypto_format.c:(.text+0x1c): relocation truncated to fit: R_AARCH64_LDST64_ABS_LO12_NC against symbol smartlist_new' defined in .text section in src/common/libor.a(container.o)
collect2: error: ld returned 1 exit status
For complete log see here: http://autobuild.buildroot.net/results/13ef47c962afefbaa9ea7a95de083f885f1a8825/
The error might be misleading, I was told that this can happen because test and non-test library archives are getting mixed up and the aarch64 toolchain is more picky about this then other toolchains.