summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/gcc/config/m68k/aux-crt2.asm
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-14 19:27:17 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1998-02-14 19:27:17 +0000
commit6de8cb0481bd793706e38dead271f9233a57b7e5 (patch)
tree7ff9ff6922a48636469d3b019d912ee0b7894c00 /gnu/usr.bin/gcc/config/m68k/aux-crt2.asm
parent627e15b4811e5758670f68174f71540e63fb4040 (diff)
Diffstat (limited to 'gnu/usr.bin/gcc/config/m68k/aux-crt2.asm')
-rw-r--r--gnu/usr.bin/gcc/config/m68k/aux-crt2.asm42
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/config/m68k/aux-crt2.asm b/gnu/usr.bin/gcc/config/m68k/aux-crt2.asm
new file mode 100644
index 00000000000..062c16ae8c2
--- /dev/null
+++ b/gnu/usr.bin/gcc/config/m68k/aux-crt2.asm
@@ -0,0 +1,42 @@
+/* More startup code for A/UX */
+
+#include "tm.h"
+
+#ifdef USE_BIN_AS
+ file "crt2.s"
+
+/* The init section is used to support shared libraries */
+ init
+ global __istart
+
+__istart:
+ link %fp,&-4
+#else
+ .file "crt2.s"
+
+/* The init section is used to support shared libraries */
+.section .init, "x"
+.even
+.globl __istart
+
+__istart:
+ link %fp,#-4
+
+#ifndef USE_COLLECT2
+/* The ctors and dtors sections are used to support COFF collection of
+ c++ constructors and destructors */
+.section .ctors, "d"
+.even
+.globl __CTOR_LIST__
+
+__CTOR_LIST__:
+ .long -1
+
+.section .dtors, "d"
+.even
+.globl __DTOR_LIST__
+
+__DTOR_LIST__:
+ .long -1
+#endif /* USE_COLLECT2 */
+#endif /* USE_BIN_AS */