mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-26 06:49:33 +00:00
powerpc: fix global destructors (fix #40)
This commit is contained in:
parent
f1fc4cd228
commit
401278a18e
@ -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"
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user