]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/elf/X86_64/note-sections.test
Vendor import of lld trunk r233088:
[FreeBSD/FreeBSD.git] / test / elf / X86_64 / note-sections.test
1 # This tests the functionality that lld is able to recreate the note sections
2 # if they appear in the input
3
4 RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/note.o  \
5 RUN: --noinhibit-exec -o %t -static
6 RUN: llvm-readobj -sections %t | FileCheck -check-prefix=NOTESECTIONS %s
7 RUN: llvm-readobj -program-headers %t | FileCheck -check-prefix=NOTESEGMENT %s
8
9
10 NOTESECTIONS:  Section {
11 NOTESECTIONS:    Index: 1
12 NOTESECTIONS:    Name: .note.ident (1)
13 NOTESECTIONS:    Type: SHT_NOTE (0x7)
14 NOTESECTIONS:    Size: 28
15 NOTESECTIONS:    AddressAlignment: 4
16 NOTESECTIONS:  }
17
18 NOTESEGMENT:  ProgramHeader {
19 NOTESEGMENT:    Type: PT_NOTE (0x4)
20 NOTESEGMENT:    FileSize: 28
21 NOTESEGMENT:    MemSize: 28
22 NOTESEGMENT:    Alignment: 4
23 NOTESEGMENT:  }