SUSE / libpulp

libpulp enables live patching in user space applications.
GNU Lesser General Public License v2.1
55 stars 11 forks source link

Merge .ulp and .so into a single package #108

Closed giulianobelinassi closed 2 years ago

giulianobelinassi commented 2 years ago

A single livepatch consists of a .ulp which contains the compiled livepatch description, and a .so file which contains the patched function's code. This is a bit clumsy and it would be better if it were merged into a single file. I propose one of these solutions:

1- Pack the .ulp and .so in a .tar.xz and update packer and trigger to handle this format. 2- Embed the ulp object into the .so using (perhaps) a ELF note.

giulianobelinassi commented 2 years ago

If we proceed to using the ELF itself as a ULP container, we must use parts of ELF which are not loaded in memory when loading the library. This means we must use ELF comments rather than ELF notes for this.

giulianobelinassi commented 2 years ago

Merged in d3f0cc3b94ac34e6f194da76f35f759550abb947