mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 13:21:30 +00:00
[ELFYAML] Make the Size field for .bss section optional
It's a common case to have a zero-size .bss section in an object file. llvm-svn: 241352
This commit is contained in:
parent
a4c43e6acb
commit
d8a1b5611d
@ -629,7 +629,7 @@ static void sectionMapping(IO &IO, ELFYAML::RawContentSection &Section) {
|
||||
|
||||
static void sectionMapping(IO &IO, ELFYAML::NoBitsSection &Section) {
|
||||
commonSectionMapping(IO, Section);
|
||||
IO.mapRequired("Size", Section.Size);
|
||||
IO.mapOptional("Size", Section.Size, Hex64(0));
|
||||
}
|
||||
|
||||
static void sectionMapping(IO &IO, ELFYAML::RelocationSection &Section) {
|
||||
|
@ -324,7 +324,6 @@ ELF-MIPS64EL-NEXT: - Name: .bss
|
||||
ELF-MIPS64EL-NEXT: Type: SHT_NOBITS
|
||||
ELF-MIPS64EL-NEXT: Flags: [ SHF_WRITE, SHF_ALLOC ]
|
||||
ELF-MIPS64EL-NEXT: AddressAlign: 0x0000000000000010
|
||||
ELF-MIPS64EL-NEXT: Size: 0x0000000000000000
|
||||
ELF-MIPS64EL-NEXT: - Name: .MIPS.options
|
||||
ELF-MIPS64EL-NEXT: Type: SHT_MIPS_OPTIONS
|
||||
ELF-MIPS64EL-NEXT: Flags: [ SHF_ALLOC ]
|
||||
|
Loading…
Reference in New Issue
Block a user