Skip to content
Commit 950accba authored by Atish Patra's avatar Atish Patra Committed by Ard Biesheuvel
Browse files

efi/libstub: Fix gcc error around __umoddi3 for 32 bit builds



32bit gcc doesn't support modulo operation on 64 bit data. It results in
a __umoddi3 error while building EFI for 32 bit.

Use bitwise operations instead of modulo operations to fix the issue.

Signed-off-by: default avatarAtish Patra <atish.patra@wdc.com>
Link: https://lore.kernel.org/r/20200625234516.31406-2-atish.patra@wdc.com


Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent c1aac64d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment