Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern In the RUMP_KERNEL_IS_LIBC case, account for WEAKAS...



details:   https://anonhg.NetBSD.org/src/rev/9919ae032438
branches:  trunk
changeset: 797594:9919ae032438
user:      pooka <pooka%NetBSD.org@localhost>
date:      Wed Jul 23 11:41:34 2014 +0000

description:
In the RUMP_KERNEL_IS_LIBC case, account for WEAKASM, i.e. create a
_sys_foo strong alias, and _foo and foo weak aliases.  This actually
treats all syscalls as WEAKASM, but it's probably(?) harmless, and saves
us from manual work a la libc.  Fixes at least pthread_cancelstub.

diffstat:

 sys/kern/makesyscalls.sh |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 7b51dc2a092d -r 9919ae032438 sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh  Wed Jul 23 10:48:16 2014 +0000
+++ b/sys/kern/makesyscalls.sh  Wed Jul 23 11:41:34 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: makesyscalls.sh,v 1.143 2014/05/18 21:25:44 justin Exp $
+#      $NetBSD: makesyscalls.sh,v 1.144 2014/07/23 11:41:34 pooka Exp $
 #
 # Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
 # All rights reserved.
@@ -256,8 +256,9 @@
 
        printf "#ifdef RUMP_KERNEL_IS_LIBC\n" > rumpcalls
        printf "#define rsys_aliases(what,where) \\\n" > rumpcalls
-       printf "\t__strong_alias(what,where); \\\n" > rumpcalls
-       printf "\t__strong_alias(_##what,where);\n" > rumpcalls
+       printf "\t__weak_alias(what,where); \\\n" > rumpcalls
+       printf "\t__weak_alias(_##what,where); \\\n" > rumpcalls
+       printf "\t__strong_alias(_sys_##what,where);\n" > rumpcalls
        printf "#else\n#define rsys_aliases(a,b)\n#endif\n\n" > rumpcalls
 
        printf "#if\tBYTE_ORDER == BIG_ENDIAN\n" > rumpcalls



Home | Main Index | Thread Index | Old Index