1 # This tests the functionality that lld is able to recreate the note sections
2 # if they appear in the input
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
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
18 NOTESEGMENT: ProgramHeader {
19 NOTESEGMENT: Type: PT_NOTE (0x4)
20 NOTESEGMENT: FileSize: 28
21 NOTESEGMENT: MemSize: 28
22 NOTESEGMENT: Alignment: 4