This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] libgloss bits for ARM VFP11 workaround


Hi,

This patch adds the .vfp11_veneer section to libgloss's linker scripts, necessary to make the following patch work properly on bare-metal ARM targets:

http://sourceware.org/ml/binutils/2006-12/msg00196.html

OK, pending approval of that patch?

Cheers,

Julian

ChangeLog (libgloss)

    * arm/arm.sc (SECTIONS): Add .vfp11_veneer.
    * arm/coff-redboot.ld (SECTIONS): Likewise.
    * arm/elf-redboot.ld (SECTIONS): Likewise.
    * mcore/pe-cmb.ld (SECTIONS): Likewise.
Index: libgloss/arm/arm.sc
===================================================================
RCS file: /cvs/src/src/libgloss/arm/Attic/arm.sc,v
retrieving revision 1.1.2.5
diff -c -p -r1.1.2.5 arm.sc
*** libgloss/arm/arm.sc	1 Oct 2006 21:05:23 -0000	1.1.2.5
--- libgloss/arm/arm.sc	15 Dec 2006 13:28:58 -0000
*************** SECTIONS
*** 36,42 ****
      *(.text .text.* .gnu.linkonce.t.*)
      *(.plt)
      *(.gnu.warning)
!     *(.glue_7t) *(.glue_7)
  
      . = ALIGN(0x4);
      /* These are for running static constructors and destructors under ELF.  */
--- 36,42 ----
      *(.text .text.* .gnu.linkonce.t.*)
      *(.plt)
      *(.gnu.warning)
!     *(.glue_7t) *(.glue_7) *(.vfp11_veneer)
  
      . = ALIGN(0x4);
      /* These are for running static constructors and destructors under ELF.  */
Index: libgloss/arm/coff-redboot.ld
===================================================================
RCS file: /cvs/src/src/libgloss/arm/coff-redboot.ld,v
retrieving revision 1.2
diff -c -p -r1.2 coff-redboot.ld
*** libgloss/arm/coff-redboot.ld	7 Nov 2002 00:25:57 -0000	1.2
--- libgloss/arm/coff-redboot.ld	15 Dec 2006 13:28:58 -0000
*************** SECTIONS
*** 12,17 ****
--- 12,18 ----
      *(.text*)
      *(.glue_7t)
      *(.glue_7)
+     *(.vfp11_veneer)
      *(.rdata)
       ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; 
  			LONG (-1); *(.ctors); *(.ctor); LONG (0); 
Index: libgloss/arm/elf-redboot.ld
===================================================================
RCS file: /cvs/src/src/libgloss/arm/elf-redboot.ld,v
retrieving revision 1.3
diff -c -p -r1.3 elf-redboot.ld
*** libgloss/arm/elf-redboot.ld	20 May 2005 15:45:42 -0000	1.3
--- libgloss/arm/elf-redboot.ld	15 Dec 2006 13:28:58 -0000
*************** SECTIONS
*** 88,94 ****
      /* .gnu.warning sections are handled specially by elf32.em.  */
      *(.gnu.warning)
      *(.gnu.linkonce.t*)
!     *(.glue_7t) *(.glue_7)
    } =0
    .init          : 
    { 
--- 88,94 ----
      /* .gnu.warning sections are handled specially by elf32.em.  */
      *(.gnu.warning)
      *(.gnu.linkonce.t*)
!     *(.glue_7t) *(.glue_7) *(.vfp11_veneer)
    } =0
    .init          : 
    { 
Index: libgloss/mcore/pe-cmb.ld
===================================================================
RCS file: /cvs/src/src/libgloss/mcore/pe-cmb.ld,v
retrieving revision 1.1
diff -c -p -r1.1 pe-cmb.ld
*** libgloss/mcore/pe-cmb.ld	17 Mar 2000 22:48:51 -0000	1.1
--- libgloss/mcore/pe-cmb.ld	15 Dec 2006 13:28:58 -0000
*************** SECTIONS
*** 11,16 ****
--- 11,17 ----
      *(SORT(.text$*))
      *(.glue_7t)
      *(.glue_7)
+     *(.vfp11_veneer)
       ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; 
  			LONG (-1); *(.ctors); *(.ctor); LONG (0); 
       ___DTOR_LIST__ = .; __DTOR_LIST__ = . ; 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]