svn commit: r209559 - projects/ppc64/contrib/binutils/ld

Nathan Whitehorn nwhitehorn at FreeBSD.org
Mon Jun 28 01:46:27 UTC 2010


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;


More information about the svn-src-projects mailing list