svn commit: branches/uClibc-nptl: include libc/sysdeps/linux/sh/bits

carmelo at uclibc.org carmelo at uclibc.org
Thu Sep 18 15:16:30 UTC 2008


Author: carmelo
Date: 2008-09-18 08:16:30 -0700 (Thu, 18 Sep 2008)
New Revision: 23433

Log:
sh_nptl: Enable CFI directives for sh

Enable CFI directives for sh to add proper CFI information into
assembly functions. This provides stack frame information used
during stack unwinding as well by debugger for backtracing.

Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono at st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso at st.com>


Modified:
   branches/uClibc-nptl/include/libc-symbols.h
   branches/uClibc-nptl/libc/sysdeps/linux/sh/bits/uClibc_arch_features.h


Changeset:
Modified: branches/uClibc-nptl/include/libc-symbols.h
===================================================================
--- branches/uClibc-nptl/include/libc-symbols.h	2008-09-18 15:14:15 UTC (rev 23432)
+++ branches/uClibc-nptl/include/libc-symbols.h	2008-09-18 15:16:30 UTC (rev 23433)
@@ -112,6 +112,12 @@
 # undef HAVE_ASM_GLOBAL_DOT_NAME
 #endif
 
+#ifdef __UCLIBC_HAVE_ASM_CFI_DIRECTIVES__
+# define HAVE_ASM_CFI_DIRECTIVES
+#else
+# undef HAVE_ASM_CFI_DIRECTIVES
+#endif
+
 #if defined HAVE_ASM_WEAK_DIRECTIVE || defined HAVE_ASM_WEAKEXT_DIRECTIVE
 # define HAVE_WEAK_SYMBOLS
 #endif

Modified: branches/uClibc-nptl/libc/sysdeps/linux/sh/bits/uClibc_arch_features.h
===================================================================
--- branches/uClibc-nptl/libc/sysdeps/linux/sh/bits/uClibc_arch_features.h	2008-09-18 15:14:15 UTC (rev 23432)
+++ branches/uClibc-nptl/libc/sysdeps/linux/sh/bits/uClibc_arch_features.h	2008-09-18 15:16:30 UTC (rev 23433)
@@ -39,6 +39,9 @@
 /* needed probably only for ppc64 */
 #undef __UCLIBC_HAVE_ASM_GLOBAL_DOT_NAME__
 
+/* define if target supports CFI pseudo ops */
+#define __UCLIBC_HAVE_ASM_CFI_DIRECTIVES__
+
 /* define if target supports IEEE signed zero floats */
 #define __UCLIBC_HAVE_SIGNED_ZERO__
 




More information about the uClibc-cvs mailing list