* config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
* config/darwin-crt2.c: Only have contents on __ppc__.
From-SVN: r81230
+2004-04-27 Geoffrey Keating <geoffk@apple.com>
+
+ * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
+ * config/darwin-crt2.c: Only have contents on __ppc__.
+
2004-04-27 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.c (call_insn_operand): Check
/* KeyMgr backwards-compatibility support for Darwin.
- Copyright (C) 2001, 2002 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of GCC.
#include "tconfig.h"
#include "tsystem.h"
+/* This file doesn't do anything useful on non-powerpc targets, since they
+ don't have backwards compatibility anyway. */
+
+#ifdef __ppc__
+
/* Homemade decls substituting for getsect.h and dyld.h, so cross
compilation works. */
struct mach_header;
_dyld_register_func_for_add_image (darwin_unwind_dyld_add_image_hook);
_dyld_register_func_for_remove_image (darwin_unwind_dyld_remove_image_hook);
}
+
+#endif /* __ppc__ */
%{!Zbundle:%{pg:%{static:-lgcrt0.o} \
%{!static:%{object:-lgcrt0.o} \
%{!object:%{preload:-lgcrt0.o} \
- %{!preload:-lgcrt1.o -lcrt2.o}}}} \
+ %{!preload:-lgcrt1.o crt2.o%s}}}} \
%{!pg:%{static:-lcrt0.o} \
%{!static:%{object:-lcrt0.o} \
%{!object:%{preload:-lcrt0.o} \
- %{!preload:-lcrt1.o -lcrt2.o}}}}}}"
+ %{!preload:-lcrt1.o crt2.o%s}}}}}}"
/* The native Darwin linker doesn't necessarily place files in the order
that they're specified on the link line. Thus, it is pointless