Don't add DT_NEEDED for unmatched symbol
[deliverable/binutils-gdb.git] / bfd / dwarf2.c
index 9acaf87ca2bf72e9587721906ecd94a03f902274..4d6f8fcae19b0ce33aa6230e7bff7bcea0a46a58 100644 (file)
@@ -3706,8 +3706,10 @@ _bfd_dwarf2_slurp_debug_info (bfd *abfd, bfd *debug_bfd,
           fail more quickly.  */
        return FALSE;
 
+      /* Set BFD_DECOMPRESS to decompress debug sections.  */
       if ((debug_bfd = bfd_openr (debug_filename, NULL)) == NULL
-         || ! bfd_check_format (debug_bfd, bfd_object)
+         || !(debug_bfd->flags |= BFD_DECOMPRESS,
+              bfd_check_format (debug_bfd, bfd_object))
          || (msec = find_debug_info (debug_bfd,
                                      debug_sections, NULL)) == NULL
          || !bfd_generic_link_read_symbols (debug_bfd))
This page took 0.023855 seconds and 4 git commands to generate.