From: Richard Henderson Date: Fri, 26 Mar 2010 18:10:23 +0000 (-0700) Subject: alpha: Only define __libc_alpha_cache_shape in dl-sysdep.c. X-Git-Tag: glibc-2.16-ports-before-merge~497 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45e3c406530f1a185fe236173b39ee74b6176d82;p=thirdparty%2Fglibc.git alpha: Only define __libc_alpha_cache_shape in dl-sysdep.c. The static program builds in libc were getting multiple definition errors between dl-sysdep and dl-support. Signed-off-by: Richard Henderson --- diff --git a/ChangeLog.alpha b/ChangeLog.alpha index 739efce24cd..784f6b7c82a 100644 --- a/ChangeLog.alpha +++ b/ChangeLog.alpha @@ -1,3 +1,9 @@ +2010-03-26 Richard Henderson + + * 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 * sysdeps/unix/sysv/linux/alpha/sys/user.h: Don't include asm/page.h. diff --git a/sysdeps/unix/sysv/linux/alpha/dl-auxv.h b/sysdeps/unix/sysv/linux/alpha/dl-auxv.h index 8afc4dba3b8..075797db082 100644 --- a/sysdeps/unix/sysv/linux/alpha/dl-auxv.h +++ b/sysdeps/unix/sysv/linux/alpha/dl-auxv.h @@ -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: \ diff --git a/sysdeps/unix/sysv/linux/alpha/dl-sysdep.c b/sysdeps/unix/sysv/linux/alpha/dl-sysdep.c index 4034820f4d3..5d0867a1000 100644 --- a/sysdeps/unix/sysv/linux/alpha/dl-sysdep.c +++ b/sysdeps/unix/sysv/linux/alpha/dl-sysdep.c @@ -1,2 +1,5 @@ #include "dl-auxv.h" + +long __libc_alpha_cache_shape[4] = { -2, -2, -2, -2 }; + #include