I'm not sure that I am doing what I want to do most effectively. The end
goal is a small self-contained executable with a few sections that will be
located into memory at some system-specific addresses (which can not be
known at build time).
I've succeeded in making a static binary that works for a given fixed
address. Now I need to make it relocateable. Linking with -r seems to
give me the binary I want (though I am not sure it would catch
unresolvable references anymore).
Would I be better off using -pie or some other method?