42 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 --add-gnu-debuglink=.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug %t/stripped.out5# RUN: lldb-test object-file %t/stripped.out | FileCheck %s6 7# Make sure that the debug_frame section is present only once.8# CHECK: Name: .debug_frame9# CHECK-NOT: .debug_frame10 11--- !ELF12FileHeader:13 Class: ELFCLASS6414 Data: ELFDATA2LSB15 Type: ET_EXEC16 Machine: EM_X86_6417 Entry: 0x00000000004003D018Sections:19 - Name: .note.gnu.build-id20 Type: SHT_NOTE21 Flags: [ SHF_ALLOC ]22 Address: 0x000000000040027423 AddressAlign: 0x000000000000000424 Content: 040000001400000003000000474E55001B8A73AC238390E32A7FF4AC8EBE4D6A41ECF5C925 - Name: .text26 Type: SHT_PROGBITS27 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]28 Address: 0x00000000004003D029 AddressAlign: 0x000000000000001030 Content: DEADBEEFBAADF00D31 - Name: .debug_frame32 Type: SHT_PROGBITS33 AddressAlign: 0x000000000000000834 Content: DEADBEEFBAADF00D35Symbols:36 - Name: main37 Type: STT_FUNC38 Section: .text39 Value: 0x00000000004003D040 Size: 0x000000000000000841...42