I would like to be able to dynamically change the executable code within a library I am using. Essentially, I would like to dynamically NOP out certain functions if they are
Try objcopy --writable-text on the compiled library, according to the documentation it should make .text writable.
objcopy --writable-text