111 lines · yaml
1# RUN: mkdir -p %t/.build-id/1b2# RUN: yaml2obj %s -o %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug3# RUN: cd %t4# RUN: llvm-objcopy --strip-all %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug %t/stripped.out5# RUN: lldb-test object-file %t/stripped.out | FileCheck %s6 7# CHECK: Name: .debug_abbrev8# CHECK: Name: .debug_addr9# CHECK: Name: .debug_aranges10# CHECK: Name: .debug_frame11# CHECK: Name: .debug_info12# CHECK: Name: .debug_line13# CHECK: Name: .debug_line_str14# CHECK: Name: .debug_loc15# CHECK: Name: .debug_loclists16# CHECK: Name: .debug_macinfo17# CHECK: Name: .debug_macro18# CHECK: Name: .debug_names19# CHECK: Name: .debug_pubnames20# CHECK: Name: .debug_pubtypes21# CHECK: Name: .debug_ranges22# CHECK: Name: .debug_rnglists23# CHECK: Name: .debug_str24# CHECK: Name: .debug_str_offsets25# CHECK: Name: .debug_types26 27--- !ELF28FileHeader:29 Class: ELFCLASS6430 Data: ELFDATA2LSB31 Type: ET_EXEC32 Machine: EM_X86_6433 Entry: 0x00000000004003D034Sections:35 - Name: .note.gnu.build-id36 Type: SHT_NOTE37 Flags: [ SHF_ALLOC ]38 Address: 0x000000000040027439 AddressAlign: 0x000000000000000440 Content: 040000001400000003000000474E55001B8A73AC238390E32A7FF4AC8EBE4D6A41ECF5C941 - Name: .text42 Type: SHT_PROGBITS43 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]44 Address: 0x00000000004003D045 AddressAlign: 0x000000000000001046 Content: DEADBEEFBAADF00D47 - Name: .debug_abbrev48 Type: SHT_PROGBITS49 Content: DEADBEEFBAADF00D50 - Name: .debug_addr51 Type: SHT_PROGBITS52 Content: DEADBEEFBAADF00D53 - Name: .debug_aranges54 Type: SHT_PROGBITS55 Content: DEADBEEFBAADF00D56 - Name: .debug_frame57 Type: SHT_PROGBITS58 Content: DEADBEEFBAADF00D59 - Name: .debug_info60 Type: SHT_PROGBITS61 Content: DEADBEEFBAADF00D62 - Name: .debug_line63 Type: SHT_PROGBITS64 Content: DEADBEEFBAADF00D65 - Name: .debug_line_str66 Type: SHT_PROGBITS67 Content: DEADBEEFBAADF00D68 - Name: .debug_loc69 Type: SHT_PROGBITS70 Content: DEADBEEFBAADF00D71 - Name: .debug_loclists72 Type: SHT_PROGBITS73 Content: DEADBEEFBAADF00D74 - Name: .debug_macinfo75 Type: SHT_PROGBITS76 Content: DEADBEEFBAADF00D77 - Name: .debug_macro78 Type: SHT_PROGBITS79 Content: DEADBEEFBAADF00D80 - Name: .debug_names81 Type: SHT_PROGBITS82 Content: DEADBEEFBAADF00D83 - Name: .debug_pubnames84 Type: SHT_PROGBITS85 Content: DEADBEEFBAADF00D86 - Name: .debug_pubtypes87 Type: SHT_PROGBITS88 Content: DEADBEEFBAADF00D89 - Name: .debug_ranges90 Type: SHT_PROGBITS91 Content: DEADBEEFBAADF00D92 - Name: .debug_rnglists93 Type: SHT_PROGBITS94 Content: DEADBEEFBAADF00D95 - Name: .debug_str96 Type: SHT_PROGBITS97 Content: DEADBEEFBAADF00D98 - Name: .debug_str_offsets99 Type: SHT_PROGBITS100 Content: DEADBEEFBAADF00D101 - Name: .debug_types102 Type: SHT_PROGBITS103 Content: DEADBEEFBAADF00D104Symbols:105 - Name: main106 Type: STT_FUNC107 Section: .text108 Value: 0x00000000004003D0109 Size: 0x0000000000000008110...111