Revert changes in previous deltas that introduced new failures into
[deliverable/binutils-gdb.git] / bfd / compress.c
index 683156209a75e9b121fe81276ac6b10b8046979d..20eef9528265e905e9b7220e38520625cfb15dea 100644 (file)
@@ -177,14 +177,6 @@ bfd_get_full_section_contents (bfd *abfd, sec_ptr sec, bfd_byte **ptr)
   switch (sec->compress_status)
     {
     case COMPRESS_SECTION_NONE:
-      /* PR binutils/17512: Avoid malloc or file reading errors due to
-        ridiculous section sizes.  But ignore linker created objects
-        and bfds with no contents (yet).  */
-      if (bfd_get_size (abfd) > 0
-         && (sec->flags & SEC_LINKER_CREATED) == 0
-         && sz > (bfd_size_type) bfd_get_size (abfd))
-       return FALSE;
-
       if (p == NULL)
        {
          p = (bfd_byte *) bfd_malloc (sz);
This page took 0.025019 seconds and 4 git commands to generate.