Re: [GIT PULL] RISC-V Fixes for 5.7-rc5

From: Linus Torvalds
Date: Sat May 09 2020 - 19:29:19 EST


On Fri, May 8, 2020 at 11:47 AM Palmer Dabbelt <palmer@xxxxxxxxxxx> wrote:
>
> * Adding a note to the VDSO so glibc can check the kernel's version without a
> uname().

Eww.

I realize other architectures do this, but why add it to new architectures?

glibc depending on kernel version is WRONG. It's bogus. You can't do
feature detection based on kernel version, it's fundamentally broken.

So I really would prefer to see glibc fixed not to do that stupid
thing, instead of adding pointless vdso notes to the kernel.

Andreas? Why does glibc care about that ELF note?

Linus