On Fri, 17 Oct 2014 14:56:39 +0200 Matthias Klose <[email protected]> wrote:
> Package: src:binutils
> Version: 2.24.90.20141014-1
> Severity: important
>
> The testsuite shows 29 test failures on both mips and mipsel. Please could a
> porter have a look?
I just notice that the binutils 2.36.50.20210601-1 meet a new fail:
ar with versioned solib
It is due to:
Our gcc is FPXX default, so the output of asm code has
.module fp=xx
While as is MIPS I default,
It complains that LDC1/SDC1 is not available on MIPS I.
Here is the workaround:
Index: binutils-2.36.50.20210601/gas/config/tc-mips.c
===================================================================
--- binutils-2.36.50.20210601.orig/gas/config/tc-mips.c
+++ binutils-2.36.50.20210601/gas/config/tc-mips.c
@@ -16741,6 +16741,9 @@ parse_code_option (char * name)
else
return OPTION_TYPE_BAD;
+ if (mips_opts.isa == ISA_MIPS1 && mips_opts.fp == 0)
+ mips_opts.isa = ISA_MIPS2;
+
return isa_set ? OPTION_TYPE_ISA : OPTION_TYPE_NORMAL;
}
I have send a patch to gcc upstream about the real solution:
Add .module mipsREV to asm code file.
https://gcc.gnu.org/pipermail/gcc-patches/2021-June/572975.html
>
>