You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reject nonzero initializers in NOBITS sections #38
bugSomething isn't workinggood first issueGood for newcomersneeds testingRequires focused correctness or coverage validation.objectObject model, file formats and object validation.priority mediumNormal development backlog priority.
Reproduced: .bss containing db 7 succeeds, but the ELF writer emits no payload for it. The explicit initializer is silently discarded.
Reproduction
On Linux x86_64 (Rust 1.96.0), save as repro.asm:
section .textsection .bssdb7
Run cargo run -- asm --amd64 repro.asm -o repro.o.
Observed exit status: 0.
Wrote 512 bytes to repro.o
Scope
Difficulty: easy.
Reject incompatible initialized data in BSS or require an explicit section-kind conversion; do not silently replace a nonzero initializer with zero-filled storage.
Completion criteria
A nonzero initializer in BSS produces a clear diagnostic.
Zero reservations remain supported.
Tests inspect section type, size and emitted payload behavior.
Backlog index: #12. This issue owns only the bounded work described above.
bugSomething isn't workinggood first issueGood for newcomersneeds testingRequires focused correctness or coverage validation.objectObject model, file formats and object validation.priority mediumNormal development backlog priority.
Activity