From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH RFC] Fix build problems caused by "_end" -> "__bss_end__" rename
Date: Mon, 28 Mar 2011 18:42:51 +0200 [thread overview]
Message-ID: <4D90BA8B.3080200@free.fr> (raw)
In-Reply-To: <1301301631-6115-1-git-send-email-wd@denx.de>
Le 28/03/2011 10:40, Wolfgang Denk a ?crit :
> Commit 44c6e65 "rename _end to __bss_end__ broke building of a large
> number of systems (at least all PowerPC?):
>
> libstubs.o: In function `app_startup':
> examples/standalone/stubs.c:197: undefined reference to `__bss_end__'
>
> As a workaround (instead of introducing linker scripts) we can
> add a --defsym=__bss_end__=_end
>
> Signed-off-by: Wolfgang Denk<wd@denx.de>
> Cc: Po-Yu Chuang<ratbert@faraday-tech.com>
> Cc: Albert Aribaud<albert.aribaud@free.fr>
> ---
Hmm... The change from _end to __bss_end__ should not have been applied
to the standalone apps, I believe. They are not compiled with start.S
but with the standard lib, which will use _end.
> What I really do not understand is why we don't see the same type of
> undefined reference errors on ARM? ALso, on ARM we see __bss_end__
> and _bss_end__, and __bss_start und __bss_start__ - where are the
> other names coming from? [On PPC we see only __bss_start and
> __bss_end__].
I believe these come from the toolchain's standard lib.
Amicalement,
--
Albert.
next prev parent reply other threads:[~2011-03-28 16:42 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-28 6:20 [U-Boot] current head don;t compile for mpc52xx based boards Heiko Schocher
2011-03-28 6:33 ` Wolfgang Denk
2011-03-28 7:29 ` Po-Yu Chuang
2011-03-28 8:40 ` [U-Boot] [PATCH RFC] Fix build problems caused by "_end" -> "__bss_end__" rename Wolfgang Denk
2011-03-28 8:48 ` Po-Yu Chuang
2011-03-28 8:54 ` Wolfgang Denk
2011-03-28 9:07 ` Po-Yu Chuang
2011-03-28 10:25 ` Wolfgang Denk
2011-03-28 16:42 ` Albert ARIBAUD [this message]
2011-03-29 12:39 ` Wolfgang Denk
2011-03-29 12:39 ` [U-Boot] [PATCH RFC v2] " Wolfgang Denk
2011-03-29 19:51 ` Wolfgang Denk
2011-03-30 1:38 ` Po-Yu Chuang
2011-03-31 5:37 ` Kumar Gala
2011-03-28 8:43 ` [U-Boot] [RFC PATCH] rename __bss_end__ back to _end for standalone programs Po-Yu Chuang
2011-03-31 6:55 ` Wolfgang Denk
2011-03-28 8:52 ` [U-Boot] current head don;t compile for mpc52xx based boards Wolfgang Denk
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=4D90BA8B.3080200@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox