Revert "Support powerpc when builing without init_array."

This reverts commit 5789e83ded. It broke
the build on aarch64.
This commit is contained in:
Dmitri Gribenko 2019-12-19 11:24:51 +01:00
parent f20fc65887
commit 0109efe751
1 changed files with 3 additions and 17 deletions

View File

@ -57,15 +57,8 @@ __asm__(".pushsection .init,\"ax\",@progbits\n\t"
__asm__(".pushsection .init,\"ax\",%progbits\n\t"
"bl " __USER_LABEL_PREFIX__ "__do_init\n\t"
".popsection");
#elif defined(__powerpc__) || defined(__powerpc64__)
__asm__(".pushsection .init,\"ax\",@progbits\n\t"
"bl " __USER_LABEL_PREFIX__ "__do_init\n\t"
"nop\n\t"
".popsection");
#else
#error "crtbegin without .init_fini array unimplemented for this architecture"
#endif // defined(various architectures)
#endif // CRT_HAS_INITFINI_ARRAY
#endif // CRT_HAS_INITFINI_ARRAY
#endif
#ifndef CRT_HAS_INITFINI_ARRAY
static fp __DTOR_LIST__[]
@ -104,12 +97,5 @@ __asm__(".pushsection .fini,\"ax\",@progbits\n\t"
__asm__(".pushsection .fini,\"ax\",%progbits\n\t"
"bl " __USER_LABEL_PREFIX__ "__do_fini\n\t"
".popsection");
#elif defined(__powerpc__) || defined(__powerpc64__)
__asm__(".pushsection .fini,\"ax\",@progbits\n\t"
"bl " __USER_LABEL_PREFIX__ "__do_fini\n\t"
"nop\n\t"
".popsection");
#else
#error "crtbegin without .init_fini array unimplemented for this architecture"
#endif // defined(various architectures)
#endif
#endif // CRT_HAS_INIT_FINI_ARRAY