2021-11-29 13:59:34 +00:00
|
|
|
ENTRY(_start)
|
|
|
|
SECTIONS {
|
|
|
|
. = 1M;
|
|
|
|
|
2021-12-08 21:47:46 +00:00
|
|
|
. = ALIGN(4K);
|
2021-12-07 18:00:34 +00:00
|
|
|
.rodata :
|
2021-11-29 13:59:34 +00:00
|
|
|
{
|
|
|
|
/* ensure that the multiboot header is at the beginning */
|
2021-12-07 18:00:34 +00:00
|
|
|
KEEP(*(.multiboot_header))
|
|
|
|
*(.rodata .rodata.*)
|
|
|
|
. = ALIGN(4K);
|
2021-11-29 13:59:34 +00:00
|
|
|
}
|
|
|
|
|
2021-12-08 21:47:46 +00:00
|
|
|
. = ALIGN(4K);
|
|
|
|
.eh_frame :
|
|
|
|
{
|
|
|
|
*(.eh_frame .eh_frame.*)
|
|
|
|
. = ALIGN(4K);
|
|
|
|
}
|
2021-12-08 01:23:46 +00:00
|
|
|
. = ALIGN(4K);
|
2021-12-07 18:00:34 +00:00
|
|
|
.text :
|
2021-12-03 23:09:42 +00:00
|
|
|
{
|
2021-12-07 18:00:34 +00:00
|
|
|
*(.text .text.*)
|
|
|
|
. = ALIGN(4K);
|
|
|
|
}
|
|
|
|
|
|
|
|
.data :
|
|
|
|
{
|
|
|
|
*(.data .data.*)
|
|
|
|
. = ALIGN(4K);
|
2021-12-03 23:09:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.bss :
|
|
|
|
{
|
2021-12-07 18:00:34 +00:00
|
|
|
*(.bss .bss.*)
|
|
|
|
. = ALIGN(4K);
|
2021-12-03 23:09:42 +00:00
|
|
|
}
|
|
|
|
|
2021-12-07 18:00:34 +00:00
|
|
|
.got :
|
|
|
|
{
|
|
|
|
*(.got)
|
|
|
|
. = ALIGN(4K);
|
|
|
|
}
|
|
|
|
|
|
|
|
.got.plt :
|
2021-11-29 13:59:34 +00:00
|
|
|
{
|
2021-12-07 18:00:34 +00:00
|
|
|
*(.got.plt)
|
|
|
|
. = ALIGN(4K);
|
|
|
|
}
|
|
|
|
|
|
|
|
.data.rel.ro : ALIGN(4K) {
|
|
|
|
*(.data.rel.ro.local*) *(.data.rel.ro .data.rel.ro.*)
|
|
|
|
. = ALIGN(4K);
|
|
|
|
}
|
|
|
|
|
|
|
|
.gcc_except_table : ALIGN(4K) {
|
|
|
|
*(.gcc_except_table)
|
|
|
|
. = ALIGN(4K);
|
2021-11-29 13:59:34 +00:00
|
|
|
}
|
|
|
|
}
|
2021-12-07 18:00:34 +00:00
|
|
|
|