blob: 4c5ba6deaa35248634adbafeb2b5143cf128333f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
mips binaries segfault
Hello World appears to segfault with qemu mips, on a Debian 10.0.0 Buster amd64 host.
Example:
$ cat mips/test/hello.cpp
#include <iostream>
using std::cout;
int main() {
cout << "Hello World!\n";
return 0;
}
$ mips-linux-gnu-g++ -o hello hello.cpp && ./hello
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
Note that 64-bit MIPS and little endian 32-bit MIPS qemu work fine. The problem is limited to big endian 32-bit MIPS.
Could you attach the version of g++ and qemu? In other words, can you capture the output of:
mips-linux-gnu-g++ --version
and
qemu-mips --version
?
Does the problem happen if you compile with "-static" option?
Yours,
Aleksandar
Does the problem exist using c hello world and gcc?
[Expired for QEMU because there has been no activity for 60 days.]
|