Patch to prevent the build or use of GNU ld on AIX platforms

Nick Clifton nickc@cygnus.com
Tue Aug 24 07:54:00 GMT 1999


Hi Guys,

  I would like to submit the following patch for approval.  It
  disables the configure, build (and hence use) of GNU ld on AIX
  platforms, since it is known to be broken.  The definition of
  use_gnu_ld=no does not appear to be enough to prevent some tools (eg
  GDB) from using GNU ld.

Cheers
	Nick


1999-08-24  Nick Clifton  <nickc@cygnus.com>

	* configure.in: Do not configure or build ld for AIX
	platforms.  ld is known to be broken on these platforms.

Index: configure.in
===================================================================
RCS file: /cvs/cvsfiles/devo/configure.in,v
retrieving revision 1.580
diff -p -r1.580 configure.in
*** configure.in	1999/08/06 21:50:12	1.580
--- configure.in	1999/08/24 14:50:00
*************** case "${target}" in
*** 843,850 ****
      ;;
    powerpc-*-aix*)
      # copied from rs6000-*-* entry
!     noconfigdirs="$noconfigdirs gprof cvssrc target-libgloss"
!     # This is needed until gcc and ld are fixed to work together.
      use_gnu_ld=no
      ;;
    powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
--- 843,853 ----
      ;;
    powerpc-*-aix*)
      # copied from rs6000-*-* entry
!     # The configure and build of ld are currently disabled because
!     # GNU ld is known to be broken for AIX 4.2 and 4.3 (at least)
!     # The symptom is that GDBtk 4.18 fails at startup with a segfault
!     # if linked by GNU ld, but not if linked by the native ld.
!     noconfigdirs="$noconfigdirs gprof cvssrc target-libgloss ld"
      use_gnu_ld=no
      ;;
    powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
*************** case "${target}" in
*** 880,887 ****
      noconfigdirs="$noconfigdirs target-newlib gprof cvssrc"
      ;;
    rs6000-*-aix*)
!     noconfigdirs="$noconfigdirs gprof"
!     # This is needed until gcc and ld are fixed to work together.
      use_gnu_ld=no
      ;;
    rs6000-*-*)
--- 883,893 ----
      noconfigdirs="$noconfigdirs target-newlib gprof cvssrc"
      ;;
    rs6000-*-aix*)
!     # The configure and build of ld are currently disabled because
!     # GNU ld is known to be broken for AIX 4.2 and 4.3 (at least)
!     # The symptom is that GDBtk 4.18 fails at startup with a segfault
!     # if linked by GNU ld, but not if linked by the native ld.
!     noconfigdirs="$noconfigdirs gprof ld"
      use_gnu_ld=no
      ;;
    rs6000-*-*)


More information about the Gcc-patches mailing list