esp32.project.ld , changing order of data in segment
Posted: Thu Sep 26, 2019 3:18 pm
I want to have
.noinit (NOLOAD):
{
. = ALIGN(4);
_noinit_start = ABSOLUTE(.);
*(.noinit .noinit.*)
. = ALIGN(4) ;
_noinit_end = ABSOLUTE(.);
} > dram0_0_seg
go ahead of
.dram0.data :
{ ...
}
in the linking of my application.
I see during the build process that esp32.project.ld.in is being copied into the output folder and renamed to esp32.project.ld, which is then used for linking.
I didnt want to edit files in the esp-idf install folder. Is there an easy way to copy the LD file to my project folder and edit the cmake file in my project folder to get this local copy used instead?
thanks
.noinit (NOLOAD):
{
. = ALIGN(4);
_noinit_start = ABSOLUTE(.);
*(.noinit .noinit.*)
. = ALIGN(4) ;
_noinit_end = ABSOLUTE(.);
} > dram0_0_seg
go ahead of
.dram0.data :
{ ...
}
in the linking of my application.
I see during the build process that esp32.project.ld.in is being copied into the output folder and renamed to esp32.project.ld, which is then used for linking.
I didnt want to edit files in the esp-idf install folder. Is there an easy way to copy the LD file to my project folder and edit the cmake file in my project folder to get this local copy used instead?
thanks