Separated functionality into separate files. Added initial (untested) support for ARM.
This commit is contained in:
42
arch/arm-none-eabi/linker.ld
Normal file
42
arch/arm-none-eabi/linker.ld
Normal file
@@ -0,0 +1,42 @@
|
||||
ENTRY(Start)
|
||||
|
||||
SECTIONS
|
||||
{
|
||||
/* Starts at LOADER_ADDR */
|
||||
. = 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 = .;
|
||||
*(.bss)
|
||||
}
|
||||
. = ALIGN(4096)
|
||||
_bss_end = .;
|
||||
_end = .;
|
||||
}
|
||||
Reference in New Issue
Block a user