glibc/sysdeps
Florian Weimer 3a0ecccb59 ld.so: Do not export free/calloc/malloc/realloc functions [BZ #25486]
Exporting functions and relying on symbol interposition from libc.so
makes the choice of implementation dependent on DT_NEEDED order, which
is not what some compiler drivers expect.

This commit replaces one magic mechanism (symbol interposition) with
another one (preprocessor-/compiler-based redirection).  This makes
the hand-over from the minimal malloc to the full malloc more
explicit.

Removing the ABI symbols is backwards-compatible because libc.so is
always in scope, and the dynamic loader will find the malloc-related
symbols there since commit f0b2132b35
("ld.so: Support moving versioned symbols between sonames
[BZ #24741]").

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
2020-02-15 11:01:23 +01:00
..
aarch64 nptl: add missing pthread-offsets.h 2020-02-10 17:01:21 +01:00
alpha nptl: add missing pthread-offsets.h 2020-02-10 17:01:21 +01:00
arm Add libm_alias_finite for _finite symbols 2020-01-03 10:02:04 -03:00
csky linux: Remove INTERNAL_SYSCALL_DECL 2020-02-14 21:12:45 -03:00
generic ld.so: Do not export free/calloc/malloc/realloc functions [BZ #25486] 2020-02-15 11:01:23 +01:00
gnu Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
hppa Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
htl htl C11 threads: Avoid pthread_ symbols visibility in static library 2020-02-10 23:45:23 +00:00
hurd C11 threads: Move implementation to sysdeps/pthread 2020-02-09 13:56:48 +01:00
i386 linux: Remove INTERNAL_SYSCALL_DECL 2020-02-14 21:12:45 -03:00
ia64 nptl: add missing pthread-offsets.h 2020-02-10 17:01:21 +01:00
ieee754 ldbl-128ibm-compat: Provide a scalb implementation 2020-02-14 08:24:56 -06:00
init_array Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
m68k linux: Remove INTERNAL_SYSCALL_DECL 2020-02-14 21:12:45 -03:00
mach ld.so: Do not export free/calloc/malloc/realloc functions [BZ #25486] 2020-02-15 11:01:23 +01:00
microblaze Linux: Use system call tables during build 2020-01-02 10:18:23 +01:00
mips linux: Remove INTERNAL_SYSCALL_DECL 2020-02-14 21:12:45 -03:00
nios2 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nptl linux: Remove INTERNAL_SYSCALL_DECL 2020-02-14 21:12:45 -03:00
posix nss: Add function types and NSS_DECLARE_MODULE_FUNCTIONS macro to <nss.h> 2020-02-13 09:14:40 +01:00
powerpc linux: Remove INTERNAL_SYSCALL_DECL 2020-02-14 21:12:45 -03:00
pthread pthread: Move some join tests from nptl to sysdeps/pthread 2020-02-10 01:21:46 +00:00
riscv nptl: add missing pthread-offsets.h 2020-02-10 17:01:21 +01:00
s390 S390: Fix non-ascii character in fenv.h. 2020-02-12 09:10:56 +01:00
sh linux: Consolidate INLINE_SYSCALL 2020-02-14 21:09:12 -03:00
sparc linux: Consolidate INLINE_SYSCALL 2020-02-14 21:09:12 -03:00
unix ld.so: Do not export free/calloc/malloc/realloc functions [BZ #25486] 2020-02-15 11:01:23 +01:00
wordsize-32 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
wordsize-64 Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
x86 x86: Remove <bits/select.h> and use the generic version 2020-02-09 14:02:27 +01:00
x86_64 ld.so: Do not export free/calloc/malloc/realloc functions [BZ #25486] 2020-02-15 11:01:23 +01:00