[mips] Correct section alignments and EntrySizes for .bss, .text, .data, .reginfo...
authorDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 14 Jul 2014 14:02:14 +0000 (14:02 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Mon, 14 Jul 2014 14:02:14 +0000 (14:02 +0000)
commit8e254166e1d23bc5a8430f83a23153782961b007
treeeb612406f2e8250cb5803b9ef7e7c762d85f8012
parent7ddb0ab85f04f56371ae948052188d968725b8b7
[mips] Correct section alignments and EntrySizes for .bss, .text, .data, .reginfo, .MIPS.options, and .MIPS.abiflags

Summary:
.bss, .text, and .data are at least 16-byte aligned.
.reginfo is 4-byte aligned and has a 24-byte EntrySize.
.MIPS.abiflags has an 24-byte EntrySize.
.MIPS.options is 8-byte aligned and has 1-byte EntrySize.

Using a 1-byte EntrySize for .MIPS.options seems strange because the
records are neither 1-byte long nor fixed-length but this matches the value
that GAS emits.

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

llvm-svn: 212939
12 files changed:
llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
llvm/test/MC/Mips/elf_reginfo.s
llvm/test/MC/Mips/mips32/abiflags.s
llvm/test/MC/Mips/mips32r2/abiflags.s
llvm/test/MC/Mips/mips64/abiflags.s
llvm/test/MC/Mips/mips64r2/abiflags.s
llvm/test/MC/Mips/mips_abi_flags_xx.s
llvm/test/MC/Mips/mips_abi_flags_xx_set.s
llvm/test/MC/Mips/msa/abiflags.s
llvm/test/MC/Mips/nooddspreg-cmdarg.s
llvm/test/MC/Mips/nooddspreg.s
llvm/test/MC/Mips/oddspreg.s