diff options
author | Roland McGrath <roland@gnu.org> | 2012-11-01 22:35:06 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2012-11-01 22:35:06 +0000 |
commit | 50ed5eb142b3246bd16be9626f0cf9565f44d8f9 (patch) | |
tree | cd5a5be5243c70fc9f6142338cef99a8e915e602 /gold/incremental.cc | |
parent | e5496e3ec63c885dea17d9abc604b91f1600d563 (diff) | |
download | gdb-50ed5eb142b3246bd16be9626f0cf9565f44d8f9.zip gdb-50ed5eb142b3246bd16be9626f0cf9565f44d8f9.tar.gz gdb-50ed5eb142b3246bd16be9626f0cf9565f44d8f9.tar.bz2 |
gold/
* dwarf_reader.cc (Sized_elf_reloc_mapper::symbol_section): Cast
SYMNDX to off_t before comparing it to this->data_size().
* output.cc (Output_symtab_xindex::endian_do_write): Likewise.
* incremental.cc (Output_section_incremental_inputs::do_write):
Cast GLOBAL_SYM_COUNT to off_t before comparing it to SYMTAB_SIZE.
Diffstat (limited to 'gold/incremental.cc')
-rw-r--r-- | gold/incremental.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/incremental.cc b/gold/incremental.cc index acabaea..714b198 100644 --- a/gold/incremental.cc +++ b/gold/incremental.cc @@ -1432,7 +1432,7 @@ Output_section_incremental_inputs<size, big_endian>::do_write(Output_file* of) gold_assert(pov - oview == oview_size); // Write the .gnu_incremental_symtab section. - gold_assert(global_sym_count * 4 == symtab_size); + gold_assert(static_cast<off_t>(global_sym_count) * 4 == symtab_size); this->write_symtab(symtab_view, global_syms, global_sym_count); delete[] global_syms; |