Is there any standard way of embedding resources into Linux executable image? [duplicate]
Make yourself an assembler file, blob.S: .global blob .global blob_size .section .rodata blob: .incbin “blob.bin” 1: blob_size: .int 1b – blob Compile with gcc -c blob.S -o blob.o The blob can now be accessed from within your C program with: extern uint8_t blob[]; extern int blob_size; Using a bin2c converter usually works fine, but if … Read more