3 ms·
On OS X: pass -sectcreate when linking (see man ld) or use segedit. If you're building native executables rather than cross-compiling for some embedded target,
by comex 11y ago
On OS X: pass -sectcreate when linking (see man ld) or use segedit.
If you're building native executables rather than cross-compiling for some embedded target, xxd has the advantage of not needing different commands on different platforms, although xxd itself may not be commonly found on Windows - oddly enough, it's part of vim...
Albeit if it's not embedded, you should consider why you're embedding data into executables in the first place.