diff --git a/porting/linux/user/ldso/dynlink.c b/porting/linux/user/ldso/dynlink.c index a92c96cb06006519ae8112b4f6d8e13eb8782fff..b54fc4bf77ec2d4174ceb122b1fd9220161a1e1c 100644 --- a/porting/linux/user/ldso/dynlink.c +++ b/porting/linux/user/ldso/dynlink.c @@ -511,7 +511,7 @@ static int check_verneed(Verdef *def, int vsym, struct verinfo *verinfo) static int check_verinfo(Verdef *def, int16_t *versym, uint32_t index, struct verinfo *verinfo, char *strings) { /* if the versym and verinfo is null , then not need version. */ - if (!versym) { + if (!versym || !def) { if (strlen(verinfo->v) == 0) { return 1; } else {