summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-objcopy/ELF/no-build-id.test
blob: d75f3be178084820cf7eec3ff392685077a2f8e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# RUN: yaml2obj %s > %t
# RUN: not llvm-objcopy --build-id-link-dir=%t-dir --build-id-link-input=.debug %t 2>&1 >/dev/null | FileCheck %s

# CHECK: Could not find build ID.

--- !ELF
FileHeader:
  Class:           ELFCLASS64
  Data:            ELFDATA2LSB
  Type:            ET_EXEC
  Machine:         EM_X86_64
Sections:
  - Name:            .note.foo
    Type:            SHT_NOTE
    Flags:           [ SHF_ALLOC ]
    Content:         000000000000000000000000
ProgramHeaders:
  - Type: PT_NOTE
    Flags: [ PF_R ]
    Sections:
      - Section: .note.gnu.foo
OpenPOWER on IntegriCloud