diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-07-23 00:08:22 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-07-23 00:08:22 +0000 |
commit | 249b2a84f4763409d444feba4570a600af398094 (patch) | |
tree | ba85ee528755c9a2e463c66d5331bc36d6599461 /ld/ldlang.c | |
parent | dbd964eb7c58227d0179f936a0737dfae9f0d206 (diff) | |
download | gdb-249b2a84f4763409d444feba4570a600af398094.zip gdb-249b2a84f4763409d444feba4570a600af398094.tar.gz gdb-249b2a84f4763409d444feba4570a600af398094.tar.bz2 |
2009-07-22 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10429
* ldlang.c (insert_os_after): Tie assignments to non-alloc
output sections if there is no-input section.
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; |