aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2024-05-15 01:10:35 +0100
committerArjun Shankar <arjun@redhat.com>2024-05-30 12:24:23 +0200
commit53f9d74322c831c76bc6cf6ed8941267e8749604 (patch)
tree36ab94bf8f49f689068c3e1fa5bce534143182dc
parent52aae0860018b500b8212b5d63495dbe6b9b7022 (diff)
downloadglibc-53f9d74322c831c76bc6cf6ed8941267e8749604.zip
glibc-53f9d74322c831c76bc6cf6ed8941267e8749604.tar.gz
glibc-53f9d74322c831c76bc6cf6ed8941267e8749604.tar.bz2
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>
-rw-r--r--elf/elf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/elf/elf.h b/elf/elf.h
index d6ec012..081742a 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"