Well, one thing I’ll need to investigate… I’ve been battling a slightly broken bzip2 which when compressing some files, would cause the whole machine to lock up. Environment is µClibc-0.9.31 based, using gcc-4.5.2.
Everything compiled with the CFLAGS: “-Os -pipe -mips1 -Wa,-mfix-loongson2f-nop”. The latter flag is really for Loongson 2F but I find it helpful on 2E as well. Things seemed to go well, except that I had no end of problems with the machine locking up when running bzip2 on some files. I found it reproduceable while building autoconf within Catalyst stage 1.
It would appear it’s a compiler issue, as when I rebuilt bzip2 using the CFLAGS: “-O2 -march=loongson2e -Wa,-mfix-loongson2f-nop”, it worked fine. I will have to investigate this further. I don’t think it’s a MIPS-I vs Loongson 2E issue, my hypothesis is that -Os generates some instructions that Loongson 2E doesn’t like, as I normally don’t have any problems running MIPS I binaries… the thing that’s significantly different is -Os vs -O2.




Recent Comments