3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
6 --- glibc-2.2.5/include/libc-symbols.h~cris-libc-symbols.patch 2004-09-03 19:00:33.000000000 -0500
7 +++ glibc-2.2.5/include/libc-symbols.h 2004-09-03 19:00:37.000000000 -0500
9 # define __make_section_unallocated(section_string)
12 -/* Tacking on "\n\t#" to the section name makes gcc put it's bogus
13 - section attributes on what looks like a comment to the assembler. */
14 +/* Tacking on "\n\t#" to the section name makes gcc put its bogus
15 + section attributes on what looks like a comment to the assembler.
16 + Furthermore, with gas, we need to add a "#APP" line so the comment
17 + is recognized as such. */
19 +# define __as_app_line "#APP\n"
21 +# define __as_app_line ""
23 # ifdef HAVE_SECTION_QUOTES
24 # define link_warning(symbol, msg) \
25 __make_section_unallocated (".gnu.warning." #symbol) \
26 - static const char __evoke_link_warning_##symbol[] \
27 - __attribute__ ((section (".gnu.warning." #symbol "\"\n\t#\""))) = msg;
28 + static const char __evoke_link_warning_##symbol[] \
30 + ((section (".gnu.warning." #symbol "\"\n" __as_app_line "\t#\""))) \
33 # define link_warning(symbol, msg) \
34 __make_section_unallocated (".gnu.warning." #symbol) \
35 - static const char __evoke_link_warning_##symbol[] \
36 - __attribute__ ((section (".gnu.warning." #symbol "\n\t#"))) = msg;
37 + static const char __evoke_link_warning_##symbol[] \
39 + ((section (".gnu.warning." #symbol "\n" __as_app_line "\t#"))) \
42 # else /* Not ELF: a.out */