Blackfin: unify u-boot linker scripts
[oweals/u-boot.git] / include / configs / bf537-pnav.h
index c8a59ab57e7a029db858ca85944a6520758e03d2..284c7fc604e8fa20ebf8925a9ca76fa4df6cfb04 100644 (file)
 #endif
 #define CONFIG_ENV_SIZE                0x1000
 #define CONFIG_ENV_SECT_SIZE   0x2000
+#ifdef ENV_IS_EMBEDDED
+/* WARNING - the following is hand-optimized to fit within
+ * the sector before the environment sector. If it throws
+ * an error during compilation remove an object here to get
+ * it linked after the configuration sector.
+ */
+# define LDS_BOARD_TEXT \
+       cpu/blackfin/traps.o            (.text .text.*); \
+       cpu/blackfin/interrupt.o        (.text .text.*); \
+       cpu/blackfin/serial.o           (.text .text.*); \
+       common/dlmalloc.o               (.text .text.*); \
+       lib_generic/crc32.o             (.text .text.*); \
+       . = DEFINED(env_offset) ? env_offset : .; \
+       common/env_embedded.o           (.text .text.*);
+#endif
 
 
 /*