summaryrefslogtreecommitdiff
path: root/arch/blackfin/cpu/init.lds.S
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-05-07 17:55:04 -0400
committerMike Frysinger <vapier@gentoo.org>2011-07-12 02:17:45 -0400
commitfb5166ce35de489c8a96f3696e208eaae6a5a8d8 (patch)
tree82f4ddc19fc7a05e6689722981a99445581f1b72 /arch/blackfin/cpu/init.lds.S
parent08a82a447b2a89d705edba952612d00c84129cb8 (diff)
downloadu-boot-imx-fb5166ce35de489c8a96f3696e208eaae6a5a8d8.zip
u-boot-imx-fb5166ce35de489c8a96f3696e208eaae6a5a8d8.tar.gz
u-boot-imx-fb5166ce35de489c8a96f3696e208eaae6a5a8d8.tar.bz2
Blackfin: add init.elf helper code
This creates a standalone ELF that executes just the Blackfin initcode. This is useful for people who want to program the low level aspects of the CPU (memory/clocks/etc...) and can easily be used with JTAG for quick booting while developing. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/cpu/init.lds.S')
-rw-r--r--arch/blackfin/cpu/init.lds.S25
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/blackfin/cpu/init.lds.S b/arch/blackfin/cpu/init.lds.S
new file mode 100644
index 0000000..602e7c8
--- /dev/null
+++ b/arch/blackfin/cpu/init.lds.S
@@ -0,0 +1,25 @@
+/*
+ * linker script for simple init.elf
+ *
+ * Copyright (c) 2005-2011 Analog Device Inc.
+ *
+ * Licensed under the GPL-2 or later.
+ */
+
+#include <config.h>
+#include <asm/blackfin.h>
+#undef ALIGN
+#undef ENTRY
+
+OUTPUT_ARCH(bfin)
+
+MEMORY
+{
+ l1_code : ORIGIN = L1_INST_SRAM, LENGTH = L1_INST_SRAM_SIZE
+}
+
+ENTRY(_start)
+SECTIONS
+{
+ .text.l1 : { *(.text .text.*) } >l1_code
+}