Build error: TF-M build fails for gcc version 6.3 for CoreTest configuration
Open, NormalPublic

Description

build/app/s_veneers.o: section `.TFM_SP_CRYPTO_STACK' can't be allocated in segment 15
LOAD: .TFM_SP_PLATFORM_BSS .TFM_SP_CRYPTO_STACK
collect2: error: ld returned 1 exit status

matetothpal triaged this task as Normal priority.

If a section is empty, and '.' is aligned in the section, the gcc linker returns a warning.

To avoid this warning for the .text, .data and .bss sections of the secure partitions, the alignment of '.' have to be moved outside of the section.

This needs to be merged, it has been open for months and the issue is being reported by Summer as well.