aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-09-12 17:34:26 +0000
committerIan Lance Taylor <ian@airs.com>2011-09-12 17:34:26 +0000
commit1b045aac3141f3121a3717f12777cb5b72da195f (patch)
tree3be8b4f6e92842753753c96bf9eb266aa0bd4809 /gold
parentcaa900384a68b5d85674b1faceee447685f40e19 (diff)
downloadgdb-1b045aac3141f3121a3717f12777cb5b72da195f.zip
gdb-1b045aac3141f3121a3717f12777cb5b72da195f.tar.gz
gdb-1b045aac3141f3121a3717f12777cb5b72da195f.tar.bz2
* object.cc (Sized_relobj_file::do_layout): Remove assertion which
triggered if object has no symbols.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/object.cc2
2 files changed, 5 insertions, 2 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index bcace3c..b0e7b7c 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -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.
diff --git a/gold/object.cc b/gold/object.cc
index 4b69696..0c50bd3 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -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;