powerpc: fix global destructors (fix #40)

This commit is contained in:
Wolfgang Thaller 2018-03-28 22:09:23 +02:00
parent f1fc4cd228
commit 401278a18e
2 changed files with 5 additions and 1 deletions

View File

@ -1123,7 +1123,7 @@ rs6000-ibm-aix[56789].* | powerpc-ibm-aix[56789].*)
extra_parts="crtcxa.o crtcxa_s.o crtdbase.o"
;;
powerpc-*-macos)
tmake_file="t-fdpbit rs6000/t-ibm-ldouble rs6000/t-aix-cxa"
tmake_file="t-fdpbit rs6000/t-ibm-ldouble"
;;
rl78-*-elf)
tmake_file="$tm_file t-fdpbit rl78/t-rl78"

View File

@ -28,9 +28,13 @@
int main(int argc, char* argv[]);
void __do_global_dtors();
void __start()
{
int result;
atexit(&__do_global_dtors);
{
char *argv[2] = { "./a.out", NULL };
result = main(1, argv);