diff options
Diffstat (limited to 'lang/gcc/patches/patch-ae')
-rw-r--r-- | lang/gcc/patches/patch-ae | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/lang/gcc/patches/patch-ae b/lang/gcc/patches/patch-ae new file mode 100644 index 00000000000..10ded4d3f17 --- /dev/null +++ b/lang/gcc/patches/patch-ae @@ -0,0 +1,47 @@ +$NetBSD: patch-ae,v 1.1 2000/09/15 23:58:48 tron Exp $ + +--- ../gcc-2.95.2/gcc/config/sparc/netbsd-elf.h.orig Sat Sep 16 00:17:42 2000 ++++ ../gcc-2.95.2/gcc/config/sparc/netbsd-elf.h Sat Sep 16 00:17:42 2000 +@@ -0,0 +1,42 @@ ++/* NetBSD/sparc ELF configuration */ ++ ++/* ++ * Pull in generic SPARC ELF configuration, and then clean up ++ * afterwards ++ */ ++#include <sparc/elf.h> ++ ++/* Name the target CPU. */ ++#ifndef TARGET_CPU_DEFAULT ++#define TARGET_CPU_DEFAULT TARGET_CPU_sparc ++#endif ++ ++#undef MULDI3_LIBCALL ++#undef DIVDI3_LIBCALL ++#undef UDIVDI3_LIBCALL ++#undef MODDI3_LIBCALL ++#undef UMODDI3_LIBCALL ++#undef INIT_SUBTARGET_OPTABS ++#define INIT_SUBTARGET_OPTABS ++ ++#undef CPP_SUBTARGET_SPEC ++#define CPP_SUBTARGET_SPEC "-D__sparc" ++ ++#include <sparc/netbsd-elf-common.h> ++ ++#undef LINK_SPEC ++#define LINK_SPEC \ ++ "-m elf32_sparc \ ++ %{assert*} %{R*} \ ++ %{shared:-shared} \ ++ %{!shared: \ ++ -dy -dc -dp \ ++ %{!nostdlib:%{!r*:%{!e*:-e __start}}} \ ++ %{!static: \ ++ %{rdynamic:-export-dynamic} \ ++ %{!dynamic-linker:-dynamic-linker /usr/libexec/ld.elf_so}} \ ++ %{static:-static}}" ++ ++/* Name the port. */ ++#undef TARGET_NAME ++#define TARGET_NAME "sparc-netbsdelf" |