How do I add contents of text file as a section in an ELF file?
This is possible and most easily done using OBJCOPY found in BINUTILS. You effectively take the data file as binary input and then output it to an object file format that can be linked to your program. OBJCOPY will even produce a start and end symbol as well as the size of the data area … Read more