Re: Include binary file?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux