[PATCH 5.10 095/104] arch: fix broken BuildID for arm64 and riscv