[U-Boot-Users] [PATCH] Fixed GOT bug for qemu_mips target

Vlad Lungu vlad at comsys.ro
Sat Oct 6 00:39:13 CEST 2007


Idea by Robert Delien, I just take the credit for it :-)

Signed-off-by: Vlad Lungu <vlad at comsys.ro>
---
 board/qemu-mips/u-boot.lds |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/board/qemu-mips/u-boot.lds b/board/qemu-mips/u-boot.lds
index 10c9917..7c0098e 100644
--- a/board/qemu-mips/u-boot.lds
+++ b/board/qemu-mips/u-boot.lds
@@ -45,8 +45,9 @@ SECTIONS
 
 	. = ALIGN(4);
 	.sdata  : { *(.sdata) }
-
-	_gp = ALIGN(16);
+	
+	. = ALIGN(16);
+	_gp =.;
 
 	__got_start = .;
 	.got  : { *(.got) }
-- 
1.5.2.2







More information about the U-Boot mailing list