[PowerPC] Fix @got references to local symbols
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 1 Jul 2013 18:19:56 +0000 (18:19 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 1 Jul 2013 18:19:56 +0000 (18:19 +0000)
commit222e781d92541017c3a9c5dd40cb52e334cdb86f
tree447201dbddf7e9e60aebc77bec1abf475904a848
parent62c1baf8b58a40d37f56a5431214e6514e42970f
[PowerPC] Fix @got references to local symbols

A @got reference must always result in a relocation, so that
the linker has a chance to set up the GOT entry, even if the
symbol happens to be local.

Add a PPCELFObjectWriter::ExplicitRelSym routine that enforces
a relocation to be emitted for GOT references.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185353 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/MCTargetDesc/PPCELFObjectWriter.cpp
test/MC/PowerPC/ppc64-fixup-explicit.s [new file with mode: 0644]