1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-10-30 11:54:01 -04:00
libkernaux/examples/arch-riscv64-min/linker.ld

34 lines
450 B
Text
Raw Normal View History

2022-01-13 02:11:20 -05:00
ENTRY(_start);
2022-01-15 13:06:03 -05:00
SECTIONS
{
. = 0x80000000;
2022-01-13 02:11:20 -05:00
2022-01-15 13:06:03 -05:00
.text : ALIGN(4K)
{
2022-01-13 02:11:20 -05:00
*(.init);
*(.text);
}
2022-01-15 13:06:03 -05:00
.rodata : ALIGN(4K)
{
*(.rodata);
}
.data : ALIGN(4K)
{
*(.data);
}
.bss : ALIGN(4K)
{
2022-01-13 02:11:20 -05:00
PROVIDE(bss_start = .);
*(.bss);
. += 4096;
PROVIDE(stack_top = .);
. += 4096;
PROVIDE(global_pointer = .);
PROVIDE(bss_end = .);
}
}