[x264-devel] arm: Explicitly declare using the .text segment in the function macro

Martin Storsjö git at videolan.org
Mon May 22 00:01:49 CEST 2017


x264 | branch: master | Martin Storsjö <martin at martin.st> | Fri Mar 24 11:33:40 2017 +0200| [2e9bd88f27ed8f5f058e7e220070b7a15965cb8e] | committer: Henrik Gramner

arm: Explicitly declare using the .text segment in the function macro

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.)

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=2e9bd88f27ed8f5f058e7e220070b7a15965cb8e
---

 common/arm/asm.S | 1 +
 1 file changed, 1 insertion(+)

diff --git a/common/arm/asm.S b/common/arm/asm.S
index 5fc1b14b..5eb2881f 100644
--- a/common/arm/asm.S
+++ b/common/arm/asm.S
@@ -84,6 +84,7 @@ ELF     .size   \name, . - \name
 FUNC    .endfunc
         .purgem endfunc
     .endm
+        .text
         .align  2
 .if \export == 1
         .global EXTERN_ASM\name



More information about the x264-devel mailing list