diff options
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/crtstuff.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b0b0b620bf7..f10d68b2527 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,9 @@ 2007-08-24 Jie Zhang <jie.zhang@analog.com> + * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define for uClibc. + +2007-08-24 Jie Zhang <jie.zhang@analog.com> + * config/bfin/bfin.opt (mfast-fp): Add. * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Let libbffastfp override libgcc if -mfast-fp. 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 |