From d460fb3cdd284fb444d228af2f2f0b2c885b33b1 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 17 Jun 1998 10:31:24 +0000 Subject: dwarf2out.c: Disable EH_FRAME_SECTION if we don't have .init. * dwarf2out.c: Disable EH_FRAME_SECTION if we don't have .init. * configure.in: Don't disable collect2 when we have GNU ld. From-SVN: r20536 --- gcc/dwarf2out.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 52f02cd..6d6a502 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -1624,6 +1624,11 @@ output_cfi (cfi, fde) #endif #endif +/* If we aren't using crtstuff to run ctors, don't use it for EH. */ +#if !defined (HAS_INIT_SECTION) && !defined (INIT_SECTION_ASM_OP) +#undef EH_FRAME_SECTION +#endif + /* Output the call frame information used to used to record information that relates to calculating the frame pointer, and records the location of saved registers. */ -- cgit v1.1