fwupd/plugins/uefi-capsule/efi
Javier Martinez Canillas f2327011a7 uefi-capsule: Include crt0 for arm and aarch64 that add a SBAT section
Due the lack of pei-aarch64 support in binutils, the gnu-efi crt0 harcodes
the PE32+ sections among other things. These crt0 aren't aware of the SBAT
section and so custom ones have to be used.

In the same vein as commit cfd1f2f42a ("uefi-capsule: Ensure SBAT metadata
is added correctly") included custom linker scripts, this change add a set
of crt0 for arm and aarch64 that hardcode a SBAT section in the PE headers.

These are the crt0 from gnu-efi plus the following fixes from Peter Jones:

* Include .sbat in section headers
* Fix some PE headers
* Calculate the VirtualSize of .sbat separately
* Put .rel* and .dyn* in .rodata
2021-04-07 13:46:58 +01:00
..
crt0 uefi-capsule: Include crt0 for arm and aarch64 that add a SBAT section 2021-04-07 13:46:58 +01:00
lds uefi-capsule: Sync linker scripts with latest used by shim 2021-04-07 13:46:58 +01:00
fwup-cleanups.h uefi: Rename to uefi-capsule 2021-01-05 15:31:22 +00:00
fwup-common.c uefi: Rename to uefi-capsule 2021-01-05 15:31:22 +00:00
fwup-common.h uefi: Rename to uefi-capsule 2021-01-05 15:31:22 +00:00
fwup-debug.c uefi: Rename to uefi-capsule 2021-01-05 15:31:22 +00:00
fwup-debug.h uefi: Rename to uefi-capsule 2021-01-05 15:31:22 +00:00
fwup-efi.c uefi: Rename to uefi-capsule 2021-01-05 15:31:22 +00:00
fwup-efi.h Only include the start year in the copyright header 2021-01-07 14:48:16 +00:00
fwupdate.c Only include the start year in the copyright header 2021-01-07 14:48:16 +00:00
generate_binary.py uefi-capsule: Include crt0 for arm and aarch64 that add a SBAT section 2021-04-07 13:46:58 +01:00
generate_sbat.py Tweak the SBAT output for a vendor string 2021-03-26 15:21:15 +00:00
meson.build uefi-capsule: Include crt0 for arm and aarch64 that add a SBAT section 2021-04-07 13:46:58 +01:00