From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Mon, 28 Mar 2011 18:42:51 +0200 Subject: [U-Boot] [PATCH RFC] Fix build problems caused by "_end" -> "__bss_end__" rename In-Reply-To: <1301301631-6115-1-git-send-email-wd@denx.de> References: <1301301631-6115-1-git-send-email-wd@denx.de> Message-ID: <4D90BA8B.3080200@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.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 > Cc: Po-Yu Chuang > Cc: Albert Aribaud > --- 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.