x86inc.asm: fix NASM compilation
authorKO Myung-Hun <komh@chollian.net>
Fri, 28 Aug 2015 13:23:38 +0000 (22:23 +0900)
committerKO Myung-Hun <komh@chollian.net>
Wed, 2 Sep 2015 10:04:13 +0000 (19:04 +0900)
Change-Id: I1e7f3c32969dac7911921062b396750302878c2e

third_party/x86inc/README.libvpx
third_party/x86inc/x86inc.asm

index fe5b076..e91e305 100644 (file)
@@ -20,3 +20,5 @@ Copy PIC 'GLOBAL' macros from x86_abi_support.asm
 Use .text instead of .rodata on macho to avoid broken tables in PIC mode.
 Use .text with no alignment for aout
 Only use 'hidden' visibility with Chromium
+Move '%use smartalign' for nasm out of 'INIT_CPUFLAGS' and before
+  'ALIGNMODE'.
index 77a58f2..be59de3 100644 (file)
@@ -876,6 +876,10 @@ SECTION .note.GNU-stack noalloc noexec nowrite progbits
 %define    cpuflag(x) ((cpuflags & (cpuflags_ %+ x)) == (cpuflags_ %+ x))
 %define notcpuflag(x) ((cpuflags & (cpuflags_ %+ x)) != (cpuflags_ %+ x))
 
+%ifdef __NASM_VER__
+    %use smartalign
+%endif
+
 ; Takes an arbitrary number of cpuflags from the above list.
 ; All subsequent functions (up to the next INIT_CPUFLAGS) is built for the specified cpu.
 ; You shouldn't need to invoke this macro directly, it's a subroutine for INIT_MMX &co.
@@ -912,7 +916,6 @@ SECTION .note.GNU-stack noalloc noexec nowrite progbits
     %endif
 
     %ifdef __NASM_VER__
-        %use smartalign
         ALIGNMODE k7
     %elif ARCH_X86_64 || cpuflag(sse2)
         CPU amdnop