[compiler-rt] 4c7c3ea - [scudo] Do not define some entrypoints on Fuchsia (#191826)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 06:22:53 PDT 2026


Author: Fabio D'Urso
Date: 2026-04-14T15:22:48+02:00
New Revision: 4c7c3eaf3289845208942a10f8f7494880f93197

URL: https://github.com/llvm/llvm-project/commit/4c7c3eaf3289845208942a10f8f7494880f93197
DIFF: https://github.com/llvm/llvm-project/commit/4c7c3eaf3289845208942a10f8f7494880f93197.diff

LOG: [scudo] Do not define some entrypoints on Fuchsia (#191826)

These entrypoints were defined separately in wrappers_c_bionic.cpp
(which Fuchsia did not include in the build) before #190857 and,
therefore, were not exposed to Fuchsia's Scudo clients.

With #190857, they have been merged into the main wrappers_c.cpp file,
removing this separation.

This commit makes them conditionally-defined to not be building for
Fuchsia, to restore the pre-#190857 ABI.

Added: 
    

Modified: 
    compiler-rt/lib/scudo/standalone/wrappers_c.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/scudo/standalone/wrappers_c.cpp b/compiler-rt/lib/scudo/standalone/wrappers_c.cpp
index b8842f36e6fd6..573f0b7cda60f 100644
--- a/compiler-rt/lib/scudo/standalone/wrappers_c.cpp
+++ b/compiler-rt/lib/scudo/standalone/wrappers_c.cpp
@@ -425,6 +425,7 @@ SCUDO_PREFIX(malloc_set_add_large_allocation_slack)(int add_slack) {
 // Extra Internal functions.
 INTERFACE void __scudo_print_stats(void) { Allocator.printStats(); }
 
+#if !SCUDO_FUCHSIA
 INTERFACE void __scudo_get_error_info(
     struct scudo_error_info *error_info, uintptr_t fault_addr,
     const char *stack_depot, size_t stack_depot_size, const char *region_info,
@@ -458,5 +459,6 @@ INTERFACE const char *__scudo_get_ring_buffer_addr() {
 INTERFACE size_t __scudo_get_ring_buffer_size() {
   return Allocator.getRingBufferSize();
 }
+#endif
 
 } // extern "C"


        


More information about the llvm-commits mailing list