From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Thu, 23 Sep 2010 17:13:10 +0200 Subject: [U-Boot] [PATCH 2/2] [NEXT] arm926ejs: reduce code size with -msingle-pic-base In-Reply-To: References: <1285163872-20910-1-git-send-email-albert.aribaud@free.fr> <1285163872-20910-2-git-send-email-albert.aribaud@free.fr> <4C9A540D.3020205@free.fr> <4C9A76DD.4030604@free.fr> Message-ID: <4C9B6E86.9040304@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 23/09/2010 16:44, Ben Gardiner a ?crit : > On Wed, Sep 22, 2010 at 5:36 PM, Albert ARIBAUD wrote: >> Can you check the build logs to see which options were applied to >> lib/arm/board.c? > > make[1]: Entering directory `[...]/arch/arm/lib' > arm-none-linux-gnueabi-gcc -g -Os -fPIE -fno-common -ffixed-r8 > -msoft-float -msingle-pic-base -fno-common -ffixed-r8 -msoft-float > -D__KERNEL__ -DTEXT_BASE=0xC1080000 -I[...]/include -fno-builtin > -ffreestanding -nostdinc -isystem > /opt/codesourcery-arm-none-eabi-2009q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include > -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux > -mno-thumb-interwork -march=armv5te -march=armv5te -Wall > -Wstrict-prototypes -fno-stack-protector \ > -o board.o board.c -c This command line has -msingle-pic-base; that's why there is no pic recomputation in board_init_f. Looks like you compiled with my patches unaltered, whereas I thought you were compiling with your fix above m patches. Can you either apply your fix above my patches or just compile with the first of my patches? > What version of that compiler did you try? I tried both the 2009q1 and > 2009q3 compilers. For this case I downloaded and used the same 2009q1 you're using. Amicalement, -- Albert.