How do I add contents of text file as a section in an ELF file?
问题 I have a NASM assembly file that I am assembling and linking (on Intel-64 Linux). There is a text file, and I want the contents of the text file to appear in the resulting binary (as a string, basically). The binary is an ELF executable. My plan is to create a new readonly data section in the ELF file (equivalent to the conventional .rodata section). Ideally, there would be a tool to add a file verbatim as a new section in an elf file, or a linker option to include a file verbatim. Is this