You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Issue with builing of libvpx on Windows using NASM version 3.02 #267
me, and other Telegram Desktop contributors are experiencing problem to build libvpx (one of the ffmpeg dependencies) since the moment when MSYS2 updated NASM to version 3.02
dee2d13f2ca58208fe544dfa15956a8377746181 is the first bad commit
commit dee2d13f2ca58208fe544dfa15956a8377746181 (HEAD)
Author: SEt <[email protected]>
Date: Wed Dec 10 15:13:20 2025 +0300
Proper handling of several code sections in Codeview debug information
Current Codeview implementation assumes there is only one actual code
section and all line number information is pulled there. With support
of comdat that assumption becomes incorrect, so proper generation of
line number information table per code section is required.
Also solved an issue with incorrect relocation for symbol with the
same name as some section.
New code assumes that coff_nsects doesn't change during generation of
debug information.
Fixes: https://github.com/netwide-assembler/nasm/pull/183
Signed-off-by: H. Peter Anvin (Intel) <[email protected]>
output/codeview.c | 201 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------------------------------------------------------------------------------------
1 file changed, 94 insertions(+), 107 deletions(-)
The code in libvpx was wrong (and fixed) as improper naming of read only data section on Windows created it with execution permission. That triggered a bug in nasm which is fixed by PR #292
Activity
ludloff commentedon Jul 30, 2026
https://issues.webmproject.org/issues/540261859#comment7 says
"It looks like the issue is with nasm silently failing on section .rodata. section .rdata doesn't cause an issue."
Can [email protected] elaborate?
jzern commentedon Jul 30, 2026
https://chromium-review.googlesource.com/c/webm/libvpx/+/8171724 has a fix to use
.rdatawith win32/win64, which is already done in x86inc.asm. There was no warning emitted from nasm though, so I'm a little curious about what change caused the difference in behavior and whether that was intentional. I haven't tried to bisect.ludloff commentedon Jul 30, 2026
https://github.com/netwide-assembler/nasm/commits/master/output/outobj.c
https://github.com/netwide-assembler/nasm/commits/master/output/outcoff.c
not a lot of commits since 3.01 (which afaik was 2025-10-10) – let's dig... :-)
jzern commentedon Aug 3, 2026
SEt-t commentedon Aug 7, 2026
The code in libvpx was wrong (and fixed) as improper naming of read only data section on Windows created it with execution permission. That triggered a bug in nasm which is fixed by PR #292
deps.ffmpeg: Fix libvpx Windows x64 build with NASM 3.02
deps.ffmpeg: Fix libvpx Windows x64 build with NASM 3.02
deps.ffmpeg: Fix libvpx Windows x64 build with NASM 3.02 (#5)