This is an archive of the discontinued LLVM Phabricator instance.

[mips] Correct section alignments and EntrySizes for .bss, .text, .data, .reginfo, .MIPS.options, and .MIPS.abiflags
ClosedPublic

Authored by dsanders on Jul 13 2014, 9:59 AM.

Details

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.

Diff Detail

Event Timeline

dsanders updated this revision to Diff 11353.Jul 13 2014, 9:59 AM
dsanders retitled this revision from to [mips] Correct section alignments and EntrySizes for .bss, .text, .data, .reginfo, .MIPS.options, and .MIPS.abiflags.
dsanders updated this object.
dsanders edited the test plan for this revision. (Show Details)
dsanders added reviewers: sstankovic, vmedic.
vmedic accepted this revision.Jul 14 2014, 2:04 AM
vmedic edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jul 14 2014, 2:04 AM
dsanders updated this revision to Diff 11377.Jul 14 2014, 7:03 AM
dsanders edited edge metadata.

Rebase before commit

dsanders closed this revision.Jul 14 2014, 7:10 AM