From: H.J. Lu Date: Mon, 26 Jun 2017 22:47:16 +0000 (-0700) Subject: Add a missing line to _bfd_generic_get_section_contents_in_window X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f473e3d0ad285195934e6a077c7ed32afe66437;p=binutils-gdb.git Add a missing line to _bfd_generic_get_section_contents_in_window PR binutils/21665 * libbfd.c (_bfd_generic_get_section_contents_in_window): Add a missing line. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cd5cb579d12..fbe20499b96 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2017-06-26 H.J. Lu + + PR binutils/21665 + * libbfd.c (_bfd_generic_get_section_contents_in_window): Add + a missing line. + 2017-06-26 Maciej W. Rozycki * cpu-mips.c (arch_info_struct): Mark the 4010 32-bit. diff --git a/bfd/libbfd.c b/bfd/libbfd.c index b903328cede..7b270efeb75 100644 --- a/bfd/libbfd.c +++ b/bfd/libbfd.c @@ -877,6 +877,7 @@ _bfd_generic_get_section_contents_in_window else sz = section->size; filesz = bfd_get_file_size (abfd); + if (filesz < 0) { /* This should never happen. */ abort ();