diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-02-05 23:41:52 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1993-02-05 23:41:52 +0000 |
commit | 635d52b752235f43c3e2c0da634b9bfdbfa67a5d (patch) | |
tree | ff7e9463b4d9627e98a367cbd44e18834de2b878 /gcc/crtstuff.c | |
parent | 8bacf9e487576c9808791285cbaf0c97da121c4b (diff) | |
download | gcc-635d52b752235f43c3e2c0da634b9bfdbfa67a5d.tar.gz |
(__do_global_ctors_aux): Use FORCE_INIT_SECTION_ALIGN
to avoid Solaris 2, x86 linker bug.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@3429 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r-- | gcc/crtstuff.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index 0b8fc36b9ac..a0ecbbeb040 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); |