hanchenye-llvm-project/lld/test/elf/X86_64/note-sections.test

24 lines
738 B
Plaintext
Raw Normal View History

# 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: }