public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] elf: add note identifier for dlopen metadata
@ 2024-05-30 10:39 Arjun Shankar
0 siblings, 0 replies; only message in thread
From: Arjun Shankar @ 2024-05-30 10:39 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=53f9d74322c831c76bc6cf6ed8941267e8749604
commit 53f9d74322c831c76bc6cf6ed8941267e8749604
Author: Luca Boccassi <bluca@debian.org>
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 <bluca@debian.org>
Reviewed-by: Arjun Shankar <arjun@redhat.com>
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"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-30 10:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-30 10:39 [glibc] elf: add note identifier for dlopen metadata Arjun Shankar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).