]> git.ipfire.org Git - thirdparty/gcc.git/commit - libgcc/ChangeLog
[i386][musl] Add cpuinfo to static libgcc only on *-musl*
authorSzabolcs Nagy <szabolcs.nagy@arm.com>
Fri, 11 Nov 2016 17:31:07 +0000 (17:31 +0000)
committerSzabolcs Nagy <nsz@gcc.gnu.org>
Fri, 11 Nov 2016 17:31:07 +0000 (17:31 +0000)
commit9d8f95deca5b9a5ba63c638cf96f4678c68d2bd0
treec674d4b5cbcfa29cc16dea6f58d98d91bfa6a14b
parentc901bc0d8e9c3b7cd199c141f3ebea16f0201af0
[i386][musl] Add cpuinfo to static libgcc only on *-musl*

The __cpu_indicator_init and __cpu_model symbols are not safe to use
from shared libgcc_s.so from ifunc resolvers, so since gcc-6, only
the definitions from static libgcc.a are used, however the symbols
are kept in libgcc_s as well for backward compatibility (with
appropriate symbol version).  On targets without such backward
compatibility concern add cpuinfo to the static library only (this
avoids running the ctor, reduces libgcc_s size and elf abi concerns
about the versioned symbols).

libgcc/
2016-11-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>

* config.host (i[3456]86-*-musl*, x86_64-*-musl*): Use
i386/t-cpuinfo-static instead of i386/t-cpuinfo.
* config/i386/t-cpuinfo-static: New.

From-SVN: r242268
libgcc/ChangeLog
libgcc/config.host
libgcc/config/i386/t-cpuinfo-static [new file with mode: 0644]