summaryrefslogtreecommitdiff
path: root/gcc/crtstuff.c
diff options
context:
space:
mode:
authorjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-24 02:50:23 +0000
committerjiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-24 02:50:23 +0000
commitb0c091c837bf7eca5ea13642e0ab29c1e2c01935 (patch)
treed40564af2fc09c60616c36ba482e13cd8699e8d2 /gcc/crtstuff.c
parent596710c96264bfc07842dad641dfd5244112ca01 (diff)
downloadgcc-b0c091c837bf7eca5ea13642e0ab29c1e2c01935.tar.gz
* crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127758 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/crtstuff.c')
-rw-r--r--gcc/crtstuff.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c
index fc57d45afc8..49e68cdebbb 100644
--- a/gcc/crtstuff.c
+++ b/gcc/crtstuff.c
@@ -92,7 +92,10 @@ call_ ## FUNC (void) \
&& !defined(inhibit_libc) && !defined(CRTSTUFFT_O) \
&& defined(__GLIBC__) && __GLIBC__ >= 2
#include <link.h>
-# if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
+/* uClibc pretends to be glibc 2.2 and DT_CONFIG is defined in its link.h.
+ But it doesn't use PT_GNU_EH_FRAME ELF segment currently. */
+# if !defined(__UCLIBC__) \
+ && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2) \
|| (__GLIBC__ == 2 && __GLIBC_MINOR__ == 2 && defined(DT_CONFIG)))
# define USE_PT_GNU_EH_FRAME
# endif