[U-Boot-Users] [PATCH 4/5][MIPS] u-boot.lds: Define _gp in a standard manner

Shinya Kuribayashi skuribay at ruby.dti.ne.jp
Sat Oct 20 17:45:38 CEST 2007


From: Shinya Kuribayashi <shinya.kuribayashi at necel.com>

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi at necel.com>
---

 board/dbau1x00/u-boot.lds |    3 ++-
 board/gth2/u-boot.lds     |    3 ++-
 board/incaip/u-boot.lds   |    3 ++-
 board/pb1x00/u-boot.lds   |    3 ++-
 board/purple/u-boot.lds   |    3 ++-
 board/tb0229/u-boot.lds   |    3 ++-
 examples/mips.lds         |    3 ++-
 7 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/board/dbau1x00/u-boot.lds b/board/dbau1x00/u-boot.lds
index 9c71ef7..9639b81 100644
--- a/board/dbau1x00/u-boot.lds
+++ b/board/dbau1x00/u-boot.lds
@@ -43,7 +43,8 @@ SECTIONS
 	. = ALIGN(4);
 	.data  : { *(.data) }
 
-	_gp = ALIGN(16);
+	. = .;
+	_gp = ALIGN(16) + 0x7ff0;
 
 	.got : {
 	  __got_start = .;
diff --git a/board/gth2/u-boot.lds b/board/gth2/u-boot.lds
index 0ab42db..90432cb 100644
--- a/board/gth2/u-boot.lds
+++ b/board/gth2/u-boot.lds
@@ -43,7 +43,8 @@ SECTIONS
 	. = ALIGN(4);
 	.data  : { *(.data) }
 
-	_gp = ALIGN(16);
+	. = .;
+	_gp = ALIGN(16) + 0x7ff0;
 
 	.got : {
 	  __got_start = .;
diff --git a/board/incaip/u-boot.lds b/board/incaip/u-boot.lds
index 9c71ef7..9639b81 100644
--- a/board/incaip/u-boot.lds
+++ b/board/incaip/u-boot.lds
@@ -43,7 +43,8 @@ SECTIONS
 	. = ALIGN(4);
 	.data  : { *(.data) }
 
-	_gp = ALIGN(16);
+	. = .;
+	_gp = ALIGN(16) + 0x7ff0;
 
 	.got : {
 	  __got_start = .;
diff --git a/board/pb1x00/u-boot.lds b/board/pb1x00/u-boot.lds
index 7329e6a..363d974 100644
--- a/board/pb1x00/u-boot.lds
+++ b/board/pb1x00/u-boot.lds
@@ -43,7 +43,8 @@ SECTIONS
 	. = ALIGN(4);
 	.data  : { *(.data) }
 
-	_gp = ALIGN(16);
+	. = .;
+	_gp = ALIGN(16) + 0x7ff0;
 
 	.got : {
 	  __got_start = .;
diff --git a/board/purple/u-boot.lds b/board/purple/u-boot.lds
index aa51cbf..e7ec012 100644
--- a/board/purple/u-boot.lds
+++ b/board/purple/u-boot.lds
@@ -53,7 +53,8 @@ SECTIONS
 	. = ALIGN(4);
 	.data  : { *(.data) }
 
-	_gp = ALIGN(16);
+	. = .;
+	_gp = ALIGN(16) + 0x7ff0;
 
 	.got : {
 	  __got_start = .;
diff --git a/board/tb0229/u-boot.lds b/board/tb0229/u-boot.lds
index 148f5e6..b2fa9f2 100644
--- a/board/tb0229/u-boot.lds
+++ b/board/tb0229/u-boot.lds
@@ -43,7 +43,8 @@ SECTIONS
 	. = ALIGN(4);
 	.data  : { *(.data) }
 
-	_gp = ALIGN(16);
+	. = .;
+	_gp = ALIGN(16) + 0x7ff0;
 
 	.got : {
 	  __got_start = .;
diff --git a/examples/mips.lds b/examples/mips.lds
index 3bd573c..a770728 100644
--- a/examples/mips.lds
+++ b/examples/mips.lds
@@ -39,7 +39,8 @@ SECTIONS
 	. = ALIGN(4);
 	.data  : { *(.data) }
 
-	_gp = ALIGN(16);
+	. = .;
+	_gp = ALIGN(16) + 0x7ff0;
 
 	.got : {
 	  __got_start = .;





More information about the U-Boot mailing list