Replace all __attribute__((section(x)) with locate_data(x)

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2021-07-27 18:30:12 +08:00
committed by Gustavo Henrique Nihei
parent b3f9ffbe72
commit 007adc7736
74 changed files with 108 additions and 108 deletions
@@ -74,7 +74,7 @@ extern uint32_t _ebss; /* End+1 of .bss */
int CONFIG_USER_ENTRYPOINT(int argc, char *argv[]);
const struct userspace_s userspace __attribute__ ((section (".userspace"))) =
const struct userspace_s userspace locate_data(".userspace") =
{
/* General memory map */
@@ -28,7 +28,7 @@
* Public Data
****************************************************************************/
__attribute__((section(".boot_hdr.ivt")))
locate_data(".boot_hdr.ivt")
const struct ivt_s g_image_vector_table =
{
IVT_HEADER, /* IVT Header */
@@ -44,7 +44,7 @@ __attribute__((section(".boot_hdr.ivt")))
IVT_RSVD /* Reserved = 0 */
};
__attribute__((section(".boot_hdr.boot_data")))
locate_data(".boot_hdr.boot_data")
const struct boot_data_s g_boot_data =
{
IMAGE_DEST, /* boot start location */
@@ -29,7 +29,7 @@
****************************************************************************/
#if defined (CONFIG_TEENSY4_QSPI_FLASH)
__attribute__((section(".boot_hdr.conf")))
locate_data(".boot_hdr.conf")
const struct flexspi_nor_config_s g_flash_config =
{
.mem_config =