svn commit: trunk/uClibc/include
vapier at uclibc.org
vapier at uclibc.org
Thu Sep 21 01:46:11 UTC 2006
Author: vapier
Date: 2006-09-20 18:46:11 -0700 (Wed, 20 Sep 2006)
New Revision: 16168
Log:
use proper #APP lines so that the assembler knows when it needs to handle parsing (see http://sources.redhat.com/ml/binutils/2004-04/msg00665.html)
Modified:
trunk/uClibc/include/libc-symbols.h
Changeset:
Modified: trunk/uClibc/include/libc-symbols.h
===================================================================
--- trunk/uClibc/include/libc-symbols.h 2006-09-20 22:06:01 UTC (rev 16167)
+++ trunk/uClibc/include/libc-symbols.h 2006-09-21 01:46:11 UTC (rev 16168)
@@ -281,25 +281,21 @@
#define __make_section_unallocated(section_string) \
__asm__ (".section " section_string "\n\t.previous");
-/* Tacking on "\n\t#" to the section name makes gcc put it's bogus
+/* Tacking on "\n#APP\n\t#" to the section name makes gcc put it's bogus
section attributes on what looks like a comment to the assembler. */
#ifdef __sparc__ //HAVE_SECTION_QUOTES
-# define __sec_comment "\"\n\t#\""
+# define __sec_comment "\"\n#APP\n\t#\""
#else
-# define __sec_comment "\n\t#"
+# define __sec_comment "\n#APP\n\t#"
#endif
/* When a reference to SYMBOL is encountered, the linker will emit a
warning message MSG. */
-#if defined(__cris__) || defined(__vax__)
-# define link_warning(symbol, msg)
-#else
-# define link_warning(symbol, msg) \
+#define link_warning(symbol, msg) \
__make_section_unallocated (".gnu.warning." #symbol) \
static const char __evoke_link_warning_##symbol[] \
__attribute__ ((used, section (".gnu.warning." #symbol __sec_comment))) \
= msg;
-#endif
/* Handling on non-exported internal names. We have to do this only
for shared code. */
More information about the uClibc-cvs
mailing list