]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/glibc/glibc-2.2.5/cris-libc-symbols.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / glibc / glibc-2.2.5 / cris-libc-symbols.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
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
8 @@ -207,18 +207,29 @@
9  #   define __make_section_unallocated(section_string)
10  #  endif
11  
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.  */
18 +#  ifdef HAVE_GNU_AS
19 +#   define __as_app_line "#APP\n"
20 +#  else
21 +#   define __as_app_line ""
22 +#  endif
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[]                     \
29 +    __attribute__                                                       \
30 +      ((section (".gnu.warning." #symbol "\"\n" __as_app_line "\t#\""))) \
31 +    = msg;
32  #  else
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[]                    \
38 +    __attribute__                                                      \
39 +      ((section (".gnu.warning." #symbol "\n" __as_app_line "\t#")))   \
40 +    = msg;
41  #  endif
42  # else /* Not ELF: a.out */
43  #  ifdef HAVE_XCOFF