public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Linker Error with binutils-2.21
@ 2011-01-28 14:40 James Kosin
  2011-01-28 14:49 ` James Kosin
  0 siblings, 1 reply; 3+ messages in thread
From: James Kosin @ 2011-01-28 14:40 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Linker Error with binutils-2.21
  2011-01-28 14:40 [U-Boot] Linker Error with binutils-2.21 James Kosin
@ 2011-01-28 14:49 ` James Kosin
  2011-01-28 16:29   ` Albert ARIBAUD
  0 siblings, 1 reply; 3+ messages in thread
From: James Kosin @ 2011-01-28 14:49 UTC (permalink / raw)
  To: u-boot

More information:

  -r, -i, --relocatable       Generate relocatable output

  -shared, -Bshareable        Create a shared library
  -pie, --pic-executable      Create a position independent executable

Isn't the fact we pass -pie and -r a bit redundant, especially when
creating a library??

James

On 1/28/2011 9:40 AM, James Kosin wrote:
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Linker Error with binutils-2.21
  2011-01-28 14:49 ` James Kosin
@ 2011-01-28 16:29   ` Albert ARIBAUD
  0 siblings, 0 replies; 3+ messages in thread
From: Albert ARIBAUD @ 2011-01-28 16:29 UTC (permalink / raw)
  To: u-boot

Hi James,

Please refrain from top-posting.

Le 28/01/2011 15:49, James Kosin a ?crit :
> More information:
>
>    -r, -i, --relocatable       Generate relocatable output
>
>    -shared, -Bshareable        Create a shared library
>    -pie, --pic-executable      Create a position independent executable
>
> Isn't the fact we pass -pie and -r a bit redundant, especially when
> creating a library??
>
> James

> On 1/28/2011 9:40 AM, James Kosin wrote:
>> 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

This has been fixed yesterday; you can cherry-pick Stefano's commit from 
the tip of u-boot-arm/master.

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-01-28 16:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-28 14:40 [U-Boot] Linker Error with binutils-2.21 James Kosin
2011-01-28 14:49 ` James Kosin
2011-01-28 16:29   ` Albert ARIBAUD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox