[ELF] - Implement the TLS relocation optimization for 32-bit x86.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 9 Dec 2015 09:55:54 +0000 (09:55 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 9 Dec 2015 09:55:54 +0000 (09:55 +0000)
commit2558e12bacf30c655f4593a0bc91a6b55ca49176
treedad825aa995e152dde0e0d26d0aad8ac7e49940a
parent9938425b31e027fae3f2afeb0393aa6ecb86d255
[ELF] - Implement the TLS relocation optimization for 32-bit x86.

Implement the TLS relocation optimization for 32-bit x86 that is described in
"ELF Handling For Thread-Local Storage" by Ulrich Drepper, chapter 5,
"IA-32 Linker Optimizations". Specifically, this patch implements these
optimizations: LD->LE, GD->IE, GD->LD, and IE->LE.

Differential revision: http://reviews.llvm.org/D15292

llvm-svn: 255103
lld/ELF/Target.cpp
lld/test/ELF/Inputs/tls-opt-gdiele-i686.s [new file with mode: 0644]
lld/test/ELF/tls-opt-gdiele-i686.s [new file with mode: 0644]
lld/test/ELF/tls-opt-i686.s [new file with mode: 0644]