diff options
| author | Gary Lin <glin@suse.com> | 2021-03-17 15:44:38 +0800 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-03-18 22:47:38 -0400 |
| commit | 0ff04b2ff2bc2c5ebe6bbb97aa89fb7ae8c318ac (patch) | |
| tree | 21dc0188309c7040a5b45ce31ba16e27b17c53f8 /elf_arm_efi.lds | |
| parent | 7defee6ad60d16dc762c110f67ec9074cbb4039a (diff) | |
| download | efi-boot-shim-0ff04b2ff2bc2c5ebe6bbb97aa89fb7ae8c318ac.tar.gz efi-boot-shim-0ff04b2ff2bc2c5ebe6bbb97aa89fb7ae8c318ac.zip | |
arm and aarch64: include the aligned part in SizeOfRawData of sbat
Similar to x86_64, the .sbat section is aligned to 4096, so we should
include the aligned part in SizeOfRawData as objcopy does for x86_64.
For VirtualSize, _sbat_vsize is used to reflect the actually size of
sbat.
This also fixes a strange hash mismatching in openSUSE build service
when attaching signature to AArch64 EFI images from shim package.
Signed-off-by: Gary Lin <glin@suse.com>
Diffstat (limited to 'elf_arm_efi.lds')
| -rw-r--r-- | elf_arm_efi.lds | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/elf_arm_efi.lds b/elf_arm_efi.lds index fa7512be..d7de181f 100644 --- a/elf_arm_efi.lds +++ b/elf_arm_efi.lds @@ -74,6 +74,8 @@ SECTIONS *(.sbat.*) } _esbat = .; + _sbat_vsize = . - _sbat; + . = ALIGN(4096); _sbat_size = . - _sbat; _alldata_size = . - _data; |
