* object.cc (Sized_relobj_file::do_layout): Remove assertion which
authorIan Lance Taylor <ian@airs.com>
Mon, 12 Sep 2011 17:34:26 +0000 (17:34 +0000)
committerIan Lance Taylor <ian@airs.com>
Mon, 12 Sep 2011 17:34:26 +0000 (17:34 +0000)
triggered if object has no symbols.

gold/ChangeLog
gold/object.cc

index bcace3c2f4540aa036edd722e077dc8cd854f96d..b0e7b7cc3873152df6f5557702cc97f3afe9556b 100644 (file)
@@ -1,3 +1,8 @@
+2011-09-12  Ian Lance Taylor  <iant@google.com>
+
+       * object.cc (Sized_relobj_file::do_layout): Remove assertion which
+       triggered if object has no symbols.
+
 2011-09-09  David S. Miller  <davem@davemloft.net>
 
        * output.cc (Output_fill_debug_info::do_write): Use Swap_unaligned.
index 4b69696b3fb9388462fafb88c3fb2652da0d51f0..0c50bd3d40dc28d785fd222aa83fd5a89d9f0f79 100644 (file)
@@ -1582,8 +1582,6 @@ Sized_relobj_file<size, big_endian>::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;