aboutsummaryrefslogtreecommitdiff
path: root/gold/script-sections.cc
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2016-12-01 19:54:05 -0800
committerCary Coutant <ccoutant@gmail.com>2016-12-01 19:54:05 -0800
commit397b8d2a9fb6651924c311f41b90cabeb3fc3ae9 (patch)
tree445e76a3488c2e311bd26ded23ec22c1cd78a043 /gold/script-sections.cc
parentbe2884c1ea9b96fdb04c6d244d9e7aa1b654a47a (diff)
downloadgdb-397b8d2a9fb6651924c311f41b90cabeb3fc3ae9.zip
gdb-397b8d2a9fb6651924c311f41b90cabeb3fc3ae9.tar.gz
gdb-397b8d2a9fb6651924c311f41b90cabeb3fc3ae9.tar.bz2
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.
Diffstat (limited to 'gold/script-sections.cc')
-rw-r--r--gold/script-sections.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/script-sections.cc b/gold/script-sections.cc
index bf25391..f35ecc1 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;
}