Jake Ehrlich | 8ad7779 | 2018-12-03 19:49:23 +0000 | [diff] [blame] | 1 | # RUN: yaml2obj %s > %t |
2 | # RUN: not llvm-objcopy --build-id-link-dir=%t-dir --build-id-link-input=.debug %t 2>&1 >/dev/null | FileCheck %s | ||||
3 | |||||
4 | # CHECK: Could not find build ID. | ||||
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: | ||||
21 | - Section: .note.gnu.foo |