blob: 4f2fd398b33bb0a96a5c86d2eb8667223e54a876 (
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
|
graphic: 0.967
performance: 0.896
user-level: 0.873
device: 0.844
network: 0.826
files: 0.813
PID: 0.794
semantic: 0.794
architecture: 0.773
hypervisor: 0.771
TCG: 0.769
mistranslation: 0.765
kernel: 0.758
vnc: 0.745
VMM: 0.720
permissions: 0.708
socket: 0.700
boot: 0.689
ppc: 0.655
debug: 0.653
risc-v: 0.605
arm: 0.552
KVM: 0.430
peripherals: 0.425
register: 0.423
virtual: 0.421
x86: 0.293
assembly: 0.277
i386: 0.186
getdomainname() is not implemented in QEMU user mode on Linux/sparc64
Description of problem:
The `getdomainname()` function fails, instead of succeeding.
Steps to reproduce:
[foo.c](/uploads/7586c9aab788855b232a5c2f6aaeb4fc/foo.c)
1.
```
# apt install g++-10-sparc64-linux-gnu
# mkdir -p /usr/sparc64-linux-gnu/etc
# touch /usr/sparc64-linux-gnu/etc/ld.so.cache
```
2.
```
$ sparc64-linux-gnu-gcc-10 -Wall -static foo.c
```
[a.out](/uploads/39d291b95caa182d74b0b622a82667e8/a.out)
3. Transfer the a.out file to a Linux/sparc64 machine; execute it there. It prints
```
result: (none)
```
4.
```
$ QEMU_LD_PREFIX=/usr/sparc64-linux-gnu ~/inst-qemu/6.1.0/bin/qemu-sparc64 ./a.out
```
Expected: `result: (none)`
Actual: `getdomainname: Function not implemented`
Additional information:
|