binutils Newspaper
OCTOBER 6, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
binutils/testsuite

Fix addr2line test cases on Windows

Addr2line test cases now pass on Windows, resolving path and symbol issues.

Two test cases for addr2line were failing on Windows. This commit resolves issues with Windows path formats used by nm and the handling of prefixed symbol names by GCC on certain targets. The test suite now correctly accounts for these platform-specific behaviors.

In Details

The binutils test suite's addr2line tests failed on Windows due to discrepancies in path formatting between the test suite's UNIX-style paths and Windows nm's DOS-style paths. Additionally, targets like H8/300 that prefix symbols with an underscore required special handling. This patch normalizes paths and accounts for symbol mangling to ensure test stability.

For Context
addr2line
A command-line utility that translates object code addresses into line numbers and function names, aiding in debugging.
nm
A command-line utility that lists symbols from object files.
H8/300
A specific microcontroller architecture for which binutils provides support.
Filed Under: testsuitewindowsbugfix