From 5868ca2010ebbce248f9850dbbaaccce18db4c35 Mon Sep 17 00:00:00 2001
From: Jim Wilson <wilson@gcc.gnu.org>
Date: Fri, 5 Feb 1993 15:41:52 -0800
Subject: [PATCH] (__do_global_ctors_aux):  Use FORCE_INIT_SECTION_ALIGN to
 avoid Solaris 2, x86 linker bug.

From-SVN: r3429
---
 gcc/crtstuff.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index 0b8fc36b9acf..a0ecbbeb040a 100644
--- a/gcc/crtstuff.c
+++ b/gcc/crtstuff.c
@@ -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);
-- 
GitLab