Two patch files

Marc Karasek marckarasek@ivivity.com
Tue Jun 7 18:54:00 GMT 2005


Below are two patch files one lets glibc-2.3.2 compile properly with the
latest gcc 4.x compiler and the other fixes a problem with glibc-2.3.2
and dynamic linking under MIPS


Dynamic Linking Patch
*** glibc-2.3.2/elf/sofini.c.orig       2005-06-06 13:35:26.431292360
-0400
--- glibc-2.3.2/elf/sofini.c    2005-06-06 13:35:45.103441326 -0400
***************
*** 2,11 ****
     null pointer words in the `.ctors' and `.dtors' sections.  */

  static void (*const __CTOR_END__[1]) (void)
!      __attribute__ ((unused, section (".ctors")))
       = { 0 };
  static void (*const __DTOR_END__[1]) (void)
!      __attribute__ ((unused, section (".dtors")))
       = { 0 };

  #ifdef HAVE_DWARF2_UNWIND_INFO
--- 2,11 ----
     null pointer words in the `.ctors' and `.dtors' sections.  */

  static void (*const __CTOR_END__[1]) (void)
!      __attribute__ ((used, section (".ctors")))
       = { 0 };
  static void (*const __DTOR_END__[1]) (void)
!      __attribute__ ((used, section (".dtors")))
       = { 0 };

  #ifdef HAVE_DWARF2_UNWIND_INFO
***************
*** 14,19 ****

  typedef unsigned int ui32 __attribute__ ((mode (SI)));
  static ui32 __FRAME_END__[1]
!      __attribute__ ((unused, section (".eh_frame")))
       = { 0 };
  #endif
--- 14,19 ----

  typedef unsigned int ui32 __attribute__ ((mode (SI)));
  static ui32 __FRAME_END__[1]
!      __attribute__ ((used, section (".eh_frame")))
       = { 0 };
  #endif


Allow GCC 4.x Patch
*** glibc-2.3.2/configure.old   2003-02-26 04:20:48.000000000 -0500
--- glibc-2.3.2/configure       2005-04-28 14:14:20.043873492 -0400
***************
*** 2274,2279 ****
--- 2274,2281 ----
      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
      3.[2-9]*)
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
+     4.[0-3]*)
+        ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;

    esac


-- 
Any content within this email is provided “AS IS” for informational purposes only.  No contract will be formed between the parties by virtue of this email. 
/***********************
Marc Karasek
System Lead Technical Engineer
iVivity Inc.
T 678-990-1550 x238
F 678-990-1551
***********************/

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list