From: Masahiro Yamada Date: Tue, 25 Feb 2014 09:24:48 +0900 Subject: [U-Boot] [PATCH] kbuild: fix SPL link bug when USE_PRIVATE_LIBGCC is "yes" In-Reply-To: <530B8931.2040106@wwwdotorg.org> References: <1393242254-19189-1-git-send-email-yamada.m@jp.panasonic.com> <530B8931.2040106@wwwdotorg.org> Message-ID: <20140225092448.1057.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Stephen, On Mon, 24 Feb 2014 11:02:25 -0700 Stephen Warren wrote: > On 02/24/2014 04:44 AM, Masahiro Yamada wrote: > > Commit 6825a95 (kbuild: use Linux Kernel build scripts) > > changed the behavior of linkage when USE_PRIAVATE_LIBGCC > > is defined as "yes". > > (It dropped arch/arm/lib/eabi_compat.o from the > > target library.) > > > > Affected boards are all Tegra boards. > > > > This commit gets back the same behavior as before Kbuild series. > > Tested-by: Stephen Warren > > ... although interestingly, at least with the Ubuntu 12.10 ARM > cross-compiler, the resultant U-Boot works fine with or without this > patch. I'd have expected it to fail without this patch since it sounds > like USE_PRIVATE_LIBGCC might not be honored correctly, but perhaps the > linker cmdline order works out such that the custom libgcc happens to be > picked up anyway, just not in the way intended. Thanks for your test. It's good to know your boards are already working. (But I am not sure the build will pass with all sorts of cross tools.) So it turned out it works with or without arch/arm/lib/eabi_compat.c. I am not a compiler expert. Nor do I know what eabi_compat.o is needed for. Anyway, just in case, we'd better to keep the same link behavior as before Kbuild. Best Regards Masahiro Yamada