(__do_global_ctors_aux): Use FORCE_INIT_SECTION_ALIGN

to avoid Solaris 2, x86 linker bug.

From-SVN: r3429
This commit is contained in:
Jim Wilson 1993-02-05 15:41:52 -08:00
parent 9ad2c69271
commit 5868ca2010
1 changed files with 3 additions and 0 deletions

View File

@ -110,6 +110,9 @@ asm (INIT_SECTION_ASM_OP); /* cc1 doesn't know that we are switching! */
static void
__do_global_ctors_aux () /* prologue goes in .init section */
{
#ifdef FORCE_INIT_SECTION_ALIGN
FORCE_INIT_SECTION_ALIGN; /* Explicit align before switch to .text */
#endif
asm (TEXT_SECTION_ASM_OP); /* don't put epilogue and body in .init */
DO_GLOBAL_CTORS_BODY;
ON_EXIT (__do_global_dtors, 0);