Re: [Mesa-dev] [PATCH 24/24] automake: ask the linker to do garbage collection

2014-03-28 Thread Lauri Kasanen
On Fri, 28 Mar 2014 10:08:53 + Emil Velikov wrote: > On 28/03/14 08:35, Lauri Kasanen wrote: > > Emil Velikov wrote: > > > >> By doing GC the linker removes all the symbols that are not referenced > >> and/or used by the final library. This results in a saving of ~100K > >> up-to ~600K per

Re: [Mesa-dev] [PATCH 24/24] automake: ask the linker to do garbage collection

2014-03-28 Thread Emil Velikov
On 28/03/14 08:35, Lauri Kasanen wrote: > On Thu, 27 Mar 2014 21:00:39 + > Emil Velikov wrote: > >> By doing GC the linker removes all the symbols that are not referenced >> and/or used by the final library. This results in a saving of ~100K >> up-to ~600K per (stripped) binary (classic vs ga

Re: [Mesa-dev] [PATCH 24/24] automake: ask the linker to do garbage collection

2014-03-28 Thread Lauri Kasanen
On Thu, 27 Mar 2014 21:00:39 + Emil Velikov wrote: > By doing GC the linker removes all the symbols that are not referenced > and/or used by the final library. This results in a saving of ~100K > up-to ~600K per (stripped) binary (classic vs gallium drivers). > > If interested one can ask th

[Mesa-dev] [PATCH 24/24] automake: ask the linker to do garbage collection

2014-03-27 Thread Emil Velikov
By doing GC the linker removes all the symbols that are not referenced and/or used by the final library. This results in a saving of ~100K up-to ~600K per (stripped) binary (classic vs gallium drivers). If interested one can ask the compiler to print the sections that are removed using -Wl,--print