* emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
authorUlrich Drepper <drepper@redhat.com>
Tue, 20 Mar 2001 18:39:21 +0000 (18:39 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 20 Mar 2001 18:39:21 +0000 (18:39 +0000)
is an absolute path look only for this file and not along the path.

ld/ChangeLog
ld/emultempl/elf32.em

index 9395dd68ca07a4ec4eacfb4025c1bc7edb6a2f94..8ce54f8d475076205922b17437ea5c1791a82bad 100644 (file)
@@ -1,3 +1,8 @@
+2001-03-17  Ulrich Drepper  <drepper@redhat.com>
+
+       * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
+       is an absolute path look only for this file and not along the path.
+
 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
 
        * emultempl/elf32.em (OPTION_GROUP): New macro.
index d5b9eec8bd56a856f5fef75bab55ce3e2634291c..7822568e3e1a9045d8cbc8746f8e8a5541613a98 100644 (file)
@@ -386,6 +386,9 @@ gld${EMULATION_NAME}_search_needed (path, name, force)
   const char *s;
   size_t len;
 
+  if (name[0] == '/')
+    return gld${EMULATION_NAME}_try_needed (name, force);
+
   if (path == NULL || *path == '\0')
     return false;
   len = strlen (name);