diff --git a/compiler-rt/lib/orc/macho_platform.cpp b/compiler-rt/lib/orc/macho_platform.cpp index cd6fbcfe463f8..c9792f3a7599a 100644 --- a/compiler-rt/lib/orc/macho_platform.cpp +++ b/compiler-rt/lib/orc/macho_platform.cpp @@ -25,9 +25,14 @@ using namespace __orc_rt; using namespace __orc_rt::macho; // Declare function tags for functions in the JIT process. -extern "C" char __orc_rt_macho_get_initializers_tag = 0; -extern "C" char __orc_rt_macho_get_deinitializers_tag = 0; -extern "C" char __orc_rt_macho_symbol_lookup_tag = 0; +extern "C" char __orc_rt_macho_get_initializers_tag; +char __orc_rt_macho_get_initializers_tag = 0; + +extern "C" char __orc_rt_macho_get_deinitializers_tag; +char __orc_rt_macho_get_deinitializers_tag = 0; + +extern "C" char __orc_rt_macho_symbol_lookup_tag; +char __orc_rt_macho_symbol_lookup_tag = 0; // eh-frame registration functions. // We expect these to be available for all processes.