aboutsummaryrefslogtreecommitdiff
path: root/ports/qemu-arm/nrf51.ld
diff options
context:
space:
mode:
Diffstat (limited to 'ports/qemu-arm/nrf51.ld')
-rw-r--r--ports/qemu-arm/nrf51.ld39
1 files changed, 39 insertions, 0 deletions
diff --git a/ports/qemu-arm/nrf51.ld b/ports/qemu-arm/nrf51.ld
new file mode 100644
index 000000000..70269773c
--- /dev/null
+++ b/ports/qemu-arm/nrf51.ld
@@ -0,0 +1,39 @@
+MEMORY
+{
+ ROM : ORIGIN = 0x00000000, LENGTH = 1M
+ RAM : ORIGIN = 0x20000000, LENGTH = 256K
+}
+
+_estack = ORIGIN(RAM) + LENGTH(RAM);
+
+SECTIONS
+{
+ .text : {
+ . = ALIGN(4);
+ KEEP(*(.isr_vector))
+ *(.text*)
+ *(.rodata*)
+ . = ALIGN(4);
+ _etext = .;
+ _sidata = _etext;
+ } > ROM
+
+ .data : AT ( _sidata )
+ {
+ . = ALIGN(4);
+ _sdata = .;
+ *(.data*)
+ . = ALIGN(4);
+ _edata = .;
+ } >RAM
+
+ .bss :
+ {
+ . = ALIGN(4);
+ _sbss = .;
+ *(.bss*)
+ *(COMMON)
+ . = ALIGN(4);
+ _ebss = .;
+ } >RAM
+}