Systemd/src/boot
YiFei Zhu 2f92b1e99a boot/efi: use a wildcard section copy for final EFI generation
The GNU gold linker uses the section name `.rela.dyn` instead of
`.rela` for containing the relocation information. If this section
is not copied systemd-boot can crash.

Efitools started using wildcard section copies in their commit
b98d381b, and these wildcard sections are the only difference between
systemd-boot's section copy list and theirs. This patch add the
wildcard section `.rel*` to our objcopy, as it should include all
other wildcards assuming a recent GNU objcopy. Redundant arguments
for sections that would be matched by this wildcard are removed.

This patch has been tested on EDK II UEFI v2.70 Firmware on QEMU, and
Lenovo 0.5120 UEFI 2.40 Firmware on bare metal.

Fixes: #11541
2019-02-09 17:51:23 +01:00
..
efi boot/efi: use a wildcard section copy for final EFI generation 2019-02-09 17:51:23 +01:00
bless-boot-generator.c generators: drop umask calls 2018-11-21 13:40:24 +01:00
bless-boot.c coccinelle: make use of SYNTHETIC_ERRNO 2018-11-22 10:54:38 +01:00
boot-check-no-failures.c util-lib: move main() definition macros to its own header file 2018-11-19 21:14:34 +01:00
bootctl.c locale-util: prefix special glyph enum values with SPECIAL_GLYPH_ 2018-12-14 08:22:54 +01:00