From cc5ce0523570ebca894a56c35a88c0696f32c8c3 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 20 Mar 2001 18:39:21 +0000 Subject: * 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/emultempl/elf32.em | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ld/emultempl') 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); -- cgit v1.1