Relative Content

Tag Archive for rustldrust-cargocargo

How to intentionally leave undefined symbols?

I’m compiling a rust project, and want to include some static with a value not known at compile time, which will only later be linked into a final executable.
I figured I should be able to create some type of ELF object file which holds the entire linked binary except for my static which is waiting to be linked.
I wrote a main.rsfile which has l: