https://sourceware.org/bugzilla/show_bug.cgi?id=24832
Bug ID: 24832 Summary: mips: convert from data to object always generate MIPS I Product: binutils Version: 2.33 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: syq at debian dot org Target Milestone: --- $ echo "abc" > xx.dat $ mips64el-linux-gnuabi64-ld -r -b binary xx.dat -o xx.o $ file xx.o xx.o: ELF 64-bit LSB relocatable, MIPS, MIPS-I version 1 (SYSV), not stripped while to link xx.o with real mips64 objects, it fails: Index: binutils-2.32.51.20190707/bfd/elfxx-mips.c =================================================================== --- binutils-2.32.51.20190707.orig/bfd/elfxx-mips.c +++ binutils-2.32.51.20190707/bfd/elfxx-mips.c @@ -12193,6 +12193,11 @@ mips_set_isa_flags (bfd *abfd) switch (bfd_get_mach (abfd)) { default: + if (ABI_N32_P (abfd) || ABI_64_P (abfd)) + val = E_MIPS_ARCH_3; + else + val = E_MIPS_ARCH_1; + break; case bfd_mach_mips3000: val = E_MIPS_ARCH_1; break; can convert it to: xx.o: ELF 64-bit LSB relocatable, MIPS, MIPS-III version 1 (SYSV), not stripped https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932287 https://buildd.debian.org/status/fetch.php?pkg=glib2.0&arch=mips64el&ver=2.61.1-2&stamp=1563280987&raw=0 -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils