All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Kosin <jkosin@intcomgrp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Linker Error with binutils-2.21
Date: Fri, 28 Jan 2011 09:49:48 -0500	[thread overview]
Message-ID: <4D42D78C.6000606@intcomgrp.com> (raw)
In-Reply-To: <4D42D557.3020607@intcomgrp.com>

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

  reply	other threads:[~2011-01-28 14:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-28 14:40 [U-Boot] Linker Error with binutils-2.21 James Kosin
2011-01-28 14:49 ` James Kosin [this message]
2011-01-28 16:29   ` Albert ARIBAUD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D42D78C.6000606@intcomgrp.com \
    --to=jkosin@intcomgrp.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.