1 |
2005-04-24 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> |
2 |
* libcompat/syscall.S: catch the case when syscall(2) is not |
3 |
implemented for the actual arch instead of jumping to the next |
4 |
function and executing the wrong code |
5 |
|
6 |
--- dietlibc-0.29/libcompat/syscall.S.scall |
7 |
+++ dietlibc-0.29/libcompat/syscall.S |
8 |
@@ -120,6 +120,12 @@ |
9 |
nop |
10 |
|
11 |
#else |
12 |
- /* arch not implemented yet */ |
13 |
+#include <endian.h> |
14 |
+ .section .note |
15 |
+#if (__WORDSIZE == 64) |
16 |
+ .quad __syscall_2_not_implemented_for_this_arch |
17 |
+#else |
18 |
+ .long __syscall_2_not_implemented_for_this_arch |
19 |
+#endif |
20 |
#endif |
21 |
.size syscall, . - syscall |