I've embedded a text file in a C program using the following method: http://www.linuxjournal.com/content/embedding-file-executable-aka-hello-world-version-5967
a.out:prog.c file.text
objcopy --input binary --output elf64-x86-64 --binary-architecture i386 file.text file.o
gcc prog.c file.o
objcopy requires to specify the target with the "--output" option.
How can I set "--output" in Makefile so objcopy will use the user's architecture ?
Thanks.
file
andar
andnm
. The only thought I had was a custommagic
file forfile
, but I don't know enough to begin assembling such a thing. – Dobbs