forked from OSchip/llvm-project
24 lines
738 B
Plaintext
24 lines
738 B
Plaintext
# This tests the functionality that lld is able to recreate the note sections
|
|
# if they appear in the input
|
|
|
|
RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/note.o \
|
|
RUN: --noinhibit-exec -o %t -static
|
|
RUN: llvm-readobj -sections %t | FileCheck -check-prefix=NOTESECTIONS %s
|
|
RUN: llvm-readobj -program-headers %t | FileCheck -check-prefix=NOTESEGMENT %s
|
|
|
|
|
|
NOTESECTIONS: Section {
|
|
NOTESECTIONS: Index: 1
|
|
NOTESECTIONS: Name: .note.ident (1)
|
|
NOTESECTIONS: Type: SHT_NOTE (0x7)
|
|
NOTESECTIONS: Size: 28
|
|
NOTESECTIONS: AddressAlignment: 4
|
|
NOTESECTIONS: }
|
|
|
|
NOTESEGMENT: ProgramHeader {
|
|
NOTESEGMENT: Type: PT_NOTE (0x4)
|
|
NOTESEGMENT: FileSize: 28
|
|
NOTESEGMENT: MemSize: 28
|
|
NOTESEGMENT: Alignment: 4
|
|
NOTESEGMENT: }
|