diff options
author | Marvin Borner | 2020-07-30 16:15:39 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-30 16:15:54 +0200 |
commit | 46fb7dcf479ac85361d8eaae5af3ea27a6b93a2d (patch) | |
tree | b71cc5056914c6709cef18022e8da9b243323998 /apps/link.ld | |
parent | f092bf03baf3b2c13c9dc462bdc697caddccd347 (diff) |
Something something with elfs and witches
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 = .; +} |