aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-05-24 06:50:33 +0000
committerRichard Stallman <rms@gnu.org>1993-05-24 06:50:33 +0000
commit9a881238debcb40bac276085190116922be04b50 (patch)
tree25ac4c8f034b71fceeb0bbaf99e53612cc4acab7
parente38ba83aeb026e8e8873f25dd44440f6114e73fa (diff)
downloadgcc-9a881238debcb40bac276085190116922be04b50.zip
gcc-9a881238debcb40bac276085190116922be04b50.tar.gz
gcc-9a881238debcb40bac276085190116922be04b50.tar.bz2
(STARTFILE_SPEC, LINK_SPEC): New overrides.
From-SVN: r4550
-rw-r--r--gcc/config/i386/aix386.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/config/i386/aix386.h b/gcc/config/i386/aix386.h
index 5a959d0..90506ff 100644
--- a/gcc/config/i386/aix386.h
+++ b/gcc/config/i386/aix386.h
@@ -18,8 +18,27 @@ You should have received a copy of the GNU General Public License
along with GNU CC; see the file COPYING. If not, write to
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+/*
+ * This configuration file is for gcc with gas-2.x and gnu ld 2.x
+ * with aix ps/2 1.3.x.
+ */
+
#include "i386/aix386ng.h"
+/* Use crt1.o as a startup file and crtn.o as a closing file.
+ And add crtbegin.o and crtend.o for ctors and dtors */
+
+#undef STARTFILE_SPEC
+#define STARTFILE_SPEC \
+ "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}} crtbegin.o%s"
+#undef ENDFILE_SPEC
+#define ENDFILE_SPEC \
+ "crtend.o%s crtn.o%s"
+
+/* Removed the -K flags because the gnu ld does not handle it */
+#undef LINK_SPEC
+#define LINK_SPEC "%{T*} %{z:-lm}"
+
/* Define a few machine-specific details of the implementation of
constructors. */