*** empty log message ***
[deliverable/binutils-gdb.git] / gold / symtab.cc
index 3b76adb283548f52ba1a05c36122776ef6dc24b8..f0ba1d560fb5563d5bfa4d80f358c90ab7307959 100644 (file)
@@ -2814,6 +2814,12 @@ Symbol_table::sized_write_globals(const Stringpool* sympool,
       typename elfcpp::Elf_types<size>::Elf_Addr sym_value = sym->value();
       typename elfcpp::Elf_types<size>::Elf_Addr dynsym_value = sym_value;
       elfcpp::STB binding = sym->binding();
+
+      // If --no-gnu-unique is set, change STB_GNU_UNIQUE to STB_GLOBAL.
+      if (binding == elfcpp::STB_GNU_UNIQUE
+         && !parameters->options().gnu_unique())
+       binding = elfcpp::STB_GLOBAL;
+
       switch (sym->source())
        {
        case Symbol::FROM_OBJECT:
This page took 0.023071 seconds and 4 git commands to generate.