MIPS is the only target requires GOT header. We already have MIPS specific code in the GotSection class, so move MIPS GOT header generation there and delete redundant stuff like GotHeaderEntriesNum field and writeGotHeader method.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
ELF/OutputSections.cpp | ||
---|---|---|
149 ↗ | (On Diff #54799) | Won't this produce the wrong result for mips now? |
ELF/OutputSections.cpp | ||
---|---|---|
149 ↗ | (On Diff #54799) | Now LLD does not support MIPS TLS relocations. So this code does not make worse anything. I have another couple of patches to support MIPS TLS. As an announce - it might sound like a joke but for GOT entries related to TLS relocations MIPS ABI uses almost regular approach with creation of dynamic relocations for each GOT enty etc. But ABI requires to separate these 'regular' TLS related entries from MIPS specific local/global parts of GOT :) |