]> git.ipfire.org Git - thirdparty/kmod.git/commit
libkmod: Add ELF note for openssl library
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 8 Feb 2026 12:21:23 +0000 (12:21 +0000)
committerLucas De Marchi <demarchi@kernel.org>
Thu, 7 May 2026 05:57:56 +0000 (00:57 -0500)
commitca20fb99feed8439fb8573784ca2e416a14cde3a
tree98f6e66f301b4899afb4b227ccdc6d2ba2ab4dd9
parent4596bc6eb321a5129c27e64859c2600729814d56
libkmod: Add ELF note for openssl library

Follow the new spec for ELF notes as detailed in
https://systemd.io/ELF_PACKAGE_METADATA/.

We can copy mostly verbatim the macros from systemd codebase.

Example output:

$ meson setup --native-file build-dev.ini -Ddlopen=openssl build
...
    dlopen           : openssl

    features         : +ZSTD +XZ +ZLIB +OPENSSL

$ dlopen-notes.py build/libkmod.so.2
# build/libkmod.so.2
[
  {
    "feature": "openssl",
    "description": "Support for reading module signatures",
    "priority": "suggested",
    "soname": [
      "libcrypto.so.3"
    ]
  }
]

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/420
Signed-off-by: Lucas De Marchi <demarchi@kernel.org>
libkmod/libkmod-signature.c