ce426f
Remove the "power8" AT_PLATFORM directory
ce426f
ce426f
Index: b/releng/glibc_post_upgrade.c
ce426f
===================================================================
ce426f
--- a/releng/glibc_post_upgrade.c
ce426f
+++ b/releng/glibc_post_upgrade.c
ce426f
@@ -73,14 +73,23 @@ main (void)
ce426f
   int i, j, fd;
ce426f
   off_t base;
ce426f
   ssize_t ret;
ce426f
+  const char *remove_dirs[] = {
ce426f
 #ifdef __i386__
ce426f
-  const char *remove_dirs[] = { "/lib/tls", "/lib/i686", "/lib/tls/i486", "/lib/tls/i586", "/lib/tls/i686" };
ce426f
-#else
ce426f
-#ifndef LIBTLS
ce426f
-#define LIBTLS "/lib/tls"
ce426f
-#endif
ce426f
-  const char *remove_dirs[] = { LIBTLS };
ce426f
-#endif
ce426f
+    "/lib/tls", "/lib/i686", "/lib/tls/i486", "/lib/tls/i586", "/lib/tls/i686"
ce426f
+#else /* !__i386__ */
ce426f
+# ifndef LIBTLS
ce426f
+#  define LIBTLS "/lib/tls"
ce426f
+# endif
ce426f
+# if defined (__powerpc64__)
ce426f
+    /* Covers both big endian and little endian.  */
ce426f
+    "/lib64/power8",
ce426f
+# elif defined (__powerpc__)
ce426f
+    /* Covers 32-bit only (because of the previous conditional).  */
ce426f
+    "/lib/power8",
ce426f
+# endif
ce426f
+    LIBTLS
ce426f
+#endif /* !__i386__ */
ce426f
+  };
ce426f
   for (j = 0; j < sizeof (remove_dirs) / sizeof (remove_dirs[0]); ++j)
ce426f
     {
ce426f
       size_t rmlen = strlen (remove_dirs[j]);