[PATCH] D23663: [ELF] - Linkerscript: set correct synamic tag entries values when LS is used.

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 18 08:34:43 PDT 2016


evgeny777 added inline comments.

================
Comment at: ELF/OutputSections.cpp:755
@@ +754,3 @@
+template <class ELFT> static uint64_t getValueForTag(int32_t Tag) {
+  if (Tag == DT_PREINIT_ARRAYSZ)
+    return Out<ELFT>::PreinitArray->getSize();
----------------
Can we use OutSec field from Entry?

```
case Entry::SecSize:
      P->d_un.d_val = E.OutSec->getSize();
      break;
```


https://reviews.llvm.org/D23663





More information about the llvm-commits mailing list