Re: systemd, ELF binaries and runtime dependency tracking


Khem Raj
 

On 5/31/21 3:40 PM, Paul Eggleton wrote:
Hi folks
Upstream in the systemd project, a proposal has been made to add a special
section to output ELF binaries to record soft runtime dependencies, so that
they could be read and utilised by distribution build systems such as ours
(they would be translated into RRECOMMENDS in our case). At the moment that
doesn't seem to have generated a huge amount of interest in the traditional
distro space, but would it be interesting for us?
https://github.com/systemd/systemd/pull/17416
For clarity, we (Microsoft) will volunteer to do the integration assuming the
above pull request gets reopened and merged, which is more likely if we
express our interest.
Finding dlopen dependencies is a neat idea, but it has to be accepted cross distro, and also applications have to manually declare it in code if I understand systemd's patch correctly. This will be hard to accomplish as you can see changes are spread across apps from distro point of view. Perhaps there is a smarter way of detecting adding them in ELF spec itself and then have tools like linker help implement this
and also possibly collect the information or guide the users to achieve this would be helpful.

Cheers
Paul

Join {yocto@lists.yoctoproject.org to automatically receive all group messages.