[PATCH 5.4 62/68] arch: fix broken BuildID for arm64 and riscv