From: Miro K. <mir...@gm...> - 2017-11-05 22:52:54
|
On 14 October 2013 at 11:47, Miro Kropáček <mir...@gm...> wrote: > > On Thu, Apr 18, 2013 at 7:43 PM, Eero Tamminen <oa...@he...> wrote: > >> > Globally, stripping saved many megabytes. >> >> I'm not interested in the ".L*" symbols as those have >> no names, just numbers. But anything that has a name for >> a function, I would very much like to be retained in >> the library symbol table. >> >> Maybe you could use the following strip arguments: >> -S -X -w -N '.L[0-9]*' >> ? > > > Inspired by an Atari-forum thread, I have done proper testing this time. > Results are more than surprising. My tests were done on the complete > gcc+binutils+mintlib+pml cross compilation installation (self made): > > Plain install (no stripping at all): 148 MB > My strip ("-s" for executables, "-S -x" for libraries): 63 MB > Eero's proposal ("-s" for executables, "-S -X -w -N '.L[0-9]*'" for > libraries): *58 MB* > > Yes, with static functions like "tzload" included and still working > (simple hello world tested). So it seems that actually Eero's "script" not > only keeps static function names but also saves space =) > It took only four years and Eero's comment on AF but I have finally changed this. So now all mintlib/gemlib/cflib/gemma builds contain static symbols, using the command line switches above. Vincent, if you find some time, I suggest to change the switches in your builds as well. -- MiKRO / Mystic Bytes http://mikro.atari.org |