From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Tue, 28 Sep 2010 15:57:04 +0200 Subject: [U-Boot] [PATCH V3 2/2] [NEXT] arm926ejs: reduce code size with -msingle-pic-base In-Reply-To: <1285679653-6546-2-git-send-email-albert.aribaud@free.fr> References: <1285679653-6546-1-git-send-email-albert.aribaud@free.fr> <1285679653-6546-2-git-send-email-albert.aribaud@free.fr> Message-ID: <4CA1F430.50900@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Albert, 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 Tested on the tx25 board. Tested-by: Heiko Schocher bye, Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany