mirror of
https://github.com/limine-bootloader/limine
synced 2024-12-04 22:22:24 +03:00
49 lines
872 B
Plaintext
49 lines
872 B
Plaintext
ENTRY(stivale_main)
|
|
|
|
PHDRS
|
|
{
|
|
null PT_NULL FLAGS(0) ; /* Null segment */
|
|
text PT_LOAD FLAGS((1 << 0) | (1 << 2)) ; /* Execute + Read */
|
|
rodata PT_LOAD FLAGS((1 << 2)) ; /* Read only */
|
|
data PT_LOAD FLAGS((1 << 1) | (1 << 2)) ; /* Write + Read */
|
|
dynamic PT_DYNAMIC FLAGS((1 << 1) | (1 << 2)) ; /* Dynamic segment needed for PIE */
|
|
}
|
|
|
|
SECTIONS
|
|
{
|
|
. = 0xffffffff80200000;
|
|
|
|
.text : {
|
|
*(.text*)
|
|
} :text
|
|
|
|
. += 0x1000;
|
|
|
|
.stivalehdr : {
|
|
KEEP(*(.stivalehdr))
|
|
} :rodata
|
|
|
|
.stivale2hdr : {
|
|
KEEP(*(.stivale2hdr))
|
|
} :rodata
|
|
|
|
.rodata : {
|
|
*(.rodata*)
|
|
} :rodata
|
|
|
|
. += 0x1000;
|
|
|
|
.data : {
|
|
*(.data*)
|
|
} :data
|
|
|
|
.dynamic : {
|
|
*(.dynamic)
|
|
} :data :dynamic
|
|
|
|
.bss : {
|
|
*(COMMON)
|
|
*(.bss*)
|
|
} :data
|
|
}
|