[PATCH v1 2/8] arm: Fix "file truncated" linker errors from empty built-in.a in SPL/TPL/VPL builds
Tom Rini
trini at konsulko.com
Fri Nov 28 16:31:30 CET 2025
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”.
> >
> > Which toolchain is this ?
> >
>
> I am using Linaro arm-linux-gnueabihf GCC 7.5.0 to compile our SoC32 devices
> - CycloneV and Arria10
Ilias, do you recall the solution to this problem from when it came up
on IRC a few weeks ago?
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20251128/d0a797e8/attachment.sig>
More information about the U-Boot
mailing list