malloc: Simplify static malloc interposition [BZ #20432]master
commitef4f97648dc95849e417dd3e6328165de4c22185
authorFlorian Weimer <fweimer@redhat.com>
Fri, 26 Aug 2016 20:40:27 +0000 (26 22:40 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 26 Aug 2016 21:20:41 +0000 (26 23:20 +0200)
tree8d250b1f15efcb2d718939c8d75d732efa8e70c2
parent21e79af4cf72429f98480fa34912a4ce236b09a0
malloc: Simplify static malloc interposition [BZ #20432]

Existing interposed mallocs do not define the glibc-internal
fork callbacks (and they should not), so statically interposed
mallocs lead to link failures because the strong reference from
fork pulls in glibc's malloc, resulting in multiple definitions
of malloc-related symbols.
15 files changed:
ChangeLog
include/libc-symbols.h
malloc/Makefile
malloc/tst-interpose-aux-nothread.c [new file with mode: 0644]
malloc/tst-interpose-aux-thread.c [new file with mode: 0644]
malloc/tst-interpose-aux.c [new file with mode: 0644]
malloc/tst-interpose-aux.h [new file with mode: 0644]
malloc/tst-interpose-nothread.c [new file with mode: 0644]
malloc/tst-interpose-skeleton.c [new file with mode: 0644]
malloc/tst-interpose-static-nothread.c [new file with mode: 0644]
malloc/tst-interpose-static-thread.c [new file with mode: 0644]
malloc/tst-interpose-thread.c [new file with mode: 0644]
nptl/tst-tls3-malloc.c
sysdeps/mach/hurd/fork.c
sysdeps/nptl/fork.c