Fix problem where orphan section is treated as a KEEP section.

gold/
	PR gold/20717
	* script-sections.cc (Script_sections): Set *keep to false when
	no match.
This commit is contained in:
Cary Coutant 2016-12-01 19:54:05 -08:00
parent be2884c1ea
commit 397b8d2a9f
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2016-12-01 Cary Coutant <ccoutant@gmail.com>
PR gold/20717
* script-sections.cc (Script_sections): Set *keep to false when
no match.
2016-12-01 Cary Coutant <ccoutant@gmail.com>
PR gold/20834

View File

@ -3538,6 +3538,7 @@ Script_sections::output_section_name(
*output_section_slot = NULL;
*psection_type = Script_sections::ST_NONE;
*keep = false;
return section_name;
}