diff options
Diffstat (limited to 'gold/plugin.cc')
-rw-r--r-- | gold/plugin.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gold/plugin.cc b/gold/plugin.cc index e58751e..4550371 100644 --- a/gold/plugin.cc +++ b/gold/plugin.cc @@ -506,7 +506,12 @@ Pluginobj::include_comdat_group(std::string comdat_key, Layout* layout) // If this is the first time we've seen this comdat key, ask the // layout object whether it should be included. if (ins.second) - ins.first->second = layout->add_comdat(NULL, 1, comdat_key, true); + { + Kept_section to_add(NULL, 1, true); + ins.first->second = layout->find_or_add_kept_section(comdat_key, + &to_add, + NULL); + } return ins.first->second; } |