diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index bfd828ec3e7..662d00e80eb 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,7 @@ +2019-02-26 Tom de Vries + + * btest.c (test5): Allow global.* as minimal symbol name for global. + 2019-02-26 Tom de Vries * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ. diff --git a/libbacktrace/btest.c b/libbacktrace/btest.c index b1c2a2a860d..32718ad1ff2 100644 --- a/libbacktrace/btest.c +++ b/libbacktrace/btest.c @@ -423,7 +423,8 @@ test5 (void) fprintf (stderr, "test5: NULL syminfo name\n"); symdata.failed = 1; } - else if (strcmp (symdata.name, "global") != 0) + else if (!(strncmp (symdata.name, "global", 6) == 0 + && (symdata.name[6] == '\0'|| symdata.name[6] == '.'))) { fprintf (stderr, "test5: unexpected syminfo name got %s expected %s\n",