[PATCH] [PowerPC] Replace foul hackery with real calls to __tls_get_addr

Bill Schmidt wschmidt at linux.vnet.ibm.com
Tue Nov 11 06:35:08 PST 2014


>>! In D6209#5, @jhibbits wrote:
> Tests for 32-bit are already included, as part of tls-pic.ll.

Yes, I saw those.  However, what I'm referring to is the use of VK_PLT in the PPCAsmPrinter::EmitInstruction() code, the purpose of which is to ensure that ELF::R_PPC_PLTREL24 is applied to the __tls_get_addr symbol rather than ELF::R_PPC_REL24.  You don't have a relocation test for this.  See test/MC/PowerPC/tls-gd-obj.s for an example of how to do this.

http://reviews.llvm.org/D6209






More information about the llvm-commits mailing list