This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: The library interface again


> 
> 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:
> 

Please get

ftp://sunsite.unc.edu/pub/Linux/GCC/elf.ps.gz

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

http://www.cygnus.com/ml/egcs-patches/1998-Jun/0663.html

has more details on it. My patch encodes libc API, libstdc++ API and
C++ compiler interface in soname.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]