This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Check GLIBC_IFUNC to enable/disable ifunc features


On 30/06/16 17:21, H.J. Lu wrote:
> +	    /* Can't use strlen because it may trigger an ifunc resolve
> +	       loop.  */
> +	    for (; *end != '\0'; end++);

the compiler can optimize this into a strlen call.

but e.g. -ffreestanding can solve that
(i wonder why glibc does not use that already
at least for early startup code).


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]