]> git.ipfire.org Git - thirdparty/gcc.git/commit
[libbacktrace] Fix btest-lto for older gcc
authorTom de Vries <tdevries@suse.de>
Tue, 26 Feb 2019 16:09:40 +0000 (16:09 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Tue, 26 Feb 2019 16:09:40 +0000 (16:09 +0000)
commit067aef033f3a9ad971fc75ce0631c500de0f0423
tree434333e8de53833cd676db39e731a4c58db473ea
parent4fd3c8aad91decbcb204c9c0900da15383945500
[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
libbacktrace/ChangeLog
libbacktrace/btest.c