[llvm-commits] [PATCH, PowerPC] Generate TPREL relocations with the internal assembler

Ulrich Weigand Ulrich.Weigand at de.ibm.com
Mon Nov 12 11:25:14 PST 2012


Hello,

if the instruction encoding patches are applied, the one remaining problem
in running the test-suite with the integrated assembler is that it doesn't
generate TPREL relocations when accessing thread-local variables.   The
attached patch fixes this by adding the relocation numbers to ELF.h and
generating them from PPCELFObjectWriter::getRelocTypeInner when indicated
by the symbol kind.

This makes test-suite cases using TLS also pass when using the integrated
assembler.

OK to commit?

Bye,
Ulrich
(See attached file: diff-llvm-mc-tprel)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff-llvm-mc-tprel
Type: application/octet-stream
Size: 1675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121112/ef433fb9/attachment.obj>


More information about the llvm-commits mailing list