public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Shinya Kuribayashi <skuribay@ruby.dti.ne.jp>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 4/5][MIPS] u-boot.lds: Define _gp in a standard manner
Date: Sun, 21 Oct 2007 00:45:38 +0900	[thread overview]
Message-ID: <471A22A2.3000401@ruby.dti.ne.jp> (raw)
In-Reply-To: <471A2258.1010101@ruby.dti.ne.jp>

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

Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi@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 = .;

  reply	other threads:[~2007-10-20 15:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-20 15:39 [U-Boot-Users] [PATCH 0/5][MIPS] Fix several problems on relocation Shinya Kuribayashi
2007-10-20 15:40 ` [U-Boot-Users] [PATCH 1/5][MIPS] u-boot.lds: Remove duplicated .sdata section Shinya Kuribayashi
2007-10-20 15:42   ` [U-Boot-Users] [PATCH 2/5][MIPS] u-boot.lds: Fix __got_start and __got_end Shinya Kuribayashi
2007-10-20 15:44     ` [U-Boot-Users] [PATCH 3/5][MIPS] Fix $gp usage Shinya Kuribayashi
2007-10-20 15:45       ` Shinya Kuribayashi [this message]
2007-10-20 15:47         ` [U-Boot-Users] [MIPS] Add PIC-related switches to PLATFORM_{CPP, LD}FLAGS and cleanup Shinya Kuribayashi
2007-10-20 18:05           ` Wolfgang Denk
2007-10-21 12:12           ` Shinya Kuribayashi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=471A22A2.3000401@ruby.dti.ne.jp \
    --to=skuribay@ruby.dti.ne.jp \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox