1# This test doesn't attempt to mandate a specific section classification. It is 2# here to document the existing behavior and to make sure we don't do something 3# completely crazy (like crashing). 4 5# RUN: yaml2obj %s -o %t 6# RUN: lldb-test object-file %t | FileCheck %s 7 8# The section is called .data, but it has the SHF_EXECINSTR flag set. Have 9# the flag take precedence over the name. 10# CHECK-LABEL: Name: .data 11# CHECK-NEXT: Type: code 12 13# Section type (SHT_SYMTAB) takes precedence over name-based deduction. 14# CHECK-LABEL: Name: .text 15# CHECK-NEXT: Type: elf-symbol-table 16 17--- !ELF 18FileHeader: 19 Class: ELFCLASS64 20 Data: ELFDATA2LSB 21 Type: ET_DYN 22 Machine: EM_X86_64 23 Entry: 0x00000000000007A0 24Sections: 25 - Name: .data 26 Type: SHT_PROGBITS 27 Flags: [ SHF_EXECINSTR, SHF_ALLOC ] 28 AddressAlign: 0x0000000000000004 29 Content: DEADBEEFBAADF00D 30 - Name: .text 31 Type: SHT_SYMTAB 32 Flags: [ ] 33 Link: 0 34 AddressAlign: 0x0000000000000004 35 Content: DEADBEEFBAADF00D 36... 37