From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8594 invoked by alias); 18 Aug 2008 17:46:27 -0000 Received: (qmail 8585 invoked by uid 22791); 18 Aug 2008 17:46:26 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 18 Aug 2008 17:45:08 +0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1KV8ms-00035Z-Au for gcc-help@gcc.gnu.org; Mon, 18 Aug 2008 17:45:02 +0000 Received: from 59.93.71.239 ([59.93.71.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Aug 2008 17:45:02 +0000 Received: from harigov by 59.93.71.239 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Aug 2008 17:45:02 +0000 To: gcc-help@gcc.gnu.org From: Hari Subject: Renaming symbols in a shared library Date: Mon, 18 Aug 2008 19:00:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) X-IsSubscribed: yes 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 X-SW-Source: 2008-08/txt/msg00161.txt.bz2 Hello All, I have two versions of a same library that I want to load in the same address space. However, because the dependency is not direct, I cannot make use of dlopen to load the library. I require your inputs regarding other possible approaches to achieve this. Please note that the library is a third party library and I don't have its code to rebuild it. I think we can rename the symbols of a shared library, given just the shared library. Is that possible? If it is, can some one point to me a resource where I can learn to rename symbols of one version of a library? Is there any better approach? I am trying to find an approach that is portable to other systems. However, please do share any system specific approaches too, so that I can understand what are all the possible options. Thanks for your valuable time. Best Regards, Hari