From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2012) id B706F385840F; Thu, 30 May 2024 10:39:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B706F385840F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1717065567; bh=+CWiuROmbST/qi18uhxPvWZ7u/Sbw9xzZSGV6f6M+A0=; h=From:To:Subject:Date:From; b=SpZ+jDyQdFx1GXDlrmvkD1BJs/RFN7ae75ylD5lh3rNdbF03AYrXK4CJAwmmZScPh ds9w/AwytZlkzkpUVRhzNPsjx5NbiAJGRP/FETWh8U1BEFYBoJL/8s7j20Wb+bb1fF EkxvPykvrloFVkf2tx6LpKsctuWLKOHvPit3hG6M= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Arjun Shankar To: glibc-cvs@sourceware.org Subject: [glibc] elf: add note identifier for dlopen metadata X-Act-Checkin: glibc X-Git-Author: Luca Boccassi X-Git-Refname: refs/heads/master X-Git-Oldrev: 52aae0860018b500b8212b5d63495dbe6b9b7022 X-Git-Newrev: 53f9d74322c831c76bc6cf6ed8941267e8749604 Message-Id: <20240530103927.B706F385840F@sourceware.org> Date: Thu, 30 May 2024 10:39:27 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=53f9d74322c831c76bc6cf6ed8941267e8749604 commit 53f9d74322c831c76bc6cf6ed8941267e8749604 Author: Luca Boccassi Date: Wed May 15 01:10:35 2024 +0100 elf: add note identifier for dlopen metadata This new note type is defined at https://systemd.io/ELF_DLOPEN_METADATA/ and is used to list shared library dependencies loaded via dlopen(). Distro packagers can use this, via tools like those available at https://github.com/systemd/package-notes to automatically generate dependencies when building projects that make use of this specification. By defining the note id here we can use it in other projects as a stable identifier, for example in 'readelf' to pretty-print its content. Signed-off-by: Luca Boccassi Reviewed-by: Arjun Shankar Diff: --- elf/elf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/elf/elf.h b/elf/elf.h index d6ec0120c0..081742a9c3 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -1340,6 +1340,10 @@ typedef struct https://systemd.io/ELF_PACKAGE_METADATA/ */ #define NT_FDO_PACKAGING_METADATA 0xcafe1a7e +/* dlopen metadata as defined on + https://systemd.io/ELF_DLOPEN_METADATA/ */ +#define NT_FDO_DLOPEN_METADATA 0x407c0c0a + /* Note section name of program property. */ #define NOTE_GNU_PROPERTY_SECTION_NAME ".note.gnu.property"