musl - an implementation of the standard library for Linux-based systems
Go to file
Rich Felker 19caa25d0a remove undef weak refs to init/fini array symbols in libc.so
commit ad1cd43a86 eliminated
preprocessor-level omission of references to the init/fini array
symbols from object files going into libc.so. the references are weak,
and the intent was that the linker would resolve them to zero in
libc.so, but instead it leaves undefined references that could be
satisfied at runtime. normally these references would be harmless,
since the code using them does not even get executed, but some older
binutils versions produce a linking error: when linking a program
against libc.so, ld first tries to use the hidden init/fini array
symbols produced by the linker script to satisfy the references in
libc.so, then produces an error because the definitions are hidden.

ideally ld would have already provided definitions of these symbols
when linking libc.so, but the linker script for -shared omits them.

to avoid this situation, the dynamic linker now provides its own dummy
definitions of the init/fini array symbols for libc.so. since they are
hidden, everything binds at ld time and no references remain in the
dynamic symbol table. with modern binutils and --gc-sections, both
the dummy empty array objects and the code referencing them get
dropped at link time, anyway.

the _init and _fini symbols are also switched back to using weak
definitions rather than weak references since the latter behave
somewhat problematically in general, and the weak definition approach
was known to work well.
2015-11-19 22:10:55 -05:00
arch fix dynamic loader library mapping for nommu systems 2015-11-11 17:40:27 -05:00
crt explicitly assemble all arm asm sources as UAL 2015-11-10 00:01:55 -05:00
dist add another example option to dist/config.mak 2012-04-24 16:49:11 -04:00
include fix mismatched parens in CMPLX def for annex-g-conforming compilers 2015-11-02 21:44:57 -05:00
lib
src remove undef weak refs to init/fini array symbols in libc.so 2015-11-19 22:10:55 -05:00
tools add CFI generation script for x86_64 2015-10-13 18:09:46 -04:00
.gitignore add musl-clang, a wrapper for system clang installs 2015-07-06 23:52:16 +00:00
COPYRIGHT update authors/contributors list 2015-03-16 18:43:54 -04:00
INSTALL update notice on broken gcc versions in INSTALL file 2014-07-31 19:02:54 -04:00
Makefile fix build regression from removal of #ifdef SHARED 2015-11-18 19:00:44 -05:00
README update version reference in the README file 2014-06-25 14:16:53 -04:00
VERSION release 1.1.12 2015-10-19 19:12:57 -04:00
WHATSNEW release 1.1.12 2015-10-19 19:12:57 -04:00
configure work around toolchains with broken visibility in libgcc/libpcc 2015-11-07 20:23:49 -05:00

README

    musl libc

musl, pronounced like the word "mussel", is an MIT-licensed
implementation of the standard C library targetting the Linux syscall
API, suitable for use in a wide range of deployment environments. musl
offers efficient static and dynamic linking support, lightweight code
and low runtime overhead, strong fail-safe guarantees under correct
usage, and correctness in the sense of standards conformance and
safety. musl is built on the principle that these goals are best
achieved through simple code that is easy to understand and maintain.

The 1.1 release series for musl features coverage for all interfaces
defined in ISO C99 and POSIX 2008 base, along with a number of
non-standardized interfaces for compatibility with Linux, BSD, and
glibc functionality.

For basic installation instructions, see the included INSTALL file.
Information on full musl-targeted compiler toolchains, system
bootstrapping, and Linux distributions built on musl can be found on
the project website:

    http://www.musl-libc.org/