[PATCH] ld: testsuite: Fix a few backslash-related issues on MinGW.
Project / Subsystem
binutils / ld
Date
2026-07-17
Proposer
Jan Dubiec <jdx@o2.pl>
Source type
public_inbox
Consensus
Proposed
Sentiment
7/10
Technical tradeoffs
- • Fixing test cases to use platform-specific path separators maintains strict adherence to OS conventions but increases test complexity.
- • Modifying `ld` to always use forward slashes would simplify path handling but might deviate from native Windows conventions.
All attributes
- project
- binutils
- subsystem
- ld
- patch_id
- —
- discussion_id
- 20260717101723.1022175-1-jdx@o2.pl
- source_type
- public_inbox
- title
- [PATCH] ld: testsuite: Fix a few backslash-related issues on MinGW.
- headline
- ld: testsuite: Fix a few backslash-related issues on MinGW.
- tldr
- Fixes ld test cases on MinGW that fail due to incorrect use of backslashes in file paths.
- proposer
- Jan Dubiec <jdx@o2.pl>
- consensus
- Proposed
- outcome
- proposed
- sentiment_score
- 7
- technical_tradeoffs
-
- • Fixing test cases to use platform-specific path separators maintains strict adherence to OS conventions but increases test complexity.
- • Modifying `ld` to always use forward slashes would simplify path handling but might deviate from native Windows conventions.
- series_id
- —
- series_role
- standalone
- series_parts
- []
- tags
-
- • binutils
- • ld
- • testing
- • Windows
- • portability
- bugzilla_url
- —
- date
- 2026-07-17T00:00:00.000Z
[PATCH] ld: testsuite: Fix a few backslash-related issues on MinGW.
Several test cases in the ld test suite are failing on MinGW due to incorrect path handling. On Windows, paths are typically constructed using backslashes (\). The test cases, however, are expecting forward slashes (/). The patch aims to correct this by ensuring that file paths are generated in a way that is compatible with MinGW’s environment. The discussion involves questions about whether ld could simply use forward slashes universally, even on Windows, to simplify path handling.