help with linking please

Dag-ErlingSmørgrav des at des.no
Sat Jan 10 15:04:06 PST 2004


Alfred Perlstein <alfred at freebsd.org> writes:
> It will refuse to strip symbols if:
>
> foo.o:func1() references bar.o:func2().
>
> But I need it to.

use -G instead of -K, e.g.

$ strip -G apifunc1 -G apifunc2 foo.o

will make every symbol except apifunc1 and apifunc2 local.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-hackers mailing list