modlib:if use LMA, not set bss

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao
2024-07-29 12:28:48 +08:00
committed by Xiang Xiao
parent 4f92d7aafd
commit 0dd5228259
+2
View File
@@ -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 */