aboutsummaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-02-05 15:41:52 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-02-05 15:41:52 -0800
commit5868ca2010ebbce248f9850dbbaaccce18db4c35 (patch)
treeff7e9463b4d9627e98a367cbd44e18834de2b878 /gcc/crtstuff.c
parent9ad2c6927100e3ba84b7e6b6d528cc18ca295ec9 (diff)
downloadgcc-5868ca2010ebbce248f9850dbbaaccce18db4c35.zip
gcc-5868ca2010ebbce248f9850dbbaaccce18db4c35.tar.gz
gcc-5868ca2010ebbce248f9850dbbaaccce18db4c35.tar.bz2
(__do_global_ctors_aux): Use FORCE_INIT_SECTION_ALIGN
to avoid Solaris 2, x86 linker bug. From-SVN: r3429
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r--gcc/crtstuff.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index 0b8fc36..a0ecbbe 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);