Fix PT_GNU_RELRO computation.

We were not including TLS sections.

llvm-svn: 259945
diff --git a/lld/ELF/Writer.cpp b/lld/ELF/Writer.cpp
index dcb5cfc..1914337 100644
--- a/lld/ELF/Writer.cpp
+++ b/lld/ELF/Writer.cpp
@@ -1245,9 +1245,9 @@
         VA = alignTo(VA, Sec->getAlign());
         Sec->setVA(VA);
         VA += Sec->getSize();
-        if (InRelRo)
-          updateRelro(PH, &GnuRelroPhdr, VA);
       }
+      if (InRelRo)
+        updateRelro(PH, &GnuRelroPhdr, VA);
     }
 
     FileOff = alignTo(FileOff, Sec->getAlign());