2008-06-25 Cary Coutant <ccoutant@google.com>
[deliverable/binutils-gdb.git] / gold / fileread.cc
index 6cb056fd1d27b9ab18d44a30d7b663c01e4f60d3..cfe0ee6debbeb72293afe9a576e69087868ff502 100644 (file)
@@ -327,6 +327,8 @@ File_read::View*
 File_read::make_view(off_t start, section_size_type size,
                     unsigned int byteshift, bool cache)
 {
+  gold_assert(size > 0);
+
   off_t poff = File_read::page_offset(start);
 
   section_size_type psize = File_read::pages(size + (start - poff));
This page took 0.023512 seconds and 4 git commands to generate.