patches/glibc/2.3.2/gcc-pr-9552-workaround.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.3.2/gcc-pr-9552-workaround.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,20 @@
     1.4 +See http://gcc.gnu.org/PR9552
     1.5 +
     1.6 +Works around gcc error
     1.7 +  "soinit.c:25: internal compiler error: in named_section_flags, at varasm.c:412"
     1.8 +by fixing slightly incorrect code in glibc (the .eh_frame section used to
     1.9 +be read-write, but it's now readonly according to discussion in
    1.10 +http://sources.redhat.com/ml/binutils/2002-11/msg00592.html,
    1.11 +so it's arguably incorrect to continue to put variables in there that aren't const).
    1.12 +
    1.13 +--- glibc-2.3.2/elf/soinit.c 2001-11-16 00:09:20.000000000 +0100
    1.14 ++++ glibc-2.3.2/elf/soinit.c   2003-08-12 09:13:34.000000000 +0200
    1.15 +@@ -25,7 +25,7 @@
    1.16 + }
    1.17 +
    1.18 + #ifdef HAVE_DWARF2_UNWIND_INFO
    1.19 +-static char __EH_FRAME_BEGIN__[]
    1.20 ++const static char __EH_FRAME_BEGIN__[]
    1.21 +      __attribute__ ((section (".eh_frame")))
    1.22 +      = { };
    1.23 + # ifdef HAVE_DWARF2_UNWIND_INFO_STATIC