]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Thu, 1 Nov 2001 04:46:27 +0000 (04:46 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 1 Nov 2001 04:46:27 +0000 (04:46 +0000)
2001-10-31  Ulrich Drepper  <drepper@redhat.com>

* elf/dl-load.c (_dl_map_object): Make code a bit more compact by
avoiding unnecessary duplication.

2001-10-31  Jakub Jelinek  <jakub@redhat.com>

* elf/dl-load.c (_dl_map_object): If library was found using
LD_LIBRARY_PATH, don't try RUNPATH list.

2001-10-29  Kevin Ryde  <user42@zip.com.au>

ChangeLog
elf/dl-load.c
include/features.h

index a2d65f6282ba8c80e8ee8ef2d7b7f3e2be8ad9d8..a530aafda254b126a0d32b5485360ea4284c32b1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-10-31  Ulrich Drepper  <drepper@redhat.com>
+
+       * elf/dl-load.c (_dl_map_object): Make code a bit more compact by
+       avoiding unnecessary duplication.
+
+2001-10-31  Jakub Jelinek  <jakub@redhat.com>
+
+       * elf/dl-load.c (_dl_map_object): If library was found using
+       LD_LIBRARY_PATH, don't try RUNPATH list.
+
 2001-10-31  Martin Schwidefsky  <schwidefsky@de.ibm.com>
 
        * sysdeps/unix/sysv/linux/s390/s390-32/register-dump (REGISTER_DUMP):
@@ -37,7 +47,7 @@
 
        * sysdeps/ieee754/dbl-64/mpa.h: Add prototypes for internal functions.
 
-2001-10-29  Kevin Ryde <user42@zip.com.au>
+2001-10-29  Kevin Ryde  <user42@zip.com.au>
 
        * manual/stdio.texi (Integer Conversions): Corrections to sample printf
        output, clarify `#' behaviour on 0.
index 3e5ddc04f11d827d28043c0d90e112fe98a6b407..c712a7ecd9200a90756a9030dccf94e65a80f198 100644 (file)
@@ -1608,7 +1608,8 @@ _dl_map_object (struct link_map *loader, const char *name, int preloaded,
                        &realname, &fb);
 
       /* Look at the RUNPATH information for this binary.  */
-      if (loader != NULL && loader->l_runpath_dirs.dirs != (void *) -1)
+      if (fd == -1 && loader != NULL
+         && loader->l_runpath_dirs.dirs != (void *) -1)
        {
          if (loader->l_runpath_dirs.dirs == NULL)
            {
@@ -1622,13 +1623,10 @@ _dl_map_object (struct link_map *loader, const char *name, int preloaded,
                                   + loader->l_info[DT_RUNPATH]->d_un.d_val);
                  decompose_rpath (&loader->l_runpath_dirs,
                                   (const char *) ptrval, loader, "RUNPATH");
-
-                 if (loader->l_runpath_dirs.dirs != (void *) -1)
-                   fd = open_path (name, namelen, preloaded,
-                                   &loader->l_runpath_dirs, &realname, &fb);
                }
            }
-         else if (loader->l_runpath_dirs.dirs != (void *) -1)
+
+         if (loader->l_runpath_dirs.dirs != (void *) -1)
            fd = open_path (name, namelen, preloaded,
                            &loader->l_runpath_dirs, &realname, &fb);
        }
index 08a17bb3041c33174ded88f9d6a0aada87c62024..2e16874792f2214a274a1d860d2ddd75d8e0bfbb 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,93,95,96,97,98,99,2000,2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991-1993, 1995-2000, 2001 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
 #define __STDC_IEC_559__               1
 #define __STDC_IEC_559_COMPLEX__       1
 
-/* wchar_t uses ISO 10646-1 (2nd ed., published 2000-09-15) / Unicode 3.0.  */
+/* wchar_t uses ISO 10646-1 (2nd ed., published 2000-09-15) / Unicode 3.1.  */
 #define __STDC_ISO_10646__             200009L
 
 /* This macro indicates that the installed library is the GNU C Library.
 
 /* This is here only because every header file already includes this one.  */
 #ifndef __ASSEMBLER__
-#ifndef _SYS_CDEFS_H
-# include <sys/cdefs.h>
-#endif
+# ifndef _SYS_CDEFS_H
+#  include <sys/cdefs.h>
+# endif
 
 /* If we don't have __REDIRECT, prototypes will be missing if
    __USE_FILE_OFFSET64 but not __USE_LARGEFILE[64]. */