carray(1) is a tiny but flexible Sortix program that turns a binary file into a C file <https://sortix.org/man/man1/carray.1.html …> <https://gitlab.com/sortix/sortix/blob/master/carray/carray.c …> $ echo foo > bar $ carray bar unsigned char bar[] = { 0x66, 0x6F, 0x6F, 0x0A, };
For objcopy the problem is bigger than asm .data: gratuitous dependency on a particular toolchain. Won't work on a llvm-only one, much less more exotic ones.
-
-
Um... Isn't depending on C array or xxd much worse?
-
No, and you can ship the output because it's not target-dependent.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.