Re: Determining size of embedded blobs

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

 



> I want to embed an image into an executable.  I managed
> to do it by running "ld -r -b binary -o blob.o
> blob.png"
> on the blob.png file, thus creating a blob.o that I can
> link into my main program.  I have access to the binary
> blob by declaring an extern variable:

Hi,

Thank you all for the help!  I have tried both ways, and it
does work.  It didn't work before because I was trying to
use _end directly as pointer (my C is bit rusty).  Anyway,
I'll use the pointer subtraction method because, according
to Kevin, it is more robust than using size.

Regards,
Jean

 


      

[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