From 46fb7dcf479ac85361d8eaae5af3ea27a6b93a2d Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 30 Jul 2020 16:15:39 +0200 Subject: Something something with elfs and witches --- apps/link.ld | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 apps/link.ld (limited to 'apps/link.ld') 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 = .; +} -- cgit v1.2.3