aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-06-26 15:47:16 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-06-26 15:47:16 -0700
commit1f473e3d0ad285195934e6a077c7ed32afe66437 (patch)
tree2f5e6c056bff697c935b912c7c255461c5ecf432 /bfd
parentb417536f2350881ad28952b3906a025a54d241bd (diff)
downloadgdb-1f473e3d0ad285195934e6a077c7ed32afe66437.zip
gdb-1f473e3d0ad285195934e6a077c7ed32afe66437.tar.gz
gdb-1f473e3d0ad285195934e6a077c7ed32afe66437.tar.bz2
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.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/libbfd.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index cd5cb57..fbe2049 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,9 @@
+2017-06-26 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/21665
+ * libbfd.c (_bfd_generic_get_section_contents_in_window): Add
+ a missing line.
+
2017-06-26 Maciej W. Rozycki <macro@imgtec.com>
* cpu-mips.c (arch_info_struct): Mark the 4010 32-bit.
diff --git a/bfd/libbfd.c b/bfd/libbfd.c
index b903328..7b270ef 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 ();