]> git.ipfire.org Git - thirdparty/systemd.git/commit
ukify: Use SizeOfImage from linux image as virtual size of .linux section
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 30 Sep 2024 11:42:50 +0000 (13:42 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 30 Sep 2024 13:52:59 +0000 (15:52 +0200)
commit2188c759f97e40b97ebe3e94e82239f36b525b10
tree6e36dfcc55cb7a1244cb10f89bdf0a86e0aa1a2a
parent83d4c135e80862e1de9f8c0961ef24e06b5cdd22
ukify: Use SizeOfImage from linux image as virtual size of .linux section

The SizeOfImage is bigger than the image itself so that space is
guaranteed to be available for in place execution of the linux image. Let's
make sure we take this into account and use SizeOfImage as the section's virtual
size instead of the size of the image itself.

Fixes #34578
src/ukify/ukify.py