1 # RUN: yaml2obj %s > %t 2 # RUN: printf 0000 > %t.blob 3 # RUN: llvm-objcopy -add-gnu-debuglink=%t.blob %t %t2 4 # RUN: llvm-readobj -sections -section-data %t2 | FileCheck %s 5 6 !ELF 7 FileHeader: 8 Class: ELFCLASS64 9 Data: ELFDATA2LSB 10 Type: ET_EXEC 11 Machine: EM_X86_64 12 13 # CHECK: Name: .gnu_debuglink 14 # CHECK-NEXT: Type: SHT_PROGBITS (0x1) 15 # CHECK-NEXT: Flags [ (0x0) 16 # CHECK-NEXT: ] 17 # CHECK-NEXT: Address: 0x0 18 # CHECK-NEXT: Offset: 19 # CHECK-NEXT: Size: 36 20 # CHECK-NEXT: Link: 0 21 # CHECK-NEXT: Info: 0 22 # CHECK-NEXT: AddressAlignment: 4 23 # CHECK-NEXT: EntrySize: 0 24 # CHECK-NEXT: SectionData ( 25 # CHECK-NEXT: 0000: 6164642D 676E752D 64656275 676C696E |add-gnu-debuglin| 26 # CHECK-NEXT: 0010: 6B2E7465 73742E74 6D702E62 6C6F6200 |k.test.tmp.blob.| 27 # CHECK-NEXT: 0020: 72C49B0C |r...| 28 # CHECK-NEXT: ) 29