[PATCH 6.1 fix build id for arm64 1/5] arch: fix broken BuildID for arm64 and riscv