* ldlang.c (process_insert_statements): ASSERT that output section
statements are in order.
This commit is contained in:
parent
bde18da45e
commit
d2ae7be0b2
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2009-02-16 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* ldlang.c (process_insert_statements): ASSERT that output section
|
||||
statements are in order.
|
||||
|
||||
2009-02-16 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* ldlang.c (push_stat_ptr, pop_stat_ptr): New functions.
|
||||
|
|
|
@ -3438,7 +3438,10 @@ process_insert_statements (void)
|
|||
{
|
||||
/* Keep pointers to the first and last output section
|
||||
statement in the sequence we may be about to move. */
|
||||
last_os = &(*s)->output_section_statement;
|
||||
os = &(*s)->output_section_statement;
|
||||
|
||||
ASSERT (last_os == NULL || last_os->next == os);
|
||||
last_os = os;
|
||||
|
||||
/* Set constraint negative so that lang_output_section_find
|
||||
won't match this output section statement. At this
|
||||
|
|
Loading…
Reference in a new issue