]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add workaround for jemalloc linking order
authorOndřej Surý <ondrej@isc.org>
Thu, 21 Dec 2023 10:12:54 +0000 (11:12 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 18 Jan 2024 08:34:36 +0000 (09:34 +0100)
commit41a0ee10717a5afaa2bfdd0225245feecc09eea9
treeae11e5fba77c19e6fb0b68c0a51f7a056c70e80f
parent2ff908026ddc4caf6ee107413a78f74d7236eaef
Add workaround for jemalloc linking order

Because we don't use jemalloc functions directly, but only via the
libisc library, the dynamic linker might pull the jemalloc library
too late when memory has been already allocated via standard libc
allocator.

Add a workaround round isc_mem_create() that makes the dynamic linker
to pull jemalloc earlier than libc.
Makefile.top
lib/isc/include/isc/mem.h
lib/isc/mem.c
tests/libtest/dns.c