diff --git a/php/ext/google/protobuf/php-upb.c b/php/ext/google/protobuf/php-upb.c index d0ad43a9a8..a13812b57e 100644 --- a/php/ext/google/protobuf/php-upb.c +++ b/php/ext/google/protobuf/php-upb.c @@ -386,13 +386,13 @@ error UPB_TRACING_ENABLED Tracing should be disabled in production builds /* As described in: https://stackoverflow.com/a/22366882 */ #define UPB_LINKARR_APPEND(name) \ - __attribute__((retain, used, section("__DATA,la_" #name))) + __attribute__((retain, used, section("__DATA,__la_" #name))) #define UPB_LINKARR_DECLARE(name, type) \ extern type const __start_linkarr_##name __asm( \ - "section$start$__DATA$la_" #name); \ + "section$start$__DATA$__la_" #name); \ extern type const __stop_linkarr_##name __asm( \ "section$end$__DATA$" \ - "la_" #name); \ + "__la_" #name); \ UPB_LINKARR_APPEND(name) type UPB_linkarr_internal_empty_##name[1] #define UPB_LINKARR_START(name) (&__start_linkarr_##name) #define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name) diff --git a/php/ext/google/protobuf/php-upb.h b/php/ext/google/protobuf/php-upb.h index 1ead4e265f..0dd1e26d0e 100644 --- a/php/ext/google/protobuf/php-upb.h +++ b/php/ext/google/protobuf/php-upb.h @@ -385,13 +385,13 @@ error UPB_TRACING_ENABLED Tracing should be disabled in production builds /* As described in: https://stackoverflow.com/a/22366882 */ #define UPB_LINKARR_APPEND(name) \ - __attribute__((retain, used, section("__DATA,la_" #name))) + __attribute__((retain, used, section("__DATA,__la_" #name))) #define UPB_LINKARR_DECLARE(name, type) \ extern type const __start_linkarr_##name __asm( \ - "section$start$__DATA$la_" #name); \ + "section$start$__DATA$__la_" #name); \ extern type const __stop_linkarr_##name __asm( \ "section$end$__DATA$" \ - "la_" #name); \ + "__la_" #name); \ UPB_LINKARR_APPEND(name) type UPB_linkarr_internal_empty_##name[1] #define UPB_LINKARR_START(name) (&__start_linkarr_##name) #define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name) diff --git a/ruby/ext/google/protobuf_c/ruby-upb.c b/ruby/ext/google/protobuf_c/ruby-upb.c index 8e4c4bf5c5..4570ba9ec4 100644 --- a/ruby/ext/google/protobuf_c/ruby-upb.c +++ b/ruby/ext/google/protobuf_c/ruby-upb.c @@ -386,13 +386,13 @@ error UPB_TRACING_ENABLED Tracing should be disabled in production builds /* As described in: https://stackoverflow.com/a/22366882 */ #define UPB_LINKARR_APPEND(name) \ - __attribute__((retain, used, section("__DATA,la_" #name))) + __attribute__((retain, used, section("__DATA,__la_" #name))) #define UPB_LINKARR_DECLARE(name, type) \ extern type const __start_linkarr_##name __asm( \ - "section$start$__DATA$la_" #name); \ + "section$start$__DATA$__la_" #name); \ extern type const __stop_linkarr_##name __asm( \ "section$end$__DATA$" \ - "la_" #name); \ + "__la_" #name); \ UPB_LINKARR_APPEND(name) type UPB_linkarr_internal_empty_##name[1] #define UPB_LINKARR_START(name) (&__start_linkarr_##name) #define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name) diff --git a/ruby/ext/google/protobuf_c/ruby-upb.h b/ruby/ext/google/protobuf_c/ruby-upb.h index f1c7993569..a2a5f06356 100755 --- a/ruby/ext/google/protobuf_c/ruby-upb.h +++ b/ruby/ext/google/protobuf_c/ruby-upb.h @@ -387,13 +387,13 @@ error UPB_TRACING_ENABLED Tracing should be disabled in production builds /* As described in: https://stackoverflow.com/a/22366882 */ #define UPB_LINKARR_APPEND(name) \ - __attribute__((retain, used, section("__DATA,la_" #name))) + __attribute__((retain, used, section("__DATA,__la_" #name))) #define UPB_LINKARR_DECLARE(name, type) \ extern type const __start_linkarr_##name __asm( \ - "section$start$__DATA$la_" #name); \ + "section$start$__DATA$__la_" #name); \ extern type const __stop_linkarr_##name __asm( \ "section$end$__DATA$" \ - "la_" #name); \ + "__la_" #name); \ UPB_LINKARR_APPEND(name) type UPB_linkarr_internal_empty_##name[1] #define UPB_LINKARR_START(name) (&__start_linkarr_##name) #define UPB_LINKARR_STOP(name) (&__stop_linkarr_##name)