blob: 40ff6785f2d38518468a5223f9dc5b7af02d2794 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Test to check if we fail to get the section contents.
# RUN: yaml2obj %s -o %t
# RUN: not llvm-objdump --offloading %t 2>&1 | FileCheck -DFILENAME=%t %s
!ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_EXEC
Sections:
- Name: .llvm.offloading
Type: SHT_LLVM_OFFLOADING
Flags: [ SHF_EXCLUDE ]
Address: 0x0
ShOffset: 0x99999
AddressAlign: 0x0000000000000008
# CHECK: error: '[[FILENAME]]': while extracting offloading files: The end of the file was unexpectedly encountered
|