From 776f259038aaa2025f695d658c0c51f284fdcafd Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 7 Oct 1995 21:09:57 +0000 Subject: [PATCH] * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't bother searching for needed libraries unless doing a final link. --- ld/ChangeLog | 5 +++++ ld/emultempl/elf32.em | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ld/ChangeLog b/ld/ChangeLog index 3d2f9ca5aa4..d6a0de6c839 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Sat Oct 7 17:07:17 1995 Ian Lance Taylor + + * 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 Mon Sep 25 22:49:32 1995 Andreas Schwab diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index d55b8f51f0b..affd72539a6 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -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 -- 2.30.2