llvm-project/lld/test/LinkerScript/phdrs-sections.test

30 lines
397 B
Plaintext

/*
Test PHDR parsing and section -> phdr mapping.
RUN: linker-script-test %s | FileCheck %s
*/
PHDRS
{
ph_text PT_LOAD FLAGS (0x1 | 0x4);
ph_data PT_LOAD FLAGS (0x2 | 0x4);
}
SECTIONS
{
.init : {} : ph_text
}
/*
CHECK: PHDRS
CHECK: {
CHECK: ph_text 1 FLAGS (5);
CHECK: ph_data 1 FLAGS (6);
CHECK: }
CHECK: SECTIONS
CHECK: {
CHECK: .init :
CHECK: {
CHECK: } : ph_text
CHECK: }
*/