diff options
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index c10bbea..bc03374 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -1667,7 +1667,9 @@ insert_os_after (lang_output_section_statement_type *after) { asection *s = (*where)->output_section_statement.bfd_section; - if (s == NULL || (s->flags & SEC_ALLOC) != 0) + if (s == NULL + || s->map_head.s == NULL + || (s->flags & SEC_ALLOC) != 0) where = assign; } break; |