]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - lib_blackfin/u-boot.lds.S
Blackfin: unify u-boot linker scripts
[karo-tx-uboot.git] / lib_blackfin / u-boot.lds.S
similarity index 97%
rename from board/bf527-ezkit/u-boot.lds.S
rename to lib_blackfin/u-boot.lds.S
index 3e8be358da67b7425e7c65ee72db71acfd55bc46..4755153fcf97a9b6a9b74abd37b979d9e83d2923 100644 (file)
 #undef ENTRY
 #undef bfin
 
+#ifndef LDS_BOARD_TEXT
+# define LDS_BOARD_TEXT
+#endif
+
 /* If we don't actually load anything into L1 data, this will avoid
  * a syntax error.  If we do actually load something into L1 data,
  * we'll get a linker memory load error (which is what we'd want).
@@ -57,9 +61,13 @@ SECTIONS
        .text :
        {
                cpu/blackfin/start.o (.text .text.*)
+
+               LDS_BOARD_TEXT
+
                __initcode_start = .;
                cpu/blackfin/initcode.o (.text .text.*)
                __initcode_end = .;
+
                *(.text .text.*)
        } >ram