Removing dependency to libgcc_s.so

Michael Hunold hunold at linuxtv.org
Mon Jul 24 10:38:10 UTC 2006


Hi Rob,

on 22.07.2006 20:57 Rob Landley said the following:
> On Friday 21 July 2006 8:56 am, Michael Hunold wrote:
>> Is removing the dependency to libgcc a good thing to do?

> Yes.  What does your patch look like?

Very simple. It uses a loop and substract 64bit division I found on the
net. I attached the patch to this mail.

> It's easy to detect this in platform.h, just do an "#if
> sizeof(long)==4" and if so, you need the fix because gcc is _stupid_
> about this, and always has been.  This would be a good job for an
> always_inline function in platform.h, perhaps?

Rich suggested that busybox should not handle this low level stuff. I
think ideally, this kind of stuff should be in a library similar to
libgcc, except for the bloat.

In my case I probably need this kind of stuff in any application in my
environment.

> Ideally I'd like to make it so that the code itself can still just
> use normal division, so we want to provide an implementation of the
> gcc internal function.

I don't have the experience to judge if this is a good thing or not,
this is why I asked. Probably there will be more discussion.

Alternatively, we can substitue offending 64bit arithmetic divison by a
substitute function, ie. div64(). I admit that this is ugly, though.

> Rob

CU
Michael.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: busybox-no_libgcc.diff
Url: http://lists.busybox.net/pipermail/busybox/attachments/20060724/053bb7a1/attachment.diff 


More information about the busybox mailing list