Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Apr 2004 17:32:01 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Daniela <dgw@liwest.at>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: have i been hacked?
Message-ID:  <20040414163201.GD33434@happy-idiot-talk.infracaninophile.co.uk>
In-Reply-To: <200404141608.08788.dgw@liwest.at>
References:  <200404140933.i3E9XdSE000461@mist.nodomain> <407D08FD.1080708@elvandar.org> <200404141608.08788.dgw@liwest.at>

next in thread | previous in thread | raw e-mail | index | archive | help

--GpGaEY17fSl8rd50
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Apr 14, 2004 at 04:08:08PM +0000, Daniela wrote:

[ size of the /bin/rcp executable ]

> That needn't be the case. Mine is 932532 bytes long (and it was already t=
hat=20
> size after a fresh reinstall).
> And why? Debug symbols. I love to have them everywhere.
> Try to strip the file, and it will be much shorter.

Installed binaries should already be stripped if they're part of the
base system.  You have to make a special effort setting things in
/etc/make.conf to prevent binaries being stripped on installation.
The reason that rcp is so large on 4.x is that it's statically linked:

    % ls -la /bin/rcp
    -r-sr-xr-x  1 root  wheel  251572 Feb  7 12:43 /bin/rcp*
    % file /bin/rcp
    /bin/rcp: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (Fre=
eBSD), for FreeBSD 4.9, statically linked, stripped

On recent 5.x, rcp will be linked against the shared libc and
consequently rather smaller in size.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK

--GpGaEY17fSl8rd50
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAfWeBdtESqEQa7a0RAqMMAKCJZaU45XPSGrE9nurSslgaqGwyNwCeKChn
iKn9AGCOqmVbyJw5xbL/Hi4=
=sp30
-----END PGP SIGNATURE-----

--GpGaEY17fSl8rd50--



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