Commit ffa8b829 by Jeff Law

pa.h (DO_GLOBAL_DTORS_BODY): Define.

	* 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
parent 65b70401
......@@ -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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment