]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix PowerPC-targeted cross-builds performed on 64-bit platforms.
authorMarcel Moolenaar <marcel@FreeBSD.org>
Sun, 11 Feb 2007 07:15:06 +0000 (07:15 +0000)
committerMarcel Moolenaar <marcel@FreeBSD.org>
Sun, 11 Feb 2007 07:15:06 +0000 (07:15 +0000)
commit6c7ef9a0f80e5acc40e33930d24884cb1604d7de
tree2fc6f63b6545a64292f5928d77e87ab02cb2eb42
parent5351a2488a65d910b55a26c0529de5db350872a6
Fix PowerPC-targeted cross-builds performed on 64-bit platforms.
Only PowerPC supports both 32-bit and 64-bit targets and the
BFD_DEFAULT_TARGET_SIZE is used by the binutils code to reflect
the preferred ABI. We define BFD_DEFAULT_TARGET_SIZE for all
platforms, but based on the build machine. As such 64-bit build
machines defined BFD_DEFAULT_TARGET_SIZE incorrectly for 32-bit
targets, but since this only affects PowerPC it went unnoticed
for a long time.
The fix is to define BFD_DEFAULT_TARGET_SIZE based on the target
architecture.

PR: amd64/102996
MFC after: 1 month
gnu/usr.bin/binutils/Makefile.inc0
gnu/usr.bin/binutils/libbfd/bfd.h