Re: [U-Boot] [Patch 1/2] MIPS: fix a latent bug on initialize $gp

2012-11-28 Thread Zhi-zhou Zhang
On Wed, Nov 28, 2012 at 02:33:10PM +0100, Daniel Schwierzeck wrote: > 2012/11/26 Zhi-zhou Zhang : > > On Sun, Nov 25, 2012 at 09:30:54PM +0100, Daniel Schwierzeck wrote: > >> 2012/11/24 Zhi-zhou Zhang : > >> > If bal is 8 bytes aligned, the _gp will not be 8 bytes aligned. > >> > then the following

Re: [U-Boot] [Patch 1/2] MIPS: fix a latent bug on initialize $gp

2012-11-28 Thread Daniel Schwierzeck
2012/11/26 Zhi-zhou Zhang : > On Sun, Nov 25, 2012 at 09:30:54PM +0100, Daniel Schwierzeck wrote: >> 2012/11/24 Zhi-zhou Zhang : >> > If bal is 8 bytes aligned, the _gp will not be 8 bytes aligned. >> > then the following ld insntrustion generates a Adel exception. >> > So here make _gp be always a

Re: [U-Boot] [Patch 1/2] MIPS: fix a latent bug on initialize $gp

2012-11-26 Thread Zhi-zhou Zhang
On Sun, Nov 25, 2012 at 09:30:54PM +0100, Daniel Schwierzeck wrote: > 2012/11/24 Zhi-zhou Zhang : > > If bal is 8 bytes aligned, the _gp will not be 8 bytes aligned. > > then the following ld insntrustion generates a Adel exception. > > So here make _gp be always aligned in 8 bytes. > > which tool

Re: [U-Boot] [Patch 1/2] MIPS: fix a latent bug on initialize $gp

2012-11-25 Thread Daniel Schwierzeck
2012/11/24 Zhi-zhou Zhang : > If bal is 8 bytes aligned, the _gp will not be 8 bytes aligned. > then the following ld insntrustion generates a Adel exception. > So here make _gp be always aligned in 8 bytes. which toolchain do you use? Actually _gp is aligned to 16 bytes in the linker script. Thus

[U-Boot] [Patch 1/2] MIPS: fix a latent bug on initialize $gp

2012-11-24 Thread Zhi-zhou Zhang
If bal is 8 bytes aligned, the _gp will not be 8 bytes aligned. then the following ld insntrustion generates a Adel exception. So here make _gp be always aligned in 8 bytes. Signed-off-by: Zhi-zhou Zhang --- arch/mips/cpu/mips64/start.S |5 - 1 file changed, 4 insertions(+), 1 deletion(-