diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-03-20 18:39:21 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-03-20 18:39:21 +0000 |
commit | e60094eb16e581dba8ce3def7b1d900f4dd9a7b5 (patch) | |
tree | 0c0c5a042a8b25396731fc6fef6916aa7f33e47e /ld/emultempl | |
parent | dc121505905d286382ff0fa427f7a5fcf15c9e2d (diff) | |
download | binutils-redhat-e60094eb16e581dba8ce3def7b1d900f4dd9a7b5.tar.gz |
* emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
is an absolute path look only for this file and not along the path.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/elf32.em | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index d5b9eec8bd..7822568e3e 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); |