diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-10-07 21:09:57 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-10-07 21:09:57 +0000 |
commit | 776f259038aaa2025f695d658c0c51f284fdcafd (patch) | |
tree | ae9c26b3e1701a4c94ce8a41fb8ababc8580b650 /ld/emultempl | |
parent | e2eb48d6b3e3f72549056f615a47d129847cf3c0 (diff) | |
download | gdb-776f259038aaa2025f695d658c0c51f284fdcafd.zip gdb-776f259038aaa2025f695d658c0c51f284fdcafd.tar.gz gdb-776f259038aaa2025f695d658c0c51f284fdcafd.tar.bz2 |
* emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
bother searching for needed libraries unless doing a final link.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/elf32.em | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index d55b8f5..affd725 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 |