* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't

bother searching for needed libraries unless doing a final link.
This commit is contained in:
Ian Lance Taylor 1995-10-07 21:09:57 +00:00
parent e2eb48d6b3
commit 776f259038
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Sat Oct 7 17:07:17 1995 Ian Lance Taylor <ian@cygnus.com>
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
bother searching for needed libraries unless doing a final link.
Fri Oct 6 16:26:16 1995 Ken Raeburn <raeburn@cygnus.com>
Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>

View File

@ -145,6 +145,10 @@ gld${EMULATION_NAME}_after_open ()
{
struct bfd_elf_link_needed_list *needed, *l;
/* We only need to worry about this when doing a final link. */
if (link_info.relocateable || link_info.shared)
return;
/* Get the list of files which appear in DT_NEEDED entries in
dynamic objects included in the link (often there will be none).
For each such file, we want to track down the corresponding