From: Phil Blundell Date: Tue, 20 Mar 2001 22:59:10 +0000 (+0000) Subject: 2001-03-17 Ulrich Drepper X-Git-Tag: binutils-2_11~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=00317868a9a49ebd93d954094474ec74c6ef00d0;p=thirdparty%2Fbinutils-gdb.git 2001-03-17 Ulrich Drepper * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME is an absolute path look only for this file and not along the path. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 29ee6effe53..4e7b64ba350 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2001-03-17 Ulrich Drepper + + * 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 * configure: Regenerate. diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index e518ed0d417..9ac2d414346 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -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);