CLI: inspect names each section's flags #2858
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!2858
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2858"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@wilu222 on GitHub · 2026-11-25 22:31 UTC · original
wilu222:inspect-section-flags→main· +77 −2 · 2 files · 1 commits · openvictory inspectprinted each section's characteristics only in hex, so telling which sections are executable or writable meant decoding the number by hand. The title executable of Series 1.0.2.1, for example, has.textat0x60000020,.dataat0xc0000040and.relocat0x42000040.This follows the number with the section's access as
rwxand its other named flags, the same way thedll flagsline names its bits (#1988). Bits without a name (the alignment field object files use, linker-only flags) are shown in hex rather than dropped.What is in it
crates/victory-pe/src/layout.rs:section_flagsconstants, next todll_flags.apps/victory/src/inspect.rs:section_flagsnames them for the sections table; two unit tests (no game data).Tested
mainf3578e3.cargo test --locked -p victory --bins: 16 passed, including the two new tests.cargo clippy --workspace --all-targets --locked -- -D warningsand the--all-featuresvariant: clean.cargo xtask policy --staged: 2 files ok.cargo test --workspace --locked --no-fail-fast: 779 passed, 92 failed, 10 ignored.mainon the same machine: 777 passed, 92 failed, 10 ignored, the same 92 tests. They are the GPU tests that need shader model 6.6, which Windows 10's inbox D3D12 does not expose (neither hardware nor WARP SM 6.6 device available/no SM 6.6 device; #84).victory inspecton the title executable: and onkernel32.dllof the same Windows: all seven sections named, nothing left in hex.Not tested
@cloph-dsp on GitHub · 2026-11-25 23:00 UTC · original
Local verification on Windows / rustc 1.100.0 / MSVC, no game data, no GPU, no clippy/rustup.
cargo test --locked -p victory --bins --quiet-> 16 passed, 0 failed, including the newsection_flags_names_the_title_sectionsandsection_flags_shows_bits_without_a_name.f3578e3: 2 files, +77/-2;git diff --checkclean.AI-assisted (Hy4 flash).
@Marvisak on GitHub · 2026-11-26 04:23 UTC · original
Automated triage for the maintainers.
Merge candidate. Adds
section_flagsconstants tovictory-pe/src/layout.rs, andinspect::section_flagsdecodes each section's characteristics asrwxplus named flags, likedll_flags. The constants match the PE format documentation, and the tests cover unnamed bits in hex and0xf0000080decoding torwx, uninitialized-data, shared.CI: passing.
Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.