]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
elftoolchain: Support building on Arm-based Macs
authorJessica Clarke <jrtc27@FreeBSD.org>
Sat, 20 Mar 2021 17:58:10 +0000 (17:58 +0000)
committerJessica Clarke <jrtc27@FreeBSD.org>
Sat, 20 Mar 2021 17:58:10 +0000 (17:58 +0000)
commit839fdcfc0c1dba34f728813d9756515ad82ff58a
tree91d5ec5d822fdb6fb08a4788c1a9e99b40893d5e
parentee7ffaa2e6e08b63efb4673610875d40964d5058
elftoolchain: Support building on Arm-based Macs

Currently macOS and DragonFlyBSD get their own special case and only
handle x86. Since all the FreeBSD cases should be general enough for
macOS and DragonFlyBSD (and the x86 ones are identical to the existing
ones) we can just delete the special cases and reuse the FreeBSD ones.

Note that upstream has since removed all the architecture-specific
checks in this file, with the only code relevant to us being an
endianness check that uses the generic compiler-provided macros. Thus
this patch will not be upstreamed, and will be dropped in a future
vendor import.

Reviewed by: dim
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D29352
contrib/elftoolchain/libelf/_libelf_config.h