diff options
author | dzwdz | 2022-07-18 14:01:21 +0200 |
---|---|---|
committer | dzwdz | 2022-07-18 14:01:21 +0200 |
commit | d43c1af88b1834a00f8b5f09aa0af1a5e4f5b4aa (patch) | |
tree | 7743cd9eb761dee12711cf719ab846228a888dbd /src/usertestelf.ld | |
parent | 620bd6af8e005057e04c8a2891c7537ec3556345 (diff) |
user: a super primitive ELF loader
holy shit.
this was simpler than i expected it to be
Diffstat (limited to 'src/usertestelf.ld')
-rw-r--r-- | src/usertestelf.ld | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/usertestelf.ld b/src/usertestelf.ld new file mode 100644 index 0000000..2567f77 --- /dev/null +++ b/src/usertestelf.ld @@ -0,0 +1,23 @@ +ENTRY(main) + +SECTIONS +{ + . = 8M; + .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) + } +} |