Open giantbranch opened 2 years ago
Environment
error message
/root/SkCodecFuzzer/android-ndk-r21e/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android29-clang++ -o loader loader.o common.o tokenizer.o libdislocator.o -L/root/SkCodecFuzzer/deps/capstone-5.0-rc2 -lcapstone -L/root/SkCodecFuzzer/system/lib64 -lhwui -ldl -lbacktrace -landroidicu -lstatspull -Wl,-rpath -Wl,/root/SkCodecFuzzer/system/lib64 -Wl,--dynamic-linker=/root/SkCodecFuzzer/system/bin/linker64 /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsManager_PullAtomMetadata_obtain@LIBSTATSPULL' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEvent_addBoolAnnotation@LIBSTATSSOCKET' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEvent_writeAttributionChain@LIBSTATSSOCKET' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEvent_writeBool@LIBSTATSSOCKET' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEvent_writeString@LIBSTATSSOCKET' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEvent_writeFloat@LIBSTATSSOCKET' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsManager_PullAtomMetadata_release@LIBSTATSPULL' /root/SkCodecFuzzer/system/lib64/libmediautils.so: undefined reference to `_Unwind_Backtrace@LIBC_R' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEvent_release@LIBSTATSSOCKET' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `jniThrowException@LIBNATIVEHELPER_1' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEvent_writeInt64@LIBSTATSSOCKET' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEventList_addStatsEvent@LIBSTATSPULL' /root/SkCodecFuzzer/system/lib64/libmediadrm.so: undefined reference to `mediametrics_setUid@LIBMEDIAMETRICS_1' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEvent_writeInt32@LIBSTATSSOCKET' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `jniThrowNullPointerException@LIBNATIVEHELPER_1' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEvent_setAtomId@LIBSTATSSOCKET' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEvent_write@LIBSTATSSOCKET' /root/SkCodecFuzzer/system/lib64/libstatspull.so: undefined reference to `_Unwind_GetIP@LIBC_R' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsManager_PullAtomMetadata_setTimeoutMillis@LIBSTATSPULL' /root/SkCodecFuzzer/system/lib64/libstatspull.so: undefined reference to `_Unwind_GetRegionStart@LIBC_R' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsManager_setPullAtomCallback@LIBSTATSPULL' /root/SkCodecFuzzer/system/lib64/libselinux.so: undefined reference to `__system_properties_init@LIBC_Q' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `jniGetNioBufferBaseArrayOffset@LIBNATIVEHELPER_1' /root/SkCodecFuzzer/system/lib64/libstatspull.so: undefined reference to `_Unwind_RaiseException@LIBC_R' /root/SkCodecFuzzer/system/lib64/libmediadrm.so: undefined reference to `mediametrics_create@LIBMEDIAMETRICS_1' /root/SkCodecFuzzer/system/lib64/libstatspull.so: undefined reference to `_Unwind_SetGR@LIBC_R' /root/SkCodecFuzzer/system/lib64/libstatspull.so: undefined reference to `_Unwind_SetIP@LIBC_R' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEvent_build@LIBSTATSSOCKET' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `jniGetNioBufferBaseArray@LIBNATIVEHELPER_1' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsManager_PullAtomMetadata_setCoolDownMillis@LIBSTATSPULL' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEvent_obtain@LIBSTATSSOCKET' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `jniGetFDFromFileDescriptor@LIBNATIVEHELPER_1' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `_Unwind_Resume@LIBC_R' /root/SkCodecFuzzer/system/lib64/libmediandk.so: undefined reference to `JNI_GetCreatedJavaVMs@LIBNATIVEHELPER_1' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `AStatsEvent_writeByteArray@LIBSTATSSOCKET' /root/SkCodecFuzzer/system/lib64/libstatspull.so: undefined reference to `_Unwind_DeleteException@LIBC_R' /root/SkCodecFuzzer/system/lib64/libhwui.so: undefined reference to `jniThrowExceptionFmt@LIBNATIVEHELPER_1' /root/SkCodecFuzzer/system/lib64/libmediadrm.so: undefined reference to `mediametrics_setCString@LIBMEDIAMETRICS_1' /root/SkCodecFuzzer/system/lib64/libmediadrm.so: undefined reference to `mediametrics_delete@LIBMEDIAMETRICS_1' ................................. ................................. .................................
Not sure why the desired symbol needs a suffix @LIBXXXXX
has AStatsManager_PullAtomMetadata_obtain but not AStatsManager_PullAtomMetadata_obtain@LIBSTATSPULL
root@vm:~/SkCodecFuzzer/source# grep "AStatsManager_PullAtomMetadata_obtain" -r /root/SkCodecFuzzer/system/lib64/libhwui.so Binary file /root/SkCodecFuzzer/system/lib64/libhwui.so matches root@vm:~/SkCodecFuzzer/source# grep "AStatsManager_PullAtomMetadata_obtain@LIBSTATSPULL" -r /root/SkCodecFuzzer/system/lib64/libhwui.so
Environment
error message
Not sure why the desired symbol needs a suffix @LIBXXXXX
has AStatsManager_PullAtomMetadata_obtain but not AStatsManager_PullAtomMetadata_obtain@LIBSTATSPULL