From 4649f4ac80d5575dafd80c53e4232747f4627de1 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 21 Dec 2005 23:48:40 +0000 Subject: [PATCH] Don't need GCC patch anymore because we don't use Intel syntax. --- ...{gcc-3.3.6.patch => gcc-3.3.6-cross-howto} | 22 ------------------- 1 file changed, 22 deletions(-) rename src/misc/{gcc-3.3.6.patch => gcc-3.3.6-cross-howto} (53%) diff --git a/src/misc/gcc-3.3.6.patch b/src/misc/gcc-3.3.6-cross-howto similarity index 53% rename from src/misc/gcc-3.3.6.patch rename to src/misc/gcc-3.3.6-cross-howto index 79ce5c4..ad25173 100644 --- a/src/misc/gcc-3.3.6.patch +++ b/src/misc/gcc-3.3.6-cross-howto @@ -1,9 +1,3 @@ -GCC 3.3.6 has a bug in the i386-elf target: it fails to emit -.intel_syntax in assembly files if -masm=intel is passed on the -command line. This is because elfos.h overrides the ASM_FILE_START -provided by gcc/config/att.h, which emits that directive, with a -version that does not. This patch covers up the problem. - Here are the commands we used to build and install the SPARC cross-compiler: @@ -31,7 +25,6 @@ make LDFLAGS=-lintl make install cd $TMP/gcc-3.3.6 -patch gcc/config/elfos.h < $PINTOSROOT/src/misc/gcc-3.3.6.patch mkdir i386 cd i386 ../configure --target=i386-elf --prefix=$PREFIX --with-gnu-as --with-as=$PREFIX/bin/i386-elf-as --with-gnu-ld --with-ld=$PREFIX/bin/i386-elf-ld --with-headers=$TMP/newlib-1.13.0/newlib/libc/include --with-newlib @@ -44,18 +37,3 @@ cd i386 ../configure --target=i386-elf --prefix=$PREFIX --disable-tui make LDFLAGS=-lintl make install - ---- gcc/config/elfos.h~ 2005-01-03 21:14:58.312309000 -0800 -+++ gcc/config/elfos.h 2005-01-03 21:03:51.758598000 -0800 -@@ -97,9 +97,11 @@ - directive for any specific target, you should override this definition - in the target-specific file which includes this one. */ - -+#if 0 - #undef ASM_FILE_START - #define ASM_FILE_START(FILE) \ - output_file_directive ((FILE), main_input_filename) -+#endif - - /* This is how to allocate empty space in some section. The .zero - pseudo-op is used for this on most svr4 assemblers. */ -- 2.30.2