* 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
{"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)
+