removal of unreferenced static variables
Matthias Oltmanns
Mathias.Oltmanns.Oltmanns@sysde.eads.net
Wed Apr 2 14:35:00 GMT 2003
Am Die, 2003-04-01 um 17.26 schrieb Simon MORLAT:
> Hello all,
>
> Is there an option to prevent gcc to skip out of a program unreferenced
> static objects ?
>
hi,
i've got a similiar problem and the the flag
`-u SYMBOL'
worked for me.
from gcc-info:
`-u SYMBOL'
Pretend the symbol SYMBOL is undefined, to force linking of
library modules to define it. You can use `-u' multiple times with
different symbols to force loading of additional library modules.
cu
Matthias
--
Matthias Oltmanns
Tel: 04421-1543-274
mail: Mathias.Oltmanns.Oltmanns@sysde.eads.net
More information about the Gcc-help
mailing list