2020-09-30 01:31:42 +03:00
|
|
|
ENTRY(stivale_main)
|
2020-03-25 01:39:02 +03:00
|
|
|
|
2020-12-28 00:10:20 +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 */);
|
|
|
|
}
|
|
|
|
|
2020-09-30 01:31:42 +03:00
|
|
|
SECTIONS
|
|
|
|
{
|
2020-11-25 04:25:00 +03:00
|
|
|
. = 0xffffffff80100000;
|
2020-03-25 01:39:02 +03:00
|
|
|
|
2020-09-30 01:31:42 +03:00
|
|
|
.stivalehdr ALIGN(4K) :
|
|
|
|
{
|
|
|
|
KEEP(*(.stivalehdr))
|
2020-12-28 00:10:20 +03:00
|
|
|
}:none
|
2020-03-26 03:37:56 +03:00
|
|
|
|
2020-09-30 01:31:42 +03:00
|
|
|
.stivale2hdr ALIGN(4K) :
|
|
|
|
{
|
|
|
|
KEEP(*(.stivale2hdr))
|
2020-03-25 01:39:02 +03:00
|
|
|
}
|
|
|
|
|
2020-09-30 01:31:42 +03:00
|
|
|
.text ALIGN(4K) :
|
|
|
|
{
|
|
|
|
KEEP(*(.text*))
|
2020-12-28 00:10:20 +03:00
|
|
|
}:text
|
2020-03-25 01:39:02 +03:00
|
|
|
|
2020-09-30 01:31:42 +03:00
|
|
|
.rodata ALIGN(4K) :
|
|
|
|
{
|
|
|
|
KEEP(*(.rodata*))
|
2020-12-28 00:10:20 +03:00
|
|
|
}:rodata
|
2020-03-25 01:39:02 +03:00
|
|
|
|
2020-09-30 01:31:42 +03:00
|
|
|
.data ALIGN(4K) :
|
|
|
|
{
|
|
|
|
KEEP(*(.data*))
|
2020-12-28 00:10:20 +03:00
|
|
|
}:data
|
2020-09-30 01:31:42 +03:00
|
|
|
|
|
|
|
.bss ALIGN(4K) :
|
|
|
|
{
|
|
|
|
KEEP(*(COMMON))
|
|
|
|
KEEP(*(.bss*))
|
2020-03-25 01:39:02 +03:00
|
|
|
}
|
|
|
|
}
|