Landing: 365fc34606d2

Project / Subsystem

binutils / binutils

Date

2026-05-03

Author

H.J. Lu <hjl@sourceware.org>

Commit

365fc34606d2d566855e8ba3db9c4f7986ed3bcc

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
binutils
patch_id
commit_hash
365fc34606d2d566855e8ba3db9c4f7986ed3bcc
source_type
public_inbox
headline
Fixes strrchr Error for DOS Based Filesystem
tldr
Fixes a type error when using strrchr on DOS-based filesystems by ensuring the result is assigned to a const char *.
author
H.J. Lu <hjl@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • binutils
  • gprof
  • bugfix
  • dos
discussion_id_link
bugzilla_pr
date
2026-05-03T00:00:00.000Z

This commit fixes an error related to the use of strrchr on DOS-based filesystems. The code now ensures that the result of strrchr is assigned to a const char *, preventing a discarded-qualifiers warning. This change affects bucomm.c and gprof/source.c.