commit | 95708931cf993a3831e34a135c4e887eec4910b5 | [log] [tgz] |
---|---|---|
author | Rafael Espindola <rafael.espindola@gmail.com> | Fri Feb 05 22:55:06 2016 +0000 |
committer | Rafael Espindola <rafael.espindola@gmail.com> | Fri Feb 05 22:55:06 2016 +0000 |
tree | 86d3cd0ec2e80be7588bc4a0240d1683c96571ea | |
parent | 2aad2b350090fecb324c6f2741479cec92108d3a [diff] [blame] |
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());