> On 24 May 2020, at 11:42, Konstantin Belousov <kostikbel at gmail.com> wrote: > >> >> Is there a way to get the linker to add a .note section with osrel? > Look at lib/csu/common/crtbrand.c > I’ve added the code to read the Elf note value and then set it via the sysctl. Seems to fix the (rather minor) problem. A+ Paul