diff options
author | Cary Coutant <ccoutant@gmail.com> | 2016-12-01 19:54:05 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2016-12-01 19:54:05 -0800 |
commit | 397b8d2a9fb6651924c311f41b90cabeb3fc3ae9 (patch) | |
tree | 445e76a3488c2e311bd26ded23ec22c1cd78a043 /gold | |
parent | be2884c1ea9b96fdb04c6d244d9e7aa1b654a47a (diff) | |
download | gdb-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')
-rw-r--r-- | gold/ChangeLog | 6 | ||||
-rw-r--r-- | gold/script-sections.cc | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index ea7b9f8..913ad08 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,5 +1,11 @@ 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 * target.h (Target::default_text_segment_address): Bump default start address up to ABI page size. 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; } |