diff options
Diffstat (limited to 'apps/link.ld')
-rw-r--r-- | apps/link.ld | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/apps/link.ld b/apps/link.ld new file mode 100644 index 0000000..ee41578 --- /dev/null +++ b/apps/link.ld @@ -0,0 +1,24 @@ +ENTRY(main) +SECTIONS +{ + .text 0x40000000: + { + code = .; _code = .; __code = .; + *(.text) + } + + .data ALIGN(0x400000): + { + data = .; _data = .; __data = .; + *(.data) + *(.rodata) + } + + .bss ALIGN(0x400000): + { + bss = .; _bss = .; __bss = .; + *(.bss) + } + + end = .; _end = .; __end = .; +} |