Jake Ehrlich | 8ad7779 | 2018-12-03 19:49:23 +0000 | [diff] [blame] | 1 | # RUN: yaml2obj %s > %t |
Seiya Nuta | ada9d2d8 | 2019-05-23 00:42:46 +0000 | [diff] [blame^] | 2 | # RUN: not llvm-objcopy --build-id-link-dir=%t-dir --build-id-link-input=.debug %t 2>&1 >/dev/null | FileCheck %s -DINPUT=%t |
Jake Ehrlich | 8ad7779 | 2018-12-03 19:49:23 +0000 | [diff] [blame] | 3 | |
Seiya Nuta | ada9d2d8 | 2019-05-23 00:42:46 +0000 | [diff] [blame^] | 4 | # CHECK: error: '[[INPUT]]': could not find build ID |
Jake Ehrlich | 8ad7779 | 2018-12-03 19:49:23 +0000 | [diff] [blame] | 5 | |
| 6 | --- !ELF |
| 7 | FileHeader: |
| 8 | Class: ELFCLASS64 |
| 9 | Data: ELFDATA2LSB |
| 10 | Type: ET_EXEC |
| 11 | Machine: EM_X86_64 |
| 12 | Sections: |
| 13 | - Name: .note.foo |
| 14 | Type: SHT_NOTE |
| 15 | Flags: [ SHF_ALLOC ] |
| 16 | Content: 000000000000000000000000 |
| 17 | ProgramHeaders: |
| 18 | - Type: PT_NOTE |
| 19 | Flags: [ PF_R ] |
| 20 | Sections: |
George Rimar | f5345a3 | 2019-05-01 09:45:55 +0000 | [diff] [blame] | 21 | - Section: .note.foo |