On Thu, Oct 11, 2007 at 11:14:06AM +0100, Denys Vlasenko wrote:
>On Wednesday 10 October 2007 11:04, Denys Vlasenko wrote:
>> On Tuesday 09 October 2007 23:22, Bernhard Fischer wrote:
>> > On Tue, Oct 09, 2007 at 08:13:56PM +0100, Denys Vlasenko wrote:
>> > >Hi,
>> > >
>> > >In current svn:
>> > >
>> > >CONFIG_BUILD_LIBBUSYBOX works again,
>> > 
>> > Very nice. Thanks for your effort.
>> > 
>> > What do you think about also providing an option to use the normal
>> > busybox as a whole as .so (i.e. a PIE)?
>> 
>> It should be easy. I only need to look how e.g. glibc makes it so that
>> /lib/libc.so.6 is runnable by itself.
>
>Bernhard, can you elaborate? Do you want to use libbusybox
>as a "real" library "? I.e. link other programs against it
>beside busybox apllets?

I was more thinking about exporting a (rather complete; nm -g
--defined-only) sym table via the busybox binary itself. This would be
an alternative to the separate libbusybox from the 1.[23].x series.

>I added stuff to svn which makes libbusybox export _only_ XXX_main
>functions. This minimizes size, but will preclude you from calling
>any other function.
>
>I looked into making libbusybox.so executanle itself, but
>it looks like that needs a lot of linker magic for questionable
>gain - I can have tiny (less than 3k) "busybox" executable
>linked against it providing the same functionality.
>
>Any specific reasons why do you like to have
>PIE busybox-which-is-also-libbusybox?

I don't have a real use-case right now (I used to do this a while back
for XXX_main and some helpers from libbb, fwiw)
but it could be used to either
-) use XXX_main in other progs
-) use stuff from {*/,}lib*/*c in other progs
-) replace zlib, provided that a compatible interface is exported (not
yet implemented, IIRC)

The zlib case would be a very, very nice thing to have, IMO (in case you
already drained your TODO list too much :)

What do you think?
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to