diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1994-02-20 12:39:12 -0800 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1994-02-20 12:39:12 -0800 |
commit | 8571bab7e68dfd9683740570251352aa75ab9515 (patch) | |
tree | c8c544c3a1f7f1ae60f109b44e3552fad04e4511 /gcc | |
parent | b7bb5c984d90dbcda521093aaed90fba8194cbeb (diff) | |
download | gcc-8571bab7e68dfd9683740570251352aa75ab9515.zip gcc-8571bab7e68dfd9683740570251352aa75ab9515.tar.gz gcc-8571bab7e68dfd9683740570251352aa75ab9515.tar.bz2 |
(OBJECT_FORMAT_ELF): Add comments.
From-SVN: r6592
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/mips/iris5.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/gcc/config/mips/iris5.h b/gcc/config/mips/iris5.h index ad9388c..eec6190 100644 --- a/gcc/config/mips/iris5.h +++ b/gcc/config/mips/iris5.h @@ -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" - |