Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Aug 2014 09:57:31 -0500
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Konstantin Belousov <kib@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r270803 - head/libexec/rtld-elf
Message-ID:  <540094DB.5050307@FreeBSD.org>
In-Reply-To: <201408291044.s7TAiwmI077897@svn.freebsd.org>
References:  <201408291044.s7TAiwmI077897@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--ackJmqinc8RTcismvILBwATfNxK5XgXWk
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 8/29/2014 5:44 AM, Konstantin Belousov wrote:
> Author: kib
> Date: Fri Aug 29 10:44:58 2014
> New Revision: 270803
> URL: http://svnweb.freebsd.org/changeset/base/270803
>=20
> Log:
>   Document the whole settings needed to build a debug version of rtld.
>  =20
>   Sponsored by:	The FreeBSD Foundation
>   MFC after:	3 days
>=20
> Modified:
>   head/libexec/rtld-elf/Makefile
>=20
> Modified: head/libexec/rtld-elf/Makefile
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D
> --- head/libexec/rtld-elf/Makefile	Fri Aug 29 10:43:56 2014	(r270802)
> +++ head/libexec/rtld-elf/Makefile	Fri Aug 29 10:44:58 2014	(r270803)
> @@ -1,5 +1,9 @@
>  # $FreeBSD$
> =20
> +# Use the following command to build local debug version of dynamic
> +# linker:
> +# make DEBUG_FLAGS=3D-g DEBUG=3D-DDEBUG MK_TESTS=3Dno all
> +
>  .include <src.opts.mk>
>  MK_SSP=3D		no
> =20
>=20

How difficult would it be to allow DEBUG to be set during runtime like
GNU's can with LD_DEBUG? I have found GNU's LD_DEBUG to be very useful
for userland debugging, especially when using dlopen(3).

We have LD_DEBUG environment variable but it only prints if built with
-DDEBUG.

Is there a concern about performance by enabling this based only on
environment?

--=20
Regards,
Bryan Drewery


--ackJmqinc8RTcismvILBwATfNxK5XgXWk
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)

iQEcBAEBAgAGBQJUAJTbAAoJEDXXcbtuRpfP3pMIAKta+m0oCFuEzhrAipaBDtrO
pYEkagtSQEhlYfn4Z08zkaw2MvDGTYaMLC7UVnz40oNKTXyGWfbMgMzCFXcxA4AY
UvAtWWE3QlTMbk1hL+CIT7Nr07nrv4w3vh4Ve0aDDdkI0dK1S6lRgFVL0cPEDwXF
Vybbqw3UvJx/2o5rmrfBOLHfW23sxD6bXe+ob/5WNjhtzPLRIltrzTkBEi11ghf4
wnrGOe2MvFGpMeQgOxDm2K7yRPe6r7Gstpoe0Hvv607hGb7fR+ur3pTwUyfoDOlb
md87NDyNKN7YtC2n0XoEyfQKv8NYKVpIQVYlrD+72ADgbFH1hUTk/jQZUryP2gw=
=79lZ
-----END PGP SIGNATURE-----

--ackJmqinc8RTcismvILBwATfNxK5XgXWk--



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