diff options
author | dzwdz | 2021-07-18 20:01:20 +0200 |
---|---|---|
committer | dzwdz | 2021-07-18 20:01:20 +0200 |
commit | a31794504d911d584265ac0427dfbba9a4d9ef72 (patch) | |
tree | ceff471e05be07eca6c2281a8c1d0bdcd19678b2 /src/init/linker.ld | |
parent | 185c7c44c0da51b5442abf4fd3fb549f99c5bab8 (diff) |
basic executable loading
Diffstat (limited to 'src/init/linker.ld')
-rw-r--r-- | src/init/linker.ld | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/init/linker.ld b/src/init/linker.ld new file mode 100644 index 0000000..9f3f4b5 --- /dev/null +++ b/src/init/linker.ld @@ -0,0 +1,24 @@ +ENTRY(main) +OUTPUT_FORMAT("binary") + +SECTIONS +{ + . = 2M; + .text BLOCK(4K) : ALIGN(4K) + { + *(.text) + } + .rodata BLOCK(4K) : ALIGN(4K) + { + *(.rodata) + } + .data BLOCK(4K) : ALIGN(4K) + { + *(.data) + } + .bss BLOCK(4K) : ALIGN(4K) + { + *(COMMON) + *(.bss) + } +} |