From 87d018877b3322ca22d3faf52516cab5fab3dd28 Mon Sep 17 00:00:00 2001 From: Egor Sheremetov Date: Tue, 28 May 2024 14:21:24 +0200 Subject: [PATCH] Attempt to determine section boundaries at a compile-time --- runtime/gc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/gc.c b/runtime/gc.c index cbbc7e730..75ef2675e 100644 --- a/runtime/gc.c +++ b/runtime/gc.c @@ -26,7 +26,8 @@ static extra_roots_pool extra_roots; size_t __gc_stack_top = 0, __gc_stack_bottom = 0; #ifdef LAMA_ENV -extern const size_t __start_custom_data, __stop_custom_data; +extern const size_t __start_custom_data __asm("section$start$__DATA$custom_data"); +extern const size_t __stop_custom_data __asm("section$end$__DATA$custom_data"); #endif #ifdef DEBUG_VERSION