[PATCH] arm64: kill off the libgcc dependency

Kevin Hao haokexin at gmail.com
Wed Jan 14 23:07:30 PST 2015


On Wed, Jan 14, 2015 at 01:37:42PM +0000, Will Deacon wrote:
> On Wed, Jan 14, 2015 at 12:52:49PM +0000, Ard Biesheuvel wrote:
> > IMO libgcc.a cannot be used at all in the kernel, as it is not built
> > with -mgeneral-regs-only so we have no guarantee that it will leave
> > the NEON registers alone.
> 
> That's a very good point. In which case, we'd need to extend this patch
> to implement the bitops that we currently rely on the __builtins for.

Sorry, I am not sure I get what you mean. These builtin functions for bitops
are not implemented in the libgcc, they are inlined in compiler. So why do
we need to reimplement these bitops when removing the link with libgcc?

Thanks,
Kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150115/25bfe1a0/attachment-0001.sig>


More information about the linux-arm-kernel mailing list