This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Include binary file?


Hello, at link time I would like to include the contents of a binary file into the output executable, in a separate segment. In my code I would then read this as an array. I've done this before with other compilers / linkers, but not with gcc. Can you show me the directives to do this?

Thanks,

Mark Ainsworth


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]