Merge changes from topic "riscv64-elf"

* changes:
  Switch to FreeBSD's elf_common.h.
  Kernel header scrubber: remove unused map entries.