From 2fcb858cb4998559481133c3cd3a5bc390470695 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Tue, 24 May 2011 14:27:16 +0000 Subject: [PATCH] * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove. From-SVN: r174116 --- gcc/ChangeLog | 4 ++++ gcc/config/i386/sol2.h | 10 ---------- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 84724f0c5ba..1f658ebc7cf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-05-24 Rainer Orth + + * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove. + 2011-05-24 Richard Guenther PR bootstrap/49078 diff --git a/gcc/config/i386/sol2.h b/gcc/config/i386/sol2.h index 36ca62f904c..dc5b99e3a85 100644 --- a/gcc/config/i386/sol2.h +++ b/gcc/config/i386/sol2.h @@ -19,16 +19,6 @@ You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see . */ -/* The Solaris 2.0 x86 linker botches alignment of code sections. - It tries to align to a 16 byte boundary by padding with 0x00000090 - ints, rather than 0x90 bytes (nop). This generates trash in the - ".init" section since the contribution from crtbegin.o is only 7 - bytes. The linker pads it to 16 bytes with a single 0x90 byte, and - two 0x00000090 ints, which generates a segmentation violation when - executed. This macro forces the assembler to do the padding, since - it knows what it is doing. */ -#define FORCE_CODE_SECTION_ALIGN asm(ALIGN_ASM_OP "16"); - /* Old versions of the Solaris assembler can not handle the difference of labels in different sections, so force DW_EH_PE_datarel. */ #undef ASM_PREFERRED_EH_DATA_FORMAT -- 2.30.2