libc/libelf:fix bug for libelf_symname

readlen maybe not equal CONFIG_LIBELF_BUFFERINCR

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2025-11-13 21:20:18 +08:00 committed by Xiang Xiao
parent 7017893684
commit 894cf5dc4a

View file

@ -174,7 +174,7 @@ static int libelf_symname(FAR struct mod_loadinfo_s *loadinfo,
return ret;
}
offset += CONFIG_LIBC_ELF_BUFFERINCR;
offset += readlen;
}
/* We will not get here */