fix const decl and add relocate