1 // Copyright 2024 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // In due course we may need to replicate more of the complexity from 6 // base/allocator/partition_allocator/src/partition_alloc/ 7 // shim/allocator_shim_internals.h 8 // but as we're targeting just libfuzzer Linux builds, perhaps we don't need 9 // it. 10 11 #if defined(__clang__) 12 __attribute__((visibility("default"), noinline)) 13 #endif __wrap_dlclose(void * handle)14void __wrap_dlclose(void *handle) { 15 // Do nothing. We don't want to call the real dlclose on libfuzzer builds. 16 } 17