All of lore.kernel.org
 help / color / mirror / Atom feed
From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] Build error with the master branch
Date: Thu, 27 Jan 2011 20:15:56 +0100	[thread overview]
Message-ID: <4D41C46C.6010405@free.fr> (raw)
In-Reply-To: <4D41533B.7090905@denx.de>

Le 27/01/2011 12:12, Stefano Babic a ?crit :
> On 01/27/2011 08:42 AM, Jason Liu wrote:
>> Hi, There,
>>
>
> Hi Jason,
>
>>
>> I found this error is related with the following commit:
>>
>> commit 8aba9dceebb14144e07d19593111ee3a999c37fc
>>
>> Are you aware of that?
>
> I can confirm this problem, and it is relevant for arm only.
> As far I can understand at the moment, it is due to the -pie settings in
> arch/arm/config.mk.
>
> However, it is not to me clear because -pie is added to PLATFORM_LDFLAGS
> and not to LDFLAGS_u-boot. Also before the patch the -pie option is used
> only for linking u-boot at the end of the build process and not for
> partial linking. Probably does it come when we used libraries instead of
> objects ?
>
> Setting LDFLAGS_u-boot in arch/arm/config.mk to -pie and removing it
> from PLATFORM_LDFLAGS removes the build error. Not yet tested, anyway.
>
> Best regards,
> Stefano Babic

-pie is used to generate the ARM ELF relocation tables in U-Boot, and 
should indeed be used only for the final stage linking; so moving it to 
LDFLAGS_u-boot is sensible.

Amicalement,
-- 
Albert.

      reply	other threads:[~2011-01-27 19:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-27  7:42 [U-Boot] Build error with the master branch Jason Liu
2011-01-27 10:21 ` Loïc Minier
2011-01-27 10:58 ` Wolfgang Denk
2011-01-27 11:12 ` Stefano Babic
2011-01-27 19:15   ` Albert ARIBAUD [this message]

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=4D41C46C.6010405@free.fr \
    --to=albert.aribaud@free.fr \
    --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.