]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: libatomic: Do not assume ELF constructors run before IFUNC resolvers
authorFlorian Weimer <fweimer@redhat.com>
Wed, 23 May 2018 11:13:05 +0000 (13:13 +0200)
committerFlorian Weimer <fw@gcc.gnu.org>
Wed, 23 May 2018 11:13:05 +0000 (13:13 +0200)
commitcb3c90cc4253cc236a4d5669a893562b202570e5
treef949dbb7958ca1eeed9204b05d8ea39418b7ac22
parent159440699bf6f97dccc94377d9d69e540a1904dc
x86: libatomic: Do not assume ELF constructors run before IFUNC resolvers

PR libgcc/60790
x86: Do not assume ELF constructors run before IFUNC resolvers.
* config/x86/host-config.h (libat_feat1_ecx, libat_feat1_edx):
Remove declarations.
(__libat_feat1, __libat_feat1_init): Declare.
(FEAT1_REGISTER): Define.
(load_feat1): New function.
(IFUNC_COND_1): Adjust.
* config/x86/init.c (libat_feat1_ecx, libat_feat1_edx)
(init_cpuid): Remove definitions.
(__libat_feat1): New variable.
(__libat_feat1_init): New function.

From-SVN: r260603
libatomic/ChangeLog
libatomic/config/x86/host-config.h
libatomic/config/x86/init.c