api: support global relocations