pa.h (DO_GLOBAL_DTORS_BODY): Define.
authorJeff Law <law@gcc.gnu.org>
Thu, 29 Dec 1994 03:06:00 +0000 (20:06 -0700)
committerJeff Law <law@gcc.gnu.org>
Thu, 29 Dec 1994 03:06:00 +0000 (20:06 -0700)
* config/pa/pa.h (DO_GLOBAL_DTORS_BODY): Define.  Include a
reference to __gcc_plt_call so __gcc_plt_call always appears in
executables which reference __main.

From-SVN: r8702

gcc/config/pa/pa.h

index 1bd3bd1d98abd12ccab47a0c766046d73df10e4d..197c79b8c0d420b33dce00cd00c14620c09ca912 100644 (file)
@@ -2107,3 +2107,13 @@ extern struct rtx_def *hppa_save_pic_table_rtx;
   {"call_operand_address", {LABEL_REF, SYMBOL_REF, CONST_INT,          \
                            CONST, HIGH}},
 #endif
+
+#define DO_GLOBAL_DTORS_BODY \
+do { \
+  extern void __gcc_plt_call (); \
+  volatile int reference = &__gcc_plt_call; \
+  func_ptr *p; \
+  for (p = __DTOR_LIST__ + 1; *p; ) \
+    (*p++) (); \
+} while (0)
+