Add relocation reading and tests.