[PATCH v2 0/3] Mips support for PT_GNU_STACK
Maciej W. Rozycki
macro@linux-mips.org
Thu Jul 18 14:50:00 GMT 2019
On Wed, 17 Jul 2019, Adhemerval Zanella wrote:
> > The form of detection the patch proposes is not yet provided by the kernel.
> > Instead, this version of the patch does kernel version check at runtime and
> > provides compatible behavior if it cannot detect the 4.8 kernel or newer.
>
> I think checking the kernel version is the wrong approach, it prevents a
> distribution to backport the kernel fix without also applying a
> out-of-tree patch to fix it on glibc as well.
Good point!
> IMHO the proper way would be to make kernel advertise it through hwcap,
> as other architectures do for similar kernel features and not tie it to
> any specific version.
As other people have pointed out to use AT_HWCAP* for a plain software
feature might not be the most fortunate choice and we could use AT_FLAGS
or even define AT_LINUX_FEATURES (or AT_MIPS_FEATURES), but that is
secondary; it's not like we're going to run out of auxiliary vector's
space.
FWIW,
Maciej
More information about the Libc-alpha
mailing list