diff --git a/Worksheet2/source/link.ld b/Worksheet2/source/link.ld index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..401ba2860c81be6889e4f8979607062c14a22caf 100644 --- a/Worksheet2/source/link.ld +++ b/Worksheet2/source/link.ld @@ -0,0 +1,9 @@ +ENTRY(loader) /* name of the entry label */ + +SECTIONS { + . = 0x00100000; /* code will be loaded at 1 MB */ + .text ALIGN(0x1000) : { *(.text) } /* aligned at 4 KB */ + .rodata ALIGN(0x1000) : { *(.rodata) } /* aligned at 4 KB */ + .data ALIGN(0x1000) : { *(.data) } /* aligned at 4 KB */ + .bss ALIGN(0x1000) : { *(COMMON) *(.bss) } /* aligned at 4 KB */ +}