diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-02-12 20:55:24 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-02-12 20:55:24 -0500 |
commit | 12e2fea92c88bf62ef9a5c03bdf0817ceb706300 (patch) | |
tree | 4ae73f828093897cdae635e60f647853e55e8b44 | |
parent | dcd93d0494b579a734f7c83cc6d13c567c34ddea (diff) | |
download | gcc-12e2fea92c88bf62ef9a5c03bdf0817ceb706300.zip gcc-12e2fea92c88bf62ef9a5c03bdf0817ceb706300.tar.gz gcc-12e2fea92c88bf62ef9a5c03bdf0817ceb706300.tar.bz2 |
(STARTFILE_SPEC): Add crtbeginS.o if -shared.
(CC1_SPEC): New.
(LIB_SPEC): Remove %{mieee-fp:-lieee}; use -lc_p for -profile.
From-SVN: r11246
-rw-r--r-- | gcc/config/linux.h | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/gcc/config/linux.h b/gcc/config/linux.h index de2934a..eaa74f0 100644 --- a/gcc/config/linux.h +++ b/gcc/config/linux.h @@ -67,21 +67,12 @@ 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:%{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 + crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}" /* Provide a ENDFILE_SPEC appropriate for Linux. Here we tack on the Linux magical crtend.o file (see crtstuff.c) which @@ -90,10 +81,25 @@ 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" + +/* This is for -profile to use -lc_p instead of -lc. */ +#undef CC1_SPEC +#define CC1_SPEC "%{profile:-p}" + +#undef LIB_SPEC +#if 1 +/* We no longer link with libc_p.a or libg.a by default. If you + * want to profile or debug the Linux C library, please add + * -profile or -ggdb to LDFLAGS at the link time, respectively. + */ +#define LIB_SPEC \ + "%{!shared: %{p:-lgmon} %{pg:-lgmon} %{profile:-lgmon -lc_p} \ + %{!profile:%{!ggdb:-lc} %{ggdb:-lg}}}" #else -#define ENDFILE_SPEC \ - "crtend.o%s crtn.o%s" +#define LIB_SPEC \ + "%{!shared: \ + %{p:-lgmon -lc_p} %{pg:-lgmon -lc_p} \ + %{!p:%{!pg:%{!g*:-lc} %{g*:-lg}}}}" #endif |