[PATCH] Windows TLS: Section name prefix to ensure correct order.
David Nadlinger
code at klickverbot.at
Wed Feb 20 13:12:45 PST 2013
@asl: If I'm not mistaken, what makes .tls unique is that all TLS sections need to be sorted between .tls$AAA (where _tls_start isemitted to) and .tls$ZZZ (where _tls_end is emitted to). For example, on MinGW, the relevant part of the default linker script looks like this:
.tls BLOCK(__section_alignment__) :
{
___tls_start__ = . ;
*(.tls$AAA)
*(.tls)
*(.tls$)
*(SORT(.tls$*))
*(.tls$ZZZ)
___tls_end__ = . ;
}
http://llvm-reviews.chandlerc.com/D430
More information about the llvm-commits
mailing list