[libbacktrace] Fix btest-lto for older gcc
With gcc 4.8.5, btest_lto ends up with a privatized name for the variable with name 'global': ... $ nm btest_lto | grep ' d ' | grep global 0000000000617150 d global.2530 ... which makes test5 fail: ... test5: unexpected syminfo name got global.2530 expected global ... Fix this failure by accepting this type of name as a valid name in btest_lto. 2019-02-26 Tom de Vries <tdevries@suse.de> * btest.c (test5): Allow global.* as minimal symbol name for global. From-SVN: r269217
This commit is contained in:
parent
4fd3c8aad9
commit
067aef033f
@ -1,3 +1,7 @@
|
|||||||
|
2019-02-26 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
|
* btest.c (test5): Allow global.* as minimal symbol name for global.
|
||||||
|
|
||||||
2019-02-26 Tom de Vries <tdevries@suse.de>
|
2019-02-26 Tom de Vries <tdevries@suse.de>
|
||||||
|
|
||||||
* Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
|
* Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
|
||||||
|
@ -423,7 +423,8 @@ test5 (void)
|
|||||||
fprintf (stderr, "test5: NULL syminfo name\n");
|
fprintf (stderr, "test5: NULL syminfo name\n");
|
||||||
symdata.failed = 1;
|
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,
|
fprintf (stderr,
|
||||||
"test5: unexpected syminfo name got %s expected %s\n",
|
"test5: unexpected syminfo name got %s expected %s\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user