0

Is there any way to embed resources (e.g. strings / images) within a Mach-O dylib such that they are editable post-build? Similar to resources in PE files.

I know I should be using Bundles instead, but humour me ;-)

snowcrash09
  • 4,694
  • 27
  • 45
  • 1
    Does this answer your question? [How do I embed data into a Mac OS X mach-o binary file's TEXT Section?](https://stackoverflow.com/questions/1604673/how-do-i-embed-data-into-a-mac-os-x-mach-o-binary-files-text-section) – Sebastian Feb 21 '23 at 12:30

1 Answers1

0

You could use the -sectcreate linker flag to embed some data into a binary. See this Embedding Data blog post for a complete explanation of the procedure.

0xced
  • 25,219
  • 10
  • 103
  • 255