lib1funcs.S (FUNC_START): Add conditional section redefine for macro L_arm_muldivsf3...
authorTony Wang <tony.wang@arm.com>
Thu, 27 Nov 2014 13:38:51 +0000 (13:38 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Thu, 27 Nov 2014 13:38:51 +0000 (13:38 +0000)
2014-11-27  Tony Wang  <tony.wang@arm.com>

    libgcc/
    * config/arm/lib1funcs.S (FUNC_START): Add conditional section
    redefine for macro L_arm_muldivsf3 and L_arm_muldivdf3.
    (SYM_END, ARM_SYM_START): Add macros used to expose function Symbols.

From-SVN: r218124

libgcc/ChangeLog
libgcc/config/arm/lib1funcs.S

index a61e5fc6feb7344e4b47cb5ed960a0f50b75df95..ea3fdc87845fcb0c7fc4f0f28a20abe074477497 100644 (file)
@@ -1,3 +1,9 @@
+2014-11-27  Tony Wang  <tony.wang@arm.com>
+
+       * config/arm/lib1funcs.S (FUNC_START): Add conditional section
+       redefine for macro L_arm_muldivsf3 and L_arm_muldivdf3.
+       (SYM_END, ARM_SYM_START): Add macros used to expose function Symbols.
+
 2014-11-25  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * crtstuff.c (__do_glbal_ctors_1): Add missing semicolon.
index b617137e263b7598aa4a2a779d1d44f7cbf3ab01..0f871117d0f5b1a6f49fbe36549ee10a9daae73d 100644 (file)
@@ -418,8 +418,12 @@ SYM (\name):
 #define THUMB_SYNTAX
 #endif
 
-.macro FUNC_START name
+.macro FUNC_START name sp_section=
+  .ifc \sp_section, function_section
+       .section        .text.__\name,"ax",%progbits
+  .else
        .text
+  .endif
        .globl SYM (__\name)
        TYPE (__\name)
        .align 0
@@ -429,14 +433,24 @@ SYM (\name):
 SYM (__\name):
 .endm
 
+.macro ARM_SYM_START name
+       TYPE (\name)
+       .align 0
+SYM (\name):
+.endm
+
+.macro SYM_END name
+       SIZE (\name)
+.endm
+
 /* Special function that will always be coded in ARM assembly, even if
    in Thumb-only compilation.  */
 
 #if defined(__thumb2__)
 
 /* For Thumb-2 we build everything in thumb mode.  */
-.macro ARM_FUNC_START name
-       FUNC_START \name
+.macro ARM_FUNC_START name sp_section=
+       FUNC_START \name \sp_section
        .syntax unified
 .endm
 #define EQUIV .thumb_set
@@ -467,8 +481,12 @@ _L__\name:
 #ifdef __ARM_ARCH_6M__
 #define EQUIV .thumb_set
 #else
-.macro ARM_FUNC_START name
+.macro ARM_FUNC_START name sp_section=
+  .ifc \sp_section, function_section
+       .section        .text.__\name,"ax",%progbits
+  .else
        .text
+  .endif
        .globl SYM (__\name)
        TYPE (__\name)
        .align 0