summaryrefslogtreecommitdiff
path: root/gcc/config/linux.h
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1996-01-15 13:31:41 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1996-01-15 13:31:41 +0000
commite55b7faf88466617fc80925b11341010fa3d19a6 (patch)
treecf15c189b880203637ee23327bde180684d36ad6 /gcc/config/linux.h
parentf3a30d9b5452e89b4700b857df7caa448c956489 (diff)
downloadgcc-e55b7faf88466617fc80925b11341010fa3d19a6.tar.gz
(STARTFILE_SPEC): Use crtbegin.o for both shared llibrary and normal
executable; use gcrt1.o for -profile. (ENDFILE_SPEC): Use crtend.o for shared llibrary and normal executable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10985 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/linux.h')
-rw-r--r--gcc/config/linux.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/gcc/config/linux.h b/gcc/config/linux.h
index 3249db4cc4f..de2934ac2b5 100644
--- a/gcc/config/linux.h
+++ b/gcc/config/linux.h
@@ -1,5 +1,5 @@
/* Definitions for Linux with ELF format
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Contributed by Eric Youngdale.
Modified for stabs-in-ELF by H.J. Lu.
@@ -67,10 +67,21 @@ Boston, MA 02111-1307, USA. */
object constructed before entering `main'. */
#undef STARTFILE_SPEC
+#if 0
#define STARTFILE_SPEC \
"%{!shared: \
- %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}\
+ %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
+ %{!p:%{profile:gcrt1.o%s} \
+ %{!profile:crt1.o%s%}}}} \
crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
+#else
+#define STARTFILE_SPEC \
+ "%{!shared: \
+ %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} \
+ %{!p:%{profile:gcrt1.o%s} \
+ %{!profile:crt1.o%s}}}} \
+ crti.o%s crtbegin.o%s"
+#endif
/* Provide a ENDFILE_SPEC appropriate for Linux. Here we tack on
the Linux magical crtend.o file (see crtstuff.c) which
@@ -79,5 +90,10 @@ Boston, MA 02111-1307, USA. */
Linux "finalizer" file, `crtn.o'. */
#undef ENDFILE_SPEC
+#if 0
#define ENDFILE_SPEC \
"%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
+#else
+#define ENDFILE_SPEC \
+ "crtend.o%s crtn.o%s"
+#endif