summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/ld
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-07-10 02:29:22 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-07-10 02:29:22 +0000
commit5d21d768b2c9f3601cbb00aa36a5ec22bacf93df (patch)
tree9f6c3a9c7f6dc298b58f5ddb2655b080c986678d /contrib/binutils/ld
parentc497cd3792b4bca40349c51f22dfd4c77c77ec9f (diff)
downloadFreeBSD-src-5d21d768b2c9f3601cbb00aa36a5ec22bacf93df.zip
FreeBSD-src-5d21d768b2c9f3601cbb00aa36a5ec22bacf93df.tar.gz
Teach our toolchain how to generate 64-bit PowerPC binaries. This fixes
a variety of bugs in binutils related to handling of 64-bit PPC ELF, provides a GCC configuration for 64-bit PowerPC on FreeBSD, and associated build systems tweaks. Obtained from: projects/ppc64
Diffstat (limited to 'contrib/binutils/ld')
-rw-r--r--contrib/binutils/ld/lexsup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/binutils/ld/lexsup.c b/contrib/binutils/ld/lexsup.c
index b377bd4..ea3a558 100644
--- a/contrib/binutils/ld/lexsup.c
+++ b/contrib/binutils/ld/lexsup.c
@@ -1145,8 +1145,11 @@ parse_args (unsigned argc, char **argv)
whole_archive = TRUE;
break;
case OPTION_AS_NEEDED:
+/* XXX: --as-needed is broken on powerpc64 */
+#ifndef __powerpc64__
as_needed = TRUE;
break;
+#endif
case OPTION_NO_AS_NEEDED:
as_needed = FALSE;
break;
OpenPOWER on IntegriCloud