[PATCH] D13468: [ELF2] -z now option implemented

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 02:40:35 PDT 2015


grimar added inline comments.

================
Comment at: ELF/Driver.cpp:143-145
@@ -139,2 +142,5 @@
+      Config->ZNow = true;
+  }
+
   for (auto *Arg : Args) {
     switch (Arg->getOption().getID()) {
----------------
Fixed.

================
Comment at: ELF/Driver.cpp:144
@@ -139,1 +143,3 @@
+  }
+
   for (auto *Arg : Args) {
----------------
Ok.

================
Comment at: ELF/OutputSections.cpp:346-351
@@ -343,5 +345,8 @@
 
+  if (Config->ZNow)
+    WriteVal(DT_FLAGS_1, DF_1_NOW);
+
   WriteVal(DT_NULL, 0);
 }
 
 template <class ELFT>
----------------
Ok.


http://reviews.llvm.org/D13468





More information about the llvm-commits mailing list