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.
This commit is contained in:
H.J. Lu 2009-07-23 00:08:22 +00:00
parent dbd964eb7c
commit 249b2a84f4
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,9 @@
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.
2009-07-11 Alan Modra <amodra@bigpond.net.au>
* ldlang.c (insert_os_after): Don't tie assignments to non-alloc

View file

@ -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;