OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8ad954
)
arm: disable ioperm/iopl stubs
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 27 Mar 2012 02:13:11 +0000
(22:13 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 27 Mar 2012 02:28:50 +0000
(22:28 -0400)
ARM always provides its own userspace funcs for ioperm/iopl.
They've never had syscalls. So disable the stubs on ARM to
avoid multiple definition errors.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libc/sysdeps/linux/common/stubs.c
patch
|
blob
|
history
diff --git
a/libc/sysdeps/linux/common/stubs.c
b/libc/sysdeps/linux/common/stubs.c
index
6afc8d9
..
fc4dd38
100644
(file)
--- a/
libc/sysdeps/linux/common/stubs.c
+++ b/
libc/sysdeps/linux/common/stubs.c
@@
-41,6
+41,9
@@
__attribute_used__ static int ret_enosys_stub(void)
#ifdef __arm__
# define __NR_fadvise64_64 __NR_arm_fadvise64_64
# define __NR_fadvise64 __NR_arm_fadvise64_64
+/* ARM always provides funcs w/out syscalls; disable the stubs */
+# define __NR_ioperm 0
+# define __NR_iopl 0
#endif
#ifdef __mips__