]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/renesas/sh7763rdp/u-boot.lds
sh: make the linker scripts more generic
[karo-tx-uboot.git] / board / renesas / sh7763rdp / u-boot.lds
index 7177416c2fce3b19d2817256d684e7b239b92c04..86ef50514b337c9911a1af700432a218b9b76d99 100644 (file)
@@ -28,18 +28,9 @@ ENTRY(_start)
 SECTIONS
 {
        /*
-          Base address of internal SDRAM is 0x0C000000.
-          Although size of SDRAM can be either 16 or 32 MBytes,
-          we assume 16 MBytes (ie ignore upper half if the full
-          32 MBytes is present).
-
-          NOTE: This address must match with the definition of
-          TEXT_BASE in config.mk (in this directory).
-
-       */
-       . = 0x8C000000 + (64*1024*1024) - (256*1024);
-
-       PROVIDE (reloc_dst = .);
+        * entry and reloct_dst will be provided via ldflags
+        */
+       . = .;
 
        PROVIDE (_ftext = .);
        PROVIDE (_fcode = .);
@@ -59,7 +50,7 @@ SECTIONS
        PROVIDE (_ecode = .);
        .rodata :
        {
-               *(.rodata)
+               *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
                . = ALIGN(4);
        }
        PROVIDE (_etext = .);