about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-05-30 11:05:13 -0700
committerRichard Henderson <rth@twiddle.net>2012-05-30 11:05:51 -0700
commit8d8f2279e7dc2b0bd3e605d017d52ce0094834fd (patch)
treef44a043376b7cdec7ffa1a683cc79af42d1b66ea
parent63f1549e0e97cfa6eca7a799e24dde3214b85346 (diff)
downloadglibc-8d8f2279e7dc2b0bd3e605d017d52ce0094834fd.tar.gz
glibc-8d8f2279e7dc2b0bd3e605d017d52ce0094834fd.tar.xz
glibc-8d8f2279e7dc2b0bd3e605d017d52ce0094834fd.zip
alpha: Don't symbol_version syscalls outside libc
        * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
        with #ifndef NOT_IN_libc.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/unix/make-syscalls.sh6
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index bb95d03e66..053e623dc5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2012-05-30  Richard Henderson  <rth@twiddle.net>
 
+	* sysdeps/unix/make-syscalls.sh: Protect symbol_version output
+	with #ifndef NOT_IN_libc.
+
 	* scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
 	marked to avoid plt entry.
 
diff --git a/sysdeps/unix/make-syscalls.sh b/sysdeps/unix/make-syscalls.sh
index cedce3193c..2bc7cc02a8 100644
--- a/sysdeps/unix/make-syscalls.sh
+++ b/sysdeps/unix/make-syscalls.sh
@@ -76,6 +76,7 @@ emit_weak_aliases()
       *@@*)
 	base=`echo $name | sed 's/@@.*//'`
 	ver=`echo $name | sed 's/.*@@//'`
+	echo "	 echo '#ifndef NOT_IN_libc'; \\"
 	if test -z "$vcount" ; then
 	  source=$strong
 	  vcount=1
@@ -85,10 +86,14 @@ emit_weak_aliases()
 	  echo "	 echo 'strong_alias ($strong, $source)'; \\"
 	fi
 	echo "	 echo 'default_symbol_version($source, $base, $ver)'; \\"
+	echo "	 echo '#else'; \\"
+	echo "	 echo 'strong_alias ($strong, $base)'; \\"
+	echo "	 echo '#endif'; \\"
 	;;
       *@*)
 	base=`echo $name | sed 's/@.*//'`
 	ver=`echo $name | sed 's/.*@//'`
+	echo "	 echo '#ifndef NOT_IN_libc'; \\"
 	if test -z "$vcount" ; then
 	  source=$strong
 	  vcount=1
@@ -98,6 +103,7 @@ emit_weak_aliases()
 	  echo "	 echo 'strong_alias ($strong, $source)'; \\"
 	fi
 	echo "	 echo 'symbol_version ($source, $base, $ver)'; \\"
+	echo "	 echo '#endif'; \\"
 	;;
       !*)
 	name=`echo $name | sed 's/.//'`