OSDN Git Service

[PowerPC] Fix regression in generating @ha/@l relocs
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 8 May 2013 17:50:07 +0000 (17:50 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 8 May 2013 17:50:07 +0000 (17:50 +0000)
commita3967b6844f4be588c724ada3692e734bba65cf1
tree11daa917327c955274ba2d99a59fd29a8bbb9fc7
parenta7f2ce85e5bd8d2826537f50ac510ef9fbe83792
[PowerPC] Fix regression in generating @ha/@l relocs

The patch I committed as revision 167864 introduced a regression that
causes LLVM to no longer generate appropriate relocs for @ha/@l symbol
references (but fail an assertion instead).

This is fixed here by re-enabling support for the VK_PPC_GAS_HA16/
VK_PPC_GAS_LO16 variant kinds (and their Darwin variants) in
PPCELFObjectWriter.cpp.

Tested by running projects/test-suite in -m32 mode with the integrated
assembler forced on.  A standalone test case will be committed shortly
as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181450 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp