Bug 15595 - Respect .note.dlopen ELF metadata
Summary: Respect .note.dlopen ELF metadata
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 5.1
Hardware: All Multiple
: Medium+ major
Target Milestone: 5.2 M1
Assignee: Ross Burton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-09-12 10:35 UTC by Ross Burton
Modified: 2025-01-17 15:47 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2024-09-12 10:35:20 UTC
There is now a specification to embed details about which libraries an ELF will potentially dlopen() at some point, with the intention being that package management tools will use this data to generate package recommends:

https://systemd.io/ELF_DLOPEN_METADATA/

Notably systemd uses this as the core libsystem-shared.so library doesn't directly link to anything, but will dlopen() as needed.

We should read this metadata at packaging time and generate RRECOMMENDS as needed.
Comment 1 Ross Burton 2024-11-19 12:59:31 UTC
Patch on the list, for the first stage where the code is in systemd itself. So far it appears there's no other projects outside of systemd that use this annotation.
Comment 2 Ross Burton 2025-01-17 15:47:46 UTC
Merged for systemd in 905da779bcfe98f105adac708e0045ce8ffe5636.  If other recipes start supporting the same we can generalise the code further.