PR ld/13909
authorAlan Modra <amodra@gmail.com>
Wed, 23 May 2012 04:35:31 +0000 (04:35 +0000)
committerAlan Modra <amodra@gmail.com>
Wed, 23 May 2012 04:35:31 +0000 (04:35 +0000)
* elflink.c (bfd_elf_discard_info): Don't ignore dynamic BFDs.

bfd/ChangeLog
bfd/elflink.c

index 88030e74388f0248f784aa3b5e4055c6ea095243..dd15034934fcfafedaf1f72fd784dc3a47db82db 100644 (file)
@@ -1,3 +1,8 @@
+2012-05-23  Alan Modra  <amodra@gmail.com>
+
+       PR ld/13909
+       * elflink.c (bfd_elf_discard_info): Don't ignore dynamic BFDs.
+
 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/13909
index f18b9df923e42da2c2ed1d89ef75a5fb0b2e1313..7722fb5d8954db605de94020afdae45bf413a2b3 100644 (file)
@@ -12482,9 +12482,6 @@ bfd_elf_discard_info (bfd *output_bfd, struct bfd_link_info *info)
 
       bed = get_elf_backend_data (abfd);
 
-      if ((abfd->flags & DYNAMIC) != 0)
-       continue;
-
       eh = NULL;
       if (!info->relocatable)
        {