Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jun 2010 01:46:26 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r209559 - projects/ppc64/contrib/binutils/ld
Message-ID:  <201006280146.o5S1kQZn059815@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Mon Jun 28 01:46:26 2010
New Revision: 209559
URL: http://svn.freebsd.org/changeset/base/209559

Log:
  Hack around linker bug in the presence of --as-needed when linking
  libraries where are linked symbols are synthetic. This commonly occurs
  on powerpc64, so ignore this option on that platform.

Modified:
  projects/ppc64/contrib/binutils/ld/lexsup.c

Modified: projects/ppc64/contrib/binutils/ld/lexsup.c
==============================================================================
--- projects/ppc64/contrib/binutils/ld/lexsup.c	Mon Jun 28 01:40:56 2010	(r209558)
+++ projects/ppc64/contrib/binutils/ld/lexsup.c	Mon Jun 28 01:46:26 2010	(r209559)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006280146.o5S1kQZn059815>