]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/emultempl/elf32.em
Add compressed debug section support to binutils and ld.
[thirdparty/binutils-gdb.git] / ld / emultempl / elf32.em
index c8682ae6fefdc483ab4716ac001dbabc754c50f0..1950efec0e3b9768ba4f953fd723eb0d475c8501 100644 (file)
@@ -317,6 +317,10 @@ gld${EMULATION_NAME}_try_needed (struct dt_needed *needed,
   abfd = bfd_openr (name, bfd_get_target (link_info.output_bfd));
   if (abfd == NULL)
     return FALSE;
+
+  /* Linker needs to decompress sections.  */
+  abfd->flags |= BFD_DECOMPRESS;
+
   if (! bfd_check_format (abfd, bfd_object))
     {
       bfd_close (abfd);