I just compiled a shared library on Windows with clang++ to arm64 but, I got runtime error:
09-25 17:59:40.601 11149 11175 E C03F00/MUSL-LDSO: relocating failed: symbol not found. dso=/system/lib64/libfoo.so s=__emutls_get_address use_vna_hash=0 van_hash=009-25 10:59:40.602 11149 11175 E C05810/com.DefaultCompany.AppSignTest/frame_generation: Platform::DynamicLibrary(posix)::Load - Can't load <private> library, dlerror: <private>
As far as I know __emutls_get_address
is for TLS (thread-local storage) emulation. How can I eliminate this problem? I tried to include -lgcc_eh
flag, but I got he same error.
I also checked this page: link