linking and relocating