This is the mail archive of the
mailing list for the GCC project.
Re: The library interface again
- To: rth at cygnus dot com
- Subject: Re: The library interface again
- From: hjl at lucon dot org (H.J. Lu)
- Date: Mon, 27 Jul 1998 10:30:02 -0700 (PDT)
- Cc: law at cygnus dot com, egcs-patches at cygnus dot com
> On Mon, Jul 27, 1998 at 12:03:45AM -0600, Jeffrey A Law wrote:
> > Consider that the g++ driver just uses "-lstdc++" and folks that compile
> > and link with gcc are used to using "-lstdc++". This no longer works
> > as far as I can tell with your code.
> No, you misunderstand how ELF shared libraries work. Take, for example,
> the X11 libraries:
it should answer most of ELF questions from an ELF library developer.
> It is, in effect, a major/minor numbering scheme, but without any
> special number comparison logic -- everything is done with strings
> and symbolic links.
> What HJ is proposing, if I recall the patch properly (it has been
> a week or more since I looked at it), is to arrange for more
> specific minor numbering, so that we have better control over the
> ABI of the library.
> Correct me if I am wrong, HJ.
That is correct. The stdc++ library ABI for a given CPU is
The C Library API + The stdc++ Library API + C++ compiler interface
has more details on it. My patch encodes libc API, libstdc++ API and
C++ compiler interface in soname.