mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-15 22:44:19 +00:00
Support ELF files loadable with gdb
This commit is contained in:
@@ -29,7 +29,7 @@ extern soc_reserved_region_t soc_reserved_memory_region_end;
|
||||
These variables have the start and end of the data and static IRAM
|
||||
area used by the program. Defined in the linker script.
|
||||
*/
|
||||
extern int _data_start, _static_data_end, _iram_start, _iram_end;
|
||||
extern int _data_start, _heap_start, _iram_start, _iram_end;
|
||||
|
||||
/* static DRAM & IRAM chunks */
|
||||
static const size_t EXTRA_RESERVED_REGIONS = 2;
|
||||
@@ -67,8 +67,8 @@ static void s_prepare_reserved_regions(soc_reserved_region_t *reserved, size_t c
|
||||
(count - EXTRA_RESERVED_REGIONS) * sizeof(soc_reserved_region_t));
|
||||
|
||||
/* Add the EXTRA_RESERVED_REGIONS at the beginning */
|
||||
reserved[0].start = (intptr_t)&_data_start; /* DRAM used by data+bss */
|
||||
reserved[0].end = (intptr_t)&_static_data_end;
|
||||
reserved[0].start = (intptr_t)&_data_start; /* DRAM used by data+bss and possibly rodata */
|
||||
reserved[0].end = (intptr_t)&_heap_start;
|
||||
reserved[1].start = (intptr_t)&_iram_start; /* IRAM used by code */
|
||||
reserved[1].end = (intptr_t)&_iram_end;
|
||||
|
||||
|
Reference in New Issue
Block a user