NetBSD Problem Report #60901
From www@netbsd.org Sun Oct 18 18:41:19 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 9A47C1A923B
for <gnats-bugs@gnats.NetBSD.org>; Sun, 18 Oct 2026 18:41:19 +0000 (UTC)
Message-Id: <20261018184118.4426F1A923C@mollari.NetBSD.org>
Date: Sun, 18 Oct 2026 18:41:18 +0000 (UTC)
From: campbell+netbsd@mumble.net
Reply-To: campbell+netbsd@mumble.net
To: gnats-bugs@NetBSD.org
Subject: Unknown elf note type 1081871370
X-Send-Pr-Version: www-1.0
X-From4GNATS: "campbell+netbsd@mumble.net via gnats" <gnats-admin@NetBSD.org>
>Number: 60901
>Category: kern
>Synopsis: Unknown elf note type 1081871370
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: pending-pullups
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 18 18:45:00 +0000 2026
>Closed-Date:
>Last-Modified: Sun Nov 15 14:00:04 +0000 2026
>Originator: Taylor R Campbell
>Release:
>Organization:
The
>Environment:
>Description:
Various GNUish and/or FDOish applications include a new ELF
note that NetBSD doesn't understand -- and, under DIAGNOSTIC
builds, complains about not understanding:
/usr/pkg/bin/gsort: Unknown elf note type 1081871370 (unknown tag): [namesz=4, descsz=122 name=FDO ]
https://mail-index.netbsd.org/current-users/2026/10/14/msg047993.html
This is a `.note.dlopen' note of type 0x407c0c0a which declares
a `weak dependency' on some loadable shared library for use by
freedesktop.org and systemd tools.
>How-To-Repeat:
build sysutils/coreutils and execute its gsort
>Fix:
Teach netbsd_elf_note to ignore 0x407c0c0a like it does for
various others -- and consider nixing the #ifdef DIAGNOSTIC
logic to spam the console with logs about other elf notes:
https://nxr.netbsd.org/xref/src/sys/kern/exec_elf.c?r=1.107#983
>Release-Note:
>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60901 CVS commit: src/sys
Date: Sun, 18 Oct 2026 18:51:08 +0000
Module Name: src
Committed By: riastradh
Date: Sun Oct 18 18:51:08 UTC 2026
Modified Files:
src/sys/kern: exec_elf.c
src/sys/sys: exec_elf.h
Log Message:
exec_elf: Ignore freedesktop.org dlopen ELF notes.
PR kern/60901: Unknown elf note type 1081871370
To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.108 src/sys/kern/exec_elf.c
cvs rdiff -u -r1.186 -r1.187 src/sys/sys/exec_elf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60901 CVS commit: src/sys
Date: Mon, 19 Oct 2026 18:44:20 +0000
Module Name: src
Committed By: riastradh
Date: Mon Oct 19 18:44:20 UTC 2026
Modified Files:
src/sys/kern: exec_elf.c
src/sys/sys: exec_elf.h
Log Message:
exec_elf: Nix diagnostic messages for all (unknown) fd.o notes.
Same as for unknown GNU notes. Shaves off a tiny bit of code in
non-DIAGNOSTIC builds, saves us some trouble when fd.o invariably
adds more metadata not relevant to execution semantics.
PR kern/60901: Unknown elf note type 1081871370
To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/kern/exec_elf.c
cvs rdiff -u -r1.187 -r1.188 src/sys/sys/exec_elf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Mon, 19 Oct 2026 18:46:21 +0000
State-Changed-Why:
fixed in HEAD, DIAGNOSTIC-only so not a high priority for pullup,
but the fd.o ELF notes have started appearing in pkgsrc builds, so
if anyone runs branches with DIAGNOSTIC (like me) then maybe it's
worthwhile
State-Changed-From-To: needs-pullups->pending-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Mon, 09 Nov 2026 08:53:22 +0000
State-Changed-Why:
pullup-11 #575
pullup-10 #1418
From: "David H. Gutteridge" <david@gutteridge.ca>
To: Gnats Bugs <gnats-bugs@netbsd.org>
Cc:
Subject: Re: kern/60901 (Unknown elf note type 1081871370)
Date: Thu, 12 Nov 2026 18:31:26 -0500
At the risk of introducing a "Whack-a-Mole" situation, there are more
of these, e.g.:
[ 176187.422981] /usr/pkg/bin/lxqt-panel: Unknown elf note type
1951465473 (unknown tag): [namesz=12, descsz=66 name=qt-project! ]
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60901 CVS commit: [netbsd-11] src/sys
Date: Sun, 15 Nov 2026 13:58:27 +0000
Module Name: src
Committed By: martin
Date: Sun Nov 15 13:58:27 UTC 2026
Modified Files:
src/sys/kern [netbsd-11]: exec_elf.c
src/sys/sys [netbsd-11]: exec_elf.h
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #575):
sys/kern/exec_elf.c: revision 1.108
sys/kern/exec_elf.c: revision 1.109
sys/sys/exec_elf.h: revision 1.187
sys/sys/exec_elf.h: revision 1.188
exec_elf: Ignore freedesktop.org dlopen ELF notes.
PR kern/60901: Unknown elf note type 1081871370
exec_elf: Nix diagnostic messages for all (unknown) fd.o notes.
Same as for unknown GNU notes. Shaves off a tiny bit of code in
non-DIAGNOSTIC builds, saves us some trouble when fd.o invariably
adds more metadata not relevant to execution semantics.
PR kern/60901: Unknown elf note type 1081871370
To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.107.2.1 src/sys/kern/exec_elf.c
cvs rdiff -u -r1.177 -r1.177.2.1 src/sys/sys/exec_elf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60901 CVS commit: [netbsd-10] src/sys
Date: Sun, 15 Nov 2026 13:59:49 +0000
Module Name: src
Committed By: martin
Date: Sun Nov 15 13:59:49 UTC 2026
Modified Files:
src/sys/kern [netbsd-10]: exec_elf.c
src/sys/sys [netbsd-10]: exec_elf.h
Log Message:
Pull up following revision(s) (requested by riastradh in ticket #1418):
sys/kern/exec_elf.c: revision 1.108
sys/kern/exec_elf.c: revision 1.109
sys/sys/exec_elf.h: revision 1.187
sys/sys/exec_elf.h: revision 1.188
exec_elf: Ignore freedesktop.org dlopen ELF notes.
PR kern/60901: Unknown elf note type 1081871370
exec_elf: Nix diagnostic messages for all (unknown) fd.o notes.
Same as for unknown GNU notes. Shaves off a tiny bit of code in
non-DIAGNOSTIC builds, saves us some trouble when fd.o invariably
adds more metadata not relevant to execution semantics.
PR kern/60901: Unknown elf note type 1081871370
To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.104.2.1 src/sys/kern/exec_elf.c
cvs rdiff -u -r1.170 -r1.170.4.1 src/sys/sys/exec_elf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.