Commit 5868ca20 by Jim Wilson

(__do_global_ctors_aux): Use FORCE_INIT_SECTION_ALIGN

to avoid Solaris 2, x86 linker bug.

From-SVN: r3429
parent 9ad2c692
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment