diff --git a/mach/sparc/ce/mach_em.h b/mach/sparc/ce/mach_em.h index f79e41a47..33f163f6a 100644 --- a/mach/sparc/ce/mach_em.h +++ b/mach/sparc/ce/mach_em.h @@ -1,5 +1,10 @@ /*#define DEBUG 1 /* define when debugging */ +#ifdef __solaris__ +#include +#else #include +#endif + #define BYTES_REVERSED #define WORDS_REVERSED @@ -32,9 +37,15 @@ #define LONG_FMT ".word %ld\n" #define BSS_FMT ".skip %ld\n" +#ifdef __solaris__ +#define SEGTXT_FMT ".section \".text\"\n" +#define SEGDAT_FMT ".section \".data\"\n" +#define SEGBSS_FMT ".section \".bss\"\n" +#else #define SEGTXT_FMT ".seg \"text\"\n" #define SEGDAT_FMT ".seg \"data\"\n" #define SEGBSS_FMT ".seg \"bss\"\n" +#endif #define SYMBOL_DEF_FMT "%s:\n" #define GLOBAL_FMT ".global %s\n"