Fix problem where orphan section is treated as a KEEP section.
authorCary Coutant <ccoutant@gmail.com>
Fri, 2 Dec 2016 03:54:05 +0000 (19:54 -0800)
committerCary Coutant <ccoutant@gmail.com>
Fri, 2 Dec 2016 03:54:05 +0000 (19:54 -0800)
gold/
PR gold/20717
* script-sections.cc (Script_sections): Set *keep to false when
no match.

gold/ChangeLog
gold/script-sections.cc

index ea7b9f8be3912b6b97bab266af7b242317dfd5a8..913ad084beedf782c56a7451d664b15544d1061f 100644 (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
index bf25391ec41ee0c604712d121a4d329336c4a639..f35ecc11778bd1ceb1091199bf56a00ad506d76c 100644 (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;
 }