From: Cary Coutant Date: Fri, 2 Dec 2016 03:54:05 +0000 (-0800) Subject: Fix problem where orphan section is treated as a KEEP section. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=397b8d2a9fb6651924c311f41b90cabeb3fc3ae9;p=binutils-gdb.git 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. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index ea7b9f8be39..913ad084bee 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,9 @@ +2016-12-01 Cary Coutant + + PR gold/20717 + * script-sections.cc (Script_sections): Set *keep to false when + no match. + 2016-12-01 Cary Coutant PR gold/20834 diff --git a/gold/script-sections.cc b/gold/script-sections.cc index bf25391ec41..f35ecc11778 100644 --- a/gold/script-sections.cc +++ b/gold/script-sections.cc @@ -3538,6 +3538,7 @@ Script_sections::output_section_name( *output_section_slot = NULL; *psection_type = Script_sections::ST_NONE; + *keep = false; return section_name; }