brintos

brintos / llvm-project-archived public Read only

0
0
Text · 814 B · d949d59 Raw
23 lines · plain
1## Ensure we can read the contents even if the alignment is bad.2# RUN: yaml2obj %s -o %t.elf3# RUN: yaml2obj %S/Inputs/binary.yaml -o %t.bin4# RUN: llvm-objcopy --update-section .llvm.offloading=%t.bin %t.elf5# RUN: llvm-objdump --offloading %t.elf | FileCheck %s -DFILENAME=%t6 7!ELF8FileHeader:9  Class:           ELFCLASS6410  Data:            ELFDATA2LSB11  Type:            ET_EXEC12Sections:13  - Name:            .misaligned14    Type:            SHT_PROGBITS15    AddressAlign:    0x000000000000000116    Content:         "41424300"17  - Name:            .llvm.offloading18    Type:            SHT_LLVM_OFFLOADING19    Flags:           [ SHF_EXCLUDE ]20    AddressAlign:    0x000000000000000121 22# CHECK-NOT: error: '[[FILENAME]]': while extracting offloading files: Invalid data was encountered while parsing the file23