[PowerPC] Fix PR 21652 - copy st_other bits on symbol assignment
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 24 Nov 2014 18:09:47 +0000 (18:09 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 24 Nov 2014 18:09:47 +0000 (18:09 +0000)
commitedc6a1399285a8d81c7cbe3baad441b7bcff9a13
tree243a1c54b834cff7a2f46926813d59eb062e6319
parent2dc4746332bad47c4241e35e02d6f80f431ddcbc
[PowerPC] Fix PR 21652 - copy st_other bits on symbol assignment

When processing an assignment in the integrated assembler that sets
a symbol to the value of another symbol, we need to copy the st_other
bits that encode the local entry point offset.

Modeled after MipsTargetELFStreamer::emitAssignment handling of the
ELF::STO_MIPS_MICROMIPS flag.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222672 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
test/MC/PowerPC/ppc64-localentry.s