AArch64 static DR link error: relocation out of range for unexpected_return
ld.lld: error: ..._core_arch_aarch64_aarch64.o:(.text+0x2C): relocation R_AARCH64_CONDBR19 out of range: 1508388 is not in [-1048576, 1048575]; references unexpected_return
>>> defined in ..._core_drlibc_drlibc_xarch.o
I can solve by moving unexpected_return
into aarch64.asm. It is in fact not referenced in drlibc for A64 (only for x86).