]> 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, 27 Mar 2021 02:10:29 +0000 (02:10 +0000)
commita20427cc039191ec0488873cdcee16604f5a8c7c
tree067bd04bc6bdc7e0b36573724a1b49261a703d6d
parent5a9fe096f14c8e7630961b0284c55a60491fd217
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.

(cherry picked from commit 839fdcfc0c1dba34f728813d9756515ad82ff58a)
contrib/elftoolchain/libelf/_libelf_config.h