]> git.ipfire.org Git - thirdparty/glibc.git/commit
malloc: Simplify static malloc interposition [BZ #20432]
authorFlorian Weimer <fweimer@redhat.com>
Fri, 26 Aug 2016 20:40:27 +0000 (22:40 +0200)
committerTulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
Fri, 26 May 2017 19:09:27 +0000 (16:09 -0300)
commit2667457e45fda874afae5ebe3fe37bc74dbc7202
tree4bd8154db54aa6793cd02050296b36c591484e6f
parent6d03be1cb5836205e5d1b14da71ff5579b161267
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.

(cherry picked from commit ef4f97648dc95849e417dd3e6328165de4c22185)

Conflicts:
nptl/tst-tls3-malloc.c
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]
sysdeps/mach/hurd/fork.c
sysdeps/nptl/fork.c