Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: gdb-patches@sourceware.org
Subject: [patch] libunwind: Use .so with its major version number
Date: Wed, 11 Apr 2007 12:32:00 -0000	[thread overview]
Message-ID: <20070411123209.GA4123@host0.dyn.jankratochvil.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 456 bytes --]

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

[-- Attachment #2: gdb-6.6-libunwind-major-version.patch --]
[-- Type: text/plain, Size: 784 bytes --]

2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>

	* 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));

             reply	other threads:[~2007-04-11 12:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-11 12:32 Jan Kratochvil [this message]
2007-04-11 14:53 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070411123209.GA4123@host0.dyn.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox