From: Ulrich Drepper Date: Tue, 20 Mar 2001 18:39:21 +0000 (+0000) Subject: * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc5ce0523570ebca894a56c35a88c0696f32c8c3;p=binutils-gdb.git * 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 9395dd68ca0..8ce54f8d475 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-17 Ulrich Drepper * emultempl/elf32.em (OPTION_GROUP): New macro. diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index d5b9eec8bd5..7822568e3e1 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);