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