[Nasm-bugs] [Bug 3392451] windows does not get SECTION .text by default

noreply-nasm at gorcunov.org noreply-nasm at gorcunov.org
Fri Dec 14 10:50:05 PST 2018


https://bugzilla.nasm.us/show_bug.cgi?id=3392451

johann.koenig at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |johann.koenig at gmail.com

--- Comment #2 from johann.koenig at gmail.com ---
$ git clone https://chromium.googlesource.com/webm/libvpx

apply:
diff --git a/vp8/common/x86/iwalsh_sse2.asm b/vp8/common/x86/iwalsh_sse2.asm
index 0043e93b0..fb40b4730 100644
--- a/vp8/common/x86/iwalsh_sse2.asm
+++ b/vp8/common/x86/iwalsh_sse2.asm
@@ -11,7 +11,7 @@

 %include "vpx_ports/x86_abi_support.asm"

-SECTION .text
+;SECTION .text

 ;void vp8_short_inv_walsh4x4_sse2(short *input, short *mb_dqcoeff)
 global sym(vp8_short_inv_walsh4x4_sse2) PRIVATE

$ CROSS=x86_64-w64-mingw32- ../libvpx/configure --target=x86_64-win64-gcc
--as=nasm
<...>
    [LD] test_libvpx.exe
./libvpx.a(threading.c.o):(.text+0x7f3): undefined reference to
`vp8_short_inv_walsh4x4_sse2'
./libvpx.a(encodeframe.c.o):(.text+0xcaf): undefined reference to
`vp8_short_inv_walsh4x4_sse2'
./libvpx.a(encodeframe.c.o):(.text+0x133a): undefined reference to
`vp8_short_inv_walsh4x4_sse2'
./libvpx.a(encodeintra.c.o):(.text+0x1dd): undefined reference to
`vp8_short_inv_walsh4x4_sse2'
./libvpx.a(encodemb.c.o):(.text+0x2450): undefined reference to
`vp8_short_inv_walsh4x4_sse2'
./libvpx.a(decodeframe.c.o):(.text+0x31ec): more undefined references to
`vp8_short_inv_walsh4x4_sse2' follow
collect2: error: ld returned 1 exit status
../libvpx/libs.mk:521: recipe for target 'test_libvpx.exe' failed
make[1]: *** [test_libvpx.exe] Error 1
Makefile:17: recipe for target '.DEFAULT' failed
make: *** [.DEFAULT] Error 2

$ nm vp8/common/x86/iwalsh_sse2.asm.o
0000000000000000 a .absolut
<...>
                 U rand
0000000000000000 t .text
                 U vp8_short_inv_walsh4x4_sse2


With SECTION .text (which should be the default according to the
documentation):
$ nm vp8/common/x86/iwalsh_sse2.asm.o
0000000000000000 a .absolut
<...>
                 U rand
0000000000000000 t .text
0000000000000000 T vp8_short_inv_walsh4x4_sse2

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.


More information about the Nasm-bugs mailing list