[U-Boot] Linker Error with binutils-2.21

James Kosin jkosin at intcomgrp.com
Fri Jan 28 15:40:23 CET 2011


NOTICE:

The new binutils-2.21 is not allowing -r -shared to be used together. 
I'd have to look at the options; but, I've attached a log below with the
error.

James Kosin

--- Log ---
> make[1]: Entering directory `/home/jkosin/git/u-boot/examples/standalone'
> arm-eabi-gcc  -g  -Os   -fno-common -ffixed-r8 -msoft-float 
> -D__KERNEL__ -DCONF
> IG_SYS_TEXT_BASE=0x10000000 -I/home/jkosin/git/u-boot/include
> -fno-builtin -ffre
> estanding -nostdinc -isystem
> /home/jkosin/opt/armThumb-4.5.0/lib/gcc/arm-eabi/4.
> 5.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux
> -mno-thumb-in
> terwork -march=armv4 -Wall -Wstrict-prototypes -fno-stack-protector
> -fno-topleve
> l-reorder   -o hello_world.o hello_world.c -c
> arm-eabi-gcc  -g  -Os   -fno-common -ffixed-r8 -msoft-float 
> -D__KERNEL__ -DCONF
> IG_SYS_TEXT_BASE=0x10000000 -I/home/jkosin/git/u-boot/include
> -fno-builtin -ffre
> estanding -nostdinc -isystem
> /home/jkosin/opt/armThumb-4.5.0/lib/gcc/arm-eabi/4.
> 5.2/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux
> -mno-thumb-in
> terwork -march=armv4 -Wall -Wstrict-prototypes -fno-stack-protector
> -fno-topleve
> l-reorder   -o stubs.o stubs.c -c
> arm-eabi-ld  -pie -r -o libstubs.o  stubs.o
> arm-eabi-ld: -r and -shared may not be used together
> make[1]: *** [libstubs.o] Error 1
> make[1]: Leaving directory `/home/jkosin/git/u-boot/examples/standalone'
> make: *** [examples/standalone] Error 2

-- 
James Kosin
Senior Software Engineer

International Communications Group, Inc.
230 Pickett's Line
Newport News, Virginia  23603

Phone: +1 (757) 947-1030 x 122
Fax:   +1 (757) 947-1035



More information about the U-Boot mailing list