[mips] .reginfo is 8 byte aligned on N32.

Differential Revision: http://reviews.llvm.org/D4540

llvm-svn: 213246
This commit is contained in:
Daniel Sanders 2014-07-17 10:10:04 +00:00
parent 834609d80b
commit 701e961650
2 changed files with 3 additions and 2 deletions

View File

@ -366,7 +366,8 @@ void MipsTargetELFStreamer::finish() {
const MCSectionELF *Sec =
Context.getELFSection(".reginfo", ELF::SHT_MIPS_REGINFO, ELF::SHF_ALLOC,
SectionKind::getMetadata(), 24, "");
MCA.getOrCreateSectionData(*Sec).setAlignment(4);
MCA.getOrCreateSectionData(*Sec)
.setAlignment(Features & Mips::FeatureN32 ? 8 : 4);
OS.SwitchSection(Sec);
OS.EmitIntValue(0, 4); // ri_gprmask

View File

@ -27,6 +27,6 @@
# CHECK_32-LABEL: Name: .reginfo
# CHECK_32-NEXT: Type: SHT_MIPS_REGINFO
# CHECK_32-NEXT: Flags [ (0x2)
# CHECK_32: AddressAlignment: 4
# CHECK_32: AddressAlignment: 8
# CHECK_32: EntrySize: 24
# CHECK_32-LABEL: }