[PATCH] [BZ #20072] x86 init_cpu_features is called twice in static executable
H.J. Lu
hjl.tools@gmail.com
Fri May 13 15:12:00 GMT 2016
On Tue, May 10, 2016 at 9:50 AM, H.J. Lu <hongjiu.lu@intel.com> wrote:
> In static executable, since init_cpu_features is called early from
> __libc_start_main, there is no need to call it again in dl_platform_init.
>
> Tested on x86 and x86-64. Any comments, feedbacks?
>
> H.J.
> ---
> [BZ #20072]
> * sysdeps/i386/dl-machine.h (dl_platform_init): Call
> init_cpu_features only if SHARED is defined.
> * sysdeps/x86_64/dl-machine.h (dl_platform_init): Likewise.
I will check in this revised patch today.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Call-init_cpu_features-only-if-SHARED-is-defined.patch
Type: text/x-patch
Size: 1670 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20160513/d5a3a7c6/attachment.bin>
More information about the Libc-alpha
mailing list