test: Apparently manually defining PHDRs is not actually needed

This commit is contained in:
mintsuki 2021-03-26 16:24:28 +01:00
parent 30b750a2ad
commit 23bf225f63
1 changed files with 11 additions and 18 deletions

View File

@ -1,44 +1,37 @@
ENTRY(stivale_main)
PHDRS {
none PT_NULL FLAGS(0);
text PT_LOAD FLAGS((1 << 2) | (1 << 0) /* Readable | Executable */);
data PT_LOAD FLAGS((1 << 2) | (1 << 1) /* Readable | Writeable */);
rodata PT_LOAD FLAGS((1 << 2) /* Readable */);
}
SECTIONS
{
. = 0xffffffff80100000;
.stivalehdr ALIGN(4K) :
{
KEEP(*(.stivalehdr))
}:none
*(.stivalehdr)
}
.stivale2hdr ALIGN(4K) :
{
KEEP(*(.stivale2hdr))
*(.stivale2hdr)
}
.text ALIGN(4K) :
{
KEEP(*(.text*))
}:text
*(.text*)
}
.rodata ALIGN(4K) :
{
KEEP(*(.rodata*))
}:rodata
*(.rodata*)
}
.data ALIGN(4K) :
{
KEEP(*(.data*))
}:data
*(.data*)
}
.bss ALIGN(4K) :
{
KEEP(*(COMMON))
KEEP(*(.bss*))
*(COMMON)
*(.bss*)
}
}