From 1b045aac3141f3121a3717f12777cb5b72da195f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 12 Sep 2011 17:34:26 +0000 Subject: [PATCH] * object.cc (Sized_relobj_file::do_layout): Remove assertion which triggered if object has no symbols. --- gold/ChangeLog | 5 +++++ gold/object.cc | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index bcace3c2f45..b0e7b7cc387 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2011-09-12 Ian Lance Taylor + + * object.cc (Sized_relobj_file::do_layout): Remove assertion which + triggered if object has no symbols. + 2011-09-09 David S. Miller * output.cc (Output_fill_debug_info::do_write): Use Swap_unaligned. diff --git a/gold/object.cc b/gold/object.cc index 4b69696b3fb..0c50bd3d40d 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -1582,8 +1582,6 @@ Sized_relobj_file::do_layout(Symbol_table* symtab, p != eh_frame_sections.end(); ++p) { - gold_assert(external_symbols_offset != 0); - unsigned int i = *p; const unsigned char* pshdr; pshdr = section_headers_data + i * This::shdr_size; -- 2.30.2