summaryrefslogtreecommitdiff
path: root/sysdeps/unix/make-syscalls.sh
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2012-04-29 15:17:36 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2012-05-04 12:46:23 +0200
commit6fef930cf3dc937de0fd1050581d9c688f70af22 (patch)
tree9dff5160e76f331159ede2dbfcf7a65f91652c1c /sysdeps/unix/make-syscalls.sh
parent8f203e6cb695daa219f8148e81e108c2da8137d4 (diff)
downloadglibc-6fef930cf3dc937de0fd1050581d9c688f70af22.tar.gz
Fix missing vm86 symbol
Diffstat (limited to 'sysdeps/unix/make-syscalls.sh')
-rw-r--r--sysdeps/unix/make-syscalls.sh29
1 files changed, 15 insertions, 14 deletions
diff --git a/sysdeps/unix/make-syscalls.sh b/sysdeps/unix/make-syscalls.sh
index a8b8a262a7..ff452d6780 100644
--- a/sysdeps/unix/make-syscalls.sh
+++ b/sysdeps/unix/make-syscalls.sh
@@ -112,6 +112,14 @@ while read file srcfile caller syscall args strong weak; do
echo ''
echo "#### CALL=$file NUMBER=$callnum ARGS=$args SOURCE=$srcfile"
+ # If there are versioned aliases the entry is only generated for the
+ # shared library, unless it is a default version.
+ shared_only=f
+ case $weak in
+ *@@*) ;;
+ *@*) shared_only=t;;
+ esac
+
case x$srcfile"$callnum" in
x--)
# Undefined callnum for an extra syscall.
@@ -127,30 +135,25 @@ while read file srcfile caller syscall args strong weak; do
x-*)
echo "ifeq (,\$(filter $file,\$(unix-syscalls)))"
- case $weak in
- *@*)
+ if test $shared_only = t; then
# The versioned symbols are only in the shared library.
echo "ifneq (,\$(filter .os,\$(object-suffixes)))"
- ;;
- esac
+ fi
# Accumulate the list of syscall files for this directory.
echo "unix-syscalls += $file"
test x$caller = x- || echo "unix-extra-syscalls += $file"
# Emit a compilation rule for this syscall.
- case $weak in
- *@*)
+ if test $shared_only = t; then
# The versioned symbols are only in the shared library.
echo "\
shared-only-routines += $file
\$(objpfx)${file}.os: \\"
- ;;
- *)
+ else
echo "\
\$(foreach p,\$(sysd-rules-targets),\
\$(foreach o,\$(object-suffixes),\$(objpfx)\$(patsubst %,\$p,$file)\$o)): \\"
- ;;
- esac
+ fi
echo " \$(..)sysdeps/unix/make-syscalls.sh"
case x"$callnum" in
@@ -226,12 +229,10 @@ shared-only-routines += $file
echo ' ) | $(compile-syscall) '"\
\$(foreach p,\$(patsubst %$file,%,\$(basename \$(@F))),\$(\$(p)CPPFLAGS))"
- case $weak in
- *@*)
+ if test $shared_only = t; then
# The versioned symbols are only in the shared library.
echo endif
- ;;
- esac
+ fi
echo endif
;;