* ldfile.c (open_a): If this is not an archive, try to open it in
the current directory before searching for it.
This commit is contained in:
parent
3e1fd33d8a
commit
e845d28994
|
@ -1,5 +1,8 @@
|
||||||
Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
Mon Jun 13 15:46:09 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||||
|
|
||||||
|
* ldfile.c (open_a): If this is not an archive, try to open it in
|
||||||
|
the current directory before searching for it.
|
||||||
|
|
||||||
* lexsup.c (parse_args): Treat -i as a synonym for -r.
|
* lexsup.c (parse_args): Treat -i as a synonym for -r.
|
||||||
|
|
||||||
* ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
|
* ldgram.y (exp): Treat BLOCK as a synonym for ALIGN, so that
|
||||||
|
|
10
ld/ldfile.c
10
ld/ldfile.c
|
@ -114,6 +114,16 @@ open_a(arch, entry, lib, suffix)
|
||||||
{
|
{
|
||||||
bfd*desc;
|
bfd*desc;
|
||||||
search_dirs_type *search ;
|
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;
|
for (search = search_head;
|
||||||
search != (search_dirs_type *)NULL;
|
search != (search_dirs_type *)NULL;
|
||||||
search = search->next)
|
search = search->next)
|
||||||
|
|
Loading…
Reference in New Issue