From: Jeff Law Date: Thu, 29 Dec 1994 03:06:00 +0000 (-0700) Subject: pa.h (DO_GLOBAL_DTORS_BODY): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ffa8b8294b0260f1416593f2d2e952049a2dc521;p=gcc.git 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 --- diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h index 1bd3bd1d98a..197c79b8c0d 100644 --- a/gcc/config/pa/pa.h +++ b/gcc/config/pa/pa.h @@ -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) +