diff options
Diffstat (limited to 'gold/resolve.cc')
-rw-r--r-- | gold/resolve.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/resolve.cc b/gold/resolve.cc index bd327e8..9da963f 100644 --- a/gold/resolve.cc +++ b/gold/resolve.cc @@ -217,6 +217,8 @@ symbol_to_bits(elfcpp::STB binding, bool is_dynamic, default: if (type == elfcpp::STT_COMMON) bits |= common_flag; + else if (!is_ordinary && Symbol::is_common_shndx(shndx)) + bits |= common_flag; else bits |= def_flag; break; |