chipperMDW
Programmer
This question isn't specific to C++, but there's no "linkers" forum, and this seems like a reasonable place to ask.
I've come across a situation where it would be useful to be able to statically link object files with a library to form an executable (most likely only needs to be ELF), then at some later point "delink" that library and link something else in its place -- either statically or dynamically.
I know I could use a shared library, but this needs to work as a static library. I also know I could keep the object files lying around and just redo the linking, but I'd like a better solution than that.
So, first of all, for someone who knows ELF format, is this even possible?
If it is possible, is there anything out there that can do this now?
If it is not possible, would it be feasible to extend ELF to support "delinking"?
Finally, is there already some solution to this type of problem (with statically linked libraries) and I'm just not looking hard enough or thinking in the right direction? If so, let me know.
Sorry if this was an inappropriate place to ask this question; just remember that people ask about decompiling in C/C++ forums, too.
I've come across a situation where it would be useful to be able to statically link object files with a library to form an executable (most likely only needs to be ELF), then at some later point "delink" that library and link something else in its place -- either statically or dynamically.
I know I could use a shared library, but this needs to work as a static library. I also know I could keep the object files lying around and just redo the linking, but I'd like a better solution than that.
So, first of all, for someone who knows ELF format, is this even possible?
If it is possible, is there anything out there that can do this now?
If it is not possible, would it be feasible to extend ELF to support "delinking"?
Finally, is there already some solution to this type of problem (with statically linked libraries) and I'm just not looking hard enough or thinking in the right direction? If so, let me know.
Sorry if this was an inappropriate place to ask this question; just remember that people ask about decompiling in C/C++ forums, too.