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
@kotekompotek on GitHub · 2026-11-25 22:50 UTC · original · reviewed
Clean diagnostics addition — rwx shorthand plus named flags plus a hex remainder for unnamed bits covers the full characteristic space without pretending to decode alignment/linker bits. LGTM.
@fuzeofficlal on GitHub · 2026-11-26 00:24 UTC · original · reviewed
Verified head
29fcf27ccleanly merged ontoorigin/main(63bcca43) on Windows 11 x64.Code Review
IMAGE_SCN_*constants incrates/victory-pe/src/layout.rs:65-76match the PE/COFF specification, andapps/victory/src/inspect.rscleanly formats therwxpermission triad, named section characteristics, and hex remainder for any unnamed bits.Local Verification
cargo test --locked -p victory-pe -p victory:victory-pe36/36,victory16/16 unit + 4/4 integration (census2,census_unreadable1,translate1) passed.cargo clippy --locked -p victory-pe -p victory --all-targets -- -D warnings(default and--all-features) &cargo xtask policy(191 files ok): clean.Looks clean and ready to merge.
@futurepro62 on GitHub · 2026-11-26 17:46 UTC · original
NVIDIA full-suite run, to go with the reports above by cloph-dsp, since none of them names a GPU run. Tested exact head
29fcf27(on its basef3578e3).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 865 passed, 0 failed, 10 ignored.section_flags_names_the_title_sections,section_flags_shows_bits_without_a_name.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
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.