diff --git a/bsp/dm365/applications/board.c b/bsp/dm365/applications/board.c index 0ed0b6ff64..53b45c875e 100644 --- a/bsp/dm365/applications/board.c +++ b/bsp/dm365/applications/board.c @@ -41,7 +41,7 @@ rt_uint8_t _fiq_stack_start[1024]; rt_uint8_t _undefined_stack_start[512]; rt_uint8_t _abort_stack_start[512]; - rt_uint8_t _svc_stack_start[1024] SECTION(".nobss"); + rt_uint8_t _svc_stack_start[1024] RT_SECTION(".nobss"); extern unsigned char __bss_start; extern unsigned char __bss_end; #endif diff --git a/bsp/fh8620/platform/fh8620/iot_cam/startup.c b/bsp/fh8620/platform/fh8620/iot_cam/startup.c index 6f5cd6defa..ebadf0677b 100644 --- a/bsp/fh8620/platform/fh8620/iot_cam/startup.c +++ b/bsp/fh8620/platform/fh8620/iot_cam/startup.c @@ -63,7 +63,7 @@ rt_uint8_t _irq_stack_start[1024]; rt_uint8_t _fiq_stack_start[1024]; rt_uint8_t _undefined_stack_start[512]; rt_uint8_t _abort_stack_start[512]; -rt_uint8_t _svc_stack_start[4096] SECTION(".nobss"); +rt_uint8_t _svc_stack_start[4096] RT_SECTION(".nobss"); extern unsigned char __bss_start; extern unsigned char __bss_end; diff --git a/bsp/imxrt/libraries/drivers/drv_lcd.c b/bsp/imxrt/libraries/drivers/drv_lcd.c index 4766eb9534..3d2ca8a055 100644 --- a/bsp/imxrt/libraries/drivers/drv_lcd.c +++ b/bsp/imxrt/libraries/drivers/drv_lcd.c @@ -46,7 +46,7 @@ struct imxrt_lcd }; static struct imxrt_lcd lcd; -ALIGN(64) static uint16_t frame_buffer[LCD_HEIGHT][LCD_WIDTH] SECTION("NonCacheable"); +ALIGN(64) static uint16_t frame_buffer[LCD_HEIGHT][LCD_WIDTH] RT_SECTION("NonCacheable"); static rt_err_t imxrt_lcd_init(rt_device_t device) { diff --git a/bsp/imxrt/libraries/drivers/drv_sdio.c b/bsp/imxrt/libraries/drivers/drv_sdio.c index a620bf65dd..5683154410 100644 --- a/bsp/imxrt/libraries/drivers/drv_sdio.c +++ b/bsp/imxrt/libraries/drivers/drv_sdio.c @@ -61,7 +61,7 @@ static int enable_log = 1; /* Endian mode. */ #define USDHC_ENDIAN_MODE kUSDHC_EndianModeLittle -ALIGN(USDHC_ADMA2_ADDR_ALIGN) uint32_t g_usdhcAdma2Table[USDHC_ADMA_TABLE_WORDS] SECTION("NonCacheable"); +ALIGN(USDHC_ADMA2_ADDR_ALIGN) uint32_t g_usdhcAdma2Table[USDHC_ADMA_TABLE_WORDS] RT_SECTION("NonCacheable"); struct imxrt_mmcsd { diff --git a/bsp/lpc43xx/M0/applications/vbus_drv.c b/bsp/lpc43xx/M0/applications/vbus_drv.c index 88d5321b30..696535247f 100644 --- a/bsp/lpc43xx/M0/applications/vbus_drv.c +++ b/bsp/lpc43xx/M0/applications/vbus_drv.c @@ -14,7 +14,7 @@ #include #include -struct rt_vbus_ring rt_vbus_rings[2] SECTION("vbus_ring"); +struct rt_vbus_ring rt_vbus_rings[2] RT_SECTION("vbus_ring"); int rt_vbus_do_init(void) { diff --git a/bsp/lpc43xx/M4/applications/application.c b/bsp/lpc43xx/M4/applications/application.c index 1c31c9da73..8fb1a4ae83 100644 --- a/bsp/lpc43xx/M4/applications/application.c +++ b/bsp/lpc43xx/M4/applications/application.c @@ -22,7 +22,7 @@ #include #endif -static const unsigned char _M0_CODE[] SECTION("M0_CODE") = { +static const unsigned char _M0_CODE[] RT_SECTION("M0_CODE") = { #include "M0_CODE.h" }; diff --git a/bsp/lpc43xx/M4/applications/vbus_drv.c b/bsp/lpc43xx/M4/applications/vbus_drv.c index bd3ae03adb..09fd2373c4 100644 --- a/bsp/lpc43xx/M4/applications/vbus_drv.c +++ b/bsp/lpc43xx/M4/applications/vbus_drv.c @@ -14,7 +14,7 @@ #include #include -struct rt_vbus_ring rt_vbus_rings[2] SECTION("vbus_ring"); +struct rt_vbus_ring rt_vbus_rings[2] RT_SECTION("vbus_ring"); int rt_vbus_do_init(void) { diff --git a/bsp/lpc43xx/drivers/drv_emac.c b/bsp/lpc43xx/drivers/drv_emac.c index d1f02af768..b8875c340c 100644 --- a/bsp/lpc43xx/drivers/drv_emac.c +++ b/bsp/lpc43xx/drivers/drv_emac.c @@ -20,7 +20,7 @@ #define EMAC_PHY_100MBIT 2 #define MAX_ADDR_LEN 6 -static rt_uint32_t ETH_RAM_BASE[4 * 1024] SECTION("ETH_RAM"); +static rt_uint32_t ETH_RAM_BASE[4 * 1024] RT_SECTION("ETH_RAM"); /* EMAC variables located in 16K Ethernet SRAM */ #define RX_DESC_BASE (uint32_t)Ð_RAM_BASE[0] diff --git a/bsp/mini2440/drivers/board.c b/bsp/mini2440/drivers/board.c index 48df4a3e87..afe190e1cf 100644 --- a/bsp/mini2440/drivers/board.c +++ b/bsp/mini2440/drivers/board.c @@ -35,7 +35,7 @@ rt_uint8_t _fiq_stack_start[1024]; rt_uint8_t _undefined_stack_start[512]; rt_uint8_t _abort_stack_start[512]; - rt_uint8_t _svc_stack_start[4096] SECTION(".nobss"); + rt_uint8_t _svc_stack_start[4096] RT_SECTION(".nobss"); #endif #if defined(__CC_ARM) diff --git a/bsp/sep6200/application/startup.c b/bsp/sep6200/application/startup.c index e714675699..78b9c30c5f 100644 --- a/bsp/sep6200/application/startup.c +++ b/bsp/sep6200/application/startup.c @@ -42,7 +42,7 @@ rt_uint8_t _irq_stack_start[1024]; rt_uint8_t _fiq_stack_start[1024]; rt_uint8_t _undefined_stack_start[512]; rt_uint8_t _abort_stack_start[512]; -rt_uint8_t _priv_stack_start[4096]; SECTION(".nobss"); +rt_uint8_t _priv_stack_start[4096]; RT_SECTION(".nobss"); extern unsigned char __bss_start; extern unsigned char __bss_end;