about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--elf/cache.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 941aab2d6c..179713af49 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-09-29  Ulrich Drepper  <drepper@redhat.com>
+
+	* elf/cache.c (save_cache): Initialize __unused field in new cache
+	as well to get reproducable results.
+
 2000-09-29  H.J. Lu  <hjl@gnu.org>
 
 	* sysdeps/ia64/fpu/libm-test-ulps: Updated for long double.
diff --git a/elf/cache.c b/elf/cache.c
index b84287332e..942b7900bf 100644
--- a/elf/cache.c
+++ b/elf/cache.c
@@ -320,6 +320,7 @@ save_cache (const char *cache_name)
 	  file_entries_new->libs[idx_new].flags = entry->flags;
 	  file_entries_new->libs[idx_new].hwcap = entry->hwcap;
 	  file_entries_new->libs[idx_new].key = str_offset;
+	  file_entries_new->libs[idx_new].__unused = 0;
 	}
       len = strlen (entry->lib);
       str = stpcpy (str, entry->lib);