Skip to content

Commit

Permalink
modlib:if use LMA, not set bss
Browse files Browse the repository at this point in the history
Signed-off-by: anjiahao <[email protected]>
  • Loading branch information
anjiahao1 committed Oct 11, 2024
1 parent b0f198c commit 66f9a68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libs/libc/modlib/modlib_load.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,12 @@ static inline int modlib_loadfile(FAR struct mod_loadinfo_s *loadinfo)
* section must be cleared.
*/

#ifndef CONFIG_MODLIB_LOADTO_LMA
else if (*pptr != NULL)
{
memset(*pptr, 0, shdr->sh_size);
}
#endif

/* Update sh_addr to point to copy in memory */

Expand Down

0 comments on commit 66f9a68

Please sign in to comment.