]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2001-03-17 Ulrich Drepper <drepper@redhat.com>
authorPhil Blundell <philb@gnu.org>
Tue, 20 Mar 2001 22:59:10 +0000 (22:59 +0000)
committerPhil Blundell <philb@gnu.org>
Tue, 20 Mar 2001 22:59:10 +0000 (22:59 +0000)
* emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
is an absolute path look only for this file and not along the path.

ld/ChangeLog
ld/emultempl/elf32.em

index 29ee6effe5374b6640d0ed1b636713ce2eaa535a..4e7b64ba3501e0a4540943998c972973089c1dcc 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-16  Philip Blundell  <philb@gnu.org>
 
        * configure: Regenerate.
index e518ed0d417dfe17d08100980d112936bd1acb3e..9ac2d4143465ed7981ab44b15d33c2d19144892e 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);