]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - board/dave/PPChameleonEVB/u-boot.lds
Refactor linker-generated arrays
[karo-tx-uboot.git] / board / dave / PPChameleonEVB / u-boot.lds
index 20c32b73e3cb6a8925a025a6bc7fd0aacd966889..987b52d25cc872e46e920612d152c563d2635d95 100644 (file)
@@ -55,9 +55,10 @@ SECTIONS
   PROVIDE (erotext = .);
   .reloc   :
   {
-    KEEP(*(.got))
     _GOT2_TABLE_ = .;
     KEEP(*(.got2))
+    KEEP(*(.got))
+    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
     _FIXUP_TABLE_ = .;
     KEEP(*(.fixup))
   }
@@ -73,9 +74,11 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
+
+  . = ALIGN(4);
+  .u_boot_list : {
+       KEEP(*(SORT(.u_boot_list*)));
+  }
 
   . = .;
   __start___ex_table = .;