X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Flinker.c;h=10b4467944f0efe484498d075694dac4b03d40c3;hb=1a23a9e6139ff1d1b19d242cf9c47f06c326df08;hp=6ad32ba9535be2ba6e5d23dcffa3253798bbe6e2;hpb=e87a64e1f0fb7718a214f10d6c31ce2050d4a760;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/linker.c b/bfd/linker.c index 6ad32ba953..10b4467944 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -2756,7 +2756,9 @@ default_indirect_link_order (bfd *output_bfd, } /* Get and relocate the section contents. */ - sec_size = input_section->size; + sec_size = (input_section->rawsize > input_section->size + ? input_section->rawsize + : input_section->size); contents = bfd_malloc (sec_size); if (contents == NULL && sec_size != 0) goto error_return;