On Friday 12 May 2017 13:52:36 Fred van Stappen wrote: > > BTW, the mergesort benchmark binary also was 177576 bytes with > > accidentally not working -XX, with active smartlinking it was reduced to > > 26072 bytes. > > Hello Martin. > > In a other topic, they talk about to use : -k--gc-sections. > Yup, I get 29.9 KB with fpc -k--gc-sections libnude.pas " library libnude ;
procedure test(); begin end; exports test; end. " " objdump -h -T -t liblibnude.so liblibnude.so: file format elf32-i386 Sections: Idx Name Size VMA LMA File off Algn 0 .hash 00000014 000000d4 000000d4 000000d4 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 1 .gnu.hash 00000020 000000e8 000000e8 000000e8 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 2 .dynsym 00000020 00000108 00000108 00000108 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 3 .dynstr 00000022 00000128 00000128 00000128 2**0 CONTENTS, ALLOC, LOAD, READONLY, DATA 4 .rel.dyn 00001528 0000014c 0000014c 0000014c 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 5 .text 00004af0 00001680 00001680 00001680 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE 6 .rodata 000001b0 00006170 00006170 00006170 2**4 CONTENTS, ALLOC, LOAD, READONLY, DATA 7 .eh_frame 00000000 00006320 00006320 00006320 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 8 .dynamic 000000a8 00007f58 00007f58 00006f58 2**2 CONTENTS, ALLOC, LOAD, DATA 9 .data 000003f0 00008000 00008000 00007000 2**4 CONTENTS, ALLOC, LOAD, DATA 10 .bss 00001664 000083f0 000083f0 000073f0 2**4 ALLOC SYMBOL TABLE: 000000d4 l d .hash 00000000 .hash 000000e8 l d .gnu.hash 00000000 .gnu.hash 00000108 l d .dynsym 00000000 .dynsym 00000128 l d .dynstr 00000000 .dynstr 0000014c l d .rel.dyn 00000000 .rel.dyn 00001680 l d .text 00000000 .text 00006170 l d .rodata 00000000 .rodata 00006320 l d .eh_frame 00000000 .eh_frame 00007f58 l d .dynamic 00000000 .dynamic 00008000 l d .data 00000000 .data 000083f0 l d .bss 00000000 .bss 00001680 g F .text 00000005 test DYNAMIC SYMBOL TABLE: 00001680 g DF .text 00000005 test " Martin ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ mseide-msegui-talk mailing list mseide-msegui-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk