1998-12-16 17:49:45 +03:00
|
|
|
/* netbsd sparc ELF configuration */
|
|
|
|
/* be nice to merge this with netbsd64.h somehow */
|
|
|
|
|
|
|
|
#include <sparc/elf.h>
|
|
|
|
|
|
|
|
/* ok, clean up after <sparc/elf.h> */
|
|
|
|
|
|
|
|
/* clean up after <sparc/elf.h> */
|
|
|
|
#undef CPP_SUBTARGET_SPEC
|
|
|
|
#define CPP_SUBTARGET_SPEC ""
|
|
|
|
|
1999-02-01 01:21:47 +03:00
|
|
|
#undef MULDI3_LIBCALL
|
|
|
|
#undef DIVDI3_LIBCALL
|
|
|
|
#undef UDIVDI3_LIBCALL
|
|
|
|
#undef MODDI3_LIBCALL
|
|
|
|
#undef UMODDI3_LIBCALL
|
1999-02-14 20:14:08 +03:00
|
|
|
#undef INIT_SUBTARGET_OPTABS
|
|
|
|
#define INIT_SUBTARGET_OPTABS
|
1999-02-01 01:21:47 +03:00
|
|
|
|
1998-12-16 17:49:45 +03:00
|
|
|
#define NETBSD_ELF
|
|
|
|
#include <netbsd.h>
|
|
|
|
|
1999-02-01 00:18:36 +03:00
|
|
|
#undef CPP_PREDEFINES
|
|
|
|
#define CPP_PREDEFINES "\
|
|
|
|
-D__sparc__ -D__sparc -D__NetBSD__ -D__ELF__ -D__KPRINTF_ATTRIBUTE__ \
|
|
|
|
-Asystem(unix) -Asystem(NetBSD) -Acpu(sparc) -Amachine(sparc)"
|
|
|
|
|
1998-12-16 17:49:45 +03:00
|
|
|
#undef SIZE_TYPE
|
1999-06-05 16:56:28 +04:00
|
|
|
#define SIZE_TYPE "long unsigned int"
|
1998-12-16 17:49:45 +03:00
|
|
|
|
|
|
|
#undef PTRDIFF_TYPE
|
1999-06-05 16:56:28 +04:00
|
|
|
#define PTRDIFF_TYPE "long int"
|
1998-12-16 17:49:45 +03:00
|
|
|
|
|
|
|
#undef WCHAR_TYPE
|
|
|
|
#define WCHAR_TYPE "int"
|
|
|
|
|
|
|
|
#undef WCHAR_TYPE_SIZE
|
|
|
|
#define WCHAR_TYPE_SIZE 32
|
|
|
|
|
|
|
|
#undef WCHAR_UNSIGNED
|
|
|
|
#define WCHAR_UNSIGNED 0
|
|
|
|
|
|
|
|
#undef PREFERRED_DEBUGGING_TYPE
|
|
|
|
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
|
|
|
|
|
|
|
|
/* This is the char to use for continuation (in case we need to turn
|
|
|
|
continuation back on). */
|
|
|
|
#undef DBX_CONTIN_CHAR
|
|
|
|
#define DBX_CONTIN_CHAR '?'
|
|
|
|
|
|
|
|
/*#undef ASM_OUTPUT_SKIP*/
|
|
|
|
|
|
|
|
#undef DBX_REGISTER_NUMBER
|
|
|
|
#define DBX_REGISTER_NUMBER(REGNO) \
|
|
|
|
(TARGET_FLAT && REGNO == FRAME_POINTER_REGNUM ? 31 : REGNO)
|
|
|
|
|
|
|
|
/* This is how to output a definition of an internal numbered label where
|
|
|
|
PREFIX is the class of label and NUM is the number within the class. */
|
|
|
|
|
|
|
|
#undef ASM_OUTPUT_INTERNAL_LABEL
|
|
|
|
#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM) \
|
|
|
|
fprintf (FILE, ".L%s%d:\n", PREFIX, NUM)
|
|
|
|
|
|
|
|
/* This is how to store into the string LABEL
|
|
|
|
the symbol_ref name of an internal numbered label where
|
|
|
|
PREFIX is the class of label and NUM is the number within the class.
|
|
|
|
This is suitable for output with `assemble_name'. */
|
|
|
|
|
|
|
|
#undef ASM_GENERATE_INTERNAL_LABEL
|
|
|
|
#define ASM_GENERATE_INTERNAL_LABEL(LABEL,PREFIX,NUM) \
|
|
|
|
sprintf ((LABEL), "*.L%s%ld", (PREFIX), (long)(NUM))
|
|
|
|
|
|
|
|
#undef ASM_SPEC
|
|
|
|
#define ASM_SPEC "%{fpic:-K PIC} %{fPIC:-K PIC} \
|
|
|
|
%{mlittle-endian:-EL} \
|
|
|
|
%(asm_cpu) \
|
|
|
|
"
|
1999-03-11 03:11:10 +03:00
|
|
|
#undef LINK_SPEC
|
|
|
|
#define LINK_SPEC \
|
|
|
|
"-m elf32_sparc \
|
|
|
|
%{assert*} %{R*} \
|
|
|
|
%{shared:-shared} \
|
|
|
|
%{!shared: \
|
|
|
|
-dc -dp \
|
|
|
|
%{!nostdlib:%{!r*:%{!e*:-e __start}}} \
|
|
|
|
%{!static: \
|
|
|
|
%{rdynamic:-export-dynamic} \
|
|
|
|
%{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \
|
|
|
|
%{static:-static}}"
|
1998-12-16 17:49:45 +03:00
|
|
|
|
|
|
|
#undef STDC_0_IN_SYSTEM_HEADERS
|
|
|
|
|
|
|
|
/* Name the port. */
|
|
|
|
#undef TARGET_NAME
|
|
|
|
#define TARGET_NAME "sparc-netbsdelf"
|
|
|
|
|
|
|
|
/* XXX Redefine this; <sparc/sparc.h> mucks with it. */
|
|
|
|
#undef TARGET_VERSION
|
|
|
|
#define TARGET_VERSION fprintf (stderr, " (%s)", TARGET_NAME);
|
|
|
|
|
|
|
|
/* Name the target CPU. */
|
|
|
|
#ifndef TARGET_CPU_DEFAULT
|
|
|
|
#define TARGET_CPU_DEFAULT TARGET_CPU_sparc
|
|
|
|
#endif
|
2000-06-09 00:23:47 +04:00
|
|
|
|
|
|
|
/* Use sjlj exceptions. */
|
|
|
|
#define DWARF2_UNWIND_INFO 0
|