2012-08-22 Cary Coutant <ccoutant@google.com>
authorCary Coutant <ccoutant@google.com>
Wed, 22 Aug 2012 18:26:32 +0000 (18:26 +0000)
committerCary Coutant <ccoutant@google.com>
Wed, 22 Aug 2012 18:26:32 +0000 (18:26 +0000)
gold/
* layout.cc (Layout::include_section): Don't assert on GROUP
sections with --emit-relocs.

gold/ChangeLog
gold/layout.cc

index e79f4e4..2f5fcb1 100644 (file)
@@ -1,3 +1,8 @@
+2012-08-22  Cary Coutant  <ccoutant@google.com>
+
+       * layout.cc (Layout::include_section): Don't assert on GROUP
+       sections with --emit-relocs.
+
 2012-08-21  Cary Coutant  <ccoutant@google.com>
 
        * symtab.cc (Symbol_table::gc_mark_undef_symbols): Don't assert
index 1e31cce..db6b6ac 100644 (file)
@@ -606,8 +606,7 @@ Layout::include_section(Sized_relobj_file<size, big_endian>*, const char* name,
     case elfcpp::SHT_GROUP:
       // If we are emitting relocations these should be handled
       // elsewhere.
-      gold_assert(!parameters->options().relocatable()
-                 && !parameters->options().emit_relocs());
+      gold_assert(!parameters->options().relocatable());
       return false;
 
     case elfcpp::SHT_PROGBITS: