Fix bug in link script