From: Jie Zhang Date: Fri, 24 Aug 2007 02:50:23 +0000 (+0000) Subject: * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc. X-Git-Tag: releases/gcc-4.3.0~3152 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=212db394b389a5de026ad29cd14899851c588349;p=thirdparty%2Fgcc.git * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc. From-SVN: r127758 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b0b0b620bf7e..f10d68b2527f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2007-08-24 Jie Zhang + + * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc. + 2007-08-24 Jie Zhang * config/bfin/bfin.opt (mfast-fp): Add. diff --git a/gcc/crtstuff.c b/gcc/crtstuff.c index fc57d45afc83..49e68cdebbb1 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 -# 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