[PATCH v1 2/8] arm: Fix "file truncated" linker errors from empty built-in.a in SPL/TPL/VPL builds
Sune Brian
briansune at gmail.com
Fri Nov 28 17:20:54 CET 2025
Hi Tom,
Tom Rini <trini at konsulko.com> 於 2025年11月28日週五 下午11:31寫道:
>
> On Fri, Nov 28, 2025 at 10:11:53AM +0800, Yuslaimi, Alif Zakuan wrote:
> >
> >
> > On 27/11/2025 11:09 pm, Marek Vasut wrote:
> > > [CAUTION: This email is from outside your organization. Unless you trust
> > > the sender, do not click on links or open attachments as it may be a
> > > fraudulent email attempting to steal your information and/or compromise
> > > your computer.]
> > >
> > > On 11/27/25 3:12 AM, Yuslaimi, Alif Zakuan wrote:
> > >
> > > Hello everyone,
> > >
> > > > I already have the referenced commit in my test branch, and I can
> > > > confirm that the same compilation error still appears on CycloneV when
> > > > certain directories produce no SPL objects.
> > > >
> > > > The existing fix ensures that built-in.o is always present, but it does
> > > > not prevent ar from generating empty built-in.a archives, which older
> > > > ARM 32-bit linkers (such as CycloneV toolchains) reject as “file
> > > > truncated”.
I encountered this mid of this year after 2025.07.
The uncompilable distro is Ubuntu 18.04, however once I update
to 20.0x and 22.xx there are no issue anymore.
But I did not deep investigate this issue because distro updated can
resolve this issue. I simply think it is u-boot no longer support old GCC.
Just want to point out the failing point of my experiences.
Thanks,
Brian
More information about the U-Boot
mailing list