From 51601538b89a6ff580a04fa26cb47c1822a74629 Mon Sep 17 00:00:00 2001 From: jsm28 Date: Wed, 24 Nov 2004 14:35:31 +0000 Subject: 2004-11-24 Mark Mitchell Joseph Myers * crtstuff.c (IN_LIBGCC2): Define it. (EH_FRAME_SECTION_CONST): Check EH_TABLES_CAN_BE_READ_ONLY instead of HAVE_LD_RO_RW_SECTION_MIXING. * defaults.h (EH_TABLES_CAN_BE_READ_ONLY): New macro. * dwarf2out.c (named_section_eh_frame_section): Check EH_TABLES_CAN_BE_READ_ONLY. * except.c (default_exception_section): Likewise. * config/i386/sol2.h (EH_TABLES_CAN_BE_READ_ONLY): Define. * doc/tm.texi (EH_TABLES_CAN_BE_READ_ONLY): Document. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91160 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/crtstuff.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/crtstuff.c') diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index 22f221b90b2..0e362f3a91f 100644 --- a/gcc/crtstuff.c +++ b/gcc/crtstuff.c @@ -55,6 +55,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA compiled for the target, and hence definitions concerning only the host do not apply. */ +#define IN_LIBGCC2 + /* We include auto-host.h here to get HAVE_GAS_HIDDEN. This is supposedly valid even though this is a "target" file. */ #include "auto-host.h" @@ -92,7 +94,7 @@ call_ ## FUNC (void) \ #if defined(EH_FRAME_SECTION_NAME) && !defined(USE_PT_GNU_EH_FRAME) # define USE_EH_FRAME_REGISTRY #endif -#if defined(EH_FRAME_SECTION_NAME) && defined(HAVE_LD_RO_RW_SECTION_MIXING) +#if defined(EH_FRAME_SECTION_NAME) && EH_TABLES_CAN_BE_READ_ONLY # define EH_FRAME_SECTION_CONST const #else # define EH_FRAME_SECTION_CONST -- cgit v1.2.1