# rebase\_program

Rebase the whole program by 'delta' bytes delta - number of bytes to move the program flags - combination of [MFS\_...](https://docs.hex-rays.com/8.4/developer-guide/idc/idc-api-reference/alphabetical-list-of-idc-functions/1525) constants it is recommended to use MSF\_FIXONCE so that the loader takes care of global variables it stored in the database returns: error code [MOVE\_SEGM\_...](https://docs.hex-rays.com/8.4/developer-guide/idc/idc-api-reference/alphabetical-list-of-idc-functions/1525)

long rebase\_program(long delta, long flags);
