diff options
Diffstat (limited to 'gold/reloc.cc')
-rw-r--r-- | gold/reloc.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/reloc.cc b/gold/reloc.cc index e9c1326..f88151f 100644 --- a/gold/reloc.cc +++ b/gold/reloc.cc @@ -459,7 +459,8 @@ Sized_relobj<size, big_endian>::write_sections(const unsigned char* pshdrs, gold_assert(output_offset == -1 || (output_offset >= 0 - && output_offset + view_size <= output_section_size)); + && (output_offset + static_cast<off_t>(view_size) + <= output_section_size))); unsigned char* view; if (os->requires_postprocessing()) |