Last 12 weeks ยท 8 commits
2 of 6 standards met
Repository: denoland/sui. Description: Embed custom RO data into precompiled executables Stars: 130, Forks: 8. Primary language: Rust. Languages: Rust (99.5%), Shell (0.2%), Batchfile (0.2%). License: MIT. Homepage: https://littledivy.com/sui Latest release: 0.0.3 (1y ago). Open PRs: 1, open issues: 4. Last activity: 3w ago. Community health: 37%. Top contributors: littledivy, dsherret, nathanwhit, drahnr, cions.
Presume the input binary already has a fixed length note (precompiled), sui should expose to edit the data. Related to #21 but easier to do.
Data is stored in ELF notes using a section of type and a program header of type . The section is placed inside a segment so it is mapped at runtime, while the program header points to the same mapped range. Existing ELF notes are preserved by appending the new SUI note to the note segment data. At run-time, data is extracted from note segments in memory using . Fixes https://github.com/denoland/sui/issues/22 Fixes https://github.com/denoland/sui/issues/21 Fix for https://github.com/denoland/deno/issues/22556