diff options
Diffstat (limited to 'meta/packages/qemu/files/fix_segfault.patch')
-rw-r--r-- | meta/packages/qemu/files/fix_segfault.patch | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta/packages/qemu/files/fix_segfault.patch b/meta/packages/qemu/files/fix_segfault.patch new file mode 100644 index 0000000000..976c75cd60 --- /dev/null +++ b/meta/packages/qemu/files/fix_segfault.patch | |||
@@ -0,0 +1,46 @@ | |||
1 | Index: qemu/Makefile.target | ||
2 | =================================================================== | ||
3 | --- qemu.orig/Makefile.target 2007-06-29 10:57:58.000000000 +0000 | ||
4 | +++ qemu/Makefile.target 2007-06-29 10:58:01.000000000 +0000 | ||
5 | @@ -241,7 +241,6 @@ | ||
6 | ifdef CONFIG_LINUX_USER | ||
7 | OBJS= main.o syscall.o mmap.o signal.o path.o osdep.o thunk.o \ | ||
8 | elfload.o linuxload.o | ||
9 | -LIBS+= $(AIOLIBS) | ||
10 | ifdef TARGET_HAS_BFLT | ||
11 | OBJS+= flatload.o | ||
12 | endif | ||
13 | Index: qemu/linux-user/syscall.c | ||
14 | =================================================================== | ||
15 | --- qemu.orig/linux-user/syscall.c 2007-06-29 10:58:01.000000000 +0000 | ||
16 | +++ qemu/linux-user/syscall.c 2007-06-29 10:58:30.000000000 +0000 | ||
17 | @@ -4872,29 +4872,6 @@ | ||
18 | goto unimplemented_nowarn; | ||
19 | #endif | ||
20 | |||
21 | -#ifdef TARGET_NR_clock_gettime | ||
22 | - case TARGET_NR_clock_gettime: | ||
23 | - { | ||
24 | - struct timespec ts; | ||
25 | - ret = get_errno(clock_gettime(arg1, &ts)); | ||
26 | - if (!is_error(ret)) { | ||
27 | - host_to_target_timespec(arg2, &ts); | ||
28 | - } | ||
29 | - break; | ||
30 | - } | ||
31 | -#endif | ||
32 | -#ifdef TARGET_NR_clock_getres | ||
33 | - case TARGET_NR_clock_getres: | ||
34 | - { | ||
35 | - struct timespec ts; | ||
36 | - ret = get_errno(clock_getres(arg1, &ts)); | ||
37 | - if (!is_error(ret)) { | ||
38 | - host_to_target_timespec(arg2, &ts); | ||
39 | - } | ||
40 | - break; | ||
41 | - } | ||
42 | -#endif | ||
43 | - | ||
44 | default: | ||
45 | unimplemented: | ||
46 | gemu_log("qemu: Unsupported syscall: %d\n", num); | ||