]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
alpha: Only define __libc_alpha_cache_shape in dl-sysdep.c.
authorRichard Henderson <rth@twiddle.net>
Fri, 26 Mar 2010 18:10:23 +0000 (11:10 -0700)
committerRichard Henderson <rth@twiddle.net>
Fri, 26 Mar 2010 20:17:53 +0000 (13:17 -0700)
The static program builds in libc were getting multiple
definition errors between dl-sysdep and dl-support.

Signed-off-by: Richard Henderson <rth@twiddle.net>
ChangeLog.alpha
sysdeps/unix/sysv/linux/alpha/dl-auxv.h
sysdeps/unix/sysv/linux/alpha/dl-sysdep.c

index 739efce24cdcf3c21dbd1056ec7080bd8d662176..784f6b7c82ad5b602ce10f2fa557fbbe3c71c17a 100644 (file)
@@ -1,3 +1,9 @@
+2010-03-26  Richard Henderson  <rth@redhat.com>
+
+       * sysdeps/unix/sysv/linux/alpha/dl-auxv.h (__libc_alpha_cache_shape):
+       Define extern here; move definition...
+       * sysdeps/unix/sysv/linux/alpha/dl-sysdep.c: ... here.
+
 2010-03-26  Richard Henderson  <rth@redhat.com>
 
        * sysdeps/unix/sysv/linux/alpha/sys/user.h: Don't include asm/page.h.
index 8afc4dba3b8a2b79b0094fc16bfa3f04559febf6..075797db082dbd48b97da0056b29833ce43f7ee3 100644 (file)
@@ -19,7 +19,7 @@
 
 /* Scan the Aux Vector for the cache shape entries.  */
 
-long __libc_alpha_cache_shape[4] = { -2, -2, -2, -2 };
+extern long __libc_alpha_cache_shape[4];
 
 #define DL_PLATFORM_AUXV                               \
       case AT_L1I_CACHESHAPE:                          \
index 4034820f4d3148b081c0e49874231167ad0b18e7..5d0867a1000a8f1ba9d866a7416a6ec3a5570cd8 100644 (file)
@@ -1,2 +1,5 @@
 #include "dl-auxv.h"
+
+long __libc_alpha_cache_shape[4] = { -2, -2, -2, -2 };
+
 #include <sysdeps/unix/sysv/linux/dl-sysdep.c>