Re: [OpenWrt-Devel] [RFC] mklibs.py integration

2009-08-07 Thread Felix Fietkau
Hi all,

I reworked and fixed the mklibs.py integration and it actually works
now. The reported 4KB space saving in the linker binary that florian
reported was just simple stripping, not actual relinking.
Here are the results with a slightly-bigger-than-standard configuration
on a mips target:

libuClibc-0.9.30.1.so - before: 401380, after: 253512
libm-0.9.30.1.so - before: 102128, after: 46900

There is no significant space saving on the other libraries yet.

- Felix
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [RFC] mklibs.py integration

2009-08-01 Thread Daniel Dickinson
On Sat, 1 Aug 2009 05:03:22 -0400
Daniel Dickinson  wrote:

> 
> Doesn't mklibs.py remove portions of a library that are unused?
> Wouldn't that mean that fewer programs would result in more removal
> (due to more unused bits).   Or do you strip all libraries and not
> just uClibc?
> 

Never mind.  I see that you are stripping all libraries.  So yes, good
idea.  I was confused by your specifically mentioning the uClibc loader.
Can you give comparative squashfs sizes instead?

Also, this may takes signficantly long periods of time for large
numbers of packages.  Have you tested with more than the base setup?

Regards,

Daniel

-- 
And that's my crabbing done for the day.  Got it out of the way early, 
now I have the rest of the afternoon to sniff fragrant tea-roses or 
strangle cute bunnies or something.   -- Michael Devore
GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C  http://gnupg.org
The C Shore (Daniel Dickinson's Website) http://www.bmts.com/~cshore


signature.asc
Description: PGP signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [RFC] mklibs.py integration

2009-08-01 Thread Florian Fainelli
Hi Daniel,

Le Saturday 01 August 2009 11:03:22 Daniel Dickinson, vous avez écrit :
> On Sat, 25 Jul 2009 12:25:20 +0200
>
> Florian Fainelli  wrote:
> > Hi all,
> >
> > Please find below a proof-of-concept of the mklibs.py reduction
> > integration in OpenWrt. I have not been able to strip the uClibc
> > loader more than 4KB out of 28KB (original size) but it might
> > significantly better results with more softare installed in the
> > rootfs. --- Index: Config.in
>
> Doesn't mklibs.py remove portions of a library that are unused?

It does indeed.

> Wouldn't that mean that fewer programs would result in more removal
> (due to more unused bits).   Or do you strip all libraries and not just
> uClibc?

I think I did not ask it to strip down all shared libraries, thus it only 
stripped down the linker. I will try to look at it later in the weekend.
-- 
Best regards, Florian Fainelli
Email: flor...@openwrt.org
Web: http://openwrt.org
IRC: [florian] on irc.freenode.net
---


signature.asc
Description: This is a digitally signed message part.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [RFC] mklibs.py integration

2009-08-01 Thread Daniel Dickinson
On Sat, 25 Jul 2009 12:25:20 +0200
Florian Fainelli  wrote:

> Hi all,
> 
> Please find below a proof-of-concept of the mklibs.py reduction
> integration in OpenWrt. I have not been able to strip the uClibc
> loader more than 4KB out of 28KB (original size) but it might
> significantly better results with more softare installed in the
> rootfs. --- Index: Config.in

Doesn't mklibs.py remove portions of a library that are unused?
Wouldn't that mean that fewer programs would result in more removal
(due to more unused bits).   Or do you strip all libraries and not just
uClibc?

Regards,

Daniel
-- 
And that's my crabbing done for the day.  Got it out of the way early, 
now I have the rest of the afternoon to sniff fragrant tea-roses or 
strangle cute bunnies or something.   -- Michael Devore
GnuPG Key Fingerprint 86 F5 81 A5 D4 2E 1F 1C  http://gnupg.org
The C Shore (Daniel Dickinson's Website) http://www.bmts.com/~cshore


signature.asc
Description: PGP signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel