Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jan 2004 00:03:56 +0100
From:      des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=)
To:        Alfred Perlstein <alfred@freebsd.org>
Cc:        hackers@freebsd.org
Subject:   Re: help with linking please
Message-ID:  <xzpvfnjs8wz.fsf@dwp.des.no>
In-Reply-To: <20040110222441.GS9623@elvis.mu.org> (Alfred Perlstein's message of "Sat, 10 Jan 2004 14:24:41 -0800")
References:  <20040110050033.GP9623@elvis.mu.org> <xzp3caojbo5.fsf@dwp.des.no> <20040110222441.GS9623@elvis.mu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Alfred Perlstein <alfred@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
--=20
Dag-Erling Sm=F8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpvfnjs8wz.fsf>