From: Kim Phillips Date: Tue, 12 Oct 2010 12:31:25 -0500 Subject: [U-Boot] [PATCH] mpc83xx: Add -fpic relocation support In-Reply-To: References: <1286887081-23172-1-git-send-email-Joakim.Tjernlund@transmode.se> <20101012125218.6ABE21508A2@gemini.denx.de> <20101012134719.5BB9814F310@gemini.denx.de> Message-ID: <20101012123125.7c08f50a.kim.phillips@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 12 Oct 2010 16:10:33 +0200 Joakim Tjernlund wrote: > Wolfgang Denk wrote on 2010/10/12 15:47:19: > > > > Dear Joakim Tjernlund, > > > > In message > 0047D319 at transmode.se> you wrote: > > > > > > > What happens when one uses this patch in combination with a > "standard" > > > > (i. e. older, unpatched) GCC? > > > > > > Nothing, gcc will produce -fPIC relocs and the code will/should just > work. > > > > OK, so your change means effectively a no-op (except for the moderate > > size increase in start.S) to most of us? > > Yes. that moderate size increase in start.S breaks nand builds: Configuring for MPC8313ERDB_NAND_66 board... start.o:(.got2+0x4): undefined reference to `_GOT_TABLE_' make[1]: *** [/home/r1aaha/git/u-boot/nand_spl/u-boot-spl] Error 1 ... Configuring for MPC8315ERDB_NAND board... powerpc-linux-gnu-ld: NAND bootstrap too big powerpc-linux-gnu-ld: NAND bootstrap too big start.o:(.got2+0x4): undefined reference to `_GOT_TABLE_' make[1]: *** [/home/r1aaha/git/u-boot/nand_spl/u-boot-spl] Error 1 (I'm using powerpc-linux-gnu-gcc (Sourcery G++ Lite 4.3-74) 4.3.2 atm). Kim