1## Ensure we can read the contents even if the alignment is bad. 2# RUN: yaml2obj %s -o %t.elf 3# RUN: yaml2obj %S/Inputs/binary.yaml -o %t.bin 4# RUN: llvm-objcopy --update-section .llvm.offloading=%t.bin %t.elf 5# RUN: llvm-objdump --offloading %t.elf | FileCheck %s -DFILENAME=%t 6 7!ELF 8FileHeader: 9 Class: ELFCLASS64 10 Data: ELFDATA2LSB 11 Type: ET_EXEC 12Sections: 13 - Name: .misaligned 14 Type: SHT_PROGBITS 15 AddressAlign: 0x0000000000000001 16 Content: "41424300" 17 - Name: .llvm.offloading 18 Type: SHT_LLVM_OFFLOADING 19 Flags: [ SHF_EXCLUDE ] 20 AddressAlign: 0x0000000000000001 21 22# CHECK-NOT: error: '[[FILENAME]]': while extracting offloading files: Invalid data was encountered while parsing the file 23