diff --git a/examples/arm/executor_runner/Corstone-300.ld b/examples/arm/executor_runner/Corstone-300.ld index 3901d080000..e09cbb6f1ac 100644 --- a/examples/arm/executor_runner/Corstone-300.ld +++ b/examples/arm/executor_runner/Corstone-300.ld @@ -278,8 +278,8 @@ SECTIONS .ddr.bss (NOLOAD) : { . = ALIGN(16); - *(input_file_allocator_sec) - *(method_allocator_sec) + *(.bss.input_file_allocator_sec) + *(.bss.method_allocator_sec) #if (ETHOSU_ARENA == 1) . = ALIGN(32); *(.bss.tensor_arena) diff --git a/examples/arm/executor_runner/Corstone-320.ld b/examples/arm/executor_runner/Corstone-320.ld index 4edbe8d536b..8949113ee61 100644 --- a/examples/arm/executor_runner/Corstone-320.ld +++ b/examples/arm/executor_runner/Corstone-320.ld @@ -264,6 +264,8 @@ SECTIONS .ddr.bss (NOLOAD) : { . = ALIGN(16); + *(.bss.input_file_allocator_sec) + *(.bss.method_allocator_sec) *(input_file_allocator_sec) *(method_allocator_sec) #if (ETHOSU_ARENA == 1) diff --git a/examples/arm/executor_runner/arm_executor_runner.cpp b/examples/arm/executor_runner/arm_executor_runner.cpp index 904d3650fc6..bf6ac16506b 100644 --- a/examples/arm/executor_runner/arm_executor_runner.cpp +++ b/examples/arm/executor_runner/arm_executor_runner.cpp @@ -164,7 +164,7 @@ using printf_size_t = unsigned long; const size_t input_file_allocation_pool_size = ET_ARM_BAREMETAL_SEMIHOSTING_FILE_ALLOCATOR_POOL_SIZE; unsigned char __attribute__(( - section("input_file_allocator_sec"), + section(".bss.input_file_allocator_sec"), aligned(16))) input_file_allocation_pool[input_file_allocation_pool_size]; #endif @@ -232,7 +232,7 @@ using torch::executor::etdump_result; const size_t method_allocation_pool_size = ET_ARM_BAREMETAL_METHOD_ALLOCATOR_POOL_SIZE; unsigned char __attribute__(( - section("method_allocator_sec"), + section(".bss.method_allocator_sec"), aligned(16))) method_allocation_pool[method_allocation_pool_size]; #if defined(ET_BUNDLE_IO)