]> git.sur5r.net Git - u-boot/blobdiff - board/hymod/u-boot.lds
mxs: prefix register structs with 'mxs' prefix
[u-boot] / board / hymod / u-boot.lds
index 1592f4f6e8ceeb6a9c2c1c82fb97794298e9106f..1309f209de546de73d85c6ef9b799d1b8cebdedf 100644 (file)
@@ -87,13 +87,14 @@ SECTIONS
   PROVIDE (erotext = .);
   .reloc   :
   {
-    *(.got)
     _GOT2_TABLE_ = .;
-    *(.got2)
+    KEEP(*(.got2))
+    KEEP(*(.got))
+    PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
     _FIXUP_TABLE_ = .;
     *(.fixup)
   }
-  __got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
+  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
   __fixup_entries = (. - _FIXUP_TABLE_)>>2;
 
   .data    :