[PATCH] D14359: [elf2] Add support for R_X86_64_TLSLD.
Rafael Ávila de Espíndola via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 6 15:03:46 PST 2015
rafael added inline comments.
================
Comment at: ELF/InputSection.cpp:96
@@ +95,3 @@
+ Target->relocateOne(
+ Buf + RI.r_offset, BufEnd, Type, BaseAddr + RI.r_offset,
+ Out<ELFT>::Got->getVA() + Out<ELFT>::LocalModuleTlsIndexOffset +
----------------
Buf + RI.r_offset is now used 3 times is this function. Please factor it into a variable above, commit that and rebase.
The same is true for BaseAddr + RI.r_offset
================
Comment at: ELF/OutputSections.cpp:83
@@ -82,1 +82,3 @@
+template <class ELFT> uint32_t GotSection<ELFT>::addLocalModuleTlsIndex() {
+ Entries.push_back(nullptr);
----------------
Will this also be used for global tls? Change the name if so.
http://reviews.llvm.org/D14359
More information about the llvm-commits
mailing list