Skip to content

Fix several issues with Codeview debug information#178

Merged
hpax merged 1 commit intonetwide-assembler:masterfrom
SEt-t:master
Dec 10, 2025
Merged

Fix several issues with Codeview debug information#178
hpax merged 1 commit intonetwide-assembler:masterfrom
SEt-t:master

Conversation

@SEt-t
Copy link
Copy Markdown
Contributor

@SEt-t SEt-t commented Dec 5, 2025

Resolves the following issues with Codeview debug information:

  1. Link error when any label is defined in .pdata section.
  2. Debug information is ignored in Visual Studio when comdat code sections .text$… are used.
  3. Debug information is ignored in Visual Studio when %include file defines only data what results in file reference with zero entries in line number table.
  4. Filter out non-informative macro-local labels in form "..@…".

Solution for issue 2. is partial: only for case of one such section per file.

@hpax
Copy link
Copy Markdown
Member

hpax commented Dec 10, 2025

Pulled.

@kasper93
Copy link
Copy Markdown

This change expand on the #216, where previously it files without defined sections would fail. Now every file without code (.text) section is failing. Effectively making it not possible to assembly for example .rdata only file.

kasper93 added a commit to kasper93/nasm that referenced this pull request Mar 30, 2026
Simply skip the tables that require code section and source information.

Fixes: netwide-assembler#216
Fixes: netwide-assembler#178 (comment)
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants