]> git.ipfire.org Git - thirdparty/systemd.git/commit
elf2efi: Add --copy-sections option
authorJan Janssen <medhefgo@web.de>
Fri, 22 Sep 2023 10:15:55 +0000 (12:15 +0200)
committerJan Janssen <medhefgo@web.de>
Fri, 29 Sep 2023 14:56:30 +0000 (16:56 +0200)
commit898e9edc469f87fdb6018128bac29eef0a5fe698
treee6f0792d53785725a76e2d7525c652127bcd26f3
parent7d6fd7f0993c0f3d05da2b6b8aefca38a3bd7b60
elf2efi: Add --copy-sections option

This makes the special PE sections available again in our output EFI
images.

Since the compiler provides no way to mark a section as not allocated,
we use GNU assembler syntax to emit the sections instead. This ensures
the section data isn't emitted twice as load segments will only contain
allocating input sections.
src/boot/efi/addon.c
src/boot/efi/boot.c
src/boot/efi/meson.build
src/boot/efi/stub.c
src/fundamental/macro-fundamental.h
tools/elf2efi.py