mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 04:49:54 +08:00
PR gold/13204
* layout.cc (Layout::segment_precedes): Don't assert failure if a --section-start option was seen. * options.h (General_options::any_section_start): New function.
This commit is contained in:
@ -2976,8 +2976,9 @@ Layout::segment_precedes(const Output_segment* seg1,
|
||||
|
||||
// We shouldn't get here--we shouldn't create segments which we
|
||||
// can't distinguish. Unless of course we are using a weird linker
|
||||
// script.
|
||||
gold_assert(this->script_options_->saw_phdrs_clause());
|
||||
// script or overlapping --section-start options.
|
||||
gold_assert(this->script_options_->saw_phdrs_clause()
|
||||
|| parameters->options().any_section_start());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user