3 ms·
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$sta
by comex 8y ago
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");