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 <w...@denx.de> Cc: Po-Yu Chuang <ratb...@faraday-tech.com> Cc: Albert Aribaud <albert.arib...@free.fr> --- 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__]. examples/standalone/Makefile | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/examples/standalone/Makefile b/examples/standalone/Makefile index c1dfdce..06cf14f 100644 --- a/examples/standalone/Makefile +++ b/examples/standalone/Makefile @@ -96,6 +96,7 @@ $(LIB): $(obj).depend $(LIBOBJS) $(ELF): $(obj)%: $(obj)%.o $(LIB) $(LD) -g -Ttext $(STANDALONE_LOAD_ADDR) \ + --defsym=__bss_end__=_end \ -o $@ -e $(SYM_PREFIX)$(notdir $(<:.o=)) $< $(LIB) \ -L$(gcclibdir) -lgcc -- 1.7.4 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot