[PATCH] D46217: [llvm-objcopy] Add --weaken option

Jake Ehrlich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 27 16:21:49 PDT 2018


jakehehrlich added inline comments.


================
Comment at: tools/llvm-objcopy/llvm-objcopy.cpp:339
+      if (Config.Weaken && Sym.Binding == STB_GLOBAL &&
+          Sym.NameIndex != STN_UNDEF)
+        Sym.Binding = STB_WEAK;
----------------
Why is this NameIndex check here?


Repository:
  rL LLVM

https://reviews.llvm.org/D46217





More information about the llvm-commits mailing list