Systemd/src/boot/efi
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
..
boot.c tree-wide: use '"' instead of '\"' 2019-01-17 16:46:29 +00:00
console.c tree-wide: drop copyright lines for more authors 2018-06-22 16:39:45 +02:00
console.h console: avoid promotion to signed int 2018-10-12 12:38:41 +02:00
disk.c tree-wide: use c99 static for array size declarations 2019-01-04 12:37:25 +01:00
disk.h tree-wide: use c99 static for array size declarations 2019-01-04 12:37:25 +01:00
graphics.c tree-wide: drop copyright lines for more authors 2018-06-22 16:39:45 +02:00
graphics.h tree-wide: use '#pragma once' for header guard 2018-08-30 06:10:43 +03:00
linux.c Remove 'inline' attributes from static functions in .c files (#11426) 2019-01-15 08:12:28 +01:00
linux.h tree-wide: use '#pragma once' for header guard 2018-08-30 06:10:43 +03:00
measure.c tree-wide: drop redundant space between __attribute__ and (( 2018-12-03 13:28:26 +01:00
measure.h tree-wide: use '#pragma once' for header guard 2018-08-30 06:10:43 +03:00
meson.build boot/efi: use a wildcard section copy for final EFI generation 2019-02-09 17:51:23 +01:00
no-undefined-symbols.sh separate flags from shebang 2017-12-25 19:48:49 +01:00
pe.c tree-wide: drop copyright headers from frequent contributors 2018-06-20 11:58:53 +02:00
pe.h tree-wide: use '#pragma once' for header guard 2018-08-30 06:10:43 +03:00
shim.c tree-wide: remove various unused functions 2018-12-02 13:35:34 +09:00
shim.h tree-wide: remove various unused functions 2018-12-02 13:35:34 +09:00
splash.c boot: change multiplication order 2018-10-02 12:54:00 +02:00
splash.h tree-wide: use '#pragma once' for header guard 2018-08-30 06:10:43 +03:00
stub.c meson: generate version tag from git 2018-12-21 13:43:20 +01:00
util.c Merge pull request #10804 from poettering/sd-boot-updates 2018-11-16 17:52:37 +01:00
util.h tree-wide: use __ prefixed gcc attributes (#10843) 2018-11-20 12:34:08 +09:00