From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Wed, 29 Sep 2010 08:01:43 +0200 Subject: [U-Boot] [PATCH V3 2/2] [NEXT] arm926ejs: reduce code size with -msingle-pic-base In-Reply-To: References: <1285679653-6546-1-git-send-email-albert.aribaud@free.fr> <1285679653-6546-2-git-send-email-albert.aribaud@free.fr> Message-ID: <4CA2D647.5050806@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le 28/09/2010 15:39, Ben Gardiner a ?crit : > On Tue, Sep 28, 2010 at 9:14 AM, Albert Aribaud wrote: >> Add -msingle-pic-base to the relocation flags, and compute the pic base >> in start.S twice and for all -- once before relocation to run board_init_f, >> and once after relocation to run board_init_r and the rest of u-boot. >> This further reduces code size by 2.5% compared to -fPIE alone. >> >> Signed-off-by: Albert Aribaud > > Applies cleanly to 3df61957938586c512c17e72d83551d190400981 of u-boot/next. > > Tested on da850evm -- u-boot prompt is obtained and bootm of linux > uImage is possible with the fix for bootparam address on the da850evm. > > Tested-by: Ben Gardiner Thanks Ben. Amicalement, -- Albert.