frida / frida-gum

Cross-platform instrumentation and introspection library written in C
https://frida.re
Other
735 stars 242 forks source link

Compile error after update from 12.0.8 to 12.2.5.arch:x86 #300

Open zhaowq32 opened 6 years ago

zhaowq32 commented 6 years ago
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(gelf_getsym.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf_memory.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf_getdata.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf_strptr.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(gelf_getshdr.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf64_getshdr.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf32_getshdr.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf_nextscn.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(gelf_getphdr.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf64_getphdr.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf32_getphdr.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(gelf_getehdr.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(gelf_xlate.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(gelf_fsize.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf_end.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf_begin.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf_error.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf_version.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf_compress.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(gelf_getchdr.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf64_getchdr.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf32_getchdr.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf_getshdrnum.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf_getphdrnum.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(gelf_xlatetof.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf64_xlatetof.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: warning: D:/Develope/git/netshield/android/NetshieldApp/netshield/src/main/jni/libs/frida-gum/x86/libfrida-gum.a(elf32_xlatetof.o): last entry in mergeable string section '.debug_str' not null terminated
D:/Software/Android/android-ndk-r15c/build//../toolchains/x86-4.9/prebuilt/windows-x86_64/lib/gcc/i686-linux-android/4.9.x/../../../../i686-linux-android/bin\ld: internal error in value_from_output_section, at /usr/local/google/buildbot/src/android/gcc/toolchain/build/../binutils/binutils-2.25/gold/reloc.cc:1485
clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
xiaoyur347 commented 5 years ago

I suffer the same problem, and I update NDK to r17 now it works.

JonForShort commented 5 years ago

@zhaowq32 , frida is currently building with android ndk 17b.

https://dl.google.com/android/repository/android-ndk-r17b-windows-x86_64.zip

Please give that a try and see if your problem goes away.