Add reloc function to reload local functions