PR 992
	* ldexp.c (exp_mark_used_section): Set SEC_KEEP on current
	section for etree_assign, etree_provide and etree_provided.
	Call fold_binary on etree_binary.

	* ldlang.c (lang_mark_used_section_1): Handle load base.
This commit is contained in:
H.J. Lu
2005-06-04 14:40:21 +00:00
parent 6a86118a50
commit 079f985c5a
3 changed files with 21 additions and 2 deletions

View File

@@ -3065,7 +3065,12 @@ lang_mark_used_section_1
os = &(s->output_section_statement);
if (os->bfd_section != NULL)
lang_mark_used_section_1 (os->children.head, os);
{
lang_mark_used_section_1 (os->children.head, os);
if (os->load_base)
exp_mark_used_section (os->load_base,
bfd_abs_section_ptr);
}
}
break;
case lang_wild_statement_enum: