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
  • 745
  • 1
  • 6
  • 18
  • 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,561
  • 1
  • 25
  • 43