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
Preserve data-reference relocation intent for undefined symbols #37
bugSomething isn't workinghelp wantedExtra attention is neededneeds testingRequires focused correctness or coverage validation.objectObject model, file formats and object validation.priority highCorrectness or foundational work to address before dependent features.
Reproduced: extern ext; mov rax, [ext] emits R_X86_64_PLT32. The asm-to-object bridge converts every Relative32 against an undefined symbol to PLT32, including RIP-relative data references.
Reproduction
On Linux x86_64 (Rust 1.96.0), save as repro.asm:
section .textexternextmovrax,[ext]
Run cargo run -- asm --amd64 repro.asm -o repro.o.
Observed exit status: 0.
Wrote 584 bytes to repro.o
Scope
Difficulty: medium.
Carry control-transfer versus data-address relocation intent across the assembler/object boundary. Select PC32, PLT32 or an explicitly requested GOT form from that intent rather than undefined status alone.
Completion criteria
External data loads/stores do not receive a call/jump PLT relocation.
External call behavior remains deliberately selected and tested.
ELF inspection plus a small external-data link/run test validates the result.
Backlog index: #12. This issue owns only the bounded work described above.
bugSomething isn't workinghelp wantedExtra attention is neededneeds testingRequires focused correctness or coverage validation.objectObject model, file formats and object validation.priority highCorrectness or foundational work to address before dependent features.
Activity