1## This test checks the warning message displayed if input file 2## contains .gdb_index section. 3 4# RUN: yaml2obj %s -o %t.o 5 6# RUN: llvm-dwarfutil --garbage-collection %t.o %t1 2>&1 | FileCheck %s -DFILE=%t.o 7 8# CHECK: [[FILE]]: warning: '.gdb_index' is not currently supported: section will be skipped 9 10--- !ELF 11FileHeader: 12 Class: ELFCLASS64 13 Data: ELFDATA2LSB 14 Type: ET_REL 15 Machine: EM_X86_64 16Sections: 17 - Name: .text 18 Type: SHT_PROGBITS 19 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 20 Address: 0x1000 21 AddressAlign: 0x0000000000000010 22 Content: "FFFFFFFF" 23 - Name: .gdb_index 24 Type: SHT_PROGBITS 25 Flags: [ ] 26 Content: "0000" 27DWARF: 28 debug_abbrev: 29 - Table: 30 - Tag: DW_TAG_compile_unit 31 Children: DW_CHILDREN_yes 32 Attributes: 33 - Attribute: DW_AT_producer 34 Form: DW_FORM_string 35 - Attribute: DW_AT_language 36 Form: DW_FORM_data2 37 - Attribute: DW_AT_name 38 Form: DW_FORM_string 39 - Attribute: DW_AT_low_pc 40 Form: DW_FORM_addr 41 - Attribute: DW_AT_high_pc 42 Form: DW_FORM_data8 43 debug_info: 44 - Version: 4 45 Entries: 46 - AbbrCode: 1 47 Values: 48 - CStr: by_hand 49 - Value: 0x04 50 - CStr: CU1 51 - Value: 0x1000 52 - Value: 0x4 53 - AbbrCode: 0 54... 55