Merge pull request #2299 from openmv/common_ld_fix

misc: Update common linker script.
This commit is contained in:
Ibrahim Abdelkader 2024-07-19 10:17:07 +02:00 committed by GitHub
commit 4a036f6059
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,22 +123,23 @@ PROVIDE(__stack = __StackTop);
/* Open-AMP Shared Memory Region */
#if defined(OMV_OPENAMP_MEMORY)
.openamp_memory (NOLOAD) : ALIGN(4)
.openamp_memory (NOLOAD) : ALIGN(32)
{
_openamp_shm_region_start = .;
. = . + OMV_OPENAMP_SIZE;
_openamp_shm_region_end = .;
. = OMV_ALIGN_DMA_SECTION(.openamp_memory);
} >OMV_OPENAMP_MEMORY
#endif
/* Memory for the second core */
#if defined(OMV_CORE1_MEMORY)
.core1_memory (NOLOAD) : ALIGN(4)
.core1_memory (NOLOAD) : ALIGN(32)
{
_core1_memory_start = .;
. = . + OMV_CORE1_SIZE;
_core1_memory_end = .;
_core1_memory_end = .;
. = OMV_ALIGN_DMA_SECTION(.core1_memory);
} >OMV_CORE1_MEMORY
#endif