mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(ld): fix cannot move location counter backwards (from 3fc88000 to 3fc87fff)
This commit is contained in:
@@ -205,7 +205,8 @@ SECTIONS
|
|||||||
*/
|
*/
|
||||||
.dram0.dummy (NOLOAD):
|
.dram0.dummy (NOLOAD):
|
||||||
{
|
{
|
||||||
. = ORIGIN(dram0_0_seg) + MAX(_iram_end - _diram_i_start, 0);
|
/* MAX() uses unsigned long arithmetic. Add offset to prevent underflow when _iram_end < _diram_i_start */
|
||||||
|
. = ORIGIN(dram0_0_seg) + MAX(_iram_end - _diram_i_start + (_diram_i_start - ORIGIN(iram0_0_seg)), (_diram_i_start - ORIGIN(iram0_0_seg))) - (_diram_i_start - ORIGIN(iram0_0_seg));
|
||||||
} > dram0_0_seg
|
} > dram0_0_seg
|
||||||
|
|
||||||
.dram0.data :
|
.dram0.data :
|
||||||
|
|||||||
Reference in New Issue
Block a user