From 184c627adb609d74112a1a1aadb762caa8cd8d1e Mon Sep 17 00:00:00 2001 From: Oxore Date: Tue, 25 Apr 2023 09:22:08 +0300 Subject: Add linker script, add more comment clarifications --- test.ld | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test.ld (limited to 'test.ld') diff --git a/test.ld b/test.ld new file mode 100644 index 0000000..22a08e2 --- /dev/null +++ b/test.ld @@ -0,0 +1,16 @@ +MEMORY { + ROM(rx) : ORIGIN = 0x00000000, LENGTH = 4M +} + +SECTIONS { + . = ORIGIN(ROM); + .text : { + KEEP(*(.text)) + . = ALIGN(2); + *(.text*) + . = ALIGN(2); + KEEP(*(.rodata)) + *(.rodata*) + . = ALIGN(2); + } >ROM +} -- cgit v1.2.3