indygreg/PyOxidizer#183 contains a lot of boilerplate code to write a object file, substantially copied from https://github.com/gimli-rs/object/blob/master/examples/objcopy.rs .
It would be nice if there was a simple API to achieve the same, with high-level transform operations selected and then the reconstruction iteration process left for object & friends to perform.
In my case the transform I need is renaming of one sym from PyInit_* to PyInit_foo_baz. This is the same as objcopy --redefine-sym old=new, and it is a bit similar to the Mangling use-case.
indygreg/PyOxidizer#183 contains a lot of boilerplate code to write a object file, substantially copied from https://github.com/gimli-rs/object/blob/master/examples/objcopy.rs .
It would be nice if there was a simple API to achieve the same, with high-level transform operations selected and then the reconstruction iteration process left for
object& friends to perform.In my case the transform I need is renaming of one sym from
PyInit_*toPyInit_foo_baz. This is the same asobjcopy --redefine-sym old=new, and it is a bit similar to theManglinguse-case.