From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1398 invoked by alias); 3 Dec 2013 02:05:31 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 1379 invoked by uid 89); 3 Dec 2013 02:05:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL,BAYES_50,RDNS_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: www.courier-mta.com Received: from Unknown (HELO www.courier-mta.com) (216.254.115.190) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 03 Dec 2013 02:05:30 +0000 Received: from monster.email-scan.com (monster.email-scan.com [::ffff:192.168.0.2]) (TLS: TLSv1/SSLv3,256bits,DHE-RSA-AES256-SHA) by www.courier-mta.com with ESMTPS; Mon, 02 Dec 2013 21:05:21 -0500 id 000000000006077B.00000000529D3C61.0000622B Received: from monster.email-scan.com (localhost [127.0.0.1]) (IDENT: uid 1000) by monster.email-scan.com with ESMTP; Mon, 02 Dec 2013 21:05:20 -0500 id 000000000004011D.00000000529D3C60.00005075 References: <20131202062442.GA29869@opentech.at> Message-ID: From: Sam Varshavchik To: Hatt Tom Cc: gcc-help Subject: Re: reload .so without restarting process Date: Tue, 03 Dec 2013 02:05:00 -0000 Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=_monster.email-scan.com-20574-1386036320-0001"; micalg=pgp-sha1; protocol="application/pgp-signature" X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00018.txt.bz2 This is a MIME GnuPG-signed message. If you see this text, it means that your E-mail or Usenet software does not support MIME signed messages. The Internet standard for MIME PGP messages, RFC 2015, was published in 1996. To open this message correctly you will need to install E-mail or Usenet software that supports modern Internet standards. --=_monster.email-scan.com-20574-1386036320-0001 Content-Type: text/plain; format=flowed; delsp=yes; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-length: 1355 Hatt Tom writes: > Thanks ! The problem has been resolved . > > And hereis one question I should get to be clear of . if I link one > .so into one executeable file , would this increase the reference > count by one already ? so dlclose would not unload that .so until the > reference count decrease to zero . Correct. > > 2013/12/2 Sam Varshavchik : > > Hatt Tom writes: > > > >> If I use dlsym() to load the address manually ,will GOT be needed any > >> more ? > > > > > > If you always use dlopen(), and the dlsym() to call methods from a .so, you > > don't really need to link to it directly, any more, so this is a moot > point. > > > > > > > >> 2013/12/2 Nicholas Mc Guire : > >> > On Mon, 02 Dec 2013, Hatt Tom wrote: > >> > > >> >> And also : why cannot I dlclose a .so that I've linked my executable > >> >> to, in the usual fashion. > >> >> > >> >> is it because the reference count of that .so would not alwayes to be > >> >> zero ? > >> >> > >> >> It seems puzzling to me ? > >> >> > >> > how would you ensure consistency of the GOT ? > >> > I think the problem is that you would end up with invalid addresses in > >> > the GOT > >> > as they were setup by ld based on link-time information. > >> > > >> > thx! > >> > hofrat > >> > >> > >> > >> -- > >> Best Regards! > > > > -- > Best Regards! --=_monster.email-scan.com-20574-1386036320-0001 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit Content-length: 836 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) iQIcBAABAgAGBQJSnTxgAAoJEGs6Yr4nnb8lwoMP/2nxc1MRXX8j3+ZcEF08jD7z tnFFHdR15XOhl/0mZU8wmt7iwrxx8Ch7/DL/vfd8MqglEQs7pN70RfZ0/yJBACfZ AHNQ1Y1N8I/Xlki4eE+kOS02lzfqPJDYDoq/bZ73EPnxmUeeW+rpv986iV0G8Bi0 YfInyvECdCnbpXZe5h/yEmcxvl7uvS+Pxkgo27W0jUZmHe7cOeX3sgydUjC9odfc AR/e4cWqFAdtQjFFegEPrUlMaGS3SS+ItT5k2HHv1NM1lx2YVATg+9UQ2N4hkVi/ 9Kh7StZWJ3uId/hrvHWI3jIUjuTOPO8SmclneIIeGQvbIz189Ir2hCXtd1LES/dI 6CIQdTRgkFWt4h8PwRkTs6fkAn19QUCohaQrScrKKuyNVpQPOinNDuUHWbPvCC8k VR9CIIatqd8I/EWLZk0CCFlunLGMW5vuBpKOIXmZbl/Mr8EV1iaVT/hBW2B3kRAx pJZIPnjJk2/efkUHI9QGOnkCE+RHXB+7KFuR+aY7esjEFqfsay3ltEuQtVuCB7fG AN6j1W2W275sKz9W4AhiPJHuBWjoXxhkcjANCQNFyj3HtomwY+IrL56kAGfzg0xz DEszkypeueqPQn0kqRycafmJdgkhSJ9qwy8M2m8mdwR+6buvoRjt4r+awj0Cm8J1 qmtcaXvx6zue/h2GEqLZ =dAVW -----END PGP SIGNATURE----- --=_monster.email-scan.com-20574-1386036320-0001--