xref: /llvm-project/llvm/test/tools/llvm-readobj/ELF/note-alignment-invalid.test (revision 689715f335aeffc0e9583ac1b2a5629b6dd47876)
1# RUN: yaml2obj --docnum=1 %s -o %t1.so
2# RUN: llvm-readelf --notes %t1.so 2>&1 | FileCheck %s -DFILE=%t1.so
3# RUN: llvm-readobj --notes %t1.so 2>&1 | FileCheck %s -DFILE=%t1.so
4
5# CHECK: warning: '[[FILE]]': unable to read notes from the SHT_NOTE section with index 1: alignment (6) is not 4 or 8
6
7--- !ELF
8FileHeader:
9  Class:      ELFCLASS64
10  Data:       ELFDATA2LSB
11  Type:       ET_EXEC
12Sections:
13  - Name:         .note.invalid
14    Type:         SHT_NOTE
15    AddressAlign: 0x0000000000000006
16    Content:      0400000004000000cdab0000474E550061626364
17ProgramHeaders:
18  - Type:     PT_NOTE
19    FileSize: 0x20
20    FirstSec: .note.invalid
21    LastSec:  .note.invalid
22