3 ms·
There's also gnu's objcopy. This post covers a lot of different approaches, and has lots of tips: https://www.devever.net/~hl/incbin https://www.devever.net/~h
by tyingq 7y ago
There's also gnu's objcopy.
This post covers a lot of different approaches, and has lots of tips: https://www.devever.net/~hl/incbin https://www.devever.net/~hl/incbin
- asdfqwerty18 7y agothanks
- deleted 7y ago[deleted]
- fao_ 7y agoThe image background on that webpage is extremely distracting
- tyingq 7y agoMake your browser width narrow, and it drops to the bottom. Not that you should have to :)
- tyhoff 7y agoThanks for the link! That’s got a lot of goodies. One of us from Memfault also wrote a post about tips with Binutils, and this approach is covered in it. https://interrupt.memfault.com/blog/gnu-binutils#objcopy https://interrupt.memfault.com/blog/gnu-binutils#objcopy
- saagarjha 7y agoTIL objdump --visualize-jumps…
- regularfry 7y agoI got about 90% of the way to having a working ruby single-file executable builder which used objcopy to embed a sqlite database of the source files into an MRI build. Then YARV happened and the ruby build chain changed just enough that I needed to throw it out and start again. Every now and again I ponder having another go with mruby...
- rkeene2 7y agoFWIW, this is roughly how Tclkits work in the Tcl world. Although by default they use a Metakit database instead of SQLite. Currently they append the database to the end of the executable, which has some problems and I'm working to make including it in the image more standardized as part of XVFS [0]. [0] https://chiselapp.com/user/rkeene/repository/xvfs/ https://chiselapp.com/user/rkeene/repository/xvfs/