]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/emultempl/elf.em
elf: Add -z unique-symbol to avoid duplicated local symbol names
[thirdparty/binutils-gdb.git] / ld / emultempl / elf.em
index 356f34538b0d20ba344441feed23f6b00787a48e..59eed707ea7d6347d6df713b4ec4972e3f831168 100644 (file)
@@ -751,6 +751,10 @@ fragment <<EOF
          link_info.noexecstack = TRUE;
          link_info.execstack = FALSE;
        }
+      else if (strcmp (optarg, "unique-symbol") == 0)
+       link_info.unique_symbol = TRUE;
+      else if (strcmp (optarg, "nounique-symbol") == 0)
+       link_info.unique_symbol = FALSE;
       else if (strcmp (optarg, "globalaudit") == 0)
        {
          link_info.flags_1 |= DF_1_GLOBAUDIT;