diff --git a/soc/riscv/espressif_esp32/esp32c3/default.ld b/soc/riscv/espressif_esp32/esp32c3/default.ld index 9fb9f0c1ab0..0965036fb42 100644 --- a/soc/riscv/espressif_esp32/esp32c3/default.ld +++ b/soc/riscv/espressif_esp32/esp32c3/default.ld @@ -197,6 +197,7 @@ SECTIONS #include #include #include + #include /* Create an explicit section at the end of all the data that shall be mapped into drom. * This is used to calculate the size of the _image_drom_size variable */ @@ -311,8 +312,6 @@ SECTIONS . = ALIGN(4); } GROUP_LINK_IN(RAMABLE_REGION) - #include - .dram0.data : { . = ALIGN(4); diff --git a/soc/xtensa/espressif_esp32/esp32/default.ld b/soc/xtensa/espressif_esp32/esp32/default.ld index ddc95c4527f..20dc3c28ef5 100644 --- a/soc/xtensa/espressif_esp32/esp32/default.ld +++ b/soc/xtensa/espressif_esp32/esp32/default.ld @@ -221,6 +221,7 @@ SECTIONS #include #include #include + #include /* Create an explicit section at the end of all the data that shall be mapped into drom. * This is used to calculate the size of the _image_drom_size variable */ @@ -234,8 +235,6 @@ SECTIONS _image_dram_size = LOADADDR(.dram0.end) + SIZEOF(.dram0.end) - _image_dram_start; _image_dram_vaddr = ADDR(.dram0.data); - #include - .dram0.data : { __data_start = ABSOLUTE(.); diff --git a/soc/xtensa/espressif_esp32/esp32_net/linker.ld b/soc/xtensa/espressif_esp32/esp32_net/linker.ld index 2b815957e84..69a4c48ef78 100644 --- a/soc/xtensa/espressif_esp32/esp32_net/linker.ld +++ b/soc/xtensa/espressif_esp32/esp32_net/linker.ld @@ -212,6 +212,7 @@ SECTIONS #include #include #include + #include /* Create an explicit section at the end of all the data that shall be mapped into drom. * This is used to calculate the size of the _image_drom_size variable */ @@ -225,8 +226,6 @@ SECTIONS _image_dram_size = LOADADDR(.dram0.end) + SIZEOF(.dram0.end) - _image_dram_start; _image_dram_vaddr = ADDR(.dram0.data); - #include - .dram0.data : { __data_start = ABSOLUTE(.); diff --git a/soc/xtensa/espressif_esp32/esp32s2/default.ld b/soc/xtensa/espressif_esp32/esp32s2/default.ld index 35e2889db56..4ef27a6384c 100644 --- a/soc/xtensa/espressif_esp32/esp32s2/default.ld +++ b/soc/xtensa/espressif_esp32/esp32s2/default.ld @@ -192,6 +192,7 @@ SECTIONS #include #include #include + #include /* Create an explicit section at the end of all the data that shall be mapped into drom. * This is used to calculate the size of the _image_drom_size variable */ @@ -363,8 +364,6 @@ SECTIONS . = ALIGN(8); } GROUP_LINK_IN(RAMABLE_REGION) -#include - .dram0.data : { . = ALIGN (8); diff --git a/soc/xtensa/espressif_esp32/esp32s3/default.ld b/soc/xtensa/espressif_esp32/esp32s3/default.ld index c9bab6f3cad..36944d69c60 100644 --- a/soc/xtensa/espressif_esp32/esp32s3/default.ld +++ b/soc/xtensa/espressif_esp32/esp32s3/default.ld @@ -229,6 +229,7 @@ SECTIONS #include #include #include + #include /* Create an explicit section at the end of all the data that shall be mapped into drom. * This is used to calculate the size of the _image_drom_size variable */ @@ -426,8 +427,6 @@ SECTIONS . = ALIGN(8) ; } GROUP_LINK_IN(RAMABLE_REGION) -#include - .dram0.data : { . = ALIGN (8);