Index: lib/ObjectYAML/ELFYAML.cpp =================================================================== --- lib/ObjectYAML/ELFYAML.cpp +++ lib/ObjectYAML/ELFYAML.cpp @@ -450,6 +450,7 @@ BCase(SHF_OS_NONCONFORMING); BCase(SHF_GROUP); BCase(SHF_TLS); + BCase(SHF_COMPRESSED); switch (Object->Header.Machine) { case ELF::EM_ARM: BCase(SHF_ARM_PURECODE); Index: test/tools/yaml2obj/shf-compressed.yaml =================================================================== --- /dev/null +++ test/tools/yaml2obj/shf-compressed.yaml @@ -0,0 +1,23 @@ +# RUN: yaml2obj %s -o %t +# RUN: llvm-readobj -sections %t | FileCheck %s + +--- !ELF +FileHeader: + Class: ELFCLASS32 + Data: ELFDATA2LSB + Type: ET_REL + Machine: EM_386 +Sections: + - Name: .debug_line + Type: SHT_PROGBITS + Flags: [ SHF_COMPRESSED ] + AddressAlign: 0x0000000000000001 + +# CHECK: Sections [ +# CHECK: Section { +# CHECK: Index: 1 +# CHECK-NEXT: Name: .debug_line (1) +# CHECK-NEXT: Type: SHT_PROGBITS (0x1) +# CHECK-NEXT: Flags [ (0x800) +# CHECK-NEXT: SHF_COMPRESSED (0x800) +# CHECK-NEXT: ]