Alberich de megres <alberich2k5@xxxxxxxxx> writes: > On Mon, Aug 31, 2009 at 6:46 PM, Ian Lance Taylor<iant@xxxxxxxxxx> wrote: >> Alberich de megres <alberich2k5@xxxxxxxxx> writes: >> >>> gcc main.c -o main -g -fPIC -O2 -ldl -Wl,--version-script=vs.txt >> >> Also use the -rdynamic option. >> >> Ian >> > > But when i use -rdynamic all symbols are included on dynsym table, and > i only want some of them to be included. Use the version script to force the ones that you do not want to be included to be local. Ian