[PATCH][AArch64] Use __getauxval instead of getauxval in LSE detection code in libgcc

Szabolcs Nagy Szabolcs.Nagy@arm.com
Wed May 6 13:22:44 GMT 2020


The 05/06/2020 11:39, Kyrylo Tkachov wrote:
> > -----Original Message-----
> > From: Florian Weimer <fweimer@redhat.com>
> > Sent: 06 May 2020 11:28
> >
> > Is __gnu_linux__ defined with musl?  It's not really GNU/Linux, after
> > all.  musl doesn't have __getauxval IIRC, so it would break the build
> > there.
> 
> I don't think it does (at least not with a git grep for it in the musl code).
> GCC doesn't define it for musl targets either. I see it defined for uclinux for arm, not aarch64 though.

__gnu_linux__ is not defined on musl.

it would be better if there was a mechanism to
introduce namespace clean abi symbols across libc
implementations that a compiler can use, instead
of tying it to the glibc version, but currently
there is no such mechanism and only glibc has this
particular symbol, so the patch looks ok to me.


More information about the Gcc-patches mailing list