
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 Denkwd@denx.de Cc: Po-Yu Chuangratbert@faraday-tech.com Cc: Albert Aribaudalbert.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,