how to link relocatable to executable