X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Fldfile.c;h=96f9ecc0157d645ff2228243d373f1c1d5c393dd;hb=b80c3053162ec5533e120ee4e4ed30296d4c5fb2;hp=21bdbf404710ab57e735cd805daf4f9fc9de04d1;hpb=ce875075f9c8acc57bb0ec516ae3ba50064e52b7;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ldfile.c b/ld/ldfile.c index 21bdbf4047..96f9ecc015 100644 --- a/ld/ldfile.c +++ b/ld/ldfile.c @@ -142,6 +142,9 @@ ldfile_try_open_bfd (const char *attempt, /* Linker needs to decompress sections. */ entry->the_bfd->flags |= BFD_DECOMPRESS; + /* This is a linker input BFD. */ + entry->the_bfd->is_linker_input = 1; + #ifdef ENABLE_PLUGINS if (entry->flags.lto_output) entry->the_bfd->lto_output = 1; @@ -354,7 +357,7 @@ ldfile_open_file_search (const char *arch, { char *string; - if (entry->flags.dynamic && ! link_info.relocatable) + if (entry->flags.dynamic && !bfd_link_relocatable (&link_info)) { if (ldemul_open_dynamic_archive (arch, search, entry)) return TRUE;