On Do, 22.12.22 14:49, Daniel P. Berrangé (berrange(a)redhat.com) wrote:
When you say it dooesn't get the offsets right, can you elaborate
?
dracut uses fixed offsets for the sections to be placed in memory
in. The values are simply hardcoded, literally specified address
offsets, that worked for the original authors. This typically works –
as long as your sections are not much larger than they were for the
people wo came up with these offsets initially. But as it turns out
this doesn't work for some cases. In such cases the sections will be
loaded into memory overlapped and bad things happen.
ukify hence calculates the offsets manually (by adding up the section
sizes so that this cannot happen.
Lennart
--
Lennart Poettering, Berlin