Closed XVilka closed 6 years ago
I only have problems with mips ans from what i read is because the gcc shipped in the ndk is too old
On 22 May 2018, at 06:10, Anton Kochkov notifications@github.com wrote:
MIPS ( http://ci.rada.re/job/radare2-android-mips/lastBuild/consoleFull )
/opt/android/android-ndk-r10d/toolchains/mipsel-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/mipsel-linux-android/4.9/../../../../mipsel-linux-android/bin/ld: .libr/libr_anal.o: CALL16 reloc at 0x1fec0 not against global symbol .libr/libr_anal.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[3]: [Makefile:88: libr.so] Error 1 make[2]: [Makefile:100: libr.so] Error 2 make[1]: [Makefile:37: all] Error 2 make: [Makefile:59: all] Error 2 MIPS64 ( http://ci.rada.re/job/radare2-android-mips64/lastBuild/consoleFull )
/opt/android/android-ndk-r10d/toolchains/mips64el-linux-android-4.9/prebuilt/linux-x86_64/bin/../lib/gcc/mips64el-linux-android/4.9/../../../../mips64el-linux-android/bin/ld: .libr/libr_anal.o: CALL16 reloc at 0x1cbfc not against global symbol .libr/libr_anal.o: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[3]: [Makefile:88: libr.so] Error 1 make[2]: [Makefile:100: libr.so] Error 2 make[1]: [Makefile:37: all] Error 2 make: [Makefile:59: all] Error 2 Build step 'Execute shell' marked build as failure AARCH64 ( http://ci.rada.re/job/radare2-android-aarch64/lastBuild/consoleFull )
.libr/libr_asm.o: In function
print_insn_mips': /home/jenkins/workspace/radare2-android-aarch64/libr/asm/p/../arch/mips/gnu/mips-dis.c:1245:(.text+0x135a74): relocation truncated to fit: R_AARCH64_LD64_GOT_LO12_NC against
bfd_mips_num_opcodes' /home/jenkins/workspace/radare2-android-aarch64/libr/asm/p/../arch/mips/gnu/mips-dis.c:1273:(.text+0x13607c): relocation truncated to fit: R_AARCH64_LD64_GOT_LO12_NC againstbfd_mips_num_opcodes' .libr/libr_asm.o: In function
print_insn_mips16': /home/jenkins/workspace/radare2-android-aarch64/libr/asm/p/../arch/mips/gnu/mips-dis.c:1903:(.text+0x137670): relocation truncated to fit: R_AARCH64_LD64_GOT_LO12_NC againstbfd_mips16_num_opcodes' .libr/libr_asm.o: In function
nios2_init_opcode_hash': /home/jenkins/workspace/radare2-android-aarch64/libr/asm/p/../arch/nios/gnu/nios2-dis.c:65:(.text+0x13aa44): relocation truncated to fit: R_AARCH64_LD64_GOT_LO12_NC againstbfd_nios2_num_opcodes' .libr/libr_asm.o: In function
init_hash_tables': /home/jenkins/workspace/radare2-android-aarch64/libr/asm/p/../arch/tricore/gnu/tricore-dis.c:1089:(.text+0x15ab98): relocation truncated to fit: R_AARCH64_LD64_GOT_LO12_NC againsttricore_numsfrs' /home/jenkins/workspace/radare2-android-aarch64/libr/asm/p/../arch/tricore/gnu/tricore-dis.c:1095:(.text+0x15ac60): relocation truncated to fit: R_AARCH64_LD64_GOT_LO12_NC against
tricore_numsfrs' /home/jenkins/workspace/radare2-android-aarch64/libr/asm/p/../arch/tricore/gnu/tricore-dis.c:1118:(.text+0x15af7c): relocation truncated to fit: R_AARCH64_LD64_GOT_LO12_NC againsttricore_numsfrs' .libr/libr_bin.o: In function
init_demangler': /home/jenkins/workspace/radare2-android-aarch64/libr/bin/mangling/demangler.c:64:(.text+0xbd9e4): relocation truncated to fit: R_AARCH64_LD64_GOT_LO12_NC againstmicrosoft_demangle' .libr/libr_bin.o: In function
fill_list_for_stream_parsing': /home/jenkins/workspace/radare2-android-aarch64/libr/bin/pdb/pdb.c:287:(.text+0xcf4cc): relocation truncated to fit: R_AARCH64_LD64_GOT_LO12_NC againstfree_gdata_stream' /home/jenkins/workspace/radare2-android-aarch64/libr/bin/pdb/pdb.c:289:(.text+0xcf57c): relocation truncated to fit: R_AARCH64_LD64_GOT_LO12_NC against
free_pe_stream' /home/jenkins/workspace/radare2-android-aarch64/libr/bin/pdb/pdb.c:291:(.text+0xcf62c): additional relocation overflows omitted from the output collect2: error: ld returned 1 exit status make[3]: [Makefile:88: libr.so] Error 1 make[2]: [Makefile:100: libr.so] Error 2 make[1]: [Makefile:37: all] Error 2 make: [Makefile:59: all] Error 2 Build step 'Execute shell' marked build as failure — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
@radare so should I just update an NDK for those?
Yes and using -fuse-ld=gold in ldflags in theory
On 22 May 2018, at 09:47, Anton Kochkov notifications@github.com wrote:
@radare so should I just update an NDK for those?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.
im not building the merged lib anymore by default. so android builds may work. also the NDK is pure crap and contains old versions, so i would wait for when i need the merged lib to do something on android, and try again with a newer linker
MIPS ( http://ci.rada.re/job/radare2-android-mips/lastBuild/consoleFull )
MIPS64 ( http://ci.rada.re/job/radare2-android-mips64/lastBuild/consoleFull )
AARCH64 ( http://ci.rada.re/job/radare2-android-aarch64/lastBuild/consoleFull )