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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 18 18:45:00 +0000 2026
>Last-Modified:  Sun Oct 18 18:55:03 +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

>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.

NetBSD Home
NetBSD PR Database Search

(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.