Skip to content

Commit

Permalink
Let's not assign absolute addresses to .
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Jan 24, 2025
1 parent f34d8bd commit 421fe70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ SECTIONS
__end__ = .;
end = __end__;
__mbed_sbrk_start_0 = .;
. = (ORIGIN(RAM) + LENGTH(RAM) - STACK_SIZE);
. += (ORIGIN(RAM) + LENGTH(RAM) - STACK_SIZE) - __mbed_sbrk_start_0;
__mbed_krbs_start_0 = .;
} > RAM

Expand Down Expand Up @@ -198,7 +198,7 @@ SECTIONS
.heap (NOLOAD): ALIGN(8)
{
__mbed_sbrk_start = .;
. = ORIGIN(AHBSRAM) + LENGTH(AHBSRAM);
. += (ORIGIN(AHBSRAM) + LENGTH(AHBSRAM)) - __mbed_sbrk_start;
__mbed_krbs_start = .;
} > AHBSRAM
}

0 comments on commit 421fe70

Please sign in to comment.