From: Tony Wang Date: Thu, 27 Nov 2014 13:38:51 +0000 (+0000) Subject: lib1funcs.S (FUNC_START): Add conditional section redefine for macro L_arm_muldivsf3... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1025cb6c0d6cd25f32e301c764ffa83d208e1961;p=gcc.git lib1funcs.S (FUNC_START): Add conditional section redefine for macro L_arm_muldivsf3 and L_arm_muldivdf3. 2014-11-27 Tony Wang 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 --- diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index a61e5fc6feb..ea3fdc87845 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,9 @@ +2014-11-27 Tony Wang + + * 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 * crtstuff.c (__do_glbal_ctors_1): Add missing semicolon. diff --git a/libgcc/config/arm/lib1funcs.S b/libgcc/config/arm/lib1funcs.S index b617137e263..0f871117d0f 100644 --- a/libgcc/config/arm/lib1funcs.S +++ b/libgcc/config/arm/lib1funcs.S @@ -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