Daniel Sanders
41ffa5d1ba
Re-commit: [mips] Correct section alignments and EntrySizes for .bss, .text, .data, .reginfo, .MIPS.options, and .MIPS.abiflags
...
The lld tests will temporarily fail again but Simon Atanasyan will commit a fix for those shortly.
llvm-svn: 212946
2014-07-14 15:05:51 +00:00
Daniel Sanders
cb0d36e592
Revert: [mips] Correct section alignments and EntrySizes for .bss, .text, .data, .reginfo, .MIPS.options, and .MIPS.abiflags
...
This commit causes multiple lld tests to fail. Reverting while I investigate the issue.
llvm-svn: 212945
2014-07-14 14:43:45 +00:00
Daniel Sanders
8e254166e1
[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
2014-07-14 14:02:14 +00:00
Daniel Sanders
9ee2aee859
[mips] Correct the AFL_FLAGS1_ODDSPREG flag in .MIPS.abiflags when no '.module oddspreg' is used
...
Differential Revision: http://reviews.llvm.org/D4486
llvm-svn: 212932
2014-07-14 10:26:15 +00:00
Simon Atanasyan
1cd169f137
[Mips] Support SHT_MIPS_ABIFLAGS section type flag in the llvm-readobj,
...
obj2yaml and yaml2obj tools.
llvm-svn: 212908
2014-07-13 15:28:54 +00:00
Vladimir Medic
fb8a2a95cd
Mips.abiflags is a new implicitly generated section that will be present on all new modules. The section contains a versioned data structure which represents essentially information to allow a program loader to determine the requirements of the application. This patch implements mips.abiflags section and provides test cases for it.
...
llvm-svn: 212519
2014-07-08 08:59:22 +00:00