musl - an implementation of the standard library for Linux-based systems
Go to file
Rich Felker c49d3c8ada avoid loading of multiple libc versions via explicit pathname
such loading is unsafe, and can happen when programs use their own
logic to locate a .so file then pass the absolute pathname to dlopen,
or if an absolute pathname ends up in DT_NEEDED headers. multiple
loads with only the base name were already precluded, provided libc
was named appropriately, by special-casing standard library names.

one function symbol (in the reserved namespace, but public, since it's
part of the crt1 entry point ABI) and one data symbol are checked.
this way we avoid likely false positives, particularly from libraries
interposing and wrapping functions. there is no hard requirement to
avoid breaking such usage, since trying to run a hook before libc is
even initialized is not a supported usage case, but it's friendlier
not to break things.
2017-03-14 18:51:27 -04:00
arch fix ld-behavior-dependent crash in ppc64 ldso startup 2017-03-08 13:35:33 -05:00
crt add s390x port 2016-11-11 23:06:21 -05:00
dist add another example option to dist/config.mak 2012-04-24 16:49:11 -04:00
include update tcp_info struct to linux v4.9 2016-12-29 22:11:01 -05:00
ldso avoid loading of multiple libc versions via explicit pathname 2017-03-14 18:51:27 -04:00
src fix one-byte overflow in legacy getpass function 2017-03-14 15:13:16 -04:00
tools add CFI generation script for x86_64 2015-10-13 18:09:46 -04:00
.gitignore remove obsolete gitignore rules 2016-07-06 00:21:25 -04:00
COPYRIGHT update COPYRIGHT file to clarify that permissions apply for all files 2016-04-28 20:41:45 -04:00
INSTALL update documentation files for mips64 port 2016-03-06 17:48:58 +00:00
Makefile deduplicate __NR_* and SYS_* syscall number definitions 2016-05-12 00:34:05 -05:00
README update version reference in the README file 2014-06-25 14:16:53 -04:00
VERSION release 1.1.16 2016-12-31 22:27:17 -05:00
WHATSNEW release 1.1.16 2016-12-31 22:27:17 -05:00
configure when building for arm as thumb2 code, also request assembly as thumb 2016-12-19 21:53:33 -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/