1# RUN: mkdir -p %t/.build-id/1b 2# RUN: yaml2obj %s -o %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug 3# RUN: cd %t 4# RUN: llvm-objcopy --strip-all --add-gnu-debuglink=.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug %t/.build-id/1b/8a73ac238390e32a7ff4ac8ebe4d6a41ecf5c9.debug %t/stripped.out 5# RUN: lldb-test object-file %t/stripped.out | FileCheck %s 6 7# Make sure that the debug_frame section is present only once. 8# CHECK: Name: .debug_frame 9# CHECK-NOT: .debug_frame 10 11--- !ELF 12FileHeader: 13 Class: ELFCLASS64 14 Data: ELFDATA2LSB 15 Type: ET_EXEC 16 Machine: EM_X86_64 17 Entry: 0x00000000004003D0 18Sections: 19 - Name: .note.gnu.build-id 20 Type: SHT_NOTE 21 Flags: [ SHF_ALLOC ] 22 Address: 0x0000000000400274 23 AddressAlign: 0x0000000000000004 24 Content: 040000001400000003000000474E55001B8A73AC238390E32A7FF4AC8EBE4D6A41ECF5C9 25 - Name: .text 26 Type: SHT_PROGBITS 27 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 28 Address: 0x00000000004003D0 29 AddressAlign: 0x0000000000000010 30 Content: DEADBEEFBAADF00D 31 - Name: .debug_frame 32 Type: SHT_PROGBITS 33 AddressAlign: 0x0000000000000008 34 Content: DEADBEEFBAADF00D 35Symbols: 36 - Name: main 37 Type: STT_FUNC 38 Section: .text 39 Value: 0x00000000004003D0 40 Size: 0x0000000000000008 41... 42