[PATCH] D30541: [ELF] - Make Bss and BssRelRo sections to be synthetic (#2).

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 05:07:22 PST 2017


grimar added inline comments.


================
Comment at: ELF/Relocations.cpp:489-491
     Sym->NeedsCopy = true;
-    Sym->Section = ISec;
+    Sym->CopyRelSec = {RelSec, Off};
     Sym->symbol()->IsUsedInRegularObj = true;
----------------
ruiu wrote:
> Here is an idea. Can you overwrite the symbol body using replaceBody<> to change the type from SharedSymbol to DefinedSynthetic?
Done. I used DefinedRegular.


https://reviews.llvm.org/D30541





More information about the llvm-commits mailing list