From 750930c1f87332d91ef00835a8e3bb4cd2e028f9 Mon Sep 17 00:00:00 2001 From: Melissa O'Neill Date: Sat, 19 Sep 1998 23:01:43 +0000 Subject: configure.in: Disable collect2 for nextstep. * configure.in: Disable collect2 for nextstep. Instead use crtbegin/crtend. * configure: Rebuilt. * config/nextstep.h (STARTFILE_SPEC): Add crtbegin. (ENDFILE_SPEC): Define. (OBJECT_FORMAT_MACHO): Define. (EH_FRAME_SECTION_ASM_OP): Define. * crtstuff.c: Handle MACHO. From-SVN: r22487 --- gcc/config/nextstep.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'gcc/config/nextstep.h') diff --git a/gcc/config/nextstep.h b/gcc/config/nextstep.h index 854832d..a3919f7 100644 --- a/gcc/config/nextstep.h +++ b/gcc/config/nextstep.h @@ -167,7 +167,12 @@ Boston, MA 02111-1307, USA. */ %{!p:-lcrt0.o}}}\ %{posix*:%{pg:-lgposixcrt0.o}%{!pg: \ %{p:%e-p profiling is no longer supported. Use -pg instead.} \ - %{!p:-lposixcrt0.o}}}" + %{!p:-lposixcrt0.o}}} \ + -lcrtbegin.o" + +#undef ENDFILE_SPEC +#define ENDFILE_SPEC \ + "-lcrtend.o" /* Allow #sscs (but don't do anything). */ @@ -203,6 +208,9 @@ Boston, MA 02111-1307, USA. */ "\t.text\n\t.stabs \"%s\",%d,0,0,Letext\nLetext:\n", \ "" , N_SO) +/* Define our object format type for crtstuff.c */ +#define OBJECT_FORMAT_MACHO + /* Don't use .gcc_compiled symbols to communicate with GDB; They interfere with numerically sorted symbol lists. */ @@ -232,6 +240,8 @@ Boston, MA 02111-1307, USA. */ fprintf (FILE, ".reference .destructors_used\n"); \ } while (0) +#define EH_FRAME_SECTION_ASM_OP ".section __TEXT,__eh_frame,regular" + /* Don't output a .file directive. That is only used by the assembler for error reporting. */ #undef ASM_FILE_START -- cgit v1.1