Re: [PATCH 1/2] grub-mkimage: Only check aarch64 relocations when built for aarch64

2022-03-16 Thread Daniel Kiper
On Wed, Mar 16, 2022 at 05:25:04PM +, Darren Kenny wrote: > Coverity flagged the switch checks for R_AARCH64_* as being logically > dead code, since it could never happen on x86 due to the masking of the > values earlier in the code. > > A check for building on __ARM_ARCH (which gcc and clang d

[PATCH 1/2] grub-mkimage: Only check aarch64 relocations when built for aarch64

2022-03-16 Thread Darren Kenny
Coverity flagged the switch checks for R_AARCH64_* as being logically dead code, since it could never happen on x86 due to the masking of the values earlier in the code. A check for building on __ARM_ARCH (which gcc and clang define) and for MKIMAGE_ELF64 (which GRUB defines) has been added to avo