mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 07:46:16 +08:00
modlib:if use LMA, not set bss
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user