[U-Boot] [PATCH RFC] Fix build problems caused by "_end" -> "__bss_end__" rename

Albert ARIBAUD albert.aribaud at free.fr
Mon Mar 28 18:42:51 CEST 2011


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 at denx.de>
> Cc: Po-Yu Chuang<ratbert at faraday-tech.com>
> Cc: Albert Aribaud<albert.aribaud at 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.


More information about the U-Boot mailing list