From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20888 invoked by alias); 2 Dec 2013 06:49:12 -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 20876 invoked by uid 89); 2 Dec 2013 06:49:11 -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,FREEMAIL_FROM,RDNS_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: mail-lb0-f172.google.com Received: from Unknown (HELO mail-lb0-f172.google.com) (209.85.217.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 02 Dec 2013 06:49:08 +0000 Received: by mail-lb0-f172.google.com with SMTP id z5so8381046lbh.31 for ; Sun, 01 Dec 2013 22:48:58 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.152.28.230 with SMTP id e6mr38648912lah.3.1385966938480; Sun, 01 Dec 2013 22:48:58 -0800 (PST) Received: by 10.112.14.105 with HTTP; Sun, 1 Dec 2013 22:48:58 -0800 (PST) In-Reply-To: <20131202062442.GA29869@opentech.at> References: <20131202062442.GA29869@opentech.at> Date: Mon, 02 Dec 2013 06:49:00 -0000 Message-ID: Subject: Re: reload .so without restarting process From: Hatt Tom To: Nicholas Mc Guire , gcc-help Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes X-SW-Source: 2013-12/txt/msg00013.txt.bz2 If I use dlsym() to load the address manually ,will GOT be needed any more ? 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!