[U-Boot] [u-boot-mips] gp init and -pie option

Juhyun (Justin) Oh Juhyun_Oh at sigmadesigns.com
Tue Feb 26 22:49:35 CET 2013


Hi Daniel,

I've verified that the CodeSourcery 4.5.2 and 4.6.3  generate the correct _gp as you mentioned.

Thanks,
Justin

________________________________________
From: Daniel Schwierzeck [daniel.schwierzeck at gmail.com]
Sent: Tuesday, February 26, 2013 12:34 PM
To: Juhyun (Justin) Oh
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] [u-boot-mips] gp init and -pie option

Hi,

2013/2/26 Juhyun (Justin) Oh <Juhyun_Oh at sigmadesigns.com>:
> HI Daniel,
>
> I'm using CodeSourcery 4.5.2. I've configured and have built the code for "incaip" board and "dbau1000". The results are the same. (i.e. gp has been set with wrong value)
>
> Could you tell me the CodeSourcery toolchain versions known to be working? I'd like to try out the same version.
>
Which CodeSourcery release do you use?

I have tried following toolchains and all of them have _gp initialized
correctly.

Sourcery CodeBench Lite 2011.09-75
  gcc version 4.5.2 (Sourcery CodeBench Lite 2011.09-75)
  GNU ld (Sourcery CodeBench Lite 2011.09-75) 2.21.53.20110905

Sourcery CodeBench Lite 2012.03-63:
  gcc version 4.6.3 (Sourcery CodeBench Lite 2012.03-63)
  GNU ld (Sourcery CodeBench Lite 2012.03-63) 2.21.53.20110905

ELDK-5.2.1:
  gcc version 4.6.4 20120303 (prerelease) (GCC)
  GNU ld (GNU Binutils) 2.22

ELDK-5.3:
  gcc version 4.7.2 (GCC)
  GNU ld (GNU Binutils) 2.22

--
Best regards,
Daniel


More information about the U-Boot mailing list