Skip to content

Commit

Permalink
include bss size when calculating rwtext address
Browse files Browse the repository at this point in the history
  • Loading branch information
MabezDev committed Aug 9, 2022
1 parent 4c44f3e commit e2e8d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp32c3-hal/ld/db-riscv-link.x
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ SECTIONS
_ebss = .;
} > REGION_BSS

.rwtext ORIGIN(REGION_RWTEXT) + _data_size : AT(_text_size + _rodata_size + _data_size){
.rwtext ORIGIN(REGION_RWTEXT) + _data_size : AT(_text_size + _rodata_size + _data_size + SIZEOF(.bss)) {
_srwtext = .;
*(.rwtext);
. = ALIGN(4);
Expand Down

0 comments on commit e2e8d42

Please sign in to comment.