[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)
commit05aee6b5f458885e44833f9ef5b4c2347f697baf
tree7e0752c35eabe397d3e6d4d1c8af9acd443bb66d
parentc4ce78e261582d08475c6bbea334c1c9dbea494b
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212939 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
test/MC/Mips/elf_reginfo.s
test/MC/Mips/mips32/abiflags.s
test/MC/Mips/mips32r2/abiflags.s
test/MC/Mips/mips64/abiflags.s
test/MC/Mips/mips64r2/abiflags.s
test/MC/Mips/mips_abi_flags_xx.s
test/MC/Mips/mips_abi_flags_xx_set.s
test/MC/Mips/msa/abiflags.s
test/MC/Mips/nooddspreg-cmdarg.s
test/MC/Mips/nooddspreg.s
test/MC/Mips/oddspreg.s