]> gcc.gnu.org Git - gcc.git/commitdiff
(OBJECT_FORMAT_ELF): Add comments.
authorJim Wilson <wilson@gcc.gnu.org>
Sun, 20 Feb 1994 20:39:12 +0000 (12:39 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Sun, 20 Feb 1994 20:39:12 +0000 (12:39 -0800)
From-SVN: r6592

gcc/config/mips/iris5.h

index ad9388c1a3252d7bb504f106802d1187a1480cf5..eec61909d4f7ea428f913feb8d458c1f3ccfd21e 100644 (file)
@@ -20,10 +20,21 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define        TARGET_DEFAULT  MASK_ABICALLS
 #define ABICALLS_ASM_OP ".option pic2"
 
-#define OBJECT_FORMAT_ELF
-
 #include "mips/iris4.h"
 
+/* Irix 5 doesn't use COFF, so disable special COFF handling in collect2.c.  */
+#undef OBJECT_FORMAT_COFF
+
+/* ??? This is correct, but not very useful, because there is no file that
+   uses this macro.  */
+/* ??? The best way to handle global constructors under ELF is to use .init
+   and .fini sections.  Unfortunately, there is apparently no way to get
+   the Irix 5.x (x <= 2) assembler to create these sections.  So we instead
+   use collect.  The linker can create these sections via -init and -fini
+   options, but using this would require modifying how crtstuff works, and
+   I will leave that for another time (or someone else).  */
+#define OBJECT_FORMAT_ELF
+
 /* Specify wchar_t types.  */
 #undef WCHAR_TYPE
 #undef WCHAR_TYPE_SIZE
@@ -76,8 +87,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* We do not want to run mips-tfile!  */
 #undef ASM_FINAL_SPEC
 
-#undef OBJECT_FORMAT_COFF
-
 /* We don't support debugging info for now. */
 #undef DBX_DEBUGGING_INFO
 #undef SDB_DEBUGGING_INFO
@@ -85,4 +94,3 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #undef MACHINE_TYPE
 #define MACHINE_TYPE "SGI running IRIX 5.0"
-
This page took 0.059129 seconds and 5 git commands to generate.