diff options
Diffstat (limited to 'gold/layout.cc')
-rw-r--r-- | gold/layout.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gold/layout.cc b/gold/layout.cc index 0b62c18..028703a 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -1421,7 +1421,9 @@ Layout::relaxation_loop_body( != General_options::OBJECT_FORMAT_ELF) load_seg = NULL; - gold_assert(phdr_seg == NULL || load_seg != NULL); + gold_assert(phdr_seg == NULL + || load_seg != NULL + || this->script_options_->saw_sections_clause()); // Lay out the segment headers. if (!parameters->options().relocatable()) |