Subject: Re: Why no DT_NEEDED tags in libs?
To: Jason Thorpe <thorpej@shagadelic.org>
From: Luke Mewburn <lukem@NetBSD.org>
List: tech-userlevel
Date: 03/17/2006 12:00:02
--cmxQ2a0XYZsSJXeB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Mar 16, 2006 at 11:44:19AM -0800, Jason Thorpe wrote:
  | I personally think we SHOULD be adding the DT_NEEDED tags in our =20
  | libs.  I consider this to be a bug in NetBSD.


The base libraries in NetBSD have had the appropriate DT_NEEDED
tags since July 2004 via the LIBDPLIBS support I implemented.
That change is present in NetBSD 3.0.

	argo> uname -sr
	NetBSD 3.0

	argo> readelf -d /usr/lib/libkrb5.so | grep NEEDED
	 0x00000001 (NEEDED)     Shared library: [libcrypto.so.2]
	 0x00000001 (NEEDED)     Shared library: [libasn1.so.6]
	 0x00000001 (NEEDED)     Shared library: [libcom_err.so.4]
	 0x00000001 (NEEDED)     Shared library: [libroken.so.12]

cheers,
Luke.

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (NetBSD)

iD8DBQFEGgoSpBhtmn8zJHIRAhpVAJ0cKvjKXBpG5lPmGdzfBfcX6kxx+wCfQMVs
JkkYtZ4vdjUDW0RxiyJ8QXc=
=IrhY
-----END PGP SIGNATURE-----

--cmxQ2a0XYZsSJXeB--