FPU POST: fix warnings when building with 2.18 binutils
[oweals/u-boot.git] / board / purple / u-boot.lds
index 6b3783f6643934a76e9361612e4e6330854155d2..bf1394b2a432788a1db8fd06a768c38de987e3ea 100644 (file)
@@ -42,7 +42,7 @@ SECTIONS
          common/cmd_boot.o             (.text)
          lib_generic/zlib.o            (.text)
          . = DEFINED(env_offset) ? env_offset : .;
-         common/environment.o  (.ppcenv)
+         common/env_embedded.o (.ppcenv)
 
          *(.text)
        }
@@ -53,24 +53,28 @@ SECTIONS
        . = ALIGN(4);
        .data  : { *(.data) }
 
-       _gp = ALIGN(16);
+       . = .;
+       _gp = ALIGN(16) + 0x7ff0;
 
-       __got_start = .;
-       .got  : { *(.got) }
-       __got_end = .;
+       .got : {
+         __got_start = .;
+         *(.got)
+         __got_end = .;
+       }
 
        .sdata  : { *(.sdata) }
 
-       . = .;
-       __u_boot_cmd_start = .;
-       .u_boot_cmd : { *(.u_boot_cmd) }
-       __u_boot_cmd_end = .;
+       .u_boot_cmd : {
+         __u_boot_cmd_start = .;
+         *(.u_boot_cmd)
+         __u_boot_cmd_end = .;
+       }
 
        uboot_end_data = .;
        num_got_entries = (__got_end - __got_start) >> 2;
 
        . = ALIGN(4);
-       .sbss  : { *(.sbss) }
-       .bss  : { *(.bss) }
+       .sbss (NOLOAD)  : { *(.sbss) }
+       .bss (NOLOAD)  : { *(.bss) . = ALIGN(4); }
        uboot_end = .;
 }