From owner-freebsd-hackers@FreeBSD.ORG Sun Feb 19 21:45:36 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0D4216A420 for ; Sun, 19 Feb 2006 21:45:36 +0000 (GMT) (envelope-from bachi@te-clan.ch) Received: from te-clan.ch (ns1.te-clan.ch [217.118.194.40]) by mx1.FreeBSD.org (Postfix) with SMTP id 03A5843D48 for ; Sun, 19 Feb 2006 21:45:35 +0000 (GMT) (envelope-from bachi@te-clan.ch) Received: (qmail 36306 invoked from network); 19 Feb 2006 21:44:40 -0000 Received: from unknown (HELO ?10.0.0.241?) (80.219.57.164) by te-clan.ch with SMTP; 19 Feb 2006 21:44:40 -0000 From: Andreas Bachmann To: hackers@freebsd.org In-Reply-To: <20060219172223.GA12772@britannica.bec.de> References: <1140368387.28785.63.camel@localhost> <20060219172223.GA12772@britannica.bec.de> Content-Type: text/plain Date: Sun, 19 Feb 2006 22:45:27 +0100 Message-Id: <1140385527.28785.76.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: Subject: Re: dladdr in executable and shared object X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Feb 2006 21:45:36 -0000 Hi Joerg Ahh... Thank you. When I compile with the Sun Compiler, the dynamic linking section will be present by default. In the GNU compiler, as you wrote, it must be explicit specific. Andreas On Sun, 2006-02-19 at 18:22 +0100, joerg@britannica.bec.de wrote: > On Sun, Feb 19, 2006 at 05:59:47PM +0100, Andreas Bachmann wrote: > > I think the whole dynamic linking functions are buggy. > > First of all, calm down. Second, do your home work. > By default the necessary dynamic linkage section is not present in > executables, only shared libraries. Try -Wl,-E instead. > > Joerg > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >