aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-03-20 18:39:21 +0000
committerUlrich Drepper <drepper@redhat.com>2001-03-20 18:39:21 +0000
commitcc5ce0523570ebca894a56c35a88c0696f32c8c3 (patch)
treeb3c3c14f04b03349a1fece6036ac56ee447d3bbc /ld/emultempl
parentf4fbb4a3d18d679c271a5a6f4d3e6c28cea52aaf (diff)
downloadgdb-cc5ce0523570ebca894a56c35a88c0696f32c8c3.zip
gdb-cc5ce0523570ebca894a56c35a88c0696f32c8c3.tar.gz
gdb-cc5ce0523570ebca894a56c35a88c0696f32c8c3.tar.bz2
* 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.em3
1 files changed, 3 insertions, 0 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index d5b9eec..7822568 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);