mirror of
https://github.com/RPCS3/llvm.git
synced 2025-05-15 01:46:46 +00:00

While the ArrayRef can technically have unaligned data, it would be extremely surprising if iterating over it caused undefined behavior when a reference to the underlying type was bound. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@319392 91177308-0d34-0410-b5e6-96231b3b80d8
22 lines
526 B
Plaintext
22 lines
526 B
Plaintext
# RUN: yaml2obj %s -o %t.o
|
|
# RUN: not llvm-readobj -r %t.o 2>&1 | FileCheck %s
|
|
|
|
# CHECK: Error reading file: unaligned data
|
|
|
|
--- !ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_REL
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .foo
|
|
Type: SHT_PROGBITS
|
|
Content: 42
|
|
- Name: .rela.foo
|
|
Type: SHT_RELA
|
|
Info: .foo
|
|
Relocations:
|
|
- Offset: 0
|
|
Type: R_X86_64_NONE
|