]> granicus.if.org Git - libvpx/commitdiff
explicitly label .text sections
authorJohann <johannkoenig@google.com>
Fri, 1 Dec 2017 22:31:04 +0000 (14:31 -0800)
committerJohann <johannkoenig@google.com>
Fri, 1 Dec 2017 22:33:04 +0000 (14:33 -0800)
nasm should infer .text but does not for windows:
https://bugzilla.nasm.us/show_bug.cgi?id=3392451

Change-Id: Ib195465e5f33405f5ff61c4cf88aa2a72640cacb

31 files changed:
vp8/common/x86/copy_sse2.asm
vp8/common/x86/copy_sse3.asm
vp8/common/x86/dequantize_mmx.asm
vp8/common/x86/idctllm_mmx.asm
vp8/common/x86/idctllm_sse2.asm
vp8/common/x86/iwalsh_sse2.asm
vp8/common/x86/loopfilter_block_sse2_x86_64.asm
vp8/common/x86/loopfilter_sse2.asm
vp8/common/x86/mfqe_sse2.asm
vp8/common/x86/recon_mmx.asm
vp8/common/x86/recon_sse2.asm
vp8/common/x86/subpixel_mmx.asm
vp8/common/x86/subpixel_sse2.asm
vp8/common/x86/subpixel_ssse3.asm
vp8/encoder/x86/dct_sse2.asm
vp8/encoder/x86/encodeopt.asm
vp8/encoder/x86/fwalsh_sse2.asm
vp8/encoder/x86/temporal_filter_apply_sse2.asm
vp9/common/x86/vp9_mfqe_sse2.asm
vpx_dsp/x86/add_noise_sse2.asm
vpx_dsp/x86/deblock_sse2.asm
vpx_dsp/x86/highbd_variance_impl_sse2.asm
vpx_dsp/x86/sad_sse3.asm
vpx_dsp/x86/sad_sse4.asm
vpx_dsp/x86/sad_ssse3.asm
vpx_dsp/x86/ssim_opt_x86_64.asm
vpx_dsp/x86/vpx_high_subpixel_8t_sse2.asm
vpx_dsp/x86/vpx_high_subpixel_bilinear_sse2.asm
vpx_dsp/x86/vpx_subpixel_8t_sse2.asm
vpx_dsp/x86/vpx_subpixel_bilinear_sse2.asm
vpx_dsp/x86/vpx_subpixel_bilinear_ssse3.asm

index 86fae269563195bc7772ec55d3fa9b41d6e6910f..480faa25509190dc066f7100eb2915e6ab87f0b1 100644 (file)
@@ -11,6 +11,7 @@
 
 %include "vpx_ports/x86_abi_support.asm"
 
+SECTION .text
 
 ;void vp8_copy32xn_sse2(
 ;    unsigned char *src_ptr,
index d789a40ccf7c58d294c58a8d901cd7e7c4683dcb..31ea898a3d8b1d6f3912ee66f19e9d240a30a20d 100644 (file)
@@ -83,6 +83,7 @@
     ret
 %endmacro
 
+SECTION .text
 
 ;void vp8_copy32xn_sse3(
 ;    unsigned char *src_ptr,
index 4e551f00aa6010cf0471d4ca01471f210ddb5c12..bfdd9977828cfe41b9f11cc474993b24dad6f166 100644 (file)
@@ -11,6 +11,7 @@
 
 %include "vpx_ports/x86_abi_support.asm"
 
+SECTION .text
 
 ;void vp8_dequantize_b_impl_mmx(short *sq, short *dq, short *q)
 global sym(vp8_dequantize_b_impl_mmx) PRIVATE
index 96fa2c60d0ff468555241213da42a215f5ece679..5773d9d84e89269382cd47e20889336240e30a79 100644 (file)
@@ -31,6 +31,7 @@
 ; *
 ; **************************************************************************/
 
+SECTION .text
 
 ;void vp8_short_idct4x4llm_mmx(short *input, unsigned char *pred,
 ;int pitch, unsigned char *dest,int stride)
index bf8e2c402106c747a0dd27b8f4b2737cb59a96b7..560faba000cf73e466e8c211a3b4ef97b3cd6980 100644 (file)
@@ -19,6 +19,8 @@
 ;   int dst_stride      - 3
 ; )
 
+SECTION .text
+
 global sym(vp8_idct_dequant_0_2x_sse2) PRIVATE
 sym(vp8_idct_dequant_0_2x_sse2):
     push        rbp
index 06e86a80b6973c13f05c1fa8379d3574e46394fe..82d7bf91a69641a3f2d8ae3e14c920229fdc94a2 100644 (file)
@@ -11,6 +11,8 @@
 
 %include "vpx_ports/x86_abi_support.asm"
 
+SECTION .text
+
 ;void vp8_short_inv_walsh4x4_sse2(short *input, short *output)
 global sym(vp8_short_inv_walsh4x4_sse2) PRIVATE
 sym(vp8_short_inv_walsh4x4_sse2):
index 6d5aaa19db79045ff9a343ce68eb4843770ddc00..6a3d05290f420dcab5ef445efce44400da5e2d7c 100644 (file)
         pxor        %1, [GLOBAL(t80)]
 %endmacro
 
+SECTION .text
+
 ;void vp8_loop_filter_bh_y_sse2
 ;(
 ;    unsigned char *src_ptr,
index 1913abc69b072d23c4e7b610f6f0b9a4dd9e9e0f..2ae028feaeabcb093f0bbb829da74352fbac1e33 100644 (file)
 
 %endmacro
 
+SECTION .text
+
 %if ABI_IS_32BIT
 
 ;void vp8_loop_filter_horizontal_edge_sse2
index 8177b79226ca1ab588e9f703abe6a2682b9c1a55..3fde973ad2bf620b0e8fd6561fcb439043f1240f 100644 (file)
@@ -11,6 +11,8 @@
 
 %include "vpx_ports/x86_abi_support.asm"
 
+SECTION .text
+
 ;void vp8_filter_by_weight16x16_sse2
 ;(
 ;    unsigned char *src,
index 43f2dc6c62565d24d12243d9b49f240f8ff8bc21..e6a48f6b07f54f04f6ef0dab622ae276dbb39ef0 100644 (file)
@@ -11,6 +11,7 @@
 
 %include "vpx_ports/x86_abi_support.asm"
 
+SECTION .text
 
 ;void copy_mem8x8_mmx(
 ;    unsigned char *src,
index cb89537f761b35d84b99f418d4f8a5e197c44baa..57f8899c777f4f454c221a356b6e4b54b3031562 100644 (file)
@@ -11,6 +11,8 @@
 
 %include "vpx_ports/x86_abi_support.asm"
 
+SECTION .text
+
 ;void copy_mem16x16_sse2(
 ;    unsigned char *src,
 ;    int src_stride,
index 6ab7f1fdc7e3e3a5367a46d3723aefd87fe1c481..1f3a2baca00dd74a1338349271c10b79d9612368 100644 (file)
@@ -17,6 +17,7 @@ extern sym(vp8_bilinear_filters_x86_8)
 %define vp8_filter_weight 128
 %define VP8_FILTER_SHIFT  7
 
+SECTION .text
 
 ;void vp8_filter_block1d_h6_mmx
 ;(
index ca00583ca2af3898107a5169fdf8102744df3964..6e70f6d2e80ab9b66488f2b1703245170a0cb260 100644 (file)
@@ -16,6 +16,7 @@ extern sym(vp8_bilinear_filters_x86_8)
 %define VP8_FILTER_WEIGHT 128
 %define VP8_FILTER_SHIFT  7
 
+SECTION .text
 
 ;/************************************************************************************
 ; Notes: filter_block1d_h6 applies a 6 tap filter horizontally to the input pixels. The
index 1f6cbd1d1e593ab627e166f79b159a311f6ca626..8d55c9320ce0e98c6aa2ff854329870e49a8cfc7 100644 (file)
@@ -15,6 +15,7 @@
 %define VP8_FILTER_WEIGHT 128
 %define VP8_FILTER_SHIFT  7
 
+SECTION .text
 
 ;/************************************************************************************
 ; Notes: filter_block1d_h6 applies a 6 tap filter horizontally to the input pixels. The
index d06bca5927f2888b5f06b1db9579ca95803b5c60..4d92f0341d5fc6de4da800eb0f39a450a9f27cbc 100644 (file)
@@ -60,6 +60,8 @@
     ret
 %endmacro
 
+SECTION .text
+
 ;void vp8_short_fdct4x4_sse2(short *input, short *output, int pitch)
 global sym(vp8_short_fdct4x4_sse2) PRIVATE
 sym(vp8_short_fdct4x4_sse2):
index 0297220ee19d089d0599c5f53f2362f0c85c0bc2..f6c6aeae744f7f14b99b23ec4e4a4dfa7cf30a91 100644 (file)
@@ -11,6 +11,8 @@
 
 %include "vpx_ports/x86_abi_support.asm"
 
+SECTION .text
+
 ;int vp8_block_error_sse2(short *coeff_ptr,  short *dcoef_ptr)
 global sym(vp8_block_error_sse2) PRIVATE
 sym(vp8_block_error_sse2):
index f4989279f487304f577f46f164eda3be9bcdf777..b5d5de4a59a9a51075e84aff75a64dafb039cfef 100644 (file)
@@ -11,6 +11,8 @@
 
 %include "vpx_ports/x86_abi_support.asm"
 
+SECTION .text
+
 ;void vp8_short_walsh4x4_sse2(short *input, short *output, int pitch)
 global sym(vp8_short_walsh4x4_sse2) PRIVATE
 sym(vp8_short_walsh4x4_sse2):
index 0323bd8761b1f643771c9c9f311a7cfaa9e37916..d2b4711b879342ab5b67a1462b309e4c2b8d0b9f 100644 (file)
@@ -11,6 +11,8 @@
 
 %include "vpx_ports/x86_abi_support.asm"
 
+SECTION .text
+
 ; void vp8_temporal_filter_apply_sse2 | arg
 ;  (unsigned char  *frame1,           |  0
 ;   unsigned int    stride,           |  1
index 30852049b43ff4a9d8ca98fd7868871d0f704784..ca0897ab9febb2e699fd9696bbf545f65bf3a4c5 100644 (file)
@@ -12,6 +12,8 @@
 ;  TODO(jackychen): Find a way to fix the duplicate.
 %include "vpx_ports/x86_abi_support.asm"
 
+SECTION .text
+
 ;void vp9_filter_by_weight16x16_sse2
 ;(
 ;    unsigned char *src,
index af48adc31b1c3b5ad1deb4bee50e3909180add53..80cced4cedaa4b71b2362d04caf7bb9edd28d446 100644 (file)
@@ -11,6 +11,8 @@
 
 %include "vpx_ports/x86_abi_support.asm"
 
+SECTION .text
+
 ;void vpx_plane_add_noise_sse2(uint8_t *start, const int8_t *noise,
 ;                              int blackclamp, int whiteclamp,
 ;                              int width, int height, int pitch)
index bd8fd12480e93dfbd17045a27fa595a4d923bb3d..97cb43b67113b44fee834dede1ff1b6dff45a707 100644 (file)
@@ -83,6 +83,8 @@
         add         rbx,        16
 %endmacro
 
+SECTION .text
+
 ;void vpx_post_proc_down_and_across_mb_row_sse2
 ;(
 ;    unsigned char *src_ptr,
index 923418a99215142545a7377695088c27e019c3f6..e646767e190861c1c3017742b5590ce1ec363a40 100644 (file)
@@ -11,6 +11,8 @@
 
 %include "vpx_ports/x86_abi_support.asm"
 
+SECTION .text
+
 ;unsigned int vpx_highbd_calc16x16var_sse2
 ;(
 ;    unsigned char   *  src_ptr,
index 18279bdb9de6bd4a0f1b25ab25de3a54403bc883..175dcc089547fff1ffeb8a1094b326487063532d 100644 (file)
         paddw           mm7,       mm3
 %endmacro
 
+SECTION .text
+
 ;void int vpx_sad16x16x3_sse3(
 ;    unsigned char *src_ptr,
 ;    int  src_stride,
index bc674479715c4d3e4e584243b7d0f4c760afad3a..03999dfca2502d1ec0834508e0804ec09f651d05 100644 (file)
     movdqa          [rdi + 16],    xmm2
 %endmacro
 
+SECTION .text
+
 ;void vpx_sad16x16x8_sse4_1(
 ;    const unsigned char *src_ptr,
 ;    int  src_stride,
index 49f204fa04b9848d09e839836224ad40abbff3e5..7cf93cf51dee7cc5b3016cad851c4bbe624f95ea 100644 (file)
 
 %endmacro
 
+SECTION .text
+
 ;void int vpx_sad16x16x3_ssse3(
 ;    unsigned char *src_ptr,
 ;    int  src_stride,
index 6d58321e035170dd65e42e23bad0f5be3e9a1656..300fa8aabce3b448f0676fd22d21350c7eecd671 100644 (file)
@@ -44,6 +44,9 @@
         paddd           %1, xmm1
         SUM_ACROSS_Q    %1
 %endmacro
+
+SECTION .text
+
 ;void ssim_parms_sse2(
 ;    unsigned char *s,
 ;    int sp,
index bfc816f235354d3e9326aafadb14f48bc55e848d..d83507dc9954c1703a6cdb577e6651ffe9e0ce15 100644 (file)
     movdqu      [rdi + %2], xmm0
 %endm
 
+SECTION .text
+
 ;void vpx_filter_block1d4_v8_sse2
 ;(
 ;    unsigned char *src_ptr,
index 72f2ff71da27cbde81c428f466b36e6ae22209a4..9bffe504b1f1a5a22a25bdb094c8e02d430f2b08 100644 (file)
 %endm
 %endif
 
+SECTION .text
+
 global sym(vpx_highbd_filter_block1d4_v2_sse2) PRIVATE
 sym(vpx_highbd_filter_block1d4_v2_sse2):
     push        rbp
index 08f3d6a6cf3588965bca9e165421132a41947cf7..8497e1721b90bb5567b0d03574c6cb7ee555cf6f 100644 (file)
     movq        [rdi + %2], xmm0
 %endm
 
+SECTION .text
+
 ;void vpx_filter_block1d4_v8_sse2
 ;(
 ;    unsigned char *src_ptr,
index a378dd0402822b5ad6902e1b15383c67cedb1dd4..6d79492e4a4765cd15b555b9765ac38488842135 100644 (file)
     dec         rcx
 %endm
 
+SECTION .text
+
 global sym(vpx_filter_block1d4_v2_sse2) PRIVATE
 sym(vpx_filter_block1d4_v2_sse2):
     push        rbp
index 538b2129db2233a232ad912b27bf981ca2ba063b..8c9c817be72da4901040b0466cbc516824bf6048 100644 (file)
     dec         rcx
 %endm
 
+SECTION .text
+
 global sym(vpx_filter_block1d4_v2_ssse3) PRIVATE
 sym(vpx_filter_block1d4_v2_ssse3):
     push        rbp