## Check handling of SHF_GNU_RETAIN and SHF_SUNW_NODISCARD section flags.
# RUN: yaml2obj --docnum=1 %s -o %t1
# RUN: obj2yaml %t1 | FileCheck %s --check-prefix=GNU
# GNU: Name: .gnu.retain
# GNU-NEXT: Type: SHT_PROGBITS
# GNU-NEXT: Flags: [ SHF_GNU_RETAIN ]
---
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Sections:
- Name: .gnu.retain
Type: SHT_PROGBITS
Flags:
# RUN: yaml2obj --docnum=2 %s -o %t2
# RUN: obj2yaml %t2 | FileCheck %s --check-prefix=SOLARIS
# SOLARIS: Name: .sunw.nodiscard
# SOLARIS-NEXT: Type: SHT_PROGBITS
# SOLARIS-NEXT: Flags: [ SHF_SUNW_NODISCARD ]
---
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
OSABI: ELFOSABI_SOLARIS
Type: ET_REL
Sections:
- Name: .sunw.nodiscard
Type: SHT_PROGBITS
Flags: