aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-09-14 09:00:42 +0000
committerRoland McGrath <roland@gnu.org>2002-09-14 09:00:42 +0000
commit48c5307058990a7e525b3dfc444e9d996b2cefc6 (patch)
tree9459f98ffc248cedd1a787baaf38aaa53b554f53 /elf
parent65233b5850accaaf3339e050c69f59b994582e86 (diff)
downloadglibc-48c5307058990a7e525b3dfc444e9d996b2cefc6.zip
glibc-48c5307058990a7e525b3dfc444e9d996b2cefc6.tar.gz
glibc-48c5307058990a7e525b3dfc444e9d996b2cefc6.tar.bz2
* sysdeps/generic/ldconfig.h (FLAG_POWERPC_LIB64) New macro.
* elf/cache.c (print_entry): Add case for FLAG_POWERPC_LIB64. Remove per-machine conditionals for FLAG_* cases. * sysdeps/unix/sysv/linux/powerpc/ldconfig.h: New file. * sysdeps/unix/sysv/linux/powerpc/readelflib.c: New file. * sysdeps/unix/sysv/linux/powerpc/powerpc64/dl-cache.h: New file.
Diffstat (limited to 'elf')
-rw-r--r--elf/cache.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/elf/cache.c b/elf/cache.c
index 1977ce1..c1c4be0 100644
--- a/elf/cache.c
+++ b/elf/cache.c
@@ -71,24 +71,21 @@ print_entry (const char *lib, int flag, unsigned int osversion,
}
switch (flag & FLAG_REQUIRED_MASK)
{
-#ifdef __sparc__
case FLAG_SPARC_LIB64:
fputs (",64bit", stdout);
-#endif
-#if defined __ia64__ || defined __i386__
+ break;
case FLAG_IA64_LIB64:
fputs (",IA-64", stdout);
break;
-#endif
-#if defined __x86_64__ || defined __i386__
case FLAG_X8664_LIB64:
fputs (",x86-64", stdout);
break;
-#endif
-#if defined __s390__ || defined __s390x__
case FLAG_S390_LIB64:
fputs(",64bit", stdout);
-#endif
+ break;
+ case FLAG_POWERPC_LIB64:
+ fputs(",64bit", stdout);
+ break;
case 0:
break;
default: