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 v2 0/3] Mips support for PT_GNU_STACK


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


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