From 3cbd714aa558ccb83ed8294779d9dcd4399dd24f Mon Sep 17 00:00:00 2001 From: Andrew Hsieh Date: Wed, 7 Aug 2013 14:07:56 +0800 Subject: [4.6,4.7] Always enable --eh-frame-hdr for static executable See 23e3137ee2897464b051599b85a09f130d3ad05d for the reason why. backport 4.8 patch from http://gcc.gnu.org/ml/gcc-patches/2012-09/msg00969.html Change-Id: I9496e11f314e5e2ec9359b993016723ab6366dad --- gcc-4.6/gcc/config.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gcc-4.6/gcc/config.in') diff --git a/gcc-4.6/gcc/config.in b/gcc-4.6/gcc/config.in index f7541ec66..3294f0dcd 100644 --- a/gcc-4.6/gcc/config.in +++ b/gcc-4.6/gcc/config.in @@ -1752,6 +1752,12 @@ #endif +/* Define if your system supports PT_GNU_EH_FRAME for static executable. */ +#ifndef USED_FOR_TARGET +#undef USE_EH_FRAME_HDR_FOR_STATIC +#endif + + /* Define to 1 if the 'long long' (or '__int64') is wider than 'long' but still efficiently supported by the host hardware. */ #ifndef USED_FOR_TARGET -- cgit v1.2.3