Skip to content

Commit

Permalink
mcu/pic32: Fix memset_func placement
Browse files Browse the repository at this point in the history
By mistake sdata2 section was put in kseg0_program_mem.
It should be left alone with no redirection to region
xc32 linker will put it in correct place.

memset_func put in this place resulted in crash during
boot since mbedtls was was updated.
  • Loading branch information
kasjer committed Mar 12, 2024
1 parent 76d3819 commit 7a9dd95
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hw/mcu/microchip/pic32mz/p32mz_boot.ld
Original file line number Diff line number Diff line change
Expand Up @@ -1613,9 +1613,8 @@ SECTIONS
.sdata2 ALIGN(4) :
{
*(.sdata2 .sdata2.* .gnu.linkonce.s2.*)
*(.data.memset_func.memset_func)
. = ALIGN(4) ;
} >kseg0_program_mem
}
/*
* Uninitialized constant global and static data (i.e., variables which will
* always be zero). Again, this is different from .sbss, which contains
Expand Down

0 comments on commit 7a9dd95

Please sign in to comment.