From 11da9d23fe323ce452fcd04a10a0ddf78eaa63ea Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 12 Jun 2013 19:46:04 +0200 Subject: imxtools: move hwemul to its own directory The hwemul is only partly imx specific: the stub is stmp specific but could be ported to other targets, the computer side and the protocol are mostly stmp independent (or should be). Change-Id: If88febffe591b0de86ea11cb740455ba20ddc401 --- utils/hwstub/stmp/link.lds | 49 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 utils/hwstub/stmp/link.lds (limited to 'utils/hwstub/stmp/link.lds') diff --git a/utils/hwstub/stmp/link.lds b/utils/hwstub/stmp/link.lds new file mode 100644 index 0000000000..97b259955f --- /dev/null +++ b/utils/hwstub/stmp/link.lds @@ -0,0 +1,49 @@ + +ENTRY(start) +OUTPUT_FORMAT(elf32-littlearm) +OUTPUT_ARCH(arm) +STARTUP(crt0.o) + + + +MEMORY +{ + OCRAM : ORIGIN = 0, LENGTH = 0x8000 +} + +SECTIONS +{ + .octext : + { + oc_codestart = .; + *(.text*) + *(.data*) + *(.rodata*) + } > OCRAM + + .bss (NOLOAD) : + { + bss_start = .; + *(.bss) + bss_end = .; + } > OCRAM + + .stack (NOLOAD) : + { + oc_codeend = .; + oc_stackstart = .; + . += 0x1000; + oc_stackend = .; + oc_bufferstart = .; + } > OCRAM + + .ocend (0 + 0x8000) (NOLOAD) : + { + oc_bufferend = .; + } > OCRAM + + /DISCARD/ : + { + *(.eh_frame) + } +} -- cgit v1.2.3