rust linker script
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
ENTRY(_start)
|
||||
|
||||
SECTIONS {
|
||||
|
||||
. = 0x8000;
|
||||
_start = .;
|
||||
|
||||
_text_start = .;
|
||||
.text :
|
||||
{
|
||||
KEEP(*(.text.boot))
|
||||
*(.text)
|
||||
}
|
||||
. = ALIGN(4096);
|
||||
_text_end = .;
|
||||
|
||||
_rodata_start = .;
|
||||
.rodata :
|
||||
{
|
||||
*(.rodata);
|
||||
}
|
||||
. = ALIGN(4096);
|
||||
_rodata_end = .;
|
||||
|
||||
_data_start = .;
|
||||
.data :
|
||||
{
|
||||
*(.data)
|
||||
}
|
||||
. = ALIGN(4096);
|
||||
_data_end = .;
|
||||
|
||||
|
||||
_bss_start = .;
|
||||
.bss :
|
||||
{
|
||||
*(.bss)
|
||||
}
|
||||
. = ALIGN(4096);
|
||||
_bss_end = .;
|
||||
|
||||
_end = .;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user