This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix solaris 2.7 native binutils build failure
- From: Richard Henderson <rth at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: Tue, 30 Apr 2002 16:56:59 -0700
- Subject: fix solaris 2.7 native binutils build failure
I realized yesterday that I'd been testing solaris 2.7 with gnu
binutils and solaris 2.8 with native binutils, but not 2.7 with
native binutils.
Well, it's good I checked, because it doesn't work. The native
ld bug that kills dwarf2 is still present.
Fixed thus. The bootstrap and check are not yet complete, but
we're now much farther than the previous failure.
Ok?
r~
* config/sparc/sol27-sld.h: Rename from sol26-sld.h.
(PREFERRED_DEBUGGING_TYPE, ASM_DEBUG_SPEC): Undef.
* config.gcc (sparc-solaris): Adjust test for native ld bug.
Add it after the biarch headers.
Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.167.2.16
diff -c -p -d -r1.167.2.16 config.gcc
*** config.gcc 29 Apr 2002 07:52:06 -0000 1.167.2.16
--- config.gcc 30 Apr 2002 23:06:49 -0000
*************** sparc-*-solaris2*)
*** 3210,3220 ****
tmake_file="$tmake_file t-slibgcc-sld"
fi
case $machine in
- *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
- if test x$gnu_ld = xno; then
- tm_file="${tm_file} sparc/sol26-sld.h"
- fi
- ;;
*-*-solaris2.[789])
tm_file="sparc/biarch64.h ${tm_file} sparc/sol2-bi.h"
if test x$gnu_ld = xyes; then
--- 3210,3215 ----
*************** sparc-*-solaris2*)
*** 3224,3229 ****
--- 3219,3231 ----
tm_file="${tm_file} sparc/sol2-gas-bi.h"
fi
tmake_file="$tmake_file sparc/t-sol2-64"
+ ;;
+ esac
+ case $machine in
+ *-*-solaris2.[0-7] | *-*-solaris2.[0-7].*)
+ if test x$gnu_ld = xno; then
+ tm_file="${tm_file} sparc/sol27-sld.h"
+ fi
;;
esac
xm_defines=POSIX
Index: config/sparc/sol26-sld.h
===================================================================
RCS file: config/sparc/sol26-sld.h
diff -N config/sparc/sol26-sld.h
*** config/sparc/sol26-sld.h 12 Apr 2002 22:46:28 -0000 1.1.2.1
--- /dev/null 1 Jan 1970 00:00:00 -0000
***************
*** 1,6 ****
- /* Up through Solaris 2.6, the system linker does not work with DWARF
- or DWARF2, since it does not have working support for relocations
- to unaligned data. */
-
- #undef DWARF_DEBUGGING_INFO
- #undef DWARF2_DEBUGGING_INFO
--- 0 ----
Index: config/sparc/sol27-sld.h
===================================================================
RCS file: config/sparc/sol27-sld.h
diff -N config/sparc/sol27-sld.h
*** /dev/null 1 Jan 1970 00:00:00 -0000
--- config/sparc/sol27-sld.h 30 Apr 2002 23:06:50 -0000
***************
*** 0 ****
--- 1,8 ----
+ /* Up through Solaris 2.7, the system linker does not work with DWARF
+ or DWARF2, since it does not have working support for relocations
+ to unaligned data. */
+
+ #undef DWARF_DEBUGGING_INFO
+ #undef DWARF2_DEBUGGING_INFO
+ #undef PREFERRED_DEBUGGING_TYPE
+ #undef ASM_DEBUG_SPEC