stand/elf: Only support swapping headers on powerpc.
authorWarner Losh <imp@FreeBSD.org>
Fri, 16 Sep 2022 15:10:14 +0000 (09:10 -0600)
committerWarner Losh <imp@FreeBSD.org>
Fri, 16 Sep 2022 15:18:57 +0000 (09:18 -0600)
commitc0ecae78abbe5c925cd05d5e218aa6f038cd03c7
tree7f91221cd012f8bb21d00eaca09a21158fe116b0
parent9758dd3de1cddc8271be8dd6fee69286c5c86535
stand/elf: Only support swapping headers on powerpc.

Powerpc is currently the only architecture that we support more than one
endian. It's the only one that benefits from this swapping, so restrict
the code to there. This saves about 1k in the i386 BIOS loader.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D36577
stand/common/load_elf.c