Landing: 2c77fbc70079

Project / Subsystem

binutils / binutils/dlltool

Date

2026-06-10

Author

Alan Modra <amodra@sourceware.org>

Commit

2c77fbc70079dd5df66433dce6e287e49e46a4c4

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
binutils/dlltool
patch_id
commit_hash
2c77fbc70079dd5df66433dce6e287e49e46a4c4
source_type
public_inbox
headline
Dlltool no longer crashes when excluding symbols
tldr
Binutils `dlltool` now correctly handles the `--exclude-symbols` option without crashing, resolving a regression.
author
Alan Modra <amodra@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • bugfix
  • dlltool
  • windows
  • memory
discussion_id_link
public_inbox:binutils#34204
bugzilla_pr
date
2026-06-10T00:00:00.000Z

This commit fixes a segmentation fault in Binutils dlltool that occurred when using the --exclude-symbols option. The crash was a regression introduced by a previous commit that did not account for how dlltool processed symbol names with leading underscores during option handling. The fix modifies the string_list structure and related functions (add_excludes, underscore_excludes) to properly manage memory for excluded symbols, especially regarding potential leading underscores, restoring stable operation.