Landing: 640617d9d18e

Project / Subsystem

binutils / binutils/bfd

Date

2026-10-05

Author

Jan Beulich <jbeulich@sourceware.org>

Commit

640617d9d18eb900a8cd9c95da1569aea78b70e8

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
binutils/bfd
patch_id
—
commit_hash
640617d9d18eb900a8cd9c95da1569aea78b70e8
source_type
public_inbox
headline
Write alignment of `.tls` into `_tls_used.Characteristics`
tldr
Binutils PE/COFF writer now encodes TLS alignment in the Characteristics field.
author
Jan Beulich <jbeulich@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • binutils
  • • bfd
  • • windows
  • • tls
  • • alignment
discussion_id_link
—
bugzilla_pr
—
date
2026-10-05T00:00:00.000Z

This change updates the PE/COFF object file writer in BFD to correctly encode the alignment of thread-local storage (TLS) variables into the Characteristics field of the _tls_used directory. This aligns with modern Windows SDKs (starting Windows 8.1) and compilers like Clang and MSVC, ensuring proper runtime alignment for over-aligned thread-local variables.