diff options
author | jiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-24 02:50:23 +0000 |
---|---|---|
committer | jiez <jiez@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-08-24 02:50:23 +0000 |
commit | b0c091c837bf7eca5ea13642e0ab29c1e2c01935 (patch) | |
tree | d40564af2fc09c60616c36ba482e13cd8699e8d2 /gcc/crtstuff.c | |
parent | 596710c96264bfc07842dad641dfd5244112ca01 (diff) | |
download | gcc-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.c | 5 |
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 |