rulimine/test/linker.ld

45 lines
732 B
Plaintext
Raw Normal View History

ENTRY(stivale_main)
2020-03-25 01:39:02 +03:00
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;
2020-03-25 01:39:02 +03:00
.stivalehdr ALIGN(4K) :
{
KEEP(*(.stivalehdr))
}:none
2020-03-26 03:37:56 +03:00
.stivale2hdr ALIGN(4K) :
{
KEEP(*(.stivale2hdr))
2020-03-25 01:39:02 +03:00
}
.text ALIGN(4K) :
{
KEEP(*(.text*))
}:text
2020-03-25 01:39:02 +03:00
.rodata ALIGN(4K) :
{
KEEP(*(.rodata*))
}:rodata
2020-03-25 01:39:02 +03:00
.data ALIGN(4K) :
{
KEEP(*(.data*))
}:data
.bss ALIGN(4K) :
{
KEEP(*(COMMON))
KEEP(*(.bss*))
2020-03-25 01:39:02 +03:00
}
}