about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-02-20 09:40:26 +0000
committerUlrich Drepper <drepper@redhat.com>1999-02-20 09:40:26 +0000
commit57846308af51c23f3d442ad68ec667469961cb97 (patch)
treea889179cfc5b63f87cb738a5ae0587cd89805c9e /elf
parent126b06f99e7c12d3b55df89343fed295390951d3 (diff)
downloadglibc-57846308af51c23f3d442ad68ec667469961cb97.tar.gz
glibc-57846308af51c23f3d442ad68ec667469961cb97.tar.xz
glibc-57846308af51c23f3d442ad68ec667469961cb97.zip
Update.
1999-02-20  Ulrich Drepper  <drepper@cygnus.com>

	* elf/dynamic-link.h (elf_get_dynamic_info): Use memset instead of
	loop to clear `info'.

	* sysdeps/i386/i486/bits/string.h: If fill byte is constant let gcc
	do the work and don't use inline assembler.
Diffstat (limited to 'elf')
-rw-r--r--elf/dynamic-link.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/elf/dynamic-link.h b/elf/dynamic-link.h
index 89e15a4e6c..3d96ecc143 100644
--- a/elf/dynamic-link.h
+++ b/elf/dynamic-link.h
@@ -1,5 +1,5 @@
 /* Inline functions for dynamic linking.
-   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -34,10 +34,8 @@ elf_get_dynamic_info (ElfW(Dyn) *dyn,
 		      ElfW(Dyn) *info[DT_NUM + DT_PROCNUM + DT_VERSIONTAGNUM
 				     + DT_EXTRANUM])
 {
-  unsigned int i;
-
-  for (i = 0; i < DT_NUM + DT_PROCNUM + DT_VERSIONTAGNUM + DT_EXTRANUM; ++i)
-    info[i] = NULL;
+  memset (info, '\0', ((DT_NUM + DT_PROCNUM + DT_VERSIONTAGNUM + DT_EXTRANUM)
+		       * sizeof (ElfW(Dyn) *)));
 
   if (! dyn)
     return;