arm: Explicitly declare using the .text segment in the function macro
authorMartin Storsjö <martin@martin.st>
Fri, 24 Mar 2017 09:33:40 +0000 (11:33 +0200)
committerHenrik Gramner <henrik@gramner.com>
Sun, 21 May 2017 20:41:07 +0000 (22:41 +0200)
This fixes one issue in building with MS armasm via gas-preprocessor.
Without the .text segment specification, the object files assembled
fine, but linking failed. (armasm source files don't get the text/code
segment implied automatically if nothing is specified.)

common/arm/asm.S

index 5fc1b14..5eb2881 100644 (file)
@@ -84,6 +84,7 @@ ELF     .size   \name, . - \name
 FUNC    .endfunc
         .purgem endfunc
     .endm
+        .text
         .align  2
 .if \export == 1
         .global EXTERN_ASM\name