diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-06-13 21:35:27 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-06-13 21:35:27 +0000 |
commit | e845d289943d2098356fad5da1a08ef1f41092b3 (patch) | |
tree | 93fc29c1548667b5968bbacc3ba517fb600a273a /ld/ldfile.c | |
parent | 3e1fd33d8a5ecb574d628948c0eb0b315ab556f4 (diff) | |
download | gdb-e845d289943d2098356fad5da1a08ef1f41092b3.zip gdb-e845d289943d2098356fad5da1a08ef1f41092b3.tar.gz gdb-e845d289943d2098356fad5da1a08ef1f41092b3.tar.bz2 |
* ldfile.c (open_a): If this is not an archive, try to open it in
the current directory before searching for it.
Diffstat (limited to 'ld/ldfile.c')
-rw-r--r-- | ld/ldfile.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/ldfile.c b/ld/ldfile.c index 5cc3bef..f084d36 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -114,6 +114,16 @@ open_a(arch, entry, lib, suffix) { bfd*desc; search_dirs_type *search ; + + /* If this is not an archive, try to open it in the current + directory first. */ + if (! entry->is_archive) + { + desc = cached_bfd_openr (entry->filename, entry); + if (desc != NULL) + return desc; + } + for (search = search_head; search != (search_dirs_type *)NULL; search = search->next) |