mailing list of musl libc
 help / color / mirror / code / Atom feed
* Missing symbols for supporting glibc-built libstdc++.so.6
@ 2013-07-24  7:55 Rich Felker
  2013-07-24 14:20 ` orc
  0 siblings, 1 reply; 5+ messages in thread
From: Rich Felker @ 2013-07-24  7:55 UTC (permalink / raw)
  To: musl

As of now, C++ programs/libraries linked against glibc should work
with musl as long as a musl-built version of libstdc++.so is available
in place of the glibc-built one. The only remaining type that does not
match glibc, in the full C++ name-mangling sense of matching, is
fd_mask. (This type is not really intended to be public, and glibc
will probably change it to match musl's definition after 2.18 is
released.)

However, the glibc-built libstdc++.so.6 still has a few unsatisfied
symbol references:

* __-prefixed versions of the *_l locale functions.

* Some nonstandard *_l locale functions.

* All the "xstat" functions (glibc's pre-symbol-versioning hack for
  ABI stability of stat()).

* The gettext interfaces.

Of these, all but gettext are fairly trivial to add. I'm still
undecided on whether libc should have an implementation of gettext,
but I am confident the size could be made trivial.

The advantage of getting the glibc-built libstdc++ working with musl
is that the musl-gcc wrapper could be used to build C++ programs too,
not just C. This is particularly important now that new GCC versions
are using C++ code; without the ability to use the existing libstdc++,
an earlier GCC version must first be built to bootstrap a musl-based
compiler.

Rich


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-07-24 16:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-24  7:55 Missing symbols for supporting glibc-built libstdc++.so.6 Rich Felker
2013-07-24 14:20 ` orc
2013-07-24 14:47   ` Rich Felker
2013-07-24 15:36     ` orc
2013-07-24 16:01       ` Rich Felker

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).