rust linker script

This commit is contained in:
greg
2017-03-30 02:44:32 -07:00
parent ca34b61d95
commit c55ff680d4

View File

@@ -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 = .;
}