[Buildroot] [PATCH] libaio: Fix library creation for ARC with -Os

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Sep 18 13:58:00 UTC 2018


Hello,

On Tue, 18 Sep 2018 12:44:26 +0000, Alexey Brodkin wrote:

> Sure that's indeed an option. We'll just finally add "-mno-millicode"
> in TARGET_ABI for ARC and forget about that class of problems. Also
> maybe it worth having "-mno-millicode" set by default for Linux
> toolchains so looking forward there will be no need to mess with
> millicode manually.

Yes, that's indeed one solution, though the problem also exists for
PowerPC, so it would have been nice to understand it.

What I find weird is that why it happens only with libaio ? I mean
there are plenty of libraries built with -fpic, and libaio is the only
one causing this problem. The fact that libaio is using -nostdlib
-nostartfiles was an initial hint to explain why libgcc isn't brought
into the link, but as Alexey said, removing -nostdlib -nostartfiles
doesn't solve the problem.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list