[U-Boot] [PATCH 2/2] [NEXT] arm926ejs: reduce code size with -msingle-pic-base

Albert ARIBAUD albert.aribaud at free.fr
Thu Sep 23 17:13:10 CEST 2010


  23/09/2010 16:44, Ben Gardiner a écrit :
> On Wed, Sep 22, 2010 at 5:36 PM, Albert ARIBAUD<albert.aribaud at free.fr>  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.


More information about the U-Boot mailing list