[PATCH] D24801: [ELF] - Fix combination of -script and relocatable output.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 7 12:49:14 PDT 2016


ruiu added inline comments.


================
Comment at: ELF/Writer.cpp:276-277
     assignFileOffsets();
+    for (OutputSectionBase<ELFT> *Sec : OutputSections)
+      Sec->setVA(0);
   } else {
----------------
I do not understand this piece of code. VAs are initialized to zero by default, no?


https://reviews.llvm.org/D24801





More information about the llvm-commits mailing list