2

Is it possible to add an LC_LOAD_DYLIB to a binary? There has been protection against DYLD_INSERT_LIBRARIES being used so I need another to load a dylib into an app

user1000039
  • 785
  • 1
  • 7
  • 19
  • This doesn't make sense. "There has been protection?" Please clarify. – bmargulies Jan 14 '12 at 14:08
  • Well that's my assumption. DYLD_INSERT_LIBRARIES doesn't work. It's not a problem with the library because I can insert it manually with gdb using dlopen – user1000039 Jan 14 '12 at 14:13

1 Answers1

4

I open-sourced optool which does exactly this.

Alex Zielenski
  • 3,591
  • 1
  • 26
  • 44