poppin/linker.ld

61 lines
835 B
Plaintext
Raw Normal View History

2024-05-23 18:39:00 +00:00
ENTRY(_start)
SECTIONS {
. = 1M;
2024-06-12 20:37:24 +00:00
.rodata :
{
/* ensure that the multiboot header is at the beginning */
KEEP(*(.multiboot_header))
*(.rodata .rodata.*)
. = ALIGN(4K);
}
.eh_frame :
2024-05-23 18:39:00 +00:00
{
2024-06-12 20:37:24 +00:00
*(.eh_frame)
. = ALIGN(4K);
2024-05-23 18:39:00 +00:00
}
.text :
{
2024-06-12 20:37:24 +00:00
*(.text .text.*)
. = ALIGN(4K);
2024-05-23 18:39:00 +00:00
}
2024-06-12 20:37:24 +00:00
.data :
{
*(.data .data.*)
. = ALIGN(4K);
}
.bss :
2024-05-23 18:39:00 +00:00
{
2024-06-12 20:37:24 +00:00
*(.bss .bss.*)
. = ALIGN(4K);
2024-05-23 18:39:00 +00:00
}
2024-06-12 20:37:24 +00:00
.got :
2024-05-23 18:39:00 +00:00
{
2024-06-12 20:37:24 +00:00
*(.got)
. = ALIGN(4K);
2024-05-23 18:39:00 +00:00
}
2024-06-12 20:37:24 +00:00
.got.plt :
{
*(.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);
2024-09-01 20:42:39 +00:00
}
2024-05-23 18:39:00 +00:00
}