public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: "H. J. Lu" <hjl@lucon.org>
To: Mark Mitchell <mark@codesourcery.com>
Cc: Daniel Jacobowitz <drow@false.org>,
	Gabriel Dos Reis <gdr@integrable-solutions.net>,
	Jim Wilson <wilson@specifixinc.com>,
	David Mosberger <davidm@hpl.hp.com>,
	gcc@gcc.gnu.org
Subject: Re: versioning of _Unwind_*() symbols
Date: Thu, 22 Apr 2004 15:47:00 -0000	[thread overview]
Message-ID: <20040422154204.GA8290@lucon.org> (raw)
In-Reply-To: <4086E403.7070308@codesourcery.com>

On Wed, Apr 21, 2004 at 02:13:39PM -0700, Mark Mitchell wrote:
> H. J. Lu wrote:
> 
> >>Since GCC has never provided this library, there are going to be 
> >>challenges here.
> >>
> >>The first step is to undo the versioning mistake.  That's a sine qua non 
> >>for anything else.  After that, someone should implement libcxa.so.  
> >>Probably, libgcc will need to depend on it, since existing programs 
> >>expect libgcc to provide these interfaces.
> >>   
> >>
> >
> >Where do those versioned definitions for backward compatibilty come
> >from? Should we consider libgcc_s.so.2?
> > 
> >
> Maybe.  If we split out the C++ support into libcxa.so at that time we 
> could perhaps  clean up some of this mess.  The way it should be is that 
> libcxa.so should contain the C++ ABI stuff, and libgcc_s.so should 
> contain stuff like math support functions and the exception personality 
> routines.
> 

If C++ ABI only specifies the shared unwind library, compilers have
less control over what unwind library will be used by executable. Also
it is good for compiler vendors since they don't have to ship their
own unwind libraries and use the standard one instead. So it is more an
issue that different compilers don't have to use their own unwind
libraries and use the standard one instead than different compilers can
use their own unwind libraries. Basically, the unwind library can be
treated as the C library. That is any C++ ABI compliant unwind library
should work with any C++ ABI compliant compilers. There is no strong
reason for a C++ ABI compliant compiler to ship their own unwind
library if there is a C++ ABI compliant system unwind library.

Assuming the unwind library will be a standard library like the C
library, symbol versioning will be a good thing for the standard
library. But it shouldn't use version name like GCC or GLIBC.


H.J.

  parent reply	other threads:[~2004-04-22 15:42 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-19 18:48 David Mosberger
2004-04-20 23:21 ` Jim Wilson
2004-04-20 23:28   ` David Mosberger
2004-04-21  0:25     ` Jim Wilson
2004-04-20 23:41   ` H. J. Lu
2004-04-20 23:51     ` David Mosberger
2004-04-20 23:52       ` H. J. Lu
2004-04-21  0:19         ` David Mosberger
2004-04-21  0:44           ` Jim Wilson
2004-04-21  1:24             ` Daniel Jacobowitz
2004-04-21  1:46               ` Jim Wilson
2004-04-21  2:09                 ` David Mosberger
2004-04-21  4:44                   ` Daniel Jacobowitz
2004-04-21  2:21                 ` Gabriel Dos Reis
2004-04-21 18:26                   ` Mark Mitchell
2004-04-21 19:17                     ` H. J. Lu
2004-04-21 19:20                       ` Mark Mitchell
2004-04-21 19:34                         ` Daniel Jacobowitz
2004-04-21 20:05                           ` Mark Mitchell
2004-04-21 20:18                             ` H. J. Lu
2004-04-21 21:13                               ` Mark Mitchell
2004-04-21 21:13                                 ` H. J. Lu
2004-04-21 21:22                                   ` Mark Mitchell
2004-04-21 21:43                                     ` H. J. Lu
2004-04-22 15:47                                     ` H. J. Lu [this message]
2004-04-22 17:07                                       ` Mark Mitchell
2004-04-22 17:22                                         ` H. J. Lu
2004-04-22 17:28                                           ` Mark Mitchell
2004-04-22 17:29                                             ` H. J. Lu
2004-04-22 17:46                                               ` Mark Mitchell
2004-04-22 17:59                                                 ` H. J. Lu
2004-04-22 18:07                                                   ` Mark Mitchell
2004-04-22 18:54                                                     ` H. J. Lu
2004-04-22 21:48                                                       ` Mark Mitchell
2004-04-22 23:03                                                         ` H. J. Lu
2004-04-22 23:15                                                           ` David Mosberger
2004-04-22 23:34                                                             ` H. J. Lu
2004-04-22 23:36                                                               ` David Mosberger
2004-04-23  1:15                                                                 ` H. J. Lu
2004-04-22 23:50                                                               ` Daniel Jacobowitz
2004-04-22 23:59                                                                 ` David Mosberger
2004-04-23  1:37                                                                   ` H. J. Lu
2004-04-23  2:30                                                                     ` David Mosberger
2004-04-22 19:22                                         ` David Mosberger
2004-04-22 21:39                                           ` Mark Mitchell
2004-04-21 19:36                         ` H. J. Lu
2004-04-21 20:18                           ` Mark Mitchell
2004-04-21  1:39             ` H. J. Lu
2004-04-21  6:09             ` PATCH: Put libunwind.a in libgcc_s.so: " H. J. Lu
2004-04-21  6:53               ` David Mosberger
2004-04-21  7:04               ` Jim Wilson
2004-04-21 15:10                 ` H. J. Lu
2004-04-21 16:12                   ` David Mosberger
2004-04-21 16:44                     ` H. J. Lu
2004-04-21 16:49                       ` David Mosberger
2004-04-21 17:54                         ` H. J. Lu
2004-04-21 18:16                           ` David Mosberger
2004-04-21 20:52                       ` Jim Wilson
2004-04-21  9:36               ` Arnaud Charlet
2004-04-21 14:43                 ` H. J. Lu
2004-04-21 15:22                   ` Arnaud Charlet
2004-04-21 17:11                     ` Removing gthr-gnat.c? H. J. Lu
2004-04-22  8:18                       ` Arnaud Charlet
2004-04-23  2:46                   ` PATCH: Put libunwind.a in libgcc_s.so: versioning of _Unwind_*() symbols Jim Wilson
2004-04-23  7:42                     ` Arnaud Charlet
2004-04-24  0:41                       ` Jim Wilson
2004-04-24 12:12                         ` Arnaud Charlet
2004-04-27  6:31                           ` Jim Wilson
2004-04-27 10:24                             ` Arnaud Charlet

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=20040422154204.GA8290@lucon.org \
    --to=hjl@lucon.org \
    --cc=davidm@hpl.hp.com \
    --cc=drow@false.org \
    --cc=gcc@gcc.gnu.org \
    --cc=gdr@integrable-solutions.net \
    --cc=mark@codesourcery.com \
    --cc=wilson@specifixinc.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).