reduce stack, recode ld script