This does not support TPOFF32 relocations to local symbols as the address calculations are separate. Support for this will be a separate patch.
Diff Detail
Event Timeline
ELF/OutputSections.h | ||
---|---|---|
374 | Initialization image is the term of art for this. How about TlsInitImageVA? |
ELF/OutputSections.h | ||
---|---|---|
374 | I think I still kind of like template (mainly because it's just one word), and that's used in Ulrich Drepper's document too (http://www.akkadia.org/drepper/tls.pdf) |
ELF/OutputSections.h | ||
---|---|---|
375 | In 2 places vs the 18 uses of initialization image. |
LGTM with a few nits.
ELF/OutputSections.cpp | ||
---|---|---|
648 | Remove () from "(A + B) - C". | |
ELF/OutputSections.h | ||
356 | Nothing wrong with the template aliasing, but that's different from other code. Use typedef instead for consistency. typedef typename llvm::object::ELFFile<ELFT>::uintX_t uintX_t; | |
375 | I have no strong preference, so I'm OK with InitImage. |
Let's typedef uintX_t here to avoid line wrapping.