segfault fixed when no relocations made