Include binary file?

Segher Boessenkool segher@kernel.crashing.org
Thu May 20 22:34:00 GMT 2010


> 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?

TARGET(binary)
INPUT(some_file)


Segher



More information about the Gcc-help mailing list