Re: Ld --whole-archive or how to lower loader-stripped.elf size from 9MB to 6MB

2018-10-12 Thread Waldek Kozaczuk
Have found another related commit about bringing libgcc_s.so back - https://github.com/cloudius-systems/osv/commit/be565320c082c00069614c850d29b42831b3dea6. On Thursday, October 11, 2018 at 3:08:33 PM UTC-4, Waldek Kozaczuk wrote: > > So here is what I have found. > > This huge object file is

Re: Ld --whole-archive or how to lower loader-stripped.elf size from 9MB to 6MB

2018-10-11 Thread Waldek Kozaczuk
So here is what I have found. This huge object file is part of the Decimal Float Library (https://gcc.gnu.org/onlinedocs/gccint/Decimal-float-library-routines.html#Decimal-float-library-routines) which OSv does NOT use simply because when I apply this change to the makefile to undo

Re: Ld --whole-archive or how to lower loader-stripped.elf size from 9MB to 6MB

2018-10-10 Thread Waldek Kozaczuk
On Wed, Oct 10, 2018 at 4:32 PM Nadav Har'El wrote: > On Wed, Oct 10, 2018 at 10:57 PM Waldek Kozaczuk > wrote: > >> Last week I wrote a long post with suggestions on how to improve memory >> allocation and utilization and seeking some feedback. This time I would >> like to briefly update those

Re: Ld --whole-archive or how to lower loader-stripped.elf size from 9MB to 6MB

2018-10-10 Thread Nadav Har'El
On Wed, Oct 10, 2018 at 10:57 PM Waldek Kozaczuk wrote: > Last week I wrote a long post with suggestions on how to improve memory > allocation and utilization and seeking some feedback. This time I would > like to briefly update those interested on how we could drastically reduce > kernel size

Ld --whole-archive or how to lower loader-stripped.elf size from 9MB to 6MB

2018-10-10 Thread Waldek Kozaczuk
Last week I wrote a long post with suggestions on how to improve memory allocation and utilization and seeking some feedback. This time I would like to briefly update those interested on how we could drastically reduce kernel size (loader-stripped.elf) by 3MB (~ 33%). Month ago there was a