about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve McIntyre <steve.mcintyre@linaro.org>2012-11-19 01:22:33 -0500
committerCarlos O'Donell <carlos@systemhalted.org>2012-11-19 01:22:33 -0500
commit1f51ee9246b048d8966c36ddd2c26d7e0f927d83 (patch)
tree9cec26aa373eb0bdd0f8cffbfe5b109d90f4a6a2
parent6665d4a25da6dc1788010466f6f52e1df94a048b (diff)
downloadglibc-1f51ee9246b048d8966c36ddd2c26d7e0f927d83.tar.gz
glibc-1f51ee9246b048d8966c36ddd2c26d7e0f927d83.tar.xz
glibc-1f51ee9246b048d8966c36ddd2c26d7e0f927d83.zip
Add ldconfig cache tag handling for AArch64
	* sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
	* elf/cache.c (print_entry): Print ",AArch64" for
	FLAG_AARCH64_LIB64.

Signed-off-by: Steve McIntyre <steve.mcintyre@linaro.org>
Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
-rw-r--r--ChangeLog4
-rw-r--r--elf/cache.c3
-rw-r--r--sysdeps/generic/ldconfig.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index f16eab4b54..63e00edcb1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
 
+	* sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
+	* elf/cache.c (print_entry): Print ",AArch64" for
+	FLAG_AARCH64_LIB64
+
 	* sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
 	* elf/cache.c (print_entry): Print ",hard-float" for
 	FLAG_ARM_LIBHF.
diff --git a/elf/cache.c b/elf/cache.c
index 3336babfe6..f5ed370e78 100644
--- a/elf/cache.c
+++ b/elf/cache.c
@@ -97,6 +97,9 @@ print_entry (const char *lib, int flag, unsigned int osversion,
     case FLAG_ARM_LIBHF:
       fputs (",hard-float", stdout);
       break;
+    case FLAG_AARCH64_LIB64:
+      fputs (",AArch64", stdout);
+      break;
     case 0:
       break;
     default:
diff --git a/sysdeps/generic/ldconfig.h b/sysdeps/generic/ldconfig.h
index a805284d59..43cb9bdb0c 100644
--- a/sysdeps/generic/ldconfig.h
+++ b/sysdeps/generic/ldconfig.h
@@ -35,6 +35,7 @@
 #define FLAG_MIPS64_LIBN64	0x0700
 #define FLAG_X8664_LIBX32	0x0800
 #define FLAG_ARM_LIBHF		0x0900
+#define FLAG_AARCH64_LIB64	0x0a00
 
 /* Name of auxiliary cache.  */
 #define _PATH_LDCONFIG_AUX_CACHE "/var/cache/ldconfig/aux-cache"