From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10778 invoked by alias); 11 Apr 2007 12:32:24 -0000 Received: (qmail 10768 invoked by uid 22791); 11 Apr 2007 12:32:23 -0000 X-Spam-Check-By: sourceware.org Received: from 195.22.55.53.adsl.nextra.cz (HELO host0.dyn.jankratochvil.net) (195.22.55.53) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 11 Apr 2007 13:32:13 +0100 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.13.8/8.13.8) with ESMTP id l3BCW9A8004178 for ; Wed, 11 Apr 2007 14:32:09 +0200 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.13.8/8.13.8/Submit) id l3BCW99U004177 for gdb-patches@sourceware.org; Wed, 11 Apr 2007 14:32:09 +0200 Date: Wed, 11 Apr 2007 12:32:00 -0000 From: Jan Kratochvil To: gdb-patches@sourceware.org Subject: [patch] libunwind: Use .so with its major version number Message-ID: <20070411123209.GA4123@host0.dyn.jankratochvil.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="OgqxwSJOaUobr8KG" Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00142.txt.bz2 --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-length: 456 Hi, GDB currently dlopen()s `libunwind-ia64.so': #define LIBUNWIND_SO "libunwind-" STRINGIFY(UNW_TARGET) ".so" and uses its symbol in a defined ABI way afterwards. This makes an incompatible ABI change impossible. `libunwind-ia64.so' should be used only for the build time while runtime should use `libunwind-ia64.so.7' in this case. libunwind author's approval: http://lists.gnu.org/archive/html/libunwind-devel/2007-04/msg00006.html Regards, Jan --OgqxwSJOaUobr8KG Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gdb-6.6-libunwind-major-version.patch" Content-length: 784 2007-04-11 Jan Kratochvil * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'. libunwind author's approval: http://lists.gnu.org/archive/html/libunwind-devel/2007-04/msg00006.html --- gdb-6.6-orig/gdb/libunwind-frame.c 2007-04-08 20:49:09.000000000 +0200 +++ gdb-6.6/gdb/libunwind-frame.c 2007-04-10 23:45:22.000000000 +0200 @@ -74,7 +74,9 @@ #define STRINGIFY(name) STRINGIFY2(name) #ifndef LIBUNWIND_SO -#define LIBUNWIND_SO "libunwind-" STRINGIFY(UNW_TARGET) ".so" +/* Use the stable ABI major version number. `libunwind-ia64.so' is a link time + only library, not a runtime one. */ +#define LIBUNWIND_SO "libunwind-" STRINGIFY(UNW_TARGET) ".so.7" #endif static char *get_reg_name = STRINGIFY(UNW_OBJ(get_reg)); --OgqxwSJOaUobr8KG--