blob: 45f36fc6363dc408fd8f59dcdb163426794f69f8 (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
architecture: 0.673
device: 0.656
graphic: 0.588
mistranslation: 0.485
semantic: 0.481
ppc: 0.462
performance: 0.441
PID: 0.378
files: 0.366
user-level: 0.318
register: 0.282
permissions: 0.269
boot: 0.268
arm: 0.255
debug: 0.205
socket: 0.166
vnc: 0.155
virtual: 0.136
assembly: 0.127
VMM: 0.124
network: 0.092
x86: 0.092
TCG: 0.087
risc-v: 0.079
peripherals: 0.049
kernel: 0.043
i386: 0.040
hypervisor: 0.032
KVM: 0.024
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.]
|