Attempt to determine section boundaries at a compile-time

This commit is contained in:
Egor Sheremetov 2024-05-28 14:21:24 +02:00 committed by Roman Venediktov
parent d6a2fadda1
commit 87d018877b

View file

@ -26,7 +26,8 @@ static extra_roots_pool extra_roots;
size_t __gc_stack_top = 0, __gc_stack_bottom = 0; size_t __gc_stack_top = 0, __gc_stack_bottom = 0;
#ifdef LAMA_ENV #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 #endif
#ifdef DEBUG_VERSION #ifdef DEBUG_VERSION