From ef3a57850399eda588182a6ccc7b5595ca7e5b2d Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Wed, 23 Jan 2019 11:05:50 +0000 Subject: [PATCH] Allow __je_bootstrap methods to not be compiled The __je_bootstrap.. allocator methods can be specified that they shouldn't be compiled using NO_BOOTSTRAP_ALLOCATION. --- src/override/malloc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/override/malloc.cc b/src/override/malloc.cc index 0d9e9a1..09b0436 100644 --- a/src/override/malloc.cc +++ b/src/override/malloc.cc @@ -201,7 +201,7 @@ extern "C" return ENOENT; } -#ifndef __PIC__ +#if !defined(__PIC__) && !defined(NO_BOOTSTRAP_ALLOCATOR) // The following functions are required to work before TLS is set up, in // statically-linked programs. These temporarily grab an allocator from the // pool and return it.