diff options
author | marcel <marcel@FreeBSD.org> | 2007-02-11 07:15:06 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2007-02-11 07:15:06 +0000 |
commit | 3c925b07d6111dac4b4ad4a92620b3bf456aa1c9 (patch) | |
tree | 2fc6f63b6545a64292f5928d77e87ab02cb2eb42 /gnu/usr.bin/binutils/libbfd | |
parent | 909177e227a00404bc8c412d1a3cb60f2b4b4262 (diff) | |
download | FreeBSD-src-3c925b07d6111dac4b4ad4a92620b3bf456aa1c9.zip FreeBSD-src-3c925b07d6111dac4b4ad4a92620b3bf456aa1c9.tar.gz |
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
Diffstat (limited to 'gnu/usr.bin/binutils/libbfd')
-rw-r--r-- | gnu/usr.bin/binutils/libbfd/bfd.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gnu/usr.bin/binutils/libbfd/bfd.h b/gnu/usr.bin/binutils/libbfd/bfd.h index 1e65701..570927f 100644 --- a/gnu/usr.bin/binutils/libbfd/bfd.h +++ b/gnu/usr.bin/binutils/libbfd/bfd.h @@ -58,14 +58,10 @@ extern "C" { #if defined(__i386__) || defined(__powerpc__) || defined(__arm__) -/* The word size of the default bfd target. */ -#define BFD_DEFAULT_TARGET_SIZE 32 #define BFD_HOST_64BIT_LONG 0 #define BFD_HOST_64_BIT long long #define BFD_HOST_U_64_BIT unsigned long long #elif defined(__alpha__) || defined(__sparc64__) || defined(__amd64__) || defined(__ia64__) -/* The word size of the default bfd target. */ -#define BFD_DEFAULT_TARGET_SIZE 64 #define BFD_HOST_64BIT_LONG 1 #define BFD_HOST_64_BIT long #define BFD_HOST_U_64_BIT unsigned long |