libbacktrace: don't fail if symbol size is unknown

* btest.c (test5): Don't fail if symbol size is 0.
	* mtest.c (test5): Likewise.
This commit is contained in:
Ian Lance Taylor 2024-07-11 17:58:17 -07:00
parent b870086904
commit d7318f4cf8
2 changed files with 2 additions and 2 deletions

View File

@ -440,7 +440,7 @@ test5 (void)
(unsigned long) (uintptr_t) &global);
symdata.failed = 1;
}
else if (symdata.size != sizeof (global))
else if (symdata.size != sizeof (global) && symdata.size != 0)
{
fprintf (stderr,
"test5: unexpected syminfo size got %lx expected %lx\n",

View File

@ -373,7 +373,7 @@ test5 (void)
(unsigned long) (uintptr_t) &global);
symdata.failed = 1;
}
else if (symdata.size != sizeof (global))
else if (symdata.size != sizeof (global) && symdata.size != 0)
{
fprintf (stderr,
"test5: unexpected syminfo size got %lx expected %lx\n",