patches/glibc/2_9/280-section-comments.patch
branchnewlib
changeset 1365 c4d124ed9f8e
parent 1364 9227d2a2c080
child 1366 5e5d1e6f55d3
     1.1 --- a/patches/glibc/2_9/280-section-comments.patch	Sat Apr 11 19:03:02 2009 +0000
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,29 +0,0 @@
     1.4 -Original patch from: gentoo/src/patchsets/glibc/2.9/1075_all_glibc-section-comments.patch
     1.5 -
     1.6 --= BEGIN original header =-
     1.7 -http://sources.redhat.com/ml/binutils/2004-04/msg00665.html
     1.8 -
     1.9 -fixes building on some architectures (like m68k/arm/cris/etc...) because
    1.10 -it does the right thing
    1.11 -
    1.12 --= END original header =-
    1.13 -
    1.14 -diff -durN glibc-2_9.orig/include/libc-symbols.h glibc-2_9/include/libc-symbols.h
    1.15 ---- glibc-2_9.orig/include/libc-symbols.h	2006-11-09 16:57:12.000000000 +0100
    1.16 -+++ glibc-2_9/include/libc-symbols.h	2009-02-02 22:01:00.000000000 +0100
    1.17 -@@ -240,12 +240,12 @@
    1.18 - #  define __make_section_unallocated(section_string)
    1.19 - # endif
    1.20 - 
    1.21 --/* Tacking on "\n\t#" to the section name makes gcc put it's bogus
    1.22 -+/* Tacking on "\n#APP\n\t#" to the section name makes gcc put it's bogus
    1.23 -    section attributes on what looks like a comment to the assembler.  */
    1.24 - # ifdef HAVE_SECTION_QUOTES
    1.25 --#  define __sec_comment "\"\n\t#\""
    1.26 -+#  define __sec_comment "\"\n#APP\n\t#\""
    1.27 - # else
    1.28 --#  define __sec_comment "\n\t#"
    1.29 -+#  define __sec_comment "\n#APP\n\t#"
    1.30 - # endif
    1.31 - # define link_warning(symbol, msg) \
    1.32 -   __make_section_unallocated (".gnu.warning." #symbol) \