[PowerPC] ELFv2 MC support for .abiversion directive
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Sun, 20 Jul 2014 22:56:57 +0000 (22:56 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Sun, 20 Jul 2014 22:56:57 +0000 (22:56 +0000)
commit0d9bcaacd12f71e824dcbd1ca33be58d01bb37b3
tree1d274b40f0d2245397355123456429250a789742
parent675c967d55e1a96719158fbbc73d7d75188c7828
[PowerPC] ELFv2 MC support for .abiversion directive

ELFv2 binaries are marked by a bit in the ELF header e_flags field.
A new assembler directive .abiversion can be used to set that flag.
This patch implements support in the PowerPC MC streamers to emit the
.abiversion directive (both into assembler and ELF binary output),
as well as support in the assembler parser to parse the .abiversion
directive.

Reviewed by Hal Finkel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213484 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/ELF.h
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
lib/Target/PowerPC/PPCTargetStreamer.h
test/MC/PowerPC/ppc64-abiversion.s [new file with mode: 0644]