Implement static segments and store return address during return.