summaryrefslogtreecommitdiffstats
path: root/include/asm-generic/barebox.lds.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-generic/barebox.lds.h')
-rw-r--r--include/asm-generic/barebox.lds.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/asm-generic/barebox.lds.h b/include/asm-generic/barebox.lds.h
new file mode 100644
index 0000000000..99ccc5e970
--- /dev/null
+++ b/include/asm-generic/barebox.lds.h
@@ -0,0 +1,22 @@
+
+#if defined CONFIG_ARCH_IMX25 || defined CONFIG_ARCH_IMX35
+#include <mach/barebox.lds.h>
+#endif
+
+#ifndef PRE_IMAGE
+#define PRE_IMAGE
+#endif
+
+#define INITCALLS \
+ KEEP(*(.initcall.0)) \
+ KEEP(*(.initcall.1)) \
+ KEEP(*(.initcall.2)) \
+ KEEP(*(.initcall.3)) \
+ KEEP(*(.initcall.4)) \
+ KEEP(*(.initcall.5)) \
+ KEEP(*(.initcall.6)) \
+ KEEP(*(.initcall.7))
+
+#define BAREBOX_CMDS KEEP(*(SORT_BY_NAME(.barebox_cmd*)))
+
+#define BAREBOX_SYMS KEEP(*(__usymtab))