We're currently using two libraries for patching ELF files (PyO3/maturin#2932): Goblin for "linting" build artifacts and reading the RPATH, where it has convenient high-level functions, and object for adjusting RPATH/SONAME/etc. through arwen. I've been looking at the faerie example for writing ELF files, but it seems there's no typed, safe ELF write API, with which we could replace parsing with both goblin and object with using goblin specifically for ELF files.
We're currently using two libraries for patching ELF files (PyO3/maturin#2932): Goblin for "linting" build artifacts and reading the RPATH, where it has convenient high-level functions, and object for adjusting RPATH/SONAME/etc. through arwen. I've been looking at the faerie example for writing ELF files, but it seems there's no typed, safe ELF write API, with which we could replace parsing with both goblin and object with using goblin specifically for ELF files.