xref: /llvm-project/llvm/test/tools/llvm-readobj/ELF/AArch64/note-android-unknown.test (revision ab930ee7cad8b8bf7968bb8d0c0d72524e2313c4)
1# RUN: yaml2obj %s -o %t
2# RUN: llvm-readelf --notes %t | FileCheck %s --check-prefixes=GNU
3# RUN: llvm-readobj --notes %t | FileCheck %s --check-prefixes=LLVM
4
5# GNU:      Displaying notes found in: .note.android.unknown
6# GNU-NEXT: Owner    Data size	 Description
7# GNU-NEXT: Android  0x00000005  Unknown note type: (0x00001337)
8# GNU-NEXT: description data: 01 23 45 67 89
9
10# LLVM:      NoteSections [
11# LLVM-NEXT:   NoteSection {
12# LLVM-NEXT:     Name: .note.android.unknown
13# LLVM-NEXT:     Offset: 0x40
14# LLVM-NEXT:     Size: 0x1C
15# LLVM-NEXT:     Notes [
16# LLVM-NEXT:     {
17# LLVM-NEXT:       Owner: Android
18# LLVM-NEXT:       Data size: 0x5
19# LLVM-NEXT:       Type: Unknown (0x00001337)
20# LLVM-NEXT:       Description data (
21# LLVM-NEXT:         0000: 01234567 89
22# LLVM-NEXT:       )
23# LLVM-NEXT:     }
24# LLVM-NEXT:    ]
25# LLVM-NEXT:   }
26# LLVM-NEXT: ]
27
28--- !ELF
29FileHeader:
30  Class: ELFCLASS64
31  Data:  ELFDATA2LSB
32  Type:  ET_DYN
33Sections:
34  - Name: .note.android.unknown
35    Type: SHT_NOTE
36    Notes:
37      - Name: Android
38        Type: 0x1337
39        Desc: 0123456789
40