News for hackers. Stuff that matters.
Re:Embedding files in C programs with koio by comex on Wednesday May 30, 2018 @07:44PM (#17192858)
Pass -sectcreate to the linker, e.g. -sectcreate __DATA __foo foo.txt. Then you can reference the data like this:

    extern char foo_start[] asm("section$start$__DATA$__foo");
    extern char foo_end[] asm("section$end$__DATA$__foo");

There are no comments on this comment yet.