rust-lang / rust-lang/rust

`Building: aarch64-pc-windows-msvc` got `section count exceeds max` warning

Open
#150,045 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

L-linker_messages O-aarch64-pc-windows-msvc S-needs-repro
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Rust: nightly
build with -Zbuild-std for aarch64-pc-windows-msvc got this warning like below:
note: requested on the command line with -W linker-messages

Building: aarch64-pc-windows-msvc
warning: linker stdout: C:\a\Img\Img\build-dir\aarch64-pc-windows-msvc\src\build\Img\8c598e69be55a61b\deps\Img.exe : warning LNK4072: section count 104 exceeds max (96); image may not run

but arm64ec-pc-windows-msvc has no warning, so weird.
I'm sure it's harmless or not.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the nightly -Zbuild-std build for aarch64-pc-windows-msvc and compare it with arm64ec-pc-windows-msvc. Start from the linker-messages output and investigate the target-specific LNK4072 warning. Done means establishing whether the warning is harmless and identifying whether Rust should change its behavior or documentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.