This patch removes some nondeterminism from direct object file output
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Fri, 14 Dec 2012 20:28:38 +0000 (20:28 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Fri, 14 Dec 2012 20:28:38 +0000 (20:28 +0000)
commitd3eb4f46f011f5880e09862559c17f03e38bef39
tree4392d6217be880889afd7cf6f7f5ada9a0c64e92
parent99cbdde6198623ff014c776743caec2cf48f4840
This patch removes some nondeterminism from direct object file output
for TLS dynamic models on 64-bit PowerPC ELF.  The default sort routine
for relocations only sorts on the r_offset field; but with TLS, there
can be two relocations with the same r_offset.  For PowerPC, this patch
sorts secondarily on descending r_type, which matches the behavior
expected by the linker.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170237 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
test/CodeGen/PowerPC/tls-ld-obj.ll